/* ── Liquid glass direction (design.md, owner-set 2026-08-12) ─────────────
   Apple-like: system type, huge calm headlines, frosted translucent cards
   over a soft wash, one vibrant blue for everything interactive, hairlines
   instead of boxes, pill controls, gliding motion. */

:root {
  --page: #f5f5f7;
  --ink: #1d1d1f;
  --grey: #6e6e73;
  --hairline: rgba(0, 0, 0, 0.10);
  --hairline-2: rgba(0, 0, 0, 0.18);

  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);

  --accent: #0066cc;      /* interactive only */
  --accent-hover: #0071e3;
  --warn: #c93400;        /* access-code flags only */

  --wash-a: rgba(0, 113, 227, 0.07);
  --wash-b: rgba(120, 80, 220, 0.05);

  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', Roboto, sans-serif;

  --glide: cubic-bezier(0.32, 0.72, 0, 1);
  --sheen: rgba(255, 255, 255, 0.5);
  --radius: 22px;
  --radius-s: 14px;
  --pill: 980px;
  --col: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #101012;
    --ink: #f5f5f7;
    --grey: #a1a1a6;
    --hairline: rgba(255, 255, 255, 0.14);
    --hairline-2: rgba(255, 255, 255, 0.26);

    --glass: rgba(28, 28, 30, 0.55);
    --glass-strong: rgba(38, 38, 42, 0.72);
    --glass-edge: rgba(255, 255, 255, 0.14);
    --glass-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.3);

    --accent: #2997ff;
    --accent-hover: #439cff;
    --warn: #ff9f0a;

    --wash-a: rgba(41, 151, 255, 0.10);
    --wash-b: rgba(150, 110, 255, 0.08);
    --sheen: rgba(255, 255, 255, 0.16);
  }
}

/* ── Base ─────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

/* The soft wash the glass gets to blur. Fixed so panels glide over it. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 34rem at 18% -6%, var(--wash-a), transparent 60%),
    radial-gradient(52rem 30rem at 88% 4%, var(--wash-b), transparent 62%);
  pointer-events: none;
}

[hidden] { display: none !important; }

h1 {
  font-size: clamp(2.2rem, 6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin: 1.7rem 0 0.35rem; }

p { margin: 0.7em 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--col); margin: 0 auto; padding: 0 1.25rem; }

.muted { color: var(--grey); }
.small { font-size: 0.88rem; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.eyebrow a { color: inherit; }

.mono, .num { font-variant-numeric: tabular-nums; }

/* ── Hero: centered, airy ─────────────────────────────────────────────── */

.hero { padding: 3.4rem 0 0.6rem; text-align: center; }
.hero h1 { margin: 0.55rem auto 0.9rem; transition: font-size 260ms ease, margin 260ms ease; }
.hero .lede {
  color: var(--grey);
  font-size: 1.16rem;
  line-height: 1.5;
  max-width: 33em;
  margin: 0 auto 1rem;
}
.hero .lede strong { color: var(--ink); font-weight: 600; }

body[data-step]:not([data-step="input"]) .hero { padding: 1.6rem 0 0; }
body[data-step]:not([data-step="input"]) .hero h1 { font-size: 1.05rem; margin: 0; letter-spacing: -0.01em; }
body[data-step]:not([data-step="input"]) .hero .eyebrow,
body[data-step]:not([data-step="input"]) .hero .hero-flow { display: none; }

/* The units control: a sentence with a pill segment in it. */
.bill-sentence {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 0.2rem;
  font-size: 1.1rem;
}
.bill-lead { font-weight: 600; }
.bill-out { flex-basis: 100%; margin: 0.45rem 0 0; font-size: 1.1rem; }
.bill-out strong {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.45rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.stepper-input {
  display: inline-flex;
  align-items: stretch;
  border-radius: var(--pill);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 2px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.stepper-input input {
  width: 3.4rem;
  min-height: 44px;
  border: none;
  text-align: center;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: 1.2rem;
  font-weight: 600;
  background: transparent;
  color: var(--ink);
  appearance: textfield;
  -moz-appearance: textfield;
}
.stepper-input input::-webkit-outer-spin-button,
.stepper-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-btn {
  width: 2.8rem;
  min-height: 44px;
  font-size: 1.3rem;
  font-family: var(--sans);
  border: none;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background 160ms ease;
}
.step-btn:hover { background: rgba(0, 0, 0, 0.05); }

/* ── Buttons: pills ───────────────────────────────────────────────────── */

.btn {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  min-height: 44px;
  padding: 0.6rem 1.35rem;
  border-radius: var(--pill);
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 160ms ease, transform 160ms ease;
}
@media (prefers-color-scheme: dark) {
  .btn { background: rgba(255, 255, 255, 0.12); }
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
/* Dark accent (#2997ff) is a link color, not a fill: white text on it sits
   at 3.0:1. Fills keep the deeper blue so button text clears AA. */
@media (prefers-color-scheme: dark) {
  .btn-primary { background: #0071e3; }
  .btn-primary:hover { background: #0068d1; }
}
.btn-big { font-size: 1.08rem; padding: 0.8rem 1.7rem; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn-danger-text {
  color: var(--grey);
  border: none;
  background: none;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  min-height: 44px;
}
.linkish {
  border: none;
  background: none;
  padding: 0.35rem 0.3rem;
  font-size: 0.88rem;
  color: var(--accent);
  cursor: pointer;
  min-height: 44px;
}
.linkish:hover { text-decoration: underline; }
.item-edit-btn { flex-shrink: 0; min-width: 44px; text-align: center; }

/* ── Cards: frosted glass ─────────────────────────────────────────────── */

.tool { padding: 1.1rem 0 2.4rem; }

.card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--glass-shadow);
  padding: 1.7rem 1.6rem;
  margin-bottom: 1.2rem;
}
.card h2 { margin-bottom: 0.6rem; }
.lead { margin-top: 0.15rem; color: var(--grey); }

/* The capture step floats directly on the page. */
.card.card-capture {
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  padding: 0.4rem 0 0;
  text-align: center;
}
.capture-lead { margin: 0.4rem auto 1.1rem; max-width: 40em; }

.drop-zone {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--glass-shadow);
  padding: 2rem 1.4rem 1.8rem;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.drop-zone:hover { transform: translateY(-1px); }
.drop-zone.dragover {
  box-shadow: inset 0 0 0 2px var(--accent), var(--glass-shadow);
}
.drop-zone > p:first-child { margin-top: 0; font-size: 1.05rem; }
.staged { margin: 0.7rem 0 0; }
.staged strong { color: var(--ink); }

.alt-line { margin: 0.9rem 0 0; color: var(--grey); }
.alt-line a { color: var(--grey); text-decoration: underline; text-underline-offset: 2px; }
.alt-line a:hover { color: var(--ink); }

#text-details textarea { margin-top: 0.9rem; }
textarea {
  width: 100%;
  border-radius: var(--radius-s);
  border: 1px solid var(--hairline-2);
  background: var(--glass-strong);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.8rem 0.9rem;
}

.btn-go { width: 100%; margin-top: 1.15rem; }

.privacy-note { font-size: 0.82rem; color: var(--grey); max-width: 44em; margin: 0.9rem auto 0; }

.capture-lead a, .privacy-note a { color: var(--accent); }

/* ── Notices ──────────────────────────────────────────────────────────── */

.notice {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
  border-radius: var(--radius-s);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  margin: 0.9rem 0;
  text-align: left;
}
.notice-warn { box-shadow: inset 0 0 0 1px var(--hairline-2); font-weight: 500; }

/* ── Confirm: a quick checklist ───────────────────────────────────────── */

.item-card {
  border-top: 1px solid var(--hairline);
  padding: 0.95rem 0.2rem;
  margin: 0;
}
.item-card:first-child { border-top: none; }
.item-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; text-align: left; }
.item-summary .v-title { font-weight: 600; letter-spacing: -0.01em; }
.item-summary .v-meta { color: var(--grey); font-size: 0.86rem; margin: 0.15rem 0 0; }
.item-summary .flag-row { margin: 0.45rem 0 0; }
.item-card .item-fields { display: none; }
.item-card.expanded .item-fields {
  display: block;
  margin-top: 0.9rem;
  border-top: 1px solid var(--hairline);
  padding-top: 0.9rem;
  text-align: left;
}

.item-card .field { margin-bottom: 0.85rem; }
.item-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey);
  margin-bottom: 0.25rem;
}
.item-card input[type="text"], .item-card input[type="number"], .item-card select {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  font-family: var(--sans);
  font-size: 1rem;
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-s);
  background: var(--glass-strong);
  color: var(--ink);
}
.item-card input[data-field="courseCode"] { max-width: 12rem; }
.item-card input[data-field="author"] { max-width: 14rem; }
.item-card input[data-field="edition"] { max-width: 10rem; }
.item-card input[data-field="isbn"] { max-width: 17rem; font-variant-numeric: tabular-nums; }
.item-card input[data-field="listedPrice"] { max-width: 10rem; font-variant-numeric: tabular-nums; }
.item-card select { max-width: 17rem; }

.field.low-confidence input, .field.low-confidence select { border-color: var(--warn); }
.check-hint { color: var(--warn); font-weight: 600; font-size: 0.8rem; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warn);
  border: 1px solid currentColor;
  border-radius: var(--pill);
  padding: 0.14rem 0.6rem;
}

.confirm-units {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  margin-top: 0.6rem;
  padding-top: 1rem;
}
.confirm-units input {
  width: 5.2rem;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 600;
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-s);
  background: var(--glass-strong);
  color: var(--ink);
  text-align: center;
}

.confirm-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.confirm-actions .btn-primary { flex: 1; }

/* ── The answer ───────────────────────────────────────────────────────── */

.card-answer { padding-top: 2.4rem; }

.answer-block { text-align: center; padding: 0.6rem 0 1.9rem; }
.answer-word {
  font-weight: 800;
  font-size: clamp(4rem, 16vw, 6.8rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, var(--accent), #7850dc 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.answer-sub {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.4;
  max-width: 24em;
  margin: 0 auto 0.5rem;
}
.answer-action { font-size: 0.98rem; color: var(--grey); margin: 0 auto; max-width: 30em; }
.answer-action strong { color: var(--ink); }

/* Cost summary, bag-style: hairline rows, right-aligned tabular numbers. */
.receipt-lines { border-top: 1px solid var(--hairline); }
.receipt-line {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.7rem 0.1rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.98rem;
}
.r-name { flex: 1; min-width: 0; }
.r-dots { display: none; }
.r-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-note { color: var(--grey); font-size: 0.88rem; }
.r-flag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warn);
  border: 1px solid currentColor;
  border-radius: var(--pill);
  padding: 0.05rem 0.5rem;
  white-space: nowrap;
}

.receipt-total { padding-top: 0.4rem; }
.receipt-line.r-total { border-bottom: none; padding-top: 0.9rem; }
.receipt-line.r-total .r-name { font-weight: 700; font-size: 1.05rem; }
.receipt-diff {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  text-align: right;
}
.fig-pending {
  display: inline-block;
  width: 4.5ch;
  height: 0.7em;
  border-bottom: 2px solid var(--grey);
}

.verdict-detail { margin: 0.5rem 0; font-size: 0.95rem; color: var(--ink); }
.verdict-detail .num { font-weight: 600; }

.price-progress { font-size: 0.9rem; font-weight: 600; color: var(--grey); margin: 1.2rem 0 0.2rem; }

/* ── Per-item pricing cards ───────────────────────────────────────────── */

.v-item {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
  border-radius: var(--radius-s);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
  padding: 1.05rem 1.1rem;
  margin: 0.8rem 0;
  position: relative;
}
.v-item.priced { box-shadow: inset 0 0 0 1px var(--hairline-2); }
.v-item.skipped { opacity: 0.7; }
.v-item .item-state {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  display: none;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey);
}
.v-item.priced .item-state { display: inline-flex; }
.v-item .v-title { font-weight: 600; letter-spacing: -0.01em; padding-right: 4.5rem; }
.v-item .v-meta { color: var(--grey); font-size: 0.85rem; margin: 0.1rem 0 0.55rem; }

.price-found { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin: 0.5rem 0 0.1rem; }
.price-found > .num { font-weight: 700; font-size: 1.2rem; }
.price-src { font-size: 0.86rem; color: var(--grey); }
.price-src a { color: var(--accent); }

.retailer-links { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.6rem 0; }
.retailer-links a {
  border-radius: var(--pill);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.05rem;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}
@media (prefers-color-scheme: dark) {
  .retailer-links a { background: rgba(255, 255, 255, 0.12); }
}
.retailer-links a:hover { text-decoration: none; background: rgba(0, 0, 0, 0.1); }

.price-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.price-row label { font-size: 0.9rem; font-weight: 600; }
.price-currency { font-size: 1rem; margin-right: -0.35rem; }
.price-row input[type="number"] {
  width: 7.5rem;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-s);
  background: var(--glass-strong);
  color: var(--ink);
}
.skip-label { font-size: 0.86rem; color: var(--grey); display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; }
input[type="checkbox"] { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }

/* Other ways to pay less: a collapsed expander, quiet until asked. */
.pay-less { margin: 0.3rem 0 0; }
.pay-less > summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--accent);
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pay-less > summary::-webkit-details-marker { display: none; }
.pay-less > summary::before { content: '+'; width: 0.9rem; color: var(--grey); font-weight: 600; text-align: center; }
.pay-less[open] > summary::before { content: '\2212'; }
.pay-less ul { margin: 0.1rem 0 0.6rem; padding-left: 1.3rem; font-size: 0.92rem; }
.pay-less li { margin: 0.35rem 0; }
.pay-less strong { font-weight: 600; }

/* ── Rails under the tool ─────────────────────────────────────────────── */

.screen-deadline {
  font-size: 0.85rem;
  color: var(--grey);
  margin: 1.3rem auto 0;
  max-width: 52ch;
  text-align: center;
}
body[data-step="verdict"] .screen-deadline { display: none; }

.trust-line {
  margin: 1.1rem auto 0;
  font-size: 0.85rem;
  color: var(--grey);
  max-width: 44em;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 2.2rem;
  padding: 1.6rem 0 2.2rem;
  font-size: 0.82rem;
  color: var(--grey);
}
.site-footer a { color: var(--grey); text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--ink); }

/* ── Long-form page (why.html) ────────────────────────────────────────── */

.receipts { padding: 1.4rem 0 2.4rem; }
.receipts h2 { margin-bottom: 0.4rem; }
.receipts .cite { font-size: 0.78rem; color: var(--grey); white-space: nowrap; }
.receipts blockquote {
  margin: 1rem 0;
  padding: 0.9rem 1.2rem;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
  border-radius: var(--radius-s);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
}

/* ── Motion: everything glides (disabled wholesale above) ─────────────── */

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.card.step-enter { animation: cardIn 480ms cubic-bezier(0.32, 0.72, 0, 1) both; }

@keyframes settle {
  from { opacity: 0; transform: translateY(18px) scale(0.98); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.answer-word.settle { animation: settle 620ms cubic-bezier(0.32, 0.72, 0, 1) both; }

@keyframes lineIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.receipt-lines.reveal .receipt-line { animation: lineIn 420ms cubic-bezier(0.32, 0.72, 0, 1) both; }
.receipt-lines.reveal .receipt-line:nth-child(2) { animation-delay: 60ms; }
.receipt-lines.reveal .receipt-line:nth-child(3) { animation-delay: 120ms; }
.receipt-lines.reveal .receipt-line:nth-child(4) { animation-delay: 180ms; }
.receipt-lines.reveal .receipt-line:nth-child(5) { animation-delay: 240ms; }
.receipt-lines.reveal .receipt-line:nth-child(n+6) { animation-delay: 300ms; }

/* ── Entrance: the question settles in (owner-picked, design.md) ──────────
   Top-down staggered rise on the landing; the headline blur-settles with
   the same signature the answer word uses. Everything is CSS, nothing
   blocks input, and the reduced-motion block above silences it all. */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes riseBlurIn {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes fadeInSoft {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero .eyebrow { animation: riseIn 480ms var(--glide) both; }
.hero h1 { animation: riseBlurIn 560ms var(--glide) 40ms both; }
.hero .lede { animation: riseIn 480ms var(--glide) 120ms both; }
.bill-sentence { animation: riseIn 480ms var(--glide) 240ms both; }
.capture-lead { animation: riseIn 480ms var(--glide) 380ms both; }
.drop-zone { animation: riseIn 520ms var(--glide) 380ms both; }
.alt-line, .btn-go, .privacy-note { animation: fadeInSoft 420ms var(--glide) 480ms both; }
.screen-deadline, .trust-line { animation: fadeInSoft 420ms var(--glide) 560ms both; }

/* Garnish: the units pill pops as its sentence lands. */
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.88); }
  70% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
.stepper-input { animation: popIn 460ms var(--glide) 300ms both; }

/* Garnish: one specular sweep across the glass as the zone lands. */
.drop-zone { position: relative; overflow: hidden; }
.drop-zone::after {
  content: '';
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -45%;
  width: 38%;
  transform: rotate(16deg);
  background: linear-gradient(90deg, transparent, var(--sheen), transparent);
  animation: sweep 900ms var(--glide) 700ms both;
  pointer-events: none;
}
@keyframes sweep {
  from { translate: 0 0; opacity: 0; }
  25% { opacity: 1; }
  to { translate: 420% 0; opacity: 0; }
}

/* ── Small screens ────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .hero { padding-top: 2.4rem; }
  .card { padding: 1.35rem 1.15rem; }
  .receipt-line.r-total { display: block; }
  .receipt-line.r-total .r-name { margin-bottom: 0.15rem; }
  .receipt-diff { text-align: left; }
  .v-item { padding: 0.95rem 0.9rem; }
}
