/* Focus Mono — tokens come straight from the design sheet (dark / light). */
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ground: #0B0B0C; --surface: #141416; --hairline: #26262A;
  --text: #EDEDED; --muted: #8B8B92;
  --focus: #6CB6FF; --break: #5BD39A; --paused: #F2C94C;
  --on-accent: #0B0B0C;
  --dim: #26262A; --done-seg: #5A5A60;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 14px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ground: #F4F4F2; --surface: #FFFFFF; --hairline: #DEDED9;
  --text: #111113; --muted: #5F5F66;
  --focus: #1F6FC2; --break: #12825A; --paused: #8A5F00;
  --on-accent: #FFFFFF;
  --dim: #DEDED9; --done-seg: #9A9AA0;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground: #F4F4F2; --surface: #FFFFFF; --hairline: #DEDED9;
    --text: #111113; --muted: #5F5F66;
    --focus: #1F6FC2; --break: #12825A; --paused: #8A5F00;
    --on-accent: #FFFFFF;
    --dim: #DEDED9; --done-seg: #9A9AA0;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  transition: background-color .28s, color .28s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--hairline); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; margin: 0; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--ground); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.eyebrow, .label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hairline); }
.bar { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 12px; letter-spacing: .12em; }
.logo { width: 22px; height: 22px; }
.nav { margin-left: auto; display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--text); }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; background: transparent; border: 1px solid var(--hairline); border-radius: 10px; cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--text); }

/* hero */
.hero { padding: clamp(48px, 9vw, 104px) 0 clamp(28px, 4vw, 44px); }
.hero h1 { font-size: clamp(44px, 8.4vw, 96px); margin-top: 18px; }
.lede { margin-top: 22px; max-width: 54ch; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }

/* ───────── the timer ───────── */
.app {
  --accent: var(--focus);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; overflow: hidden;
}
.app[data-tone="break"] { --accent: var(--break); }
.app[data-state="paused"] { --accent: var(--paused); }
.app-main { padding: clamp(20px, 3.2vw, 36px); display: flex; flex-direction: column; min-width: 0; }
.app-side { padding: clamp(20px, 3vw, 28px); border-top: 1px solid var(--hairline); display: grid; gap: 26px; align-content: start; }
@media (min-width: 920px) {
  .app { grid-template-columns: minmax(0, 1fr) 300px; }
  .app-side { border-top: 0; border-left: 1px solid var(--hairline); }
}

.app-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.intent { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; transition: background-color .28s; }
.intent input { background: none; border: 0; padding: 6px 0; width: 100%; min-width: 0; font-size: 15px; outline-offset: 4px; }
.intent input::placeholder { color: var(--muted); opacity: 1; }
.status { font-size: 12px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
.app[data-state="running"] .status, .app[data-state="over"] .status { color: var(--accent); }
.app[data-state="paused"] .status { color: var(--paused); }

.digits {
  font-family: var(--mono); font-weight: 500; line-height: .92; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; font-size: clamp(78px, 19vw, 232px);
  margin: clamp(22px, 4vw, 44px) 0 12px -.04em; white-space: nowrap;
  transition: color .28s;
}
.app[data-tone="break"] .digits { color: var(--break); }
.app[data-state="over"] .digits { color: var(--focus); }
.app[data-state="paused"] .digits { color: var(--paused); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .42; } }

.meta { font-size: 12px; letter-spacing: .1em; color: var(--muted); min-height: 1.5em; text-transform: uppercase; }

/* tick ruler */
.ruler { display: flex; align-items: flex-end; gap: 2px; height: 36px; margin-top: 22px; }
.ruler i { flex: 1; min-width: 1px; height: 55%; background: var(--dim); border-radius: 1px; transition: background-color .26s, transform .26s; transform-origin: bottom; }
.ruler i.five { height: 100%; }
.ruler i.done { background: var(--text); }
.ruler i.now { background: var(--accent); }
.ruler.demo { height: 36px; margin: 18px 0 20px; }

/* sequence strip */
.strip { display: flex; gap: 3px; margin-top: 12px; }
.strip i { height: 5px; border-radius: 2px; background: var(--dim); position: relative; overflow: hidden; }
.strip i.brk { background: color-mix(in srgb, var(--break) 22%, var(--ground)); }
.strip i.past { background: var(--done-seg); }
.strip i.brk.past { background: color-mix(in srgb, var(--break) 55%, var(--ground)); }
.strip i.cur::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--accent); }
.strip i.cur { background: color-mix(in srgb, var(--accent) 25%, var(--dim)); }
.legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

/* keys */
.controls { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 10px; margin-top: clamp(28px, 4vw, 44px); }
.key {
  min-height: 56px; padding: 0 12px; border: 1px solid var(--hairline); border-radius: 14px;
  background: var(--ground); cursor: pointer; font-weight: 500; font-size: 16px;
  transition: transform .09s, background-color .28s, color .28s, border-color .28s;
}
.key:hover { border-color: var(--muted); }
.key:active { transform: scale(.96); }
.key-primary { border-color: transparent; font-weight: 600; font-size: 17px; background: var(--accent); color: var(--on-accent); }
.key-primary[data-tone="neutral"] { background: var(--text); color: var(--ground); }
.key-primary[data-tone="focus"] { background: var(--focus); color: var(--on-accent); }
.key-primary[data-tone="break"] { background: var(--break); color: var(--on-accent); }
.key-primary:hover { border-color: transparent; filter: brightness(1.06); }
.hint { margin-top: 16px; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
kbd { font: inherit; border: 1px solid var(--hairline); border-radius: 5px; padding: 1px 6px; }

/* side */
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; margin-top: 10px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--ground); }
.seg button { height: 38px; background: none; border: 0; border-radius: 8px; cursor: pointer; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--hairline); }
.blocks { margin-top: 10px; display: grid; gap: 2px; font-family: var(--mono); font-size: 13px; }
.blocks li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding: 4px 0; color: var(--muted); }
.blocks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.blocks li.f::before { background: color-mix(in srgb, var(--focus) 55%, var(--dim)); }
.blocks li.b::before { background: color-mix(in srgb, var(--break) 55%, var(--dim)); }
.blocks li.cur { color: var(--text); }
.blocks li.cur.f::before { background: var(--focus); }
.blocks li.cur.b::before { background: var(--break); }
.blocks li.past { opacity: .55; }
.blocks li span:last-child { font-variant-numeric: tabular-nums; }
.today-head { display: flex; justify-content: space-between; gap: 8px; }
.timeline { position: relative; height: 22px; margin-top: 10px; border-radius: 6px; background: var(--ground); border: 1px solid var(--hairline); overflow: hidden; }
.timeline i { position: absolute; top: 3px; bottom: 3px; min-width: 2px; border-radius: 2px; background: var(--focus); }
.timeline b { position: absolute; top: 0; bottom: 0; width: 1.5px; background: var(--text); }
.timeline-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; color: var(--muted); }

.soon { margin-top: 18px; font-size: 11px; letter-spacing: .12em; color: var(--muted); }

/* sections */
.section { padding: clamp(72px, 11vw, 136px) 0 0; }
.section h2 { font-size: clamp(32px, 5.2vw, 58px); margin-top: 14px; }
.cards { display: grid; gap: 14px; margin-top: 40px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card .big { font-size: clamp(22px, 2.6vw, 28px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.card .big.sans { font-family: var(--sans); font-weight: 600; }
.card .muted { margin-top: auto; font-size: 14.5px; padding-top: 6px; }
.swatches { display: grid; gap: 10px; }
.swatches li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; font-size: 15px; }
.swatches i { width: 28px; height: 28px; border-radius: 8px; background: var(--c); border: 1px solid var(--hairline); }
.swatches span { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 56px; margin-top: 44px; }
.caps li { display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 20px 0; border-top: 1px solid var(--hairline); }
.caps li > span { color: var(--focus); font-size: 13px; padding-top: 3px; }
.caps b { font-weight: 600; font-size: 17px; }
.caps p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* gallery */
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 40px max(20px, calc((100vw - 1120px) / 2)) 14px; scroll-padding-inline: max(20px, calc((100vw - 1120px) / 2)); scrollbar-width: thin; scrollbar-color: var(--hairline) transparent; }
.gallery li { flex: none; width: clamp(210px, 24vw, 264px); scroll-snap-align: start; }
.gallery figure, .wide { margin: 0; }
.gallery img, .wide img { border: 1px solid var(--hairline); border-radius: 22px; background: var(--surface); }
figcaption { margin-top: 12px; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.wide { margin-top: 34px; }

/* pro */
.pro { display: grid; gap: 28px; margin-top: 40px; align-items: start; }
@media (min-width: 880px) { .pro { grid-template-columns: 1.4fr 1fr; } }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden; border-style: hidden; box-shadow: 0 0 0 1px var(--hairline); }
.compare th, .compare td { padding: 14px 18px; text-align: left; font-size: 15px; border-top: 1px solid var(--hairline); font-weight: 400; }
.compare thead th { border-top: 0; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.compare td { text-align: center; color: var(--muted); }
.compare thead th:not(:first-child) { text-align: center; }
.compare td:last-child, .compare .pro-col { color: var(--focus); }
.compare td:last-child { font-weight: 500; }
.plans { display: grid; gap: 10px; }
.plan { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); }
.plan span { font-size: 13px; color: var(--muted); }
.plan.featured { border-color: var(--focus); background: color-mix(in srgb, var(--focus) 8%, var(--surface)); }
.small { font-size: 11px; letter-spacing: .08em; padding: 2px 4px 0; }

.closing { padding: clamp(80px, 12vw, 150px) 0; text-align: left; }
.closing h2 { font-size: clamp(36px, 6.5vw, 76px); }
.cta { display: inline-block; margin-top: 30px; padding: 16px 26px; border-radius: 14px; background: var(--focus); color: var(--on-accent); text-decoration: none; font-weight: 600; }
.cta:hover { filter: brightness(1.07); }

.site-footer { border-top: 1px solid var(--hairline); padding: 26px 0 max(26px, env(safe-area-inset-bottom)); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 11px; letter-spacing: .1em; color: var(--muted); }

@media (max-width: 640px) {
  .nav { display: none; }
  .icon-btn { margin-left: auto; }
  .controls { gap: 8px; }
  .key { min-height: 54px; font-size: 15px; }
  .hint { display: none; }
  .caps { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: .01ms !important; }
}

/* ───────── store badges + QR ───────── */
.get { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.get.center { justify-content: flex-start; }
.store-wrap { display: flex; gap: 8px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 16px;
  background: #000; color: #fff; border: 1px solid #3a3a40; border-radius: 14px; text-decoration: none;
  transition: transform .09s, border-color .2s;
}
.store:hover { border-color: #8b8b92; }
.store:active { transform: scale(.97); }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store span { display: grid; line-height: 1.05; text-align: left; }
.store small { font-size: 11px; opacity: .85; }
.store b { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.qr-btn {
  width: 56px; height: 56px; display: none; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--muted); border: 1px solid var(--hairline); border-radius: 14px;
}
.qr-btn:hover { color: var(--text); border-color: var(--muted); }
/* QR is for people on a computer: hide on phones and touch screens */
@media (min-width: 900px) and (hover: hover) { .qr-btn { display: grid; } }

dialog#qr {
  width: min(340px, calc(100% - 40px)); padding: 28px; text-align: center;
  background: var(--surface); color: var(--text); border: 1px solid var(--hairline); border-radius: 24px;
}
dialog#qr::backdrop { background: rgb(0 0 0 / .55); backdrop-filter: blur(10px); }
dialog#qr img { width: 100%; height: auto; margin: 0 auto 18px; padding: 18px; background: #fff; border-radius: 16px; }
dialog#qr h2 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.2; }
dialog#qr p { margin: 8px 0 20px; font-size: 14px; color: var(--muted); }
dialog#qr .key { width: 100%; }

.back { margin-top: 26px; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.getpage { padding: clamp(72px, 14vw, 160px) 0; min-height: 100vh; }
.getpage h1 { font-size: clamp(44px, 8vw, 88px); margin-top: 16px; }
.getpage [hidden] { display: none; }

/* legal pages */
.prose { max-width: 720px; padding: clamp(56px, 10vw, 112px) 0 clamp(72px, 10vw, 120px); }
.prose h1 { font-size: clamp(38px, 6vw, 64px); margin: 14px 0 12px; }
.prose h2 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 16px; }
.prose p + p { margin-top: 12px; }
.prose .lede { color: var(--text); margin: 28px 0 0; font-size: 19px; }
.prose ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.prose b { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); }
