/* Home page. Tokens from site.css only. */

/* ---------- 1. Hero ---------- */
.hero { padding: clamp(24px, 3.5vw, 48px) 0 clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: .82fr 1.18fr; min-height: min(calc(100svh - 68px - 120px), 640px); }
}
.hero h1 { max-width: 12ch; }
.hero .lede { margin-top: 22px; max-width: 46ch; }
.hero .actions { margin-top: 32px; gap: 14px 24px; }
.hero .status { margin-top: 28px; max-width: 46ch; }
.hero .stage { padding-bottom: 6%; }
.hero .stage .device.float { right: -2%; bottom: -6%; width: 33%; }
@media (max-width: 959px) {
  .hero .stage { padding-bottom: 14%; }
  .hero .stage .device.float { right: 0; bottom: -2%; width: 36%; }
}
@media (max-width: 520px) {
  .hero .stage .device.float { width: 40%; padding: 5px; border-radius: 24px; }
  .hero .stage .device.float img { border-radius: 19px; }
}

/* ---------- 2. Switcher ---------- */
.sec-head { max-width: 40rem; }
.sec-head .body { margin-top: 14px; }
.picker { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.pick {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 1rem/1 var(--font-body); cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s var(--ease);
}
.pick i { font-size: 1.2rem; color: var(--ink-3); }
.pick:hover { border-color: var(--ink-3); }
.pick:active { transform: translateY(1px); }
.pick[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.pick[aria-pressed="true"] i { color: var(--brand-ink); }

.launch { margin-top: 28px; display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .launch { grid-template-columns: 1.5fr 1fr; } }
.launch-screen { background: var(--surface-2); border-radius: var(--r-lg); padding: clamp(16px, 2.4vw, 28px); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px 10px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); transition: opacity .18s ease, transform .18s ease; }
.tiles.out { opacity: 0; transform: translateY(6px); }
.tile { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: .875rem; font-weight: 500; line-height: 1.25; color: var(--ink); }
.tile .icon-tile { width: 60px; height: 60px; border-radius: 18px; font-size: 1.75rem; background: var(--surface); box-shadow: var(--shadow-1); }
.tile.first .icon-tile { background: var(--accent); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .tiles.in .tile { animation: tile-in .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
  @keyframes tile-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
}
.launch-why { padding-top: 6px; }
.launch-why h3 { margin-bottom: 12px; }
.launch-why .body { max-width: 40ch; }
.launch-why .tiny { margin-top: 24px; max-width: 36ch; }

/* ---------- 3. Day strip ---------- */
.day-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.strip-nav { display: flex; gap: 8px; flex: none; }
.strip {
  margin-top: 36px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding: 6px var(--edge) 28px; margin-inline: calc(50% - 50vw); scroll-padding-inline: var(--edge);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior-x: contain;
}
.strip:focus-visible { outline-offset: -2px; }
.moment {
  flex: 0 0 min(78vw, 300px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1);
}
.moment time { font: 500 1.0625rem/1 var(--font-mono); color: var(--accent-ink); letter-spacing: -0.01em; }
.moment h3 { font-size: 1.25rem; line-height: 1.2; }
.moment p { color: var(--ink-2); font-size: .9688rem; margin: 0; }
.moment .thumb { margin-top: auto; padding-top: 10px; }
.moment .thumb img { width: 100%; height: 150px; object-fit: cover; object-position: top left; border-radius: var(--r); border: 1px solid var(--line-soft); }
.moment .icon-tile { margin-top: auto; width: 100%; height: 150px; border-radius: var(--r); font-size: 2.5rem; }

/* ---------- 4. Register ---------- */
.reg-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; }
.reg { margin-top: 36px; display: grid; gap: clamp(20px, 3vw, 44px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .reg { grid-template-columns: 1fr minmax(360px, 440px); } }
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; background: none; border: 0; padding: 0; color: var(--ink); font: 600 .9688rem/1.2 var(--font-body); cursor: pointer; text-align: left; }
.switch .track { width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background-color .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s var(--ease); }
.switch[aria-checked="true"] .track { background: var(--accent); }
.switch[aria-checked="true"] .track::after { transform: translateX(18px); }
.products { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .products { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) and (max-width: 1100px) { .products { grid-template-columns: repeat(2, 1fr); } }
.prod {
  display: grid; align-content: space-between; gap: 14px; min-height: 104px; padding: 14px; text-align: left;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  color: var(--ink); font: 600 .9688rem/1.25 var(--font-body); cursor: pointer;
  transition: transform .16s var(--ease), border-color .16s, box-shadow .16s;
}
.prod:hover { border-color: var(--accent); }
.prod:active { transform: scale(.97); }
.prod .num { color: var(--ink-3); font-weight: 500; font-size: .9375rem; }
.prod .qty-badge { float: right; min-width: 22px; height: 22px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 .75rem/22px var(--font-mono); text-align: center; padding: 0 6px; }

.receipt.reg-receipt { padding-top: 22px; background: var(--canvas); }
.reg-banner { display: grid; grid-template-columns: 24px 1fr; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border-radius: var(--r); background: var(--warn-soft); color: var(--warn); font-size: .9rem; font-weight: 500; }
.reg-banner[hidden] { display: none; }
.reg-banner i { font-size: 1.2rem; margin-top: 1px; }
.reg-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.reg-title .sync { font: 500 .8125rem/1 var(--font-mono); color: var(--warn); }
.reg-title .sync:empty { display: none; }
.reg .ledger .row.line { align-items: center; }
.line .nm { flex: 1; min-width: 0; line-height: 1.3; }
.line .nm small { display: block; color: var(--ink-3); font: 400 .8125rem/1.3 var(--font-mono); }
.step { display: inline-flex; align-items: center; gap: 2px; }
.step button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; font-size: 1rem; }
.step button:hover { border-color: var(--ink-3); }
.step .q { min-width: 24px; text-align: center; font-family: var(--font-mono); font-size: .9375rem; }
.empty { color: var(--ink-3); padding: 18px 0; font-size: .9688rem; }
.reg .ledger .row.sub { color: var(--ink-2); }
.reg .ledger .row[hidden] { display: none; }
.reg .ledger .row.total { font-size: 1.125rem; }
.reg .ledger .row.total .num { font-size: 1.375rem; }
.tenders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.tender {
  display: grid; justify-items: center; gap: 4px; min-height: 64px; padding: 8px 6px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .9rem/1.2 var(--font-body); cursor: pointer; text-align: center;
}
.tender i { font-size: 1.3rem; color: var(--ink-3); }
.tender small { font: 400 .75rem/1.2 var(--font-body); color: var(--ink-3); }
.tender[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.tender[aria-pressed="true"] i { color: var(--brand); }
.tender-pane { margin-top: 14px; display: grid; gap: 10px; }
.tender-pane[hidden], .tender-pane > [hidden] { display: none; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cash-chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 .9375rem/1 var(--font-mono); cursor: pointer; }
.cash-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.pane-line { display: flex; justify-content: space-between; gap: 12px; font-size: .9688rem; color: var(--ink-2); }
.pane-line .num { color: var(--ink); font-weight: 600; }
.pane-line.bad .num { color: var(--danger); }
.pane-note { font-size: .9rem; color: var(--ink-2); margin: 0; }
.reg-gct { margin-top: 14px; }
.reg-gct .hint { display: block; font-weight: 400; color: var(--ink-3); font-size: .8438rem; margin-top: 2px; }
.done { margin-top: 16px; width: 100%; }
.done[disabled] { opacity: .45; cursor: not-allowed; }
.reg-msg { margin-top: 12px; min-height: 1.4em; font-size: .9688rem; color: var(--accent-ink); font-weight: 600; }
.reg-msg.bad { color: var(--ink-3); font-weight: 400; }
.reg-foot { margin-top: 20px; }
.reg-hint { margin-top: 18px; max-width: 44ch; }

/* ---------- 5. Bento ---------- */
.bento { margin-top: 40px; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .bento { grid-template-columns: 1fr 1fr; } .cell.wide { grid-column: span 2; } }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(12, 1fr); gap: 16px; }
  .cell { grid-column: span 4; }
  .cell.c3 { grid-column: span 3; } .cell.c4 { grid-column: span 4; } .cell.c5 { grid-column: span 5; }
  .cell.r2 { grid-row: span 2; }
  .cell.c12 { grid-column: span 12; flex-direction: row; align-items: center; gap: 24px; padding-block: 26px; }
  .cell.c12 .icon-tile { margin-bottom: 0; }
  .cell.c12 p { max-width: 60ch; }
}
.cell {
  position: relative; display: flex; flex-direction: column; gap: 6px; overflow: hidden; text-decoration: none; color: var(--ink) !important;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
}
.cell:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: var(--shadow-2); text-decoration: none; }
.cell .icon-tile { margin-bottom: 10px; }
.cell h3 { font-size: 1.25rem; line-height: 1.2; }
.cell p { margin: 0; color: var(--ink-2); font-size: .9688rem; max-width: 34ch; }
.cell .go { position: absolute; top: 22px; right: 22px; color: var(--ink-3); font-size: 1.2rem; transition: transform .2s var(--ease), color .2s; }
.cell:hover .go { transform: translate(3px, -3px); color: var(--ink); }
.cell .shot { margin: 18px -22px -22px; flex: 1; min-height: 140px; position: relative; border-top: 1px solid var(--line-soft); }
.cell .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cell.gold { background: var(--gold-soft); border-color: transparent; }
.cell.gold .shot { border-top-color: var(--gold); }

/* ---------- 6. Tiers ---------- */
.tiers { margin-top: 44px; }
@media (min-width: 900px) {
  .tiers.ladder { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .tiers.ladder li { padding: 56px 0 0; }
  .tiers.ladder li::before { left: 52px; right: -24px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .tiers.ladder li:last-child::before { display: none; }
}
.tiers .dot { font-size: 1.15rem; }
.tiers h3 { font-size: 1.25rem; margin-bottom: 6px; }
.tiers p { margin: 0 0 10px; color: var(--ink-2); font-size: .9688rem; max-width: 30ch; }
.tiers .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tier-note { margin-top: 12px; max-width: 46rem; }

/* ---------- 7. Evidence ---------- */
.evidence { display: grid; gap: clamp(32px, 6vw, 88px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .evidence { grid-template-columns: auto 1fr; } }
.evidence .device { margin-inline: auto; }
.evidence .checks { margin-top: 24px; }
.evidence .checks li i { color: var(--gold-ink); }
.evidence .note { margin-top: 24px; }
.evidence .link-arrow { margin-top: 24px; }
.evidence .device { box-shadow: var(--shadow-2), 0 0 0 6px var(--gold-soft); }

/* ---------- 8. Never ---------- */
.never-list { margin-top: 36px; }
@media (min-width: 768px) { .never-list { grid-template-columns: 1fr 1fr; column-gap: 56px; row-gap: 18px; } }
.band-ink .checks li { color: inherit; font-size: 1.0625rem; }
.band-ink .checks.never li i { color: #f1685e; }

/* ---------- 9. Close ---------- */
.closer { text-align: center; background: var(--brand-soft); border-radius: var(--r-lg); padding: clamp(40px, 7vw, 88px) var(--gutter); }
.closer h2 { max-width: 30ch; margin: 0 auto; }
.closer .lede { margin: 18px auto 0; }
.closer .actions { justify-content: center; margin-top: 32px; }

/* ---------- Phone: shorter home page ---------- */
@media (max-width: 767px) {
  .home-section, main > section.section { padding-block: 48px; }
  /* Industry launcher: 4 small tiles a row */
  .launch { margin-top: 20px; gap: 16px; }
  .tiles { grid-template-columns: repeat(4, 1fr); gap: 12px 6px; }
  .tile { font-size: .75rem; gap: 6px; }
  .tile .icon-tile { width: 46px; height: 46px; border-radius: 14px; font-size: 1.35rem; }
  .launch-why h3 { margin-bottom: 6px; }
  .launch-why .tiny { display: none; }
  /* Register: tighter product buttons */
  .reg { margin-top: 20px; }
  .products { gap: 8px; }
  .prod { min-height: 72px; padding: 10px 12px; }
  .reg-hint { display: none; }
  /* Feature grid: compact two-up tiles, no screenshots or descriptions */
  .bento { margin-top: 24px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .bento .cell { grid-column: auto !important; grid-row: auto !important; padding: 16px 14px; min-height: 0; }
  .bento .cell p, .bento .cell .shot, .bento .cell .go { display: none; }
  .bento .cell h3 { font-size: 1rem; }
  .bento .cell .icon-tile { width: 40px; height: 40px; font-size: 1.25rem; margin-bottom: 8px; }
  .bento .cell.gold { grid-column: 1 / -1 !important; }
  /* Evidence: text only on phones */
  .evidence .device { display: none; }
}
@media (max-width: 767px) {
  .tiers { margin-top: 24px; }
  .tiers.ladder { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .tiers.ladder li { padding: 48px 0 0; }
  .tiers.ladder li::before { display: none; }
  .tiers h3 { font-size: 1.0625rem; }
  .tiers p { font-size: .875rem; margin-bottom: 8px; }
  .tiers .chips .chip { height: 24px; padding: 0 9px; font-size: .75rem; }
}
.hero h1 { max-width: 13ch; }
.hero-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font: 600 .9375rem/1 var(--font-body); }
.hero-points li i { font-size: 1.1rem; }
.hero .hero-points + .lede { margin-top: 18px; }
.hero h1 { max-width: 15ch; font-size: clamp(2.4rem, 4.4vw, 4rem); }
