/* One-Two Timer website. Tokens mirror design/tokens.json (Option A, D-54).
   Layout: a wide editorial hero with a live timer demo, then single-column story bands. */
:root {
  --paper: #F6F4EF; --surface: #FFFFFF; --ink: #17212B; --soft: #5B6670; --line: #E4E0D8;
  --accent: #4A47C9; --on-accent: #FFFFFF; --accent-wash: #ECEBFB;
  --g-t: #E8F5EC; --g-e: #2E9E5B; --g-w: #17663F; --g-b: #17794A; --g-o: #FFFFFF;
  --y-t: #FFF5D6; --y-e: #DDA400; --y-w: #6E5100; --y-b: #F2C230; --y-o: #241B00;
  --o-t: #FFEBDB; --o-e: #E8731A; --o-w: #8A3C00; --o-b: #EF7D22; --o-o: #2A1300;
  --r-t: #FDE6E2; --r-e: #D5381F; --r-w: #9E2414; --r-b: #C4301E; --r-o: #FFFFFF;
  --n-t: #EEF0F2; --n-e: #8995A0; --n-w: #46525C; --n-b: #5F6E76; --n-o: #FFFFFF;
  --display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgb(23 33 43 / .05), 0 18px 50px rgb(23 33 43 / .10);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0F1418; --surface: #192026; --ink: #F1EEE8; --soft: #A3ADB5; --line: #2A333B;
  --accent: #A9A7FF; --on-accent: #14124A; --accent-wash: #22234A;
  --g-t: #15291F; --g-e: #3FBF7A; --g-w: #8FE0B4; --g-b: #3FBF7A; --g-o: #07160E;
  --y-t: #2E2710; --y-e: #E8B923; --y-w: #F5D776; --y-b: #E8B923; --y-o: #1F1700;
  --o-t: #33200F; --o-e: #F08A3C; --o-w: #FFC08F; --o-b: #F08A3C; --o-o: #1F0E00;
  --r-t: #361613; --r-e: #FF6B57; --r-w: #FFADA1; --r-b: #FF6B57; --r-o: #240400;
  --n-t: #1E252B; --n-e: #5E6B75; --n-w: #B7C1C9; --n-b: #5E6B75; --n-o: #FFFFFF;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 18px 50px rgb(0 0 0 / .35);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --paper: #0F1418; --surface: #192026; --ink: #F1EEE8; --soft: #A3ADB5; --line: #2A333B;
  --accent: #A9A7FF; --on-accent: #14124A; --accent-wash: #22234A;
  --g-t: #15291F; --g-e: #3FBF7A; --g-w: #8FE0B4; --g-b: #3FBF7A; --g-o: #07160E;
  --y-t: #2E2710; --y-e: #E8B923; --y-w: #F5D776; --y-b: #E8B923; --y-o: #1F1700;
  --o-t: #33200F; --o-e: #F08A3C; --o-w: #FFC08F; --o-b: #F08A3C; --o-o: #1F0E00;
  --r-t: #361613; --r-e: #FF6B57; --r-w: #FFADA1; --r-b: #FF6B57; --r-o: #240400;
  --n-t: #1E252B; --n-e: #5E6B75; --n-w: #B7C1C9; --n-b: #5E6B75; --n-o: #FFFFFF;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 18px 50px rgb(0 0 0 / .35);
  color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(44px, 7.4vw, 92px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 14px; max-width: 62ch; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.soft { color: var(--soft); }
.tab { font-variant-numeric: tabular-nums; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; }
.mark svg { width: 20px; height: 20px; }
.nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a.cta { background: var(--ink); color: var(--paper); padding: 9px 16px; border-radius: 999px; }
@media (max-width: 720px) { .nav a:not(.cta) { display: none; } }

/* Hero */
.hero { padding-block: 56px 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 21px; color: var(--soft); margin-top: 22px; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-block: 32px 56px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; font: 700 16px var(--text); text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.badge { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border-radius: 14px; background: var(--ink); color: var(--paper); text-decoration: none; }
.badge small { display: block; font-size: 11px; opacity: .8; line-height: 1.1; }
.badge b { display: block; font-size: 17px; line-height: 1.1; }

/* The live demo: a phone-sized card with two timer tiles */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 40px; padding: 22px; box-shadow: var(--shadow); max-width: 400px; width: 100%; justify-self: center; }
.demo-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.demo-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.demo-head b { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.demo-head .duty { margin-left: auto; font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); }
.demo-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 13px; color: var(--soft); gap: 8px; flex-wrap: wrap; }
.speed { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; font: 600 13px var(--text); padding: 6px 12px; cursor: pointer; min-height: 32px; }

.tile { --t: var(--g-t); --e: var(--g-e); --w: var(--g-w); --b: var(--g-b); --o: var(--g-o);
  position: relative; display: block; width: 100%; text-align: left; background: var(--t); border: 1.5px solid var(--e); border-radius: 24px; padding: 16px 18px 18px; color: var(--ink); cursor: pointer; overflow: hidden; font: inherit; transition: background-color .35s ease, border-color .35s ease, transform .12s ease; }
.tile + .tile { margin-top: 12px; }
.tile:active { transform: scale(.975); }
.tile[data-state="yellow"] { --t: var(--y-t); --e: var(--y-e); --w: var(--y-w); --b: var(--y-b); --o: var(--y-o); }
.tile[data-state="orange"] { --t: var(--o-t); --e: var(--o-e); --w: var(--o-w); --b: var(--o-b); --o: var(--o-o); }
.tile[data-state="red"]    { --t: var(--r-t); --e: var(--r-e); --w: var(--r-w); --b: var(--r-b); --o: var(--r-o); border-width: 2.5px; }
.tile-row { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 16px; }
.tile-row .state { margin-left: auto; color: var(--w); font-size: 13px; display: inline-flex; align-items: center; gap: 5px; }
.tile-row svg { width: 17px; height: 17px; flex: none; }
.clock, .due, .pill { display: block; }
.pill { display: grid; }
.clock { font-family: var(--text); font-weight: 800; font-size: clamp(44px, 12vw, 56px); letter-spacing: -0.03em; line-height: 1.05; margin-top: 4px; font-variant-numeric: tabular-nums; }
.due { color: var(--w); font-weight: 700; font-size: 14px; margin-top: 4px; }
.pill { margin-top: 12px; height: 46px; border-radius: 999px; background: var(--b); color: var(--o); display: grid; place-items: center; font-weight: 800; font-size: 17px; transition: background-color .35s ease; }
.bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--e); width: 0; transition: width .4s linear, background-color .35s; }
.tile.flash { animation: flash .5s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--g-e) 60%, transparent); } 100% { box-shadow: 0 0 0 18px transparent; } }

/* Sections */
section { padding-block: 88px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.intro { max-width: 760px; }
.intro p { font-size: 19px; color: var(--soft); margin-top: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; counter-reset: s; }
.step { padding: 26px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
.band .step { background: var(--paper); }
.step .n { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--accent); margin-bottom: 18px; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-wash); }
.step p { color: var(--soft); margin-top: 8px; font-size: 16px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.ramp { display: grid; grid-template-columns: 60fr 25fr 15fr 22fr; margin-top: 36px; border-radius: 16px; overflow: hidden; font-weight: 700; font-size: 14px; }
.ramp div { padding: 14px 14px; min-width: 0; }
.ramp .g { background: var(--g-t); color: var(--g-w); } .ramp .y { background: var(--y-t); color: var(--y-w); } .ramp .o { background: var(--o-t); color: var(--o-w); } .ramp .r { background: var(--r-t); color: var(--r-w); }
.ramp small { display: block; font-weight: 500; opacity: .9; }
@media (max-width: 640px) { .ramp { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin-top: 44px; }
.feature { background: var(--surface); padding: 28px; min-width: 0; }
.feature p { color: var(--soft); font-size: 16px; margin: 8px 0 0; }
.feature .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ic svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.quote { font-family: var(--display); font-size: clamp(28px, 4vw, 44px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; max-width: 24ch; }

.price { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.plan { border: 1px solid var(--line); background: var(--surface); border-radius: 28px; padding: 32px; }
.plan.alt { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan.alt .soft { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.plan .amt { font-family: var(--display); font-size: 56px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 14px 0 6px; }
.plan ul { padding-left: 20px; margin: 18px 0 0; } .plan li { margin-bottom: 6px; }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } }

.waitlist { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; max-width: 520px; }
.waitlist input { flex: 1 1 240px; min-height: 52px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 20px; font: 500 16px var(--text); min-width: 0; }
.form-note { font-size: 14px; color: var(--soft); margin-top: 10px; min-height: 1.4em; }

details { border-bottom: 1px solid var(--line); padding-block: 18px; max-width: 760px; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--soft); margin-top: 10px; }

/* The tag: hidden until the site's phase is "tag". Same look; only revealed. */
[data-phase-only="tag"] { display: none !important; }
html[data-phase="tag"] [data-phase-only="tag"] { display: revert !important; }
html[data-phase="tag"] [data-phase-only="app"] { display: none !important; }

.tag-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tag-device { aspect-ratio: 1; max-width: 360px; width: 100%; margin: 0 auto; border-radius: 34%; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; }
.tag-face { width: 70%; display: grid; gap: 16px; justify-items: center; }
.tag-btns { display: flex; gap: 14px; width: 100%; }
.tag-btns span { flex: 1; text-align: center; padding: 12px 0; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 800; font-size: 15px; box-shadow: inset 0 -3px 0 var(--line); }
.lcd { width: 100%; aspect-ratio: 1.6; border-radius: 14px; background: #C9D3C4; color: #1D2A1F; display: grid; place-items: center; font-weight: 800; font-size: clamp(26px, 5vw, 40px); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
@media (max-width: 820px) { .tag-hero { grid-template-columns: 1fr; } }

footer { padding-block: 56px 72px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--ink); font-weight: 600; text-decoration: none; }
footer small { color: var(--soft); display: block; margin-top: 8px; }

/* Legal and support pages */
.doc { max-width: 760px; padding-block: 48px 80px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); }
.doc h2 { font-size: 24px; margin-top: 40px; margin-bottom: 10px; letter-spacing: -0.01em; }
.doc li { margin-bottom: 8px; }
.draft { background: var(--y-t); color: var(--y-w); border: 1px solid var(--y-e); border-radius: 14px; padding: 14px 18px; font-weight: 600; margin: 20px 0 28px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc .tw { overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
