/* The HomeAdmin landing page: one toaster's life, told by scroll. 404.html still uses landing.css. */
/* Layout: a sticky WebGL stage holds one green toaster falling down the centre of the page;
   the story passes it on the left, the app screen it leads to on the right.
   On phones the stage pins to the top and the story scrolls beneath it.
   One light look, the same tokens and type as the live landing page. */
:root {
  color-scheme: light;
  --ink: #0A0A0A; --muted: #5C5C61; --faint: #6B6B70; --body: #3F3F46;
  --green: #137A4A; --green-bright: #1E9E62; --green-tint: #E8F5EE;
  --grey: #F4F4F5; --line: #E4E4E7; --paper: #FFFFFF; --red: #C0392B;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --stage-h: 100vh;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4, p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.04; font-weight: 700; letter-spacing: -.045em; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--green); }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.lede { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: var(--muted); max-width: 34ch; text-wrap: pretty; }
.tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--green-tint); color: var(--green); font-size: 13.5px; font-weight: 600; }
.tag b { font: 600 12px/1 var(--mono); letter-spacing: .02em; padding-right: 8px; border-right: 1px solid rgba(19,122,74,.25); }
.mark { display: block; flex-shrink: 0; background: var(--ink); border-radius: 22%; }
.mark svg { display: block; width: 100%; height: 100%; }

/* header, as on the live page */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); border-bottom: .5px solid rgba(60,60,67,.12); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -.4px; }
.brand .mark { width: 32px; height: 32px; border-radius: 8px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.btn { display: inline-flex; padding: 9px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--green); color: #fff; }

/* stage */
.story { position: relative; }
.stage { position: sticky; top: 0; height: var(--stage-h); z-index: 0; pointer-events: none; }
.stage canvas { display: block; width: 100%; height: 100%; }
.age { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.94); box-shadow: 0 12px 30px -16px rgba(10,10,10,.3), 0 0 0 1px rgba(10,10,10,.06); border-radius: 999px; padding: 9px 15px; white-space: nowrap;
  font: 500 12.5px/1 var(--mono); color: var(--body); font-variant-numeric: tabular-nums; transition: opacity .2s; }
.age .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); }
.age[data-s="repair"] .dot { background: var(--red); }
.age[data-s="sold"] .dot { background: var(--faint); }
.age .sep { color: var(--line); }
.flow { position: relative; z-index: 1; margin-top: calc(-1 * var(--stage-h)); }

/* hero and beats */
.hero { min-height: 86vh; display: flex; align-items: center; padding-block: 40px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 580px; }
.hero .lede { max-width: 520px; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.badges a { display: inline-flex; border-radius: 9px; }
.badges img { display: block; height: 54px; width: auto; }
.reassure { font-size: 14px; color: var(--faint); display: flex; align-items: flex-start; gap: 6px; line-height: 1.4; }
.reassure svg { width: 18px; height: 18px; flex: none; fill: var(--green); }
.beat { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 32%) minmax(0, 1fr); align-items: center; gap: 24px; padding-block: 40px; }
.beat .copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.beat .screen { grid-column: 3; justify-self: center; min-width: 0; }
.final { min-height: 100vh; display: flex; align-items: flex-end; justify-content: center; padding-block: 0 clamp(48px, 7vw, 80px); }
.slab { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.slab .mark { width: 52px; height: 52px; border-radius: 13px; margin-bottom: 4px; }
.slab p { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 440px; }
.slab .badges { justify-content: center; margin-top: 10px; }

/* phone mock: the app's own screens, drawn in its styling */
.phone { width: min(100%, 300px); background: var(--ink); border-radius: 46px; padding: 10px; box-shadow: 0 40px 80px -30px rgba(10,10,10,.35); }
.phone > div { background: var(--grey); border-radius: 37px; padding: 20px 12px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; line-height: 1.35; }
.phone .bar { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 2px; }
.phone .bar strong { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.phone .bar > span { color: var(--faint); font-size: 11.5px; }
.card { background: #fff; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.card h4 { font-size: 11px; font-weight: 500; color: var(--faint); }
.row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.row span:first-child { color: var(--faint); }
.row span:last-child { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.act { background: var(--green-tint); color: var(--green); border-radius: 12px; padding: 10px; text-align: center; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; border-radius: 99px; padding: 4px 9px; background: #fff; color: var(--body); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright); }
.chip.repair::before { background: var(--red); } .chip.sold::before { background: var(--faint); }
.item { display: flex; align-items: center; gap: 10px; }
.tile { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--green-tint); display: grid; place-items: center; color: var(--green); }
.tile svg { width: 22px; height: 22px; }
.item div { min-width: 0; } .item strong { display: block; font-weight: 600; font-size: 13.5px; } .item small { color: var(--faint); font-size: 11.5px; }
.ok { color: var(--green); font-weight: 500; }
.meter { height: 6px; border-radius: 3px; background: var(--grey); overflow: hidden; } .meter b { display: block; height: 100%; background: var(--green-bright); border-radius: 3px; }
.receipt { position: relative; align-self: center; width: 62%; background: #fff; border-radius: 4px; padding: 12px 10px; font: 400 9.5px/1.6 var(--mono); color: var(--body); overflow: hidden; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--green-bright); box-shadow: 0 0 12px 3px var(--green-bright); animation: scan 2.6s ease-in-out infinite alternate; }
@keyframes scan { from { top: 6%; } to { top: 92%; } }
.note { background: rgba(255,255,255,.94); border-radius: 16px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; box-shadow: 0 14px 28px -16px rgba(10,10,10,.28), 0 0 0 1px rgba(10,10,10,.05); }
.note .mark { width: 26px; height: 26px; border-radius: 7px; }
.note strong { font-size: 13px; font-weight: 600; } .note small { color: var(--muted); display: block; font-size: 11px; }
.avs { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 11.5px; }
.avs i { width: 20px; height: 20px; border-radius: 50%; background: var(--green-tint); color: var(--green); font: 600 10px/20px var(--sans); text-align: center; font-style: normal; margin-right: -10px; border: 1.5px solid #fff; box-sizing: content-box; }
.avs i:last-of-type { margin-right: 4px; }
.bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; height: 96px; padding-top: 14px; }
.bars div { position: relative; background: var(--green); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars div em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font: 500 9.5px/1.5 var(--mono); font-style: normal; color: var(--body); }
.years { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center; font: 400 9.5px/1 var(--mono); color: var(--faint); }
.big { font-size: 24px; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }

.site-footer { position: relative; z-index: 6; background: #fff; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--faint); }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--faint); } .site-footer a:hover { color: var(--ink); }

/* Phones: the hero copy comes first, then the toaster pins to the top and each stage of its life
   is one screen beneath it, showing a single app card instead of a whole phone. */
@media (max-width: 820px) {
  :root { --stage-h: 40vh; }
  html { scroll-snap-type: y proximity; scroll-padding-top: var(--stage-h); }
  .site-header { position: static; }
  .story { display: flex; flex-direction: column; }
  .flow { display: contents; }
  .kf { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .hero { order: -1; min-height: 0; padding-block: 28px 4px; }
  .hero-copy { gap: 16px; }
  h1 { font-size: clamp(34px, 9.6vw, 44px); }
  .hero .lede { font-size: 16.5px; }
  .badges { margin-top: 2px; gap: 10px; flex-wrap: nowrap; }
  .badges img { height: clamp(38px, 11.6vw, 48px); }
  .hero .tag { font-size: clamp(11.5px, 3.3vw, 13.5px); white-space: nowrap; }
  .stage { z-index: 5; background: #fff; }
  .stage::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 20px; background: linear-gradient(#fff, rgba(255,255,255,0)); }
  .age { bottom: 0; background: none; box-shadow: none; font-size: 11.5px; padding: 4px 10px; }
  .beat { min-height: calc(100vh - var(--stage-h)); grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px; padding-block: 22px 96px; scroll-snap-align: start; }
  .beat .copy { gap: 12px; }
  h2 { font-size: clamp(25px, 7vw, 32px); }
  .lede { max-width: 46ch; font-size: 16px; line-height: 1.45; }
  .beat .screen { grid-column: 1; justify-self: stretch; }
  .phone { width: 100%; background: none; border-radius: 0; padding: 0; box-shadow: none; }
  .phone > div { background: var(--grey); border-radius: 20px; padding: 10px; font-size: 13.5px; }
  .phone > div > :not(.key) { display: none; }
  .final { min-height: calc(100vh - var(--stage-h)); align-items: flex-start; padding-block: 36px 110px; scroll-snap-align: start; }
}
@supports (height: 1svh) { @media (max-width: 820px) {
  :root { --stage-h: 40svh; }
  .beat, .final { min-height: calc(100svh - var(--stage-h)); }
} }
/* Sticky download bar, phones only, after the hero */
.mark.light { background: #fff; --mark-ink: var(--ink); }
.sticky {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 16px;
  background: rgba(10,10,10,.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.4);
  transform: translateY(calc(100% + 32px)); transition: transform .25s ease; visibility: hidden;
}
.sticky.show { transform: none; visibility: visible; }
.sticky .mark { width: 32px; height: 32px; border-radius: 8px; }
.sticky > div { flex: 1; min-width: 0; line-height: 1.25; }
.sticky b { display: block; font-size: 15px; font-weight: 600; }
.sticky span { font-size: 12.5px; color: #C7C7CC; }
.sticky a { padding: 10px 15px; border-radius: 11px; background: var(--green-bright); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; }
@media (min-width: 821px) { .sticky { display: none; } }
@media (prefers-reduced-motion: reduce) { .receipt::after { animation: none; top: 50%; } .btn, .sticky { transition: none; } html { scroll-behavior: auto; } }
