/* toat.bot home (docs/spec/toat-landing-C-build-spec.md, "Version C"). Light theme only: the brand
   pack's light colours are pinned below so the device's dark mode doesn't change this page. The top
   bar is the one the other pages use (site.css `header`/`nav`). The clock is assets/landing.js. */
@import url("tokens.css");

:root {
  color-scheme: light;
  /* The pack's light values (brand/toat-colors.css), pinned. */
  --paper: #f4f8f6; --paper-raised: #ffffff; --paper-sunken: #e8efec; --line: #dbe4e0;
  --ink: #0f1a17; --ink-muted: #52615b; --mint: #9ddcbf; --mint-press: #84cdab; --mint-text: #1d6b4e;
  --mint-soft: #dcf2e8; --on-mint: #0f1a17; --cream: #fafaf8; --focus: #1d6b4e; --link: #1d6b4e;
  /* Values the spec adds for the dark bands. */
  --dark-raised: #16201d; --dark-line: #26332f; --on-dark: #ecf3f0; --on-dark-muted: #a3b3ad;
  --mint-on-dark: #9fe0c3;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/24px var(--font-sans); }
h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { box-sizing: content-box; max-width: 1240px; margin: 0 auto; padding-inline: 32px; }

/* Top bar: the same markup and styles as the other pages (site.css). */
.top { padding-block: 24px 12px; }
header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.logo { display: block; line-height: 0; border-radius: var(--radius-sm); }
.logo img { width: 96px; height: auto; display: block; }
nav { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
nav a { display: inline-flex; align-items: center; min-height: var(--tap-min); font: 400 15px/21px var(--font-sans); }
/* The page stays light, so the wordmark stays the light one in dark mode too. */
@media (prefers-color-scheme: dark) { .logo img { content: url("logo/toat-wordmark-light.svg"); } }

/* Buttons: mint pills. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  background: var(--mint); color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background-color 150ms var(--ease), transform 100ms var(--ease);
}
.btn:active { background: var(--mint-press); transform: scale(0.98); }
.btn:focus-visible { border-radius: 999px; }
.btn-lg { height: 52px; padding: 0 28px; font: 700 16px/20px var(--font-sans); }
/* "Launch iOS Beta" beside Login (founder 2026-11-23): the same pill, outlined. */
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-outline:active { background: var(--mint-soft); }
.beta-card .btn-outline { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--on-dark); }
.beta-card .btn-outline:active { background: transparent; opacity: 0.8; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.kicker { font: 700 13px/24px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.heading { display: flex; flex-direction: column; gap: 14px; }

/* 1. Hero */
.hero { padding-block: 40px 72px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 440px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero h1 { font: 800 clamp(44px, 5.8vw, 76px)/1.02 var(--font-display); letter-spacing: -0.035em; }
.lede { font: 400 20px/30px var(--font-sans); color: var(--ink-muted); max-width: 480px; }
.hero-panel { flex: 1.55 1 520px; background: var(--mint-soft); border-radius: 40px; padding: 44px 24px; display: flex; justify-content: center; }

.phone {
  position: relative; width: 330px; height: 670px; flex: none; border: 10px solid var(--ink); border-radius: 46px;
  background: var(--dark-raised); padding: 44px 18px 14px; box-shadow: 0 30px 80px rgba(15, 26, 23, .18);
  overflow: hidden; display: flex; flex-direction: column; color: var(--on-dark);
}
.cam { position: absolute; top: 14px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #000; }
.clock { display: flex; flex-direction: column; gap: 5px; padding: 8px 6px 22px; }
.time { font: 300 52px/1 var(--font-display); color: var(--on-dark); }
.date { font: 400 14px/20px var(--font-sans); color: var(--on-dark-muted); }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 18px; }
.app { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.app .tile { width: 50px; height: 50px; border-radius: 50%; }
.app .tile > svg { width: 22px; height: 22px; }
.app .lbl { font: 400 11px/14px var(--font-sans); color: var(--on-dark); }
.phone-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.dock { display: flex; justify-content: space-around; background: rgba(236, 243, 240, .08); border-radius: 28px; padding: 10px 6px; }
.search-pill { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--on-dark); color: var(--ink-muted); font: 400 14px/18px var(--font-sans); }
.search-pill svg { width: 18px; height: 18px; }
.search-pill .mic { margin-left: auto; }
.gesture { display: block; width: 108px; height: 4px; border-radius: 2px; margin: 0 auto; background: var(--on-dark); opacity: .7; }

/* Shared app tile states (spec 5.1); the state class is on the tile's parent. */
.tile {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: var(--paper-raised); color: var(--ink);
  transition: background-color 350ms, color 350ms, transform 350ms, box-shadow 350ms;
  transition-timing-function: var(--ease);
}
.app.on > .tile, .step.on > .tile { background: var(--mint); transform: translateY(-4px) scale(1.05); box-shadow: 0 12px 26px rgba(15, 26, 23, .16); }
.step.alert > .tile { background: var(--ink); color: var(--on-dark); transform: translateY(-4px) scale(1.05); }
.check {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 999px;
  background: var(--ink); color: var(--cream); display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.3); transition: opacity 300ms, transform 350ms var(--ease);
}
.check svg { width: 12px; height: 12px; stroke-width: 3; }
.on > .tile .check { opacity: 1; transform: none; }

/* 2. "You use apps" band (static on purpose) */
.band { background: var(--ink); color: var(--on-dark); }
.band-inner { padding-block: 96px; display: flex; flex-direction: column; gap: 48px; }
.band .kicker { color: var(--mint-on-dark); }
.band h2 { font: 800 clamp(34px, 4.4vw, 56px)/1.04 var(--font-display); letter-spacing: -0.035em; max-width: 680px; }
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 360px; border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.card-dark { background: var(--dark-raised); border: 1px solid var(--dark-line); }
.card-mint { background: var(--mint); color: var(--ink); }
.caption { display: flex; flex-direction: column; gap: 6px; }
.caption-kicker { font: 700 13px/24px var(--font-sans); }
.card-dark .caption-kicker { color: var(--on-dark-muted); }
.card h3 { font: 800 22px/28px var(--font-display); }

.browser { box-sizing: content-box; min-height: 300px; border-radius: 16px; border: 1px solid var(--dark-line); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #1c2724; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3d4d47; flex: none; }
.url { flex: 1; height: 22px; margin-left: 8px; border-radius: 999px; background: #0e1513; }
.browser-body { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.browser-body span { display: block; height: 10px; border-radius: 999px; background: var(--dark-line); }
.browser-body span:nth-child(1) { width: 70%; }
.browser-body span:nth-child(2) { width: 92%; }
.browser-body span:nth-child(3) { width: 56%; }
.browser-body span:nth-child(4) { width: 84%; }
.browser-body span:nth-child(5) { width: 40%; }

.mini-wrap { min-height: 300px; display: flex; align-items: center; justify-content: center; }
.mini-phone {
  width: 200px; border: 8px solid var(--ink); border-radius: 34px; background: var(--paper);
  padding: 34px 16px 28px; display: grid; grid-template-columns: repeat(3, 44px); gap: 14px; justify-content: center;
}
.mini { width: 44px; height: 44px; border-radius: 13px; background: var(--paper-raised); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-card); }
.mini svg { width: 20px; height: 20px; }

/* 3. Works across apps */
.works { padding-block: 96px 80px; display: flex; flex-direction: column; gap: 40px; }
.works .kicker { color: var(--mint-text); }
.works .heading { gap: 12px; }
.works h2 { font: 800 clamp(32px, 4vw, 52px)/1.05 var(--font-display); letter-spacing: -0.03em; max-width: 640px; }
.strip { background: var(--paper-raised); border-radius: 32px; padding: 40px 32px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.step { width: 132px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.step .tile { width: 80px; height: 80px; border-radius: 24px; box-shadow: 0 1px 2px rgba(10, 20, 17, .06), 0 3px 10px rgba(10, 20, 17, .06); }
.step .tile > svg { width: 32px; height: 32px; }
.txt { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.step .lbl { font: 600 12px/16px var(--font-sans); color: var(--ink-muted); }
.cap { display: block; min-height: 34px; max-width: 120px; font: 600 13px/17px var(--font-sans); color: var(--mint-text); }
.step:not(.on):not(.alert) .cap { visibility: hidden; }
.conn { position: relative; flex: 1 1 40px; min-width: 24px; height: 3px; border-radius: 3px; background: var(--line); margin-top: -40px; overflow: hidden; }
.conn::after { content: ""; position: absolute; inset: 0; background: var(--mint-text); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease); }
.conn.on::after { transform: none; }

/* 4. Limited beta and footer */
.beta { padding-block: 0; }
.beta-card { background: var(--ink); border-radius: 36px; padding: 48px 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.beta h2 { font: 800 clamp(28px, 3.2vw, 42px)/1.08 var(--font-display); letter-spacing: -0.03em; color: var(--on-dark); }

/* Footer: the site's footer (site.css `footer` in a `.wrap`), lined up with this page's container. */
footer.wrap {
  max-width: 1240px; padding: var(--space-4) 0 var(--space-12); border-top: 1px solid var(--line);
  margin: var(--space-12) max(32px, calc((100% - 1240px) / 2)) 0;
  font: 500 13px/18px var(--font-sans); color: var(--ink-muted);
}

/* Entrance and scroll reveal (spec 5.5) */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.enter { animation: fade-up 600ms var(--ease) both; }
.enter-late { animation: fade-up 700ms var(--ease) 150ms both; }
@supports (animation-timeline: view()) {
  .reveal { animation: fade-up linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
}

/* Motion off: reduced motion, or ?static / ?tick=N (landing.js sets .still). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }

/* The chain doesn't fit one row below about 820px; there it is the mobile vertical list (spec 9). */
@media (max-width: 820px) {
  .strip { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 24px 20px; border-radius: 28px; }
  .step { width: auto; flex-direction: row; gap: 16px; text-align: left; }
  .step .tile { width: 60px; height: 60px; border-radius: 18px; flex: none; }
  .step .tile > svg { width: 26px; height: 26px; }
  .txt { align-items: flex-start; gap: 0; }
  .step .lbl { font: 700 15px/20px var(--font-sans); color: var(--ink); }
  .cap { min-height: 19px; max-width: none; font: 600 14px/19px var(--font-sans); }
  .conn { flex: none; width: 3px; min-width: 0; height: 28px; margin: 6px 0 6px 28.5px; border-radius: 3px; }
  .conn::after { transform: scaleY(0); transform-origin: top; }
}

/* Mobile (spec 9): 480px and below. */
@media (max-width: 480px) {
  .wrap { padding-inline: 20px; }
  .top { padding-block: 24px 4px; }

  .hero { padding-block: 24px 48px; gap: 28px; }
  .hero-copy { gap: 20px; align-items: stretch; }
  .hero h1 { font-size: 44px; }
  .lede { font-size: 17px; line-height: 26px; }
  .hero-panel { border-radius: 32px; padding: 28px 16px; }
  .phone { width: 286px; height: 580px; border-width: 9px; border-radius: 42px; padding: 38px 14px 12px; }
  .cam { width: 10px; height: 10px; margin-left: -5px; }
  .time { font-size: 44px; }
  .date { font-size: 13px; line-height: 17px; }
  .apps { row-gap: 14px; }
  .app .tile { width: 44px; height: 44px; }
  .app .tile > svg { width: 20px; height: 20px; }
  .app .lbl { font-size: 10px; line-height: 13px; }
  .dock { padding: 8px 4px; border-radius: 26px; }
  .search-pill { height: 40px; }
  .search-pill svg { width: 16px; height: 16px; }
  .gesture { width: 96px; }

  .band-inner { padding-block: 64px; gap: 32px; }
  .band .kicker, .works .kicker { font-size: 12px; }
  .heading { gap: 12px; }
  .band h2 { font-size: 34px; line-height: 1.06; }
  .card { padding: 24px; border-radius: 28px; }
  .card h3 { font-size: 20px; line-height: 26px; }
  .browser { min-height: 162px; }
  .browser-bar { padding: 10px 12px; gap: 6px; }
  .dot { width: 8px; height: 8px; }
  .url { height: 18px; margin-left: 8px; }
  .browser-body { gap: 12px; padding: 20px; }
  .browser-body span { height: 9px; }
  .browser-body span:nth-child(5) { display: none; }
  .caption { gap: 8px; }
  .caption-kicker { line-height: 17px; }
  .mini-wrap { min-height: 0; padding: 8px 0; }
  .mini-phone { width: 170px; border-width: 7px; border-radius: 30px; padding: 28px 12px 22px; grid-template-columns: repeat(3, 38px); gap: 12px; }
  .mini { width: 38px; height: 38px; border-radius: 11px; }
  .mini svg { width: 18px; height: 18px; }

  .works { padding-block: 64px 48px; gap: 28px; }
  .works h2 { font-size: 32px; }

  .beta-card { flex-direction: column; align-items: stretch; padding: 32px 24px; border-radius: 28px; gap: 20px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .beta h2 { font-size: 28px; }
  footer.wrap { margin-inline: 20px; padding-inline: 0; }
}
