/* The rebuild's foundation (docs/WEBSITE_PLAN_V2.md): one type scale, one spacing scale, the app's motion,
   and the pieces every section is built from (pills, chips, the join sheet, the floating nav). Loaded after
   style.css on every page; it wins where they overlap. Our fonts, our six themes: the colours stay in style.css. */

:root {
  /* type, phone first (390 px), growing to desktop */
  --fs-display: clamp(44px, 11.6vw, 88px);
  --fs-h2: clamp(32px, 8.4vw, 56px);
  --fs-h3: clamp(20px, 5vw, 24px);
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-label: 13px;
  /* space: an 8 px grid */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 72px; --s7: 120px;
  --gutter: 20px;
  /* the app's curves (app/src/ui/motion.ts); its springs live in motion.js */
  --curve-standard: cubic-bezier(0.2, 0, 0, 1);
  --curve-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
  --pill-h: 48px;
}
@media (max-width: 359px) { :root { --gutter: 16px; } }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 640px) { .wrap { padding-left: 28px; padding-right: 28px; } }

/* ---- headings: General Sans, tight, the clear leader of each screen ---- */
h2.big { font-size: var(--fs-h2); font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; max-width: 18ch; }

/* ---- pills: the only button shape; 48 px tall, never full width beside another ---- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--pill-h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 16px/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color 0.25s var(--curve-standard), border-color 0.25s var(--curve-standard), color 0.25s var(--curve-standard);
}
.pill.primary { background: var(--cta); color: var(--on-cta); }
.pill.primary:hover { filter: brightness(1.07); }
.pill.secondary { background: transparent; color: var(--text); border-color: color-mix(in srgb, var(--text) 22%, transparent); }
.pill.secondary:hover { background: var(--surface2); }
.pill:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.pill svg { width: 18px; height: 18px; flex: none; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- chip: a small proof line above a headline ---- */
.chip.proof {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font: 600 var(--fs-label)/1 var(--body); color: var(--text);
}
.chip.proof .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }

/* ---- the hero: chip, the moving headline, one line, two pills ---- */
.hero.v2 { padding: var(--s4) 0 var(--s6); text-align: left; }
.hero.v2 .wrap { display: flex; flex-direction: column; align-items: flex-start; }
.hero.v2 .rotator {
  align-items: flex-start; text-align: left; margin: var(--s3) 0 0; max-width: 14ch;
  font-size: var(--fs-display); font-weight: 600; line-height: 1; letter-spacing: -0.035em;
}
/* balanced breaks: never a lone word on the last line ("use" on its own) */
.hero.v2 .rotator .fixed, .hero.v2 .rotator .turn span { white-space: normal; text-wrap: balance; }
/* the changing ending: the theme colour, room for two lines so nothing below moves */
.hero.v2 .rotator .turn { min-height: 0; padding: 0.06em 0 0.08em; }
.hero.v2 .rotator em { color: var(--accent); }
.hero.v2 .lead {
  font-family: var(--body); font-weight: 400; letter-spacing: 0; font-size: var(--fs-body); line-height: 1.5;
  color: var(--muted); max-width: 34ch; margin: var(--s2) 0 0; padding: 0;
}
.hero.v2 .pill-row { margin-top: var(--s3); }
@media (min-width: 640px) { .hero.v2 .rotator .turn { min-height: 1.15em; } }
@media (min-width: 900px) {
  .hero.v2 { padding: var(--s6) 0 var(--s7); }
  .hero.v2 .lead { font-size: 19px; }
}

/* ---- the floating nav: a glass pill, 12 px from the top ---- */
.nav {
  top: 10px; margin: 10px auto 0; width: min(1180px, calc(100% - 20px)); border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: 0 8px 28px -20px rgba(0, 0, 0, 0.35);
}
.nav .wrap { height: 58px; padding-left: 14px; padding-right: 10px; }
.nav-links .nav-cta { height: 40px; padding: 0 16px; border-radius: 999px; font-size: 15px; }
html { scroll-padding-top: 88px; }

/* ---- the join sheet: rises from the bottom; the waitlist form lives here ---- */
.sheet-shade { position: fixed; inset: 0; z-index: 60; background: rgba(8, 10, 8, 0.42); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--curve-standard); }
.sheet {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; margin: 0 auto; width: min(560px, 100%); max-height: calc(100dvh - 24px); overflow: auto;
  transform: translateY(104%); visibility: hidden;
  padding: 10px var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom));
  background: var(--surface); color: var(--text); border-radius: 28px 28px 0 0;
  box-shadow: 0 -18px 50px -24px rgba(0, 0, 0, 0.45);
}
html.sheet-open .sheet-shade { opacity: 1; pointer-events: auto; }
html.sheet-open .sheet { visibility: visible; transform: none; }
/* without Motion (or before it loads), a plain slide */
html:not(.motion) .sheet { transition: transform 0.38s var(--curve-decelerate), visibility 0s linear 0.38s; }
html:not(.motion).sheet-open .sheet { transition: transform 0.38s var(--curve-decelerate), visibility 0s; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--surface3); margin: 0 auto var(--s2); }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; }
.sheet-head h2 { font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.sheet-head p { margin: 6px 0 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.45; }
.sheet-close { margin-left: auto; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface2); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.sheet-close svg { width: 18px; height: 18px; }
.sheet-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sheet form.join { margin-top: var(--s3); }
.sheet .fine { margin: var(--s2) 0 0; font-size: var(--fs-label); color: var(--muted); }
/* wider screens: a centred card instead of a bottom sheet */
@media (min-width: 640px) { .sheet { top: 0; bottom: 0; height: fit-content; margin: auto; border-radius: 28px; padding-bottom: var(--s3); transform: translateY(40px); opacity: 0; } html.sheet-open .sheet { transform: none; opacity: 1; } }
html.sheet-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) { .sheet, .sheet-shade { transition: none !important; } }
html.a11y-motion .sheet, html.a11y-motion .sheet-shade { transition: none !important; }
@media print { .sheet, .sheet-shade { display: none; } }

/* the form inside the sheet: one calm field, the primary pill, the choices under it */
.sheet .join-row { display: flex; flex-direction: row; gap: 8px; padding: 0; background: none; border-radius: 0; }
.sheet .join-row:focus-within { outline: none; }
.sheet .join-row input {
  flex: 1; min-width: 0; height: var(--pill-h); padding: 0 18px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border); font-size: 16px;
}
.sheet .join-row input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sheet .join-row button { height: var(--pill-h); width: auto; padding: 0 22px; border-radius: 999px; background: var(--cta); color: var(--on-cta); font-size: 16px; }
.sheet .join-opts { justify-content: flex-start; gap: 12px 20px; margin-top: var(--s2); }
.sheet .join .hint { font-size: var(--fs-label); line-height: 1.45; margin-top: 10px; }
.sheet .msg:empty { display: none; }
@media (max-width: 359px) { .sheet .join-row { flex-direction: column; } .sheet .join-row button { width: 100%; } }

/* the nav's "Join the beta" stays quiet while the hero's own button is on screen, then fills (one loud button at a time) */
.nav-links .nav-cta { transition: background-color 0.3s var(--curve-standard), color 0.3s var(--curve-standard), box-shadow 0.3s var(--curve-standard); }
.nav-links .nav-cta.quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 22%, transparent); }
.nav-links .nav-cta.quiet:hover { background: var(--surface2); filter: none; }

/* ---- every older button on the site joins the pill system (owner, Oct 24: "the buttons") ---- */
.btn { height: var(--pill-h); min-height: var(--pill-h); padding: 0 24px; border-radius: 999px; font-size: 16px; }
.btn.ghost { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 22%, transparent); background: transparent; }
.btn:focus-visible { outline: 3px solid var(--accent); }
/* the focus timer: Start is the one big action, a wide pill; the length choices are smaller pills; −/+ read as buttons */
.timer-actions { align-items: center; }
/* the app draws Start now dark (FocusScreen: Button variant="dark"); so does the site */
.timer-actions .btn.cta { height: 56px; min-width: 220px; padding: 0 34px; font-size: 17px; background: var(--btn); color: var(--on-btn); }
.timer-actions .btn:not(.cta) { min-width: 160px; }
.lengths button { height: 44px; border-radius: 999px; }
.round-btn { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.round-btn:disabled { opacity: 0.4; }

/* every page's own heading (pricing, about, blog, resources, focus): the new display weight */
.page-head h1 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }

/* the join card on wider screens: no grab handle (that's a phone sheet's), the page behind softened,
   and one calm focus ring on the email field */
@media (min-width: 640px) { .sheet .grab { display: none; } .sheet { padding-top: var(--s3); } }
.sheet-shade { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet .join-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
/* 13 px is the site's smallest text (audit, Oct 24): the pricing table's units, About's "Now" */
.compare td small { font-size: 13px; }
.tl-when b { font-size: 13px; }

/* the proof pill sits above the headline (owner, Oct 24), and on phones the two buttons fill the width, stacked */
.chip.proof.top { margin: 0 0 var(--s1); }
@media (max-width: 640px) {
  .hero.v2 .pill-row { flex-direction: column; align-self: stretch; gap: 10px; }
  .hero.v2 .pill-row .pill { width: 100%; }
}

/* ---- the header: a slim glass pill, separate from the edges and pinned while the page scrolls (owner, Oct 25) ---- */
.nav {
  top: 8px; margin: 8px auto 0; width: min(1180px, calc(100% - 20px)); border-radius: 20px; border-width: 1px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: 0 8px 26px -18px rgba(0, 0, 0, 0.4);
}
.nav .wrap { height: 54px; padding-left: 14px; padding-right: 8px; }
.brand .wordmark { height: 32px; }
.brand { padding: 4px 0; }
.nav-links .nav-cta { height: 36px; }
html { scroll-padding-top: 96px; }
@media (max-width: 640px) {
  .nav .wrap { height: 54px; gap: 8px; }
  .brand .wordmark { height: 30px; }
}
/* pinned: the same gap from the top edge at the top of the page and while scrolling (owner, Oct 25). The page makes
   room for it, so nothing moves when it is pinned. */
.nav { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 0; right: 0; margin: 0 auto; }
body { padding-top: 78px; }
@media (max-width: 640px) { body { padding-top: 78px; } }

/* ---------- any phone, any text size ----------
   Android scales text with the system font size but not the boxes around it, and many phones report a narrow screen (about 330 to 411 px).
   So nothing here may rely on a fixed width holding a line of text: pills share the row, long words break, digits scale with their ring. */
.billing { display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 440px); max-width: 100%; box-sizing: border-box; }
.billing button { min-width: 0; justify-content: center; flex-wrap: wrap; row-gap: 2px; padding: 6px 12px; line-height: 1.2; text-align: center; }
.dial { container-type: inline-size; }
.clock { font-size: clamp(30px, 19cqw, 66px); max-width: 90%; padding-inline: 4px; }
.clock.long { font-size: clamp(26px, 15cqw, 50px); }
.lengths { display: flex; flex-wrap: wrap; justify-content: center; }
.lengths button { flex: 1 1 auto; min-width: 0; padding: 0 10px; }
h1, h2, h3, h4 { overflow-wrap: break-word; }
p, li, td, th, summary, .btn, button { overflow-wrap: break-word; }
@media (max-width: 440px) {
  .btn, .cta .btn { white-space: normal; text-align: center; }
}

/* the footer's link columns: "footer.site nav" (a wrapping flex row) was out-ranking .foot-cols, so the columns shrank to their words and bunched
   up. Three even columns instead, two on phones with the third underneath. */
footer.site nav.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; align-content: start; }
footer.site nav.foot-cols a { min-height: 44px; }
@media (max-width: 640px) {
  footer.site nav.foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  footer.site nav.foot-cols div:nth-child(3) { grid-column: 1 / -1; }
}

/* ---- the Focus page's "how it works": four short cards and one slim footer row, not paragraphs ---- */
.tm-steps { list-style: none; margin: var(--s5, 32px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tm-steps li { padding: 22px 20px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.tm-n { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 12px; background: var(--wash); color: var(--accent); font: 500 16px var(--mono, var(--body)); }
.tm-steps b { display: block; font: 600 19px/1.2 var(--display); letter-spacing: -0.01em; color: var(--text); }
.tm-steps p { margin: 6px 0 0; font-size: 16px; line-height: 1.45; color: var(--muted); }
.tm-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; margin-top: 14px; }
.tm-private, .tm-cta { margin: 0; padding: 18px 22px; border-radius: 24px; display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 1.4; color: var(--muted); }
.tm-private { background: var(--wash); }
.tm-private .ic { width: 28px; height: 28px; flex: none; color: var(--accent); }
.tm-private b, .tm-cta b { color: var(--text); }
.tm-cta { justify-content: space-between; background: var(--surface); border: 1px solid var(--border); }
.tm-cta .pill { flex: none; }
@media (max-width: 960px) { .tm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tm-foot { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .tm-steps { grid-template-columns: 1fr; gap: 10px; }
  .tm-steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; padding: 16px; }
  .tm-n { grid-row: 1 / span 2; margin: 0; }
  .tm-steps p { margin-top: 2px; }
  .tm-cta { flex-direction: column; align-items: flex-start; }
  .tm-cta .pill { width: 100%; justify-content: center; text-align: center; }
}

/* ---- "Your data stays yours": a big band that says how the data is protected ---- */

/* ---- copy never breaks badly: headlines balance their lines, a headline made of two phrases puts each phrase on its own line,
   and paragraphs don't leave a single word on the last line ---- */
h1, h2, h3, .big, .sub { text-wrap: balance; }
p, li, figcaption, summary { text-wrap: pretty; }
.ln { display: block; text-wrap: balance; }
.plan h2 { text-wrap: nowrap; }


/* the page's left edge is the logo's left edge: the logo sits 15 px inside the floating bar, so the bar is the content width plus 30 and
   the headline, the cards and the footer line up with the wordmark. Tablets and phones get a gutter that does the same sum. */
.nav { width: min(1114px, calc(100% - 20px)); }
@media (min-width: 641px) and (max-width: 1143px) { .nav { width: calc(100% - 26px); } }
@media (max-width: 640px) {
  :root { --gutter: 24px; }
  .nav { width: calc(100% - 16px); }
  .nav .wrap { padding-left: 15px; }
}
@media (max-width: 359px) { :root { --gutter: 16px; } .nav { width: calc(100% - 12px); } .nav .wrap { padding-left: 9px; } }
@media (min-width: 960px) { .hero-video { margin: 0 -14px 0 auto; } } /* the phone's right edge lines up with the bar's (the frame image has a transparent margin) */


/* pricing title: two clean lines ("Free forever." / "More when you want it."); on a narrow phone each line may wrap on its own */
.page-head h1:has(.ln) { max-width: none; }
.page-head h1:has(.ln) .ln { display: block; }
@media (min-width: 560px) { .page-head h1:has(.ln) .ln { white-space: nowrap; } }
/* phones: sized so "More when you want it." fits one line; if text is scaled up it wraps instead of overflowing */
@media (max-width: 559px) { .page-head h1:has(.ln) { font-size: clamp(24px, 7.2vw, 34px); } }

/* ---- motion layer (owner, Oct 25): hero light, smooth scroll, toasts, page transitions, hover and press ---- */

/* hero light: a static soft green wash always, the shader canvas fades in over it when it is running */
.hero.v2 { position: relative; isolation: isolate; }
.hero.v2::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(60% 55% at 62% 30%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); }
.hero-shader { image-rendering: pixelated; position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--curve-standard, ease); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 70%, transparent 100%); }
.hero.shader-on .hero-shader { opacity: 1; }

/* Lenis */
html.lenis-on, html.lenis-on body { height: auto; }
html.lenis-on { scroll-behavior: auto !important; }
html.lenis-on.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* toasts */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 20px; background: var(--text); color: var(--bg); font: 500 15px/1.4 var(--body); box-shadow: 0 14px 34px -14px rgba(10, 20, 10, 0.45); cursor: pointer; }
.toast-ic { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #10200a; margin-top: 1px; }
.toast.err .toast-ic { background: #f2b8a8; color: #4a1608; }
.toast-ic svg { width: 14px; height: 14px; }
.toast-tx { min-width: 0; overflow-wrap: anywhere; }

/* hover and press (pointer devices only; the pill and button press is Motion's spring in motion.js) */
@media (hover: hover) {
  .plan { transition: transform 0.35s var(--curve-standard, ease), box-shadow 0.35s var(--curve-standard, ease); }
  .plan:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -24px color-mix(in srgb, var(--accent) 55%, transparent); }
}

/* page transitions: pages fade and drift a little; the floating header stays put */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-group(site-nav) { animation: none; }
::view-transition-old(root) { animation: vt-out 0.18s cubic-bezier(0.3, 0, 0.8, 0.15) both; }
::view-transition-new(root) { animation: vt-in 0.42s cubic-bezier(0.05, 0.7, 0.1, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } .hero-shader { transition: none; } }

/* hero arrival (hero-intro.js): hidden only until it runs; a timer shows everything even if the script never does */
html.intro .hero .hero-video { animation: intro-safe 0s 2.5s forwards; opacity: 0; }
@keyframes intro-safe { to { opacity: 1; } }
.iw { display: inline-block; will-change: transform, opacity; }

/* ---- legibility, cards, phone header (owner, Oct 25) ---- */
@media (min-width: 900px) { .tour-hint { display: none; } }

/* hero: a calm area right behind the copy, and stronger text, so the words read on the shader in both modes */
.hero.v2 .hero-copy { position: relative; isolation: isolate; }
.hero.v2 .hero-copy::before { content: ""; position: absolute; inset: -48px -72px -48px -96px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 82%, transparent) 55%, transparent); }
.hero.v2 .hero-copy .lead { color: color-mix(in srgb, var(--text) 86%, var(--bg)); }
.hero.v2 .pill.secondary { background: color-mix(in srgb, var(--surface) 88%, transparent); border-color: color-mix(in srgb, var(--text) 22%, transparent); }
.hero.v2 .chip.top { background: var(--surface); }


/* the calm area behind the hero copy, refined: a wide, eased falloff (no visible edge) that is strongest right behind the words */
.hero.v2 .hero-copy::before {
  inset: -110px -150px -110px -190px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
    color-mix(in srgb, var(--bg) 80%, transparent) 0%,
    color-mix(in srgb, var(--bg) 74%, transparent) 22%,
    color-mix(in srgb, var(--bg) 58%, transparent) 42%,
    color-mix(in srgb, var(--bg) 34%, transparent) 62%,
    color-mix(in srgb, var(--bg) 12%, transparent) 80%,
    transparent 100%);
}

/* phones: the plan comparison is one table again (owner, Oct 25), not a stack of small cards: feature names down the left, Free, Pro and
   Lifetime across, one hairline between rows, the Pro column tinted */
@media (max-width: 640px) {
  .table.compare { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; margin-top: 20px; }
  .table.compare table { display: table; width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
  .table.compare thead { display: table-header-group; position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .table.compare tbody { display: table-row-group; }
  .table.compare tr { display: table-row; padding: 0; border: 0; border-radius: 0; background: none; }
  .table.compare th, .table.compare td { display: table-cell; vertical-align: middle; }
  .table.compare thead th { padding: 14px 4px 12px; font-size: 14px; font-weight: 600; text-align: center; background: var(--surface); }
  .table.compare thead th:first-child { width: 34%; }
  .table.compare thead th small { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; color: var(--muted); }
  .table.compare thead th.pro { background: color-mix(in srgb, var(--wash) 70%, var(--surface)); }
  .table.compare th[scope="row"] { grid-column: auto; width: auto; padding: 12px 6px 12px 12px; font-size: 13.5px; font-weight: 500; line-height: 1.3; text-align: left; }
  .table.compare td { padding: 12px 4px; border-radius: 0; background: none; font-size: 13.5px; font-weight: 600; line-height: 1.25; text-align: center; }
  .table.compare td::before { content: none; display: none; }
  .table.compare td small { display: block; margin-top: 1px; font-size: 11px; font-weight: 400; color: var(--muted); }
  .table.compare td:nth-child(3) { background: color-mix(in srgb, var(--wash) 70%, var(--surface)); }
  .table.compare tbody tr + tr th, .table.compare tbody tr + tr td { border-top: 1px solid var(--line); }
  .table.compare tbody tr:first-child th, .table.compare tbody tr:first-child td { border-top: 1px solid var(--line); }
  .table.compare .yes { width: 22px; height: 22px; }
  .table.compare .yes svg { width: 13px; height: 13px; }
}

/* success toast: Cubi's face (no badge behind it), blinking once; the error toast keeps its mark */
.toast.ok .toast-ic { background: none; color: var(--brand); width: 28px; height: 28px; }
.toast.ok .toast-ic svg { width: 28px; height: 28px; }
.toast.ok .eye { transform-box: fill-box; transform-origin: center; animation: cubi-blink 0.28s 0.7s ease-in-out 1; }
@keyframes cubi-blink { 50% { transform: scaleY(0.1); } }
@media (prefers-reduced-motion: reduce) { .toast.ok .eye { animation: none; } }

/* page shaders (pricing, about, resources): the same mosaic light, lighter, fading out down the header */
.page-head { position: relative; isolation: isolate; }
.page-shader { image-rendering: pixelated; position: absolute; inset: 0 0 -40px 0; z-index: -1; width: 100%; height: calc(100% + 40px); display: block; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--curve-standard, ease); -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 45%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 45%, transparent 100%); }
.shader-on > .page-shader { opacity: 1; }

/* Focus and the blog index: the same header light, a fixed height that fades out (their containers hold the whole page) */
.timer-page, .blog-head { position: relative; isolation: isolate; }
.timer-page > .page-shader, .blog-head > .page-shader { inset: 0 auto auto 50%; transform: translateX(-50%); width: 100vw; max-width: 100vw; height: 520px; }

/* the dark strip behind the floating header (owner, Oct 25): the light reaches up under it and fades in from the very top, no hard edge */
.page-head > .page-shader { top: -78px; height: calc(100% + 118px); }
.timer-page > .page-shader, .blog-head > .page-shader { top: -78px; height: 598px; }
.page-shader { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 190px, #000 50%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 190px, #000 50%, transparent 100%); }

/* home, shorter (owner, Oct 25): the privacy band is one calm row of three short lines, and the gentle section is tighter */
.gf { padding: 24px 18px; gap: 20px; border-radius: 28px; }
.gf-head .sub { margin-bottom: 16px; }
.gf-row { padding: 12px 14px; }
@media (min-width: 900px) { .gf { padding: 36px 40px; } }

/* hero title, consistent (owner, Oct 25): "A daily planner / you can use" is always two lines and every ending is exactly one, so the same room
   is used whichever ending is showing and nothing below leaves a gap. The type is sized from the column so the longest ending still fits. */
@media (min-width: 0px) {
  .hero.v2 .hero-grid { container-type: inline-size; }
  .hero.v2 .hero-grid > .rotator { max-width: none; font-size: min(var(--fs-display), 10cqw); line-height: 1.04; }
  .hero.v2 .rotator .fixed { max-width: none; white-space: nowrap; text-wrap: nowrap; }
  .hero.v2 .rotator .turn { min-height: 0; padding: 0.06em 0 0.1em; }
  .hero.v2 .rotator .turn span { white-space: nowrap; text-wrap: nowrap; }
}

/* Focus page, in step with the rest of the site (owner, Oct 25): the same title size as the other pages, the green primary button, a calm
   area behind the timer so the ring and digits sit on a quiet field, and a softer header light */
.timer-title { font-size: clamp(36px, 5.6vw, 60px); letter-spacing: -0.03em; line-height: 1.08; }
.timer-lead { color: var(--muted); font-size: var(--fs-body, 18px); max-width: 30em; }
.timer-page .timer { position: relative; isolation: isolate; }
.timer-page .timer::before { content: ""; position: absolute; inset: -60px -120px -40px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 46%, color-mix(in srgb, var(--bg) 86%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 40%, color-mix(in srgb, var(--bg) 36%, transparent) 70%, transparent 100%); }
.timer-actions .btn.cta { background: var(--cta); color: var(--on-cta); border-color: transparent; }
.timer-actions .btn.cta:hover { background: color-mix(in srgb, var(--cta) 88%, white); }
.timer-actions .btn.ghost { background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid color-mix(in srgb, var(--text) 22%, transparent); color: var(--text); }

/* The floating focus timer (focus-widget.js): glass card with a grip, phase and time, a progress bar, Pause / Resume and a link to /focus */
.fpip { position: fixed; z-index: 70; display: flex; align-items: center; gap: 4px; width: 280px; padding: 8px 8px 8px 2px; border-radius: 22px; background: rgba(12, 16, 11, 0.72); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border: 1px solid color-mix(in srgb, var(--brand) 28%, rgba(255, 255, 255, 0.1)); box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.7); color: var(--text); touch-action: none; }
.fpip[hidden] { display: none; }
.fpip.dragging { cursor: grabbing; box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.8); }
.fpip-grip { flex: none; display: grid; place-items: center; width: 28px; height: 48px; padding: 0; border: 0; background: none; color: var(--muted); cursor: grab; touch-action: none; border-radius: 12px; }
.fpip-grip svg { width: 16px; height: 16px; }
.fpip-grip:focus-visible, .fpip-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.fpip-main { flex: 1; min-width: 0; }
.fpip-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fpip-phase { font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--muted); white-space: nowrap; }
.fpip-time { font: 500 22px/1.1 var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
.fpip-bar { height: 4px; margin-top: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.fpip-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left center; transform: scaleX(0); transition: transform 0.5s linear; }
.fpip.is-break .fpip-bar i { background: var(--brand); }
.fpip.is-done .fpip-time { color: var(--accent); }
.fpip-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); cursor: pointer; text-decoration: none; }
.fpip-btn svg { width: 18px; height: 18px; }
.fpip-toggle { background: var(--cta); color: var(--on-cta); }
@media (hover: hover) { .fpip-btn:hover { background: color-mix(in srgb, var(--text) 18%, transparent); } .fpip-toggle:hover { background: color-mix(in srgb, var(--cta) 88%, white); } }
@media (prefers-reduced-motion: reduce) { .fpip-bar i { transition: none; } }
@media (max-width: 380px) { .fpip { width: calc(100vw - 16px); } }

/* About: the story sits on a soft dark panel so it reads over the shader */
.about > div:not(.about-cubi) { position: relative; isolation: isolate; }
.about > div:not(.about-cubi)::before { content: ""; position: absolute; inset: -28px -32px; z-index: -1; border-radius: 28px; background: radial-gradient(ellipse at 40% 50%, rgba(10,14,9,.9), rgba(10,14,9,.78) 70%, rgba(10,14,9,.5)); }
.about .sub { color: #d4dccf; }
/* Blog: same title voice as the other pages */
.blog-head h1 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; font-size: clamp(36px, 5.6vw, 60px); text-wrap: balance; }
.blog-head h1 .ln { display: block; }
@media (min-width: 560px) { .blog-head h1 .ln { white-space: nowrap; } }

/* Pricing: the toggle, then Free, Pro and Lifetime arrive one after another */
@keyframes plan-in { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: translateY(var(--lift, 0px)); } }
@media (prefers-reduced-motion: no-preference) {
  .billing { animation: plan-in .6s cubic-bezier(.2,.8,.2,1) .05s backwards; }
  .plans .plan:not(.reveal) { animation: plan-in .75s cubic-bezier(.2,.8,.2,1) backwards; }
  .plans .plan:nth-child(1):not(.reveal) { animation-delay: .2s; }
  .plans .plan:nth-child(2):not(.reveal) { animation-delay: .38s; }
  .plans .plan:nth-child(3):not(.reveal) { animation-delay: .56s; }
  /* Pro keeps its travelling outline while it arrives, and lands on its lift instead of jumping to it */
  .plans .plan.pro:not(.reveal) { animation: plan-in .75s cubic-bezier(.2,.8,.2,1) .38s backwards, ring 6s linear infinite; }
}
@media (min-width: 900px) { .plans .plan.pro { --lift: -10px; } }
/* Text in front of a shader: no glow on the letters; a soft, low dark wash behind the block does the work */
.page-head.shader-on .wrap, .blog-head.shader-on { position: relative; isolation: isolate; }
.page-head.shader-on .wrap:not(.about)::before, .blog-head.shader-on::before { content: ""; position: absolute; inset: -20px -4%; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 35% 50%, rgba(10,14,9,.3), rgba(10,14,9,.14) 55%, transparent 80%); }
.blog-head.shader-on::before { background: radial-gradient(ellipse at 30% 50%, rgba(10,14,9,.3), rgba(10,14,9,.14) 55%, transparent 80%); }


/* every page title speaks the same way (the hero's sentence is its own thing) */
h1:not(.hero h1) { font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
/* footer and logo links: a finger-sized target without changing how they look */
footer.site a { display: inline-block; padding-block: 9px; }
footer.site a.store-badge { display: inline-flex; align-items: center; padding-block: 4px; }
.nav .brand, .nav a.logo, header a[aria-label="Goalify home"] { display: inline-flex; align-items: center; min-height: 44px; }

/* the shader is always behind: whatever follows a shaded head sits above its canvas */
.page-head ~ *, .blog-head ~ *, .timer-page ~ * { position: relative; z-index: 1; }

/* home section titles: long, keyword-first titles stay on two or three calm lines */
#how h2.big, #features h2.big, #guilt-free h2.big { max-width: 22ch; font-size: clamp(28px, 4.1vw, 46px); line-height: 1.08; text-wrap: balance; }
#how h2.big .ln, #guilt-free h2.big .ln { white-space: normal; }
#how h2.big, #features h2.big { margin-inline: auto; }

/* "and a few more things": round icons with a two-part label (bold verb, light rest), soft green glass, never a card grid */
.orbs-title { text-align: center; margin: 0 auto; font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.03em; }
.orbs-title span { display: block; font-weight: 300; color: var(--muted); }
.orbs-title b { display: block; font-weight: 700; }
.orbs { list-style: none; padding: 0; margin: clamp(32px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 12px; }
@media (min-width: 900px) { .orbs { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.orbs li { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.15; font-size: clamp(16px, 1.6vw, 20px); }
.orbs li b { margin-top: 14px; font-weight: 700; }
.orbs li > span:not(.orb) { color: var(--muted); font-weight: 300; }
.orb { position: relative; display: grid; place-items: center; width: clamp(84px, 11vw, 132px); aspect-ratio: 1; border-radius: 50%; color: var(--text);
  background: radial-gradient(circle at 30% 24%, rgba(255,255,255,.22), transparent 42%), radial-gradient(circle at 72% 78%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%), radial-gradient(circle at 20% 80%, rgba(120,170,90,.35), transparent 55%), #1d2a18;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -10px 24px rgba(0,0,0,.35), 0 18px 30px -18px rgba(0,0,0,.8); }
.orb svg { width: 40%; height: 40%; }
@media (prefers-reduced-motion: no-preference) {
  .orb { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
  .orbs li:hover .orb { transform: translateY(-4px) rotate(-4deg); }
}
.orb svg.cubi { width: 52%; height: 52%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }

/* ===== Hero, Oct 25 (owner: "typography has to be big"): one full-width headline that owns the screen; under it the
   supporting line, one main button and a quiet proof line on the left, the phone on the right. Dark behind the words,
   the shader's glow behind the phone. ===== */
.hero.v2 .hero-copy .lead { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.5; max-width: 34ch; color: color-mix(in srgb, var(--text) 92%, var(--bg)); }
.hero.v2 .pill-row { align-items: center; gap: 12px 24px; }
.hero.v2 .pill.primary { min-height: 58px; padding: 0 32px; font-size: 18px; }
.hero-link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; font-size: 17px; color: var(--text); text-decoration: none; }
.hero-link svg { width: 18px; height: 18px; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.hero-link:hover svg { transform: translateX(4px); }
.hero-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.hero-proof { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 14.5px; color: var(--muted); }
.hero-proof .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); flex: none; }
.hero.v2 .hero-grid > .rotator { line-height: .95; letter-spacing: -0.04em; }

/* phones: the headline fills the width; the second line may break once, evenly */
@media (max-width: 899px) {
  .hero.v2 .hero-grid > .rotator { font-size: 12cqw; }
  .hero.v2 .rotator .turn span { white-space: normal; text-wrap: balance; }
  .hero.v2 .pill-row { flex-direction: column; align-items: stretch; }
  .hero.v2 .pill-row .hero-link { justify-content: center; }
}

/* desktop: centred, like a poster. The headline first and huge, the line, the button and the proof under it, then the
   phone rising into view below with the shader glowing behind it */
@media (min-width: 900px) {
  .hero.v2 .wrap.hero-grid { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero.v2 .hero-grid > .rotator { font-size: min(150px, 10.4cqw); margin: 0; text-align: center; align-self: stretch; }
  .hero.v2 .hero-grid > .rotator .fixed { display: block; margin-inline: auto; text-align: center; }
  .hero.v2 .hero-grid .hero-copy { align-items: center; margin-top: clamp(6px, 1vw, 14px); }
  .hero.v2 .hero-grid .hero-copy::before { display: none; }
  .hero.v2 .hero-grid .hero-copy .lead { margin: 0; max-width: 44ch; font-size: clamp(19px, 1.6vw, 24px); text-wrap: balance; }
  .hero.v2 .hero-grid > .rotator .turn { padding-bottom: 0.16em; overflow: visible; }
  .hero.v2 .hero-grid .pill-row { margin-top: 30px; justify-content: center; }
  .hero.v2 .hero-grid .hero-proof { justify-content: center; }
  .hero.v2 .hero-grid .hero-video { width: clamp(300px, 26vw, 380px); margin: clamp(40px, 5vw, 72px) auto 0; position: relative; }
  .hero.v2 .hero-grid::before { content: ""; position: absolute; inset: -140px -14vw auto; height: 760px; z-index: -1; pointer-events: none;
    background: radial-gradient(60% 55% at 50% 40%, color-mix(in srgb, var(--bg) 80%, transparent), color-mix(in srgb, var(--bg) 50%, transparent) 50%, transparent 80%); }
  .hero.v2 .hero-grid .hero-video::before { content: ""; position: absolute; inset: -14% -60%; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 32%, transparent), transparent); filter: blur(12px); }
}
.hero.v2 .rotator em { color: inherit; } /* one colour for the whole headline (owner, Oct 25) */

/* the copy's own wash used to sit over the headline on phones (it reached up past the block); one wash behind the whole hero instead */
.hero.v2 .hero-copy::before { display: none; }
@media (max-width: 899px) {
  .hero.v2 .wrap.hero-grid { position: relative; isolation: isolate; }
  .hero.v2 .wrap.hero-grid::before { content: ""; position: absolute; inset: -60px -24px auto; height: 620px; z-index: -1; pointer-events: none;
    background: radial-gradient(90% 60% at 40% 40%, color-mix(in srgb, var(--bg) 72%, transparent), color-mix(in srgb, var(--bg) 40%, transparent) 55%, transparent 85%); }
}

/* Focus: the wash behind the timer never makes the page wider than the screen (it pushed the header off on phones) */
.timer-page { overflow-x: clip; }
@media (max-width: 640px) { .timer-page .timer::before { inset: -40px -16px -24px; } }

/* cards and showcases: one rhythm on phones. Every showcase fills its card with the same inner padding; the gentle
   setup card's rows sit on the same inset as its heading */
@media (max-width: 899px) {
  .beat .frag { width: 100%; justify-self: stretch; align-self: stretch; box-sizing: border-box; padding: 24px 20px; margin: 0; }
  .beat .frag.frag-do { padding: 24px 20px; }
  #guilt-free .gf { padding-bottom: 20px; }
  #guilt-free .gf ul { margin-inline: 0; padding-inline: 20px; box-sizing: border-box; }
  #guilt-free .gf li { margin-inline: 0; }
}

/* ===== Phones, Oct 25: the same feel as the desktop. A big centred headline, a slimmer header, one title size on
   every page, nothing wider than the screen, an even rhythm between sections. ===== */
html, body { overflow-x: clip; }
@media (max-width: 899px) {
  /* the hero: centred like the desktop, the headline flows as one balanced block and fills the width */
  .hero.v2 .wrap.hero-grid { align-items: center; text-align: center; }
  .hero.v2 .hero-grid > .rotator { font-size: clamp(40px, 12.2vw, 64px); line-height: .98; letter-spacing: -0.04em; text-align: center; display: block; text-wrap: balance; max-width: none; margin-inline: auto; }
  .hero.v2 .hero-grid > .rotator .fixed, .hero.v2 .hero-grid > .rotator .turn, .hero.v2 .hero-grid > .rotator .turn span { display: inline; white-space: normal; padding: 0; min-height: 0; overflow: visible; }
  .hero.v2 .hero-copy { align-items: center; text-align: center; margin-top: 18px; }
  .hero.v2 .hero-copy .lead { margin-inline: auto; font-size: 17px; }
  .hero-proof { justify-content: center; flex-wrap: wrap; text-align: center; row-gap: 4px; }
  .hero.v2 .hero-grid .hero-video { margin-top: 44px; }
  /* even rhythm between sections */
  .block { padding-top: 64px; padding-bottom: 64px; }
}
@media (max-width: 640px) {
  /* a slimmer header */
  .nav { top: max(10px, env(safe-area-inset-top)); }
  .nav .wrap { height: 48px; }
  .brand .wordmark { height: 26px; }
  /* one title size for every page */
  h1:not(.hero h1), main .page-head h1:has(.ln), main .blog-head h1, main .timer-title, main .article h1 { font-size: clamp(32px, 9.6vw, 42px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
  main .page-head h1:has(.ln) .ln, main .blog-head h1 .ln { display: inline; white-space: normal; }
}

/* ===== Gentle setup, Oct 25 (owner): one switch, off by default. The stage shows the regular setup scattered in depth:
   flames, points, a countdown and number clutter, the ones further back smaller and blurred. Turn it on and the numbers
   shrink away and every flame and bolt becomes a filled check mark in the brand green. The pieces drift with the cursor. ===== */
#guilt-free .gf.gf2 { display: grid; gap: 28px; padding: 28px 22px 22px; align-items: center; }
@media (min-width: 900px) { #guilt-free .gf.gf2 { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; padding: 44px; } }
.gf2 .gf-head .sub { max-width: 34ch; }
.gf-state { margin: 14px 0 0; font-size: 15px; color: var(--muted); min-height: 1.5em; }
.gf-stage { position: relative; height: clamp(300px, 34vw, 420px); border-radius: 28px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--accent) 12%, var(--bg)), var(--bg) 70%);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border)); --mx: 0; --my: 0; }
.gi { position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%) translate(calc(var(--mx) * var(--z) * 26px), calc(var(--my) * var(--z) * 18px)) scale(calc(0.62 + 0.38 * var(--z)));
  filter: blur(calc((1 - var(--z)) * 6px)); opacity: calc(0.4 + 0.6 * var(--z));
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: transform; }
.gi-in { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.8); transition: padding 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), gap 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.5s ease; }
.gi-only .gi-in, .gi-bare .gi-in { padding: 10px 16px; }
.gi-bare .gi-in { padding: 10px; }
.gi-num { font: 600 18px/1 var(--display); letter-spacing: -0.01em; color: var(--text); display: inline-block; max-width: 9em; overflow: hidden;
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: calc(var(--i) * 35ms); }
.gi-ic { position: relative; width: 30px; height: 30px; flex: none; display: grid; place-items: center; }
.gi-ic svg { grid-area: 1 / 1; width: 100%; height: 100%; transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.3, 1.4, 0.5, 1); transition-delay: calc(var(--i) * 35ms); }
.gi-flame .gi-reg { color: #f39a4b; }
.gi-bolt .gi-reg { color: #f4cc4f; }
.gi-soft { opacity: 0; transform: scale(0.4); }
.gi-soft circle { fill: var(--accent); }
.gi-soft path { fill: none; stroke: var(--on-cta, #0f140c); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gi-ring circle { fill: none; stroke: color-mix(in srgb, var(--text) 18%, transparent); stroke-width: 4; }
.gi-ring .arc { stroke: #f39a4b; stroke-dasharray: 100; stroke-dashoffset: 18; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke 0.5s ease; }
/* gentle: the numbers shrink away, the icons swap for check marks, the countdown keeps only its quiet ring */
.gf-stage.soft .gi-num { opacity: 0; transform: scale(0.6); max-width: 0; }
.gf-stage.soft .gi-in { gap: 0; padding: 10px; }
.gf-stage.soft .gi-only { opacity: 0; transform: translate(-50%, -50%) translate(calc(var(--mx) * var(--z) * 26px), calc(var(--my) * var(--z) * 18px)) scale(0.4);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease; transition-delay: calc(var(--i) * 35ms); }
.gi-only { transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease; }
.gf-stage.soft .gi-reg { opacity: 0; transform: scale(0.4); }
.gf-stage.soft .gi-soft { opacity: 1; transform: none; transition-delay: calc(120ms + var(--i) * 35ms); }
.gf-stage.soft .gi-ring .arc { stroke: var(--accent); }
@media (prefers-reduced-motion: reduce) { .gi, .gi-num, .gi-ic svg, .gi-in { transition-duration: 0.01s !important; } }

/* how it works: the showcase sits at the foot of its card, so any spare room falls between the words and the picture */
@media (max-width: 899px) { .beat > .frag { margin-top: auto; } }
/* phones: the header bar is as tall as the main button (owner, Oct 25) */
@media (max-width: 640px) { .nav .wrap { height: 58px; } .brand .wordmark { height: 30px; } }
#how h2.big, #features h2.big { text-align: center; }
/* a nudge beside the switch until it has been tried once */
.gf-hint { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; vertical-align: middle; font-size: 14.5px; font-weight: 600; color: var(--accent); transition: opacity .4s ease, transform .4s ease; }
.gf-hint svg { width: 16px; height: 16px; animation: gf-nudge 1.6s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes gf-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
.gf2.tried .gf-hint { opacity: 0; transform: translateX(6px); pointer-events: none; }
@media (hover: hover) { .gf-hint-tx { font-size: 0; } .gf-hint-tx::after { content: "Click to see it"; font-size: 14.5px; } }
@media (prefers-reduced-motion: reduce) { .gf-hint svg { animation: none; } }
@media (max-width: 640px) { .gf-hint { display: flex; margin: 10px 0 0 24px; } .gf-hint svg { rotate: 90deg; } }
@media (max-width: 640px) { .to-top { display: grid; } } /* back to top on phones too (owner, Oct 25) */
/* a taller header everywhere (owner, Oct 25) */
.nav .wrap { height: 66px; }
.brand .wordmark { height: 34px; }
@media (max-width: 640px) { .nav .wrap { height: 62px; } .brand .wordmark { height: 31px; } }
@media (max-width: 899px) { .beats .beat > .frag { margin-top: auto; justify-content: center; } }

/* About, a story (owner, Oct 31): a title, a contents list beside the chapters, and sketches between them when they come.
   Each .cs-slot holds its place until the real image (an <img> inside it) arrives. */
.cs-head .wrap { text-align: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(28px, 4vw, 44px); }
.cs-head h1 { margin: 0 auto 14px; }
.cs-head .sub { max-width: 34em; margin: 0 auto; color: var(--muted); }
.cs { position: relative; z-index: 1; }
.cs-fig { margin: 0; }
.cs-fig figcaption { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.cs-slot { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 24px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--text) 18%, transparent); color: var(--muted); font-size: 14px; }
.cs-slot.cs-wide, .cs-hero .cs-slot { aspect-ratio: 16 / 9; }
.cs-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-slot:has(img) { border: 0; }
.cs-slot:has(img) > span { display: none; }
.cs-hero { max-width: 1040px; margin: 0 auto; }
.cs-body { max-width: 1040px; margin: clamp(40px, 6vw, 72px) auto 0; padding-bottom: clamp(56px, 8vw, 96px); }
.cs-body .toc { top: 110px; }
.cs-story > section { scroll-margin-top: 100px; }
.cs-story > section + section { margin-top: clamp(48px, 7vw, 80px); }
.cs-story h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; }
.cs-story p { color: var(--muted); max-width: 640px; margin: 0 0 14px; }
.cs-story p a:not(.btn) { color: var(--accent); }
.cs-story .cs-fig { margin-top: 28px; }
.cs-pair { display: grid; gap: 16px; margin-top: 28px; }
.cs-pair .cs-fig { margin-top: 0; }
@media (min-width: 640px) { .cs-pair { grid-template-columns: 1fr 1fr; } }
.cs-story .timeline { margin-top: 28px; }
.cs-story .btn { margin-top: 10px; }
@media (max-width: 640px) { .cs-slot { border-radius: 18px; } }

/* ===================================================================================================
   Phase 1 (Nov 19, 2026, docs/WEBSITE_AUDIT.md): one type scale for every page, one section rhythm, the
   official store badges and the phone get bar. Last in the file on purpose: it wins over the older layers.
   =================================================================================================== */
:root {
  /* seven sizes, nothing else: display, h2, h3, lead, body, small, label */
  --fs-display: clamp(44px, 6.4vw, 88px);
  --fs-h2: clamp(32px, 4.2vw, 54px);
  --fs-h3: clamp(26px, 2.6vw, 36px);
  --fs-lead: clamp(18px, 1.5vw, 20px);
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-label: 13px;
  /* half the gap between two sections (Nov 22: about 240px between sections on desktop, like Tiimo) */
  --section: clamp(64px, 8.4vw, 120px);
}
body { font-size: var(--fs-body); font-optical-sizing: auto; text-rendering: optimizeLegibility; }

/* headings: General Sans (Nov 20, owner: not Nunito, Geist or Manrope). Nov 22: big headings at 500 with open line
   height and light tracking (they were 600, 0.95-1.04 and -0.04em, which read as crammed); small headings stay 600 */
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; }
.hero.v2 .hero-grid > .rotator, .hero.v2 .rotator {
  font-size: var(--fs-display); font-weight: 500; line-height: 1.04; letter-spacing: -0.03em; max-width: 14ch; margin-inline: auto;
}
main h1:not(.rotator), main .page-head h1:has(.ln), main .blog-head h1, main .timer-title, main .article h1 {
  font-size: clamp(40px, 5.4vw, 64px); font-weight: 500; line-height: 1.06; letter-spacing: -0.025em;
}
main h2.big, #how h2.big, #features h2.big, #guilt-free h2.big, .join-end h2, .cta h2, .orbs-title {
  font-size: var(--fs-h2); font-weight: 500; line-height: 1.08; letter-spacing: -0.022em;
}
.beat-text h3, .tour-cap b, .cs-story h2 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.12; letter-spacing: -0.018em; }
.prose h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.prose h3, .card h3, .gentle-grid h3, .faq summary { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.hero .lead, .hero.v2 .lead, .hero.v2 .hero-copy .lead, .hero.v2 .hero-grid .hero-copy .lead,
.sub, .legal-head p, .blog-head p, .tour-cap span, .beat-text p, .timer-lead {
  font-size: var(--fs-lead); line-height: 1.55;
}
.hero.v2 .hero-copy .lead { max-width: 36ch; margin-inline: auto; color: var(--muted); }
.plan .price b { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }

/* one rhythm between sections */
.block { padding-top: var(--section); padding-bottom: var(--section); }

/* ---- official store badges (Apple's and Google's artwork, unchanged; the Play one trimmed of its empty margin) ---- */
.badges { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; }
.badge { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; border-radius: 10px; text-decoration: none; }
.badge img { display: block; width: auto; height: 54px; }
.badges.small .badge img { height: 40px; }
a.badge { transition: transform 0.3s var(--curve-standard), filter 0.3s var(--curve-standard); }
a.badge:hover { transform: translateY(-2px); filter: brightness(1.12); }
a.badge:active { transform: scale(0.97); }
.badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.badge.soon { cursor: default; }
.badge.soon small { font: 600 var(--fs-label)/1 var(--body); letter-spacing: 0.02em; color: var(--muted); }
footer.site .badges { margin-top: 16px; }
.a11y-contrast .badge img { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 8px; }

/* hero and end of page: the badges */
.get { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 28px; margin-top: var(--s4); }
.get .badges { justify-content: center; }
/* Android phones: the App Store badge is only noise */
html.on-android .badge.soon { display: none; }

/* ---- the get bar: phones only, after the hero ---- */
.getbar {
  position: fixed; z-index: 36; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px;
  border-radius: 20px; border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  opacity: 0; transform: translateY(calc(100% + 24px)); pointer-events: none;
  transition: transform 0.5s var(--curve-decelerate), opacity 0.3s var(--curve-standard);
}
.getbar.on { opacity: 1; transform: none; pointer-events: auto; }
.getbar-name b { display: block; font: 600 18px/1.1 var(--display); letter-spacing: -0.02em; }
.getbar-name small { display: block; margin-top: 2px; font-size: var(--fs-label); color: var(--muted); }
.getbar .badge img { height: 44px; }
html.getbar-on .a11y { bottom: 92px; }
html.getbar-on .to-top { bottom: 156px; }
.a11y, .to-top { transition: bottom 0.4s var(--curve-decelerate); }
@media (min-width: 900px) { .getbar { display: none; } }
@media (prefers-reduced-motion: reduce) { .getbar { transform: none; transition: opacity 0.2s linear; } }
.tour-more { margin: var(--s4) auto 0; text-align: center; font-size: var(--fs-small); color: var(--muted); }

/* pricing: on phones Pro comes first, so the plan most people pick is on the first screen */
@media (max-width: 899px) { .plans .plan.pro { order: -1; } }
.plans-note { margin: var(--s4) auto 0; text-align: center; font-size: var(--fs-small); color: var(--muted); }

/* focus timer: the install card after a finished round */
.round-get { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 20px; margin: var(--s4) auto 0; padding: 16px 20px; max-width: 560px; border-radius: 22px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); text-align: left; }
.round-get[hidden] { display: none; }
.round-get p { margin: 0; flex: 1 1 220px; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.round-get p b { color: var(--text); }
.round-get .badge img { height: 46px; }
.round-get.in { animation: round-get-in 0.6s var(--curve-decelerate) both; }
@keyframes round-get-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .round-get.in { animation: none; } }
/* the gentle-setup heading sits in a half-width column: a step smaller, so each line stays whole */
#guilt-free h2.big { max-width: none; font-size: clamp(32px, 3.4vw, 46px); }
