:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --ink: #141619;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #0b5cff;
  --brand-ink: #ffffff;
  --ok: #0a7d32;
  --ok-bg: #e7f6ec;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.7rem; margin: 0 0 .4em; }
h2 { font-size: 1.15rem; margin: 1.4em 0 .5em; }
h3 { font-size: .95rem; margin: 1.2em 0 .4em; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.muted { color: var(--muted); }

/* layout */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 1.2rem; background: var(--card);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo { color: var(--brand); flex: none; }
.topbar nav { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.topbar nav a { padding: .4rem .7rem; border-radius: 8px; color: var(--muted); }
.topbar nav a:hover { background: var(--bg); text-decoration: none; }
.topbar nav a.active { color: var(--ink); background: var(--bg); font-weight: 600; }
.wrap { max-width: 920px; margin: 0 auto; padding: 1.6rem 1.2rem 4rem; }
.foot {
  max-width: 920px; margin: 0 auto; padding: 2rem 1.2rem; color: var(--muted);
  display: flex; justify-content: space-between; font-size: .85rem;
}

/* hero + cards */
.hero { text-align: center; padding: 1.5rem 0 1rem; }
.hero h1 { font-size: 2.1rem; }
.hero p { color: var(--muted); max-width: 34rem; margin: 0 auto; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); margin-bottom: 1.2rem;
}
.card.narrow { max-width: 440px; margin-inline: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* forms */
.field { display: block; margin: 0 0 1rem; }
.field > span { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .92rem; }
input, select, textarea {
  width: 100%; padding: .6rem .7rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
fieldset > span { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .92rem; }

/* structured address sub-fields */
#address-fields { transition: opacity .15s; }
.subfield { display: block; margin: 0 0 .6rem; }
.subfield .sub { display: block; font-weight: 500; font-size: .82rem; color: var(--muted); margin-bottom: .25rem; }
.field-row { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; align-items: end; }
.field-row .subfield { margin-bottom: .6rem; }
.field-row .grow { min-width: 0; }
.field-row select[name="customer_state"] { width: 5.5rem; }
.field-row .zip input { width: 7rem; }
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row .grow { grid-column: 1 / -1; }
}

/* in-store drop-off info (shown instead of the address form) */
.store-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.store-icon { color: var(--brand); flex: none; }
.store-body strong { font-size: 1.05rem; }
.store-body p { margin: .2rem 0 .6rem; }
.store-hours { margin: 0 0 .6rem; }
.store-hours > div { display: flex; justify-content: space-between; gap: 1.5rem; max-width: 20rem; padding: .18rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.store-hours dt { color: var(--muted); margin: 0; }
.store-hours dd { margin: 0; font-weight: 600; }
.store-phone { margin: 0; font-size: 1.05rem; font-weight: 700; }
.store-phone a { color: var(--ink); }

.grades, .channels { display: grid; gap: .6rem; }
.grade {
  display: flex; gap: .7rem; align-items: flex-start; padding: .8rem;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.grade:hover { border-color: var(--brand); }
.grade input { width: auto; margin-top: .25rem; }
.grade-body { display: flex; flex-direction: column; }
.grade-body small { color: var(--muted); }

.estimate {
  margin: 1rem 0; padding: .9rem 1rem; background: var(--ok-bg); color: var(--ok);
  border-radius: 12px; font-weight: 600; display: flex; align-items: baseline; gap: .6rem;
}
.estimate strong { font-size: 1.3rem; }
.estimate small { color: var(--ok); opacity: .8; font-weight: 400; margin-left: auto; }

/* buttons */
.btn {
  display: inline-block; padding: .62rem 1.1rem; border-radius: 10px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; font-size: .95rem;
}
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.05); text-decoration: none; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: var(--bg); text-decoration: none; }
button.link { background: none; border: 0; color: var(--muted); cursor: pointer; padding: .4rem .6rem; font: inherit; }
button.link:hover { color: var(--ink); }
.inline { display: inline; }
.actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.2rem; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* offer */
.offer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.offer-price { text-align: right; }
.offer-price strong { display: block; font-size: 2rem; color: var(--ok); }

/* tables */
.kv { width: 100%; border-collapse: collapse; }
.kv th { text-align: left; color: var(--muted); font-weight: 500; padding: .4rem .8rem .4rem 0; vertical-align: top; width: 38%; }
.kv td { padding: .4rem 0; }
table.data { width: 100%; border-collapse: collapse; margin-top: .6rem; font-size: .93rem; }
table.data th { text-align: left; color: var(--muted); font-weight: 600; padding: .5rem .6rem; border-bottom: 2px solid var(--line); }
table.data td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover td { background: var(--bg); }
table.data tr.inactive td { opacity: .5; }
.row-actions { display: flex; gap: .7rem; }
.wide { min-width: 16rem; }

/* badges, chips, callouts */
.badge { display: inline-block; padding: .18rem .55rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; }
.badge.sm { font-size: .72rem; }
.alert { background: #fdecef; color: #9b1c2e; padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.alert.success { background: var(--ok-bg); color: var(--ok); }
.callout { margin-top: 1.2rem; padding: 1.1rem; border: 1px dashed var(--line); border-radius: 12px; background: var(--bg); }
.ref { letter-spacing: .05em; }
.ref.big { font-size: 1.5rem; font-weight: 700; }

.filters, .pipeline, .stat-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0 1.2rem; }
.chip { padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .85rem; color: var(--muted); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip:hover { text-decoration: none; }

.stat { flex: 1; min-width: 150px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); }
.stat-num { display: block; font-size: 1.8rem; font-weight: 700; }
.stat-label { color: var(--muted); font-size: .9rem; }
.pipe { flex: 1; min-width: 110px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .9rem .5rem; color: var(--ink); }
.pipe:hover { border-color: var(--brand); text-decoration: none; }
.pipe-num { display: block; font-size: 1.5rem; font-weight: 700; }
.pipe-label { font-size: .8rem; color: var(--muted); }

.timeline { list-style: none; padding: 0; margin: .5rem 0; }
.timeline li { padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.timeline time { display: block; color: var(--muted); font-size: .78rem; margin-top: .15rem; }

.track-form { display: flex; gap: .6rem; margin-bottom: 1rem; }
.track-form input { flex: 1; }

/* packing slip */
.slip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1rem 0; }
address { font-style: normal; line-height: 1.5; }
.slip-actions { display: flex; gap: .6rem; margin-bottom: 1rem; }

/* integrated 4x6 shipping label + packing slip on one sheet, cut line between */
.ship-label-area { display: flex; justify-content: center; }
.label-card { width: 4in; max-width: 100%; margin: 0 auto; border: 2px solid #000; border-radius: 6px; padding: 0; overflow: hidden; background: #fff; }
.label-card img { display: block; width: 100%; height: auto; }
.label-card.test { display: flex; flex-direction: column; min-height: 5.8in; padding: .18in .2in .2in; position: relative; }
.label-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #000; padding-bottom: .35rem; margin-bottom: .5rem; }
.label-carrier { font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; }
.label-service { font-size: .85rem; font-weight: 700; }
.label-watermark { text-align: center; font-size: .66rem; font-weight: 700; letter-spacing: .12em; color: #b00020; border: 1px dashed #b00020; border-radius: 4px; padding: .15rem; margin-bottom: .6rem; }
.label-addr { display: grid; grid-template-columns: 1fr; gap: .5rem; font-size: .85rem; line-height: 1.4; }
.label-addr .label-k { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .1em; color: #444; }
.label-addr > div:last-child { border-top: 1px solid #000; padding-top: .4rem; font-size: 1.05rem; }
.label-bar { margin-top: auto; padding-top: .5rem; }
.label-bar .barcode { width: 100%; height: 64px; }
.label-track { text-align: center; font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: .95rem; font-weight: 700; letter-spacing: .04em; }
.label-meta { display: flex; justify-content: space-between; font-size: .7rem; color: #444; margin-top: .4rem; border-top: 1px solid #000; padding-top: .3rem; }

/* dashed "cut here" line between the label and the packing slip */
.cut-line { display: flex; align-items: center; margin: .32in 0; }
.cut-line::before, .cut-line::after { content: ""; flex: 1; border-top: 2px dashed #9aa0a6; }
.cut-label { padding: 0 .7rem; font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #80868b; white-space: nowrap; }

/* reference + barcode at the bottom of the packing slip */
.slip-ref { margin-top: 1.6rem; padding-top: 1rem; border-top: 2px solid var(--line); text-align: center; }
.slip-ref-k { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.slip-ref .ref { font-size: 1.4rem; font-weight: 800; letter-spacing: .06em; }
.slip-ref-bar { max-width: 340px; margin: .5rem auto 0; }
.slip-ref-bar .barcode { width: 100%; height: 48px; }
/* ---- phones / mobile ---- */
@media (max-width: 640px) {
  /* header: brand on top, nav becomes a swipeable single row */
  .topbar { flex-direction: column; align-items: stretch; gap: .5rem; padding: .7rem .9rem; }
  .topbar nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: .15rem; }
  .topbar nav a, .topbar nav form { flex: none; white-space: nowrap; }

  .wrap { padding: 1.1rem .9rem 3rem; }
  .hero { padding: 1rem 0 .5rem; }
  .hero h1 { font-size: 1.6rem; }
  h1 { font-size: 1.45rem; }
  .card { padding: 1.1rem; border-radius: 12px; }

  /* big, full-width, easy-to-tap buttons; actions stack with primary on top */
  .btn { padding: .85rem 1rem; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .btn { width: 100%; text-align: center; }
  .head-row { flex-direction: column; align-items: stretch; gap: .6rem; }
  .head-row .btn { width: 100%; text-align: center; }

  /* offer header + price stack */
  .offer-head { flex-direction: column; }
  .offer-price { text-align: left; }
  .offer-price strong { font-size: 1.8rem; }

  /* estimate note drops below the amount */
  .estimate { flex-wrap: wrap; }
  .estimate small { margin-left: 0; }

  /* wide admin tables scroll sideways instead of overflowing the page */
  table.data { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }

  /* stat + pipeline cards go 2-up */
  .stat, .pipe { min-width: calc(50% - .3rem); }
  .kv th { width: 42%; }

  .slip-grid { grid-template-columns: 1fr; gap: 1rem; }
  .foot { flex-direction: column; gap: .4rem; padding: 1.5rem .9rem; }
}

@page { size: letter portrait; margin: 0.4in; }
@media print {
  .topbar, .foot, .no-print { display: none !important; }
  .card { box-shadow: none; border: 0; padding: 0; margin: 0; }
  .wrap { padding: 0; max-width: none; }
  body { background: #fff; }
  /* keep the label + cut line + slip together on one sheet, tightened to fit */
  .ship-sheet { break-inside: avoid; }
  .ship-label-area { justify-content: flex-start; }
  .label-card.test { min-height: 5.3in; }
  .cut-line { margin: .22in 0; }
  .ship-slip-area h1 { font-size: 1.3rem; margin: .1in 0 .04in; }
  .ship-slip-area .ref.big { margin: 0 0 .1in; }
  .slip-grid { margin: .14in 0; }
  .slip-ref { margin-top: .2in; padding-top: .14in; break-inside: avoid; }
}

/* ===================== device finder (home page step flow) ===================== */
.finder .fbar { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 0 0 1.1rem; }
.finder .fbar .fill { height: 100%; background: var(--brand); border-radius: 999px; transition: width .4s ease; }

.finder .crumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.finder .crumbs:empty { display: none; }
.finder .crumb {
  appearance: none; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: .22rem .6rem; font-size: .8rem;
}
.finder .crumb:hover { border-color: var(--brand); color: var(--brand); }
.finder .crumb b { color: var(--ink); font-weight: 600; }
.finder .crumb .k { font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

.finder .step-head h2 { font-size: 1.25rem; margin: 0 0 .1rem; text-transform: none; letter-spacing: -.01em; color: var(--ink); }
.finder .step-sub { color: var(--muted); font-size: .9rem; margin: 0 0 1.1rem; }

.finder .grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.finder .grid.wide { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.finder .opt {
  appearance: none; font: inherit; cursor: pointer; text-align: center; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1rem .9rem; min-height: 122px;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  transition: border-color .15s, background .15s, transform .12s, box-shadow .15s;
}
.finder .opt:hover { border-color: var(--brand); background: #f3f7ff; transform: translateY(-3px); box-shadow: var(--shadow); }
.finder .opt:active { transform: translateY(0); }
.finder .opt:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.finder .opt .ic { color: var(--muted); transition: color .15s; margin-top: .1rem; }
.finder .opt:hover .ic { color: var(--brand); }
.finder .opt .txt { display: flex; flex-direction: column; gap: .15rem; margin-top: auto; }
.finder .opt .t { font-weight: 650; font-size: 1rem; letter-spacing: -.01em; }
.finder .opt .t.mono { font: 500 .82rem/1.35 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.finder .opt .s { font-size: .76rem; color: var(--muted); }

.finder .opt.soon { cursor: not-allowed; border-style: dashed; position: relative; }
.finder .opt.soon:hover { border-color: var(--line); background: var(--card); transform: none; box-shadow: none; }
.finder .opt.soon .ic { opacity: .55; }
.finder .opt .pill {
  position: absolute; top: .55rem; right: .55rem; font-size: .6rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .1rem .4rem;
}

.finder .foot { margin-top: 1.1rem; }
.finder .back {
  appearance: none; background: none; border: 0; font: inherit; cursor: pointer; color: var(--muted);
  font-size: .88rem; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .1rem;
}
.finder .back:hover { color: var(--ink); }
.finder .back:disabled { opacity: .3; cursor: default; }
.finder .soonpanel { text-align: center; padding: 1.6rem .5rem; }
.finder .soonpanel .big { font-weight: 650; font-size: 1.05rem; margin: 0 0 .3rem; }
.finder .soonpanel p { color: var(--muted); margin: 0 auto; max-width: 34rem; }

/* chosen-device banner shown above the condition step */
.chosen { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); margin-bottom: 1.2rem; }
.chosen .cd-name { font-weight: 650; }
.chosen .cd-sub { color: var(--muted); font-size: .85rem; margin-top: .1rem; }
.chosen .cd-left { display: flex; align-items: center; gap: .9rem; }
.chosen .cd-ic { color: var(--brand); flex: none; }

@media (prefers-reduced-motion: reduce) {
  .finder .opt:hover { transform: none; }
  .finder .fbar .fill { transition: none; }
}

/* condition option that isn't selectable yet (e.g. Sealed before we have pricing) */
.grade.soon { cursor: default; opacity: .6; background: var(--bg); }
.grade.soon:hover { border-color: var(--line); }
.grade.soon input { cursor: default; }

/* "CASH OFFER" live-estimate label on the home page */
.estimate .estimate-label { font-weight: 700; letter-spacing: .06em; }

/* compact offer page so the whole thing stays in-frame (no scrolling) */
.offer .two-col { gap: 1.4rem; align-items: start; }
.offer .two-col h2 { font-size: 1rem; margin: 1rem 0 .5rem; }
.offer .two-col > div > h2:first-child { margin-top: .2rem; }
.offer .two-col .field { margin-bottom: .6rem; }
.offer .store-card { padding: .9rem 1rem; }
.offer .actions { margin-top: 1rem; }

/* legal pages (privacy / terms) */
.legal { max-width: 46rem; }
.legal h1 { margin-bottom: .2rem; }
.legal h2 { font-size: 1.1rem; text-transform: none; letter-spacing: -.01em; color: var(--ink); margin: 1.6rem 0 .5rem; }
.legal p, .legal li { color: #2b2f36; }
.legal ul { margin: .4rem 0 .8rem; padding-left: 1.2rem; }
.legal li { margin: .3rem 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1rem; }

/* official IDW BuyBacks logo in the top bar — small corner mark */
.brand-logo { height: 34px; width: auto; display: block; }
@media (max-width: 480px) { .brand-logo { height: 28px; } }

/* logo in the homepage hero */
.hero-logo { height: 104px; width: auto; display: block; margin: 0 auto .4rem; }
@media (max-width: 480px) { .hero-logo { height: 76px; } }

/* landing page: product category grid */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; max-width: 500px; margin: .4rem auto 0; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(4, 1fr); max-width: 780px; } }

.cat {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .7rem; text-align: center; min-height: 148px; padding: 1.3rem 1rem; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
}
.cat .ic { height: 50px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.cat-name { font-weight: 650; font-size: 1.02rem; letter-spacing: -.01em; }

a.cat.active { color: var(--ink); transition: border-color .15s, transform .12s, box-shadow .15s, background .15s; }
a.cat.active .ic { color: var(--brand); }
a.cat.active:hover { border-color: var(--brand); background: #f3f7ff; transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }

.cat.soon { opacity: .5; cursor: not-allowed; border-style: dashed; }
.cat .pill {
  position: absolute; top: .6rem; right: .6rem; font-size: .62rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .1rem .45rem;
}
@media (prefers-reduced-motion: reduce) { a.cat.active:hover { transform: none; } }

/* sticky footer: push the footer to the bottom of the viewport on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { flex: 1 0 auto; }
.foot { flex-shrink: 0; }

/* subtle page-load entrance — a gentle staggered rise */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero { animation: rise .55s cubic-bezier(.22,.61,.36,1) both; }
.quote-form, .offer { animation: rise .55s cubic-bezier(.22,.61,.36,1) both; }
.cat-grid .cat { animation: rise .55s cubic-bezier(.22,.61,.36,1) both; }
.cat-grid .cat:nth-child(1) { animation-delay: .08s; }
.cat-grid .cat:nth-child(2) { animation-delay: .15s; }
.cat-grid .cat:nth-child(3) { animation-delay: .22s; }
.cat-grid .cat:nth-child(4) { animation-delay: .29s; }

@media (prefers-reduced-motion: reduce) {
  .hero, .quote-form, .offer, .cat-grid .cat { animation: none; }
}

/* finder: gentle fade as each step's options appear */
.finder .grid { animation: rise .35s cubic-bezier(.22,.61,.36,1) both; }
@media (prefers-reduced-motion: reduce) { .finder .grid { animation: none; } }

/* SMS opt-in consent (A2P) */
.consent { display: flex; gap: .55rem; align-items: flex-start; margin: 0 0 1rem; cursor: pointer;
  font-size: .78rem; line-height: 1.45; color: var(--muted); }
.consent input { width: auto; flex: none; margin-top: .15rem; }
.consent a { color: var(--brand); }

/* Apple-like: vertically center the customer-flow screens (safe = still scrolls when tall) */
.flow .wrap { display: flex; flex-direction: column; justify-content: safe center; }

/* tighter, more centered mobile experience */
@media (max-width: 560px) {
  .wrap { padding: 1rem 1.1rem 2rem; }
  .hero { padding: .4rem 0 .7rem; }
  .hero h1 { font-size: 1.55rem; }
  .hero p { font-size: .95rem; }
  .hero-logo { height: 66px; }
  .compact .hero-logo { display: none; } /* finder: logo already in the top bar */
  .cat { min-height: 116px; padding: 1rem .7rem; }
  .cat .ic { height: 42px; }
  .finder .opt { min-height: 104px; padding: 1rem .7rem; }
  .card { padding: 1.1rem; }
  .offer .two-col { gap: 1rem; }
}

/* X (Twitter) icon link in the footer */
.foot-links .x-link { display: inline-flex; align-items: center; color: var(--muted); padding: 0 .1rem; }
.foot-links .x-link:hover { color: var(--ink); text-decoration: none; }

/* footer: centered column so the X sits above the links (and clears the mobile browser bar) */
.foot { flex-direction: column; align-items: center; justify-content: center; gap: .7rem; text-align: center;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
.foot .x-social { display: inline-flex; color: var(--muted); padding: .2rem; }
.foot .x-social:hover { color: var(--ink); text-decoration: none; }
