/* ==========================================================================
   Overview: marketing site styles
   One file, no build step. Sections follow the order of index.html.
   Brand rules live in CLAUDE.md. Colours come from the tokens below only.
   ========================================================================== */

/* ---------- Fonts (self-hosted Sora) ---------- */
@font-face { font-family: Sora; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/sora-400.woff2) format("woff2"); }
@font-face { font-family: Sora; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/sora-500.woff2) format("woff2"); }
@font-face { font-family: Sora; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/sora-600.woff2) format("woff2"); }
/* Latin Extended (Polish ą ę ł ś ż and the like): Google Fonts' latin-ext subset of Sora 2.000, the version of the three
   above, one variable file a browser fetches only for a page that uses those letters. Declared once per weight: Chrome
   combines files by unicode-range only when their weights match, so a single 400–600 rule replaced the fonts above. */
@font-face { font-family: Sora; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/sora-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Sora; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/sora-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Sora; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/sora-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  /* Brand constants (same in both themes) */
  --signal: #FF5A1F;          /* Today label, Scheduled for line, accents. About 5% of a screen. Never small text on light */
  --on-signal: #0B0B0C;       /* Ink: text on Signal and on Ember */
  --ember-start: #FFA23F;     /* gradient: mark, app icon, main button, progress bar */
  --ember-end: #F0381C;
  --ember: linear-gradient(135deg, var(--ember-start), var(--ember-end));

  /* Theme: light */
  --bg: #F4F4F1;              /* base section */
  --tint: #EBEBE6;            /* alternate section */
  --card: #FFFFFF;
  --fg: #0B0B0C;              /* text */
  --mut: #5C5C57;             /* secondary text */
  --line: #DCDCD6;
  --link: var(--fg);          /* links and the focus outline: Ink in light, Paper in dark */

  /* Type scale (brand guidelines v1.1). Desktop sizes; the mobile sizes are set at ≤ 640px below */
  --display: 5.75rem;         /* 600, −0.05em */
  --heading: 3.25rem;         /* 600, −0.04em */
  --title: 1.25rem;           /* 600, −0.02em */
  --body: 1.125rem;           /* 400 */
  --label: 0.875rem;          /* 500, +0.02em */

  /* Product mock-ups */
  --app: #FCFCFB;             /* app body and grid cells */
  --surface: #FFFFFF;         /* app header, column heads, tasks */
  --cell: #F4F4F1;            /* today row, collapsed column */
  --appline: #DCDCD6;
  --task: #FFFFFF;
  --taskline: #DCDCD6;
  --chk: #B9B9B3;             /* checkbox border */
  --sel: #FFFFFF;             /* selected tab */
  --track: #EBEBE6;           /* tab track, count badges */
  --shadow: rgba(11, 11, 12, 0.08);

  /* Project colours used in the mock-ups */
  --p-job: #5B7CFA;
  --p-pod: #E0B340;
  --p-home: #3DBE8B;
  --p-fam: #E46FA0;
  --p-cli: #38B6DB;

  /* Confetti pieces, the app's own swatches (the mock-up shows the app as it is) */
  --swatch-0: oklch(0.68 0.13 250); --swatch-1: oklch(0.68 0.13 155); --swatch-2: oklch(0.68 0.13 60); --swatch-3: oklch(0.68 0.13 20);
  --swatch-4: oklch(0.68 0.13 305); --swatch-5: oklch(0.68 0.13 200); --swatch-6: oklch(0.68 0.13 100); --swatch-7: oklch(0.68 0.13 340);

  /* Product mock-ups use Sora so they look the same on every device (see the brand guidelines) */
  --font-ui: Sora, system-ui, sans-serif;

  /* Layout */
  --container: 1160px;
  --gutter: 24px;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B0C;
    --tint: #141416;
    --card: #1C1C1F;
    --fg: #F4F4F1;
    --mut: #A3A39E;
    --line: #2E2E33;
    --app: #0B0B0C;
    --surface: #1C1C1F;
    --cell: #141416;
    --appline: #2E2E33;
    --task: #1C1C1F;
    --taskline: #2E2E33;
    --chk: #55555B;
    --sel: #0B0B0C;
    --track: #2E2E33;
    --shadow: rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 640px) {
  :root {
    --display: 2.75rem;
    --heading: 2rem;
    --title: 1.125rem;
    --body: 1rem;
  }
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 128px; overflow-x: clip; }   /* clears a header on two rows */
/* Japanese breaks a line between phrases where the browser can tell them (auto-phrase) and by its strict rules (no line
   starts with a small kana or a closing bracket); Korean breaks
   between its words, which it spaces as English does, never inside one (the app's rules, overview-app application.css). */
:lang(ja) { line-break: strict; word-break: auto-phrase; }
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
/* Chinese breaks a line between any two characters, as it writes no spaces, but strictly: no line starts with a comma, a
   full stop or a closing bracket (the app's rule, Stack C2). Sora has no Chinese letters, so they come from the system's
   font, as Japanese and Korean do. */
:lang(zh) { line-break: strict; }
/* Sora has no Greek or Cyrillic letters, so a Greek, Bulgarian or Ukrainian page would set its words in the system's font
   and its digits and Latin names in Sora, side by side. The whole page takes the system's font instead (the owner's call,
   2026-11-16; Ukrainian since Stack C3), mock-ups and keys included. Icelandic's letters (þ, ð, æ) are in Sora's. */
:lang(el), :lang(bg), :lang(uk) { --font-ui: system-ui, sans-serif; }
body:lang(el), body:lang(bg), body:lang(uk), :lang(el) .keys kbd, :lang(bg) .keys kbd, :lang(uk) .keys kbd { font-family: system-ui, sans-serif; }
/* Sora has no Thai letters, and none of Vietnamese's own (ơ, ư and the stacked marks, U+1EA0–1EF9; checked against
   src/fonts on 2026-11-19), so a Vietnamese word would mix Sora's letters with the system's. A Thai or Vietnamese page
   takes the system's font, as Greek and Bulgarian do. Thai has no spaces between words: the browser breaks its lines by
   its own dictionary, so it gets no word-break rule (keep-all would never break a Thai sentence). */
:lang(th), :lang(vi) { --font-ui: system-ui, sans-serif; }
body:lang(th), body:lang(vi), :lang(th) .keys kbd, :lang(vi) .keys kbd { font-family: system-ui, sans-serif; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: Sora, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, ol { margin: 0; }
h2, h3 { text-wrap: balance; }                         /* no one-word last lines */
p, li, summary { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.88; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
/* Links in copy and the footer: link colour, underlined 1px, 3px on hover. Navigation and the logo stay plain. */
p a:not(.btn), details a, .site-footer__inner a:not(.site-footer__logo, .social) { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p a:not(.btn):hover, details a:hover, .site-footer__inner a:not(.site-footer__logo, .social):hover { text-decoration-thickness: 3px; opacity: 1; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Logo and mark ---------- */
.logo { display: block; color: var(--fg); }       /* lockup is 5571 × 778 units */
.logo--header { width: 152px; height: 21px; }
.logo--footer { width: 140px; height: 20px; }  /* the lockup's minimum width is 120px */
.mark { display: block; flex: none; }
.mark--18 { width: 18px; height: 18px; }
.mark--22 { width: 22px; height: 22px; }
.mark--56 { width: 56px; height: 56px; }

/* ---------- Layout ---------- */
.section { padding: 112px var(--gutter); background: var(--bg); }
.section--tint { background: var(--tint); }
.container { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--label); font-weight: 500; letter-spacing: 0.02em; color: var(--mut); }
.eyebrow::before { content: ""; width: 14px; height: 4px; border-radius: 2px; background: var(--signal); }

.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-head--center { align-items: center; text-align: center; }
.section-head h2, .final-cta h2, .not-found h1 { text-wrap: balance; font-weight: 600; font-size: clamp(2rem, 4.4vw, var(--heading)); line-height: 1.06; letter-spacing: -0.04em; }
.section-head h2 { max-width: 720px; }
.section-head p { font-size: var(--body); line-height: 1.6; color: var(--mut); max-width: 600px; }

/* Bullet list: the dash made round, a small Signal dot */
.bullets { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; text-wrap: balance; }
.bullets li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 8.5px; border-radius: 50%; background: var(--signal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-sizing: border-box; min-height: 46px; padding: 0 18px; border-radius: 12px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--lg { min-height: 54px; padding: 0 24px; font-size: 17px; }
.btn--primary { background: var(--ember); color: var(--on-signal); }
.btn--primary:hover { filter: brightness(0.82); opacity: 1; }
.btn--secondary { border: 1px solid var(--line); background: var(--card); color: var(--fg); font-weight: 500; }
.btn--secondary:hover { background: var(--tint); opacity: 1; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0 var(--gutter); }
/* Where the trial button doesn't fit beside the logo and the nav at one line (a tablet in Finnish, a phone in Filipino),
   Sign in and the button take a row of their own. */
.site-header__inner { max-width: var(--container); margin: 0 auto; min-height: var(--header-h); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; }
.site-header__logo { display: flex; padding: 10px 0; }
.site-nav { display: flex; gap: 26px; flex-grow: 1; font-size: 15px; color: var(--mut); }
.site-header__actions { display: flex; gap: 20px; align-items: center; margin-left: auto; }
.site-header__signin { font-size: 15px; color: var(--mut); white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { padding: 96px var(--gutter) 0; background: var(--bg); overflow: hidden; }
.hero__inner { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
/* The mark sits in the line, before the first word, so a line too long for a phone wraps into two even, centred lines
   with the mark leading the first, and the pill keeps the same space at both ends. */
.pill { display: inline-block; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: 13.5px; line-height: 1.5; color: var(--mut); text-wrap: balance; }
.pill .mark { display: inline-block; vertical-align: -4px; margin-right: 10px; }
.pill:focus-visible { border-radius: 999px; }   /* keeps its shape against a:focus-visible's 6px */
.hero h1 { text-wrap: balance; font-weight: 600; font-size: clamp(2.75rem, 7.4vw, var(--display)); line-height: 0.98; letter-spacing: -0.05em; max-width: 900px; }
.hero__lede { font-size: var(--body); line-height: 1.55; color: var(--mut); max-width: 640px; text-wrap: balance; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__note { font-size: 14px; color: var(--mut); }
.hero__visual { max-width: 1240px; margin: 64px auto 0; padding-bottom: 80px; overflow: hidden; border-radius: 16px 16px 0 0; }
.hero__visual > .app { min-width: 1100px; }

/* ---------- Problem cards ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 18px; }
.card { flex: 1 1 260px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card__icon { width: 40px; height: 40px; border-radius: 11px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.card__icon svg { width: 20px; height: 20px; }
.card h3, .step h3, .tile h3, .plan__head h3, .faq__list summary { font-size: var(--title); font-weight: 600; letter-spacing: -0.02em; }
.card p, .step p { font-size: var(--body); line-height: 1.6; color: var(--mut); }

/* ---------- How it works ---------- */
.annotated-wrap { overflow: hidden; padding-left: 44px; }   /* a gutter for the Days down label */
.annotated { position: relative; min-width: 900px; padding-top: 26px; }
.annotated__label {
  position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 13px; font-weight: 600; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; box-shadow: 0 6px 16px -8px var(--shadow);
}
.annotated__label svg { width: 16px; height: 16px; }
.annotated__label--across { top: 0; left: 120px; }
.annotated__label--down { top: 130px; right: calc(100% - 10px); padding: 12px 6px; writing-mode: vertical-rl; }   /* standing tall, level with Today */
@media (min-width: 768px) { .annotated { min-width: 0; } }
@media (min-width: 1024px) {
  .annotated-wrap { padding-left: 128px; }
  .annotated__label--down { top: 140px; padding: 6px 12px; writing-mode: horizontal-tb; }
}

.steps { display: flex; flex-wrap: wrap; gap: 28px; padding: 0; list-style: none; counter-reset: step; }
.step { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); counter-increment: step; }
.step::before { content: "0" counter(step); font-size: var(--label); font-weight: 500; letter-spacing: 0.02em; color: var(--fg); }

/* ---------- Split sections (text + visual) ---------- */
.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.split--reverse { flex-direction: row-reverse; }
.split__text { flex: 1 1 340px; max-width: 420px; display: flex; flex-direction: column; gap: 26px; }
.split__visual { position: relative; flex: 1 1 420px; min-width: 0; }
.split__visual--center { flex: 1 1 340px; display: flex; flex-direction: column; align-items: center; }

/* ---------- Product mock-ups: app window ---------- */
.app, .phone { font-family: var(--font-ui); }
.app { background: var(--app); border: 1px solid var(--appline); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px -30px var(--shadow), 0 2px 6px var(--shadow); }
.app__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--appline); }
.app__tabs { display: flex; gap: 2px; padding: 3px; background: var(--track); border-radius: 10px; }
.app__tab { height: 26px; padding: 0 13px; display: flex; align-items: center; border-radius: 7px; font-size: 13px; line-height: 16px; font-weight: 500; color: var(--mut); }
.app__tab.is-active { background: var(--sel); color: var(--fg); box-shadow: 0 1px 2px var(--shadow); }
.app__tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.app__icon { width: 30px; height: 30px; flex: none; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 1px solid var(--appline); border-radius: 8px; background: var(--surface); color: var(--fg); }
.app__icon svg { width: 15px; height: 15px; }
.app__new { height: 30px; box-sizing: border-box; display: flex; align-items: center; gap: 6px; margin-left: 4px; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--on-signal); background: var(--ember); border-radius: 8px; padding: 0 12px; white-space: nowrap; }
.app__new svg { width: 12px; height: 12px; }
.app__body { overflow: hidden; }

/* ---------- Product mock-ups: planner grid ----------
   Every column (header and body) has a fixed width so headers line up with cells.
   Widths are set per grid with --day (first column) and --col (project columns). */
.grid { --day: 104px; --col: 200px; }
.grid--hero { --day: 128px; --col: 186px; }   /* 128 + 5 × 186 + 40 fits the 1100px mock-up */
.grid .grid__cell:not(.grid__cell--collapsed) { flex: 1 0 var(--col); }
.grid--how { --day: 112px; --col: 176px; }
.grid--plan { --day: 112px; --col: 174px; }
.grid--focus { --day: 112px; --col: 174px; }   /* 112 + 3 × 174 + 40 fits the card with Day job open */

.grid__row { display: flex; min-height: 58px; border-bottom: 1px solid var(--appline); }
.grid__row--head { min-height: 0; background: var(--surface); }
.grid__row--today { background: var(--cell); }
.grid__row--head .grid__corner { justify-content: center; white-space: nowrap; box-shadow: inset 0 -2px 0 var(--signal); }
.grid__add { width: 40px; flex: none; box-sizing: border-box; border-left: 1px solid var(--appline); display: flex; align-items: center; justify-content: center; }
.grid__add .app__icon { width: 24px; height: 24px; border-radius: 6px; }
.grid__add .app__icon svg { width: 12px; height: 12px; }

.grid__day { width: var(--day); flex: none; box-sizing: border-box; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.grid__day strong { font-size: 13px; font-weight: 600; }
.grid__day span, .grid__corner { font-size: 11.5px; color: var(--mut); }
.grid__row--today .grid__day strong { color: var(--signal); }

.grid__cell { width: var(--col); flex: none; box-sizing: border-box; border-left: 1px solid var(--appline); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.grid__cell--head { padding: 12px; flex-direction: row; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 600; }
.grid__cell--collapsed { width: 34px; padding: 0; background: var(--cell); align-items: center; }
.grid__row--head .grid__cell--collapsed { background: none; justify-content: center; }
/* A collapsed column's header keeps only its project's dot, as the app's does (planner/_project_header). */
/* and each of its cells with tasks keeps their count, in a pill (planner/_cell). */
.grid__cell--collapsed > .grid__pill { writing-mode: horizontal-tb; box-sizing: border-box; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border: 1px solid var(--appline); border-radius: 10px; background: var(--surface); font-size: 11px; font-weight: 400; color: var(--mut); }
.grid__cell--collapsed > .grid__pill:first-child { margin-top: 8px; }
.grid__row:not(.grid__row--head) > .grid__cell--collapsed { padding-bottom: 8px; }   /* so the last pill clears the row's border (motion.js appends its open-column boxes after it) */
.grid__cell--collapsed > .grid__dot { writing-mode: horizontal-tb; padding: 0; width: 8px; height: 8px; border-radius: 4px; background: var(--dot); }
.grid__cell--collapsed > span { writing-mode: vertical-rl; font-size: 11.5px; font-weight: 600; color: var(--mut); padding-top: 12px; }

.project { flex-grow: 1; display: flex; align-items: center; gap: 8px; }
.project::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--dot); }
.count { height: 18px; box-sizing: border-box; display: inline-flex; align-items: center; font-size: 11px; line-height: 14px; font-weight: 500; color: var(--mut); background: var(--track); border: 1px solid var(--appline); border-radius: 6px; padding: 0 6px; }

/* Project colour hooks: set --dot */
.job { --dot: var(--p-job); }
.pod { --dot: var(--p-pod); }
.home { --dot: var(--p-home); }
.fam { --dot: var(--p-fam); }
.cli { --dot: var(--p-cli); }

.task { display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px; background: var(--task); border: 1px solid var(--taskline); border-radius: 8px; font-size: 13px; line-height: 18px; box-shadow: 0 1px 1px var(--shadow); }
.task span { flex-grow: 1; }
.task__icon { width: 12px; height: 12px; flex: none; margin-top: 3px; color: var(--mut); }
.task--done { background: var(--cell); box-shadow: none; }   /* quiet, but never faded below 4.5:1 */
.task--done span { color: var(--mut); text-decoration: line-through; }
.task--done::before, .phone-task.is-done::before { border-color: var(--fg); background: var(--fg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4F4F1' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
@media (prefers-color-scheme: dark) { .task--done::before, .phone-task.is-done::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); } }
.grid__done { display: flex; align-items: center; gap: 4px; }
.grid__done svg { width: 12px; height: 12px; }
.task--ghost { background: transparent; border-style: dashed; color: var(--mut); box-shadow: none; }
.task--ghost::before { border-color: var(--appline); background: var(--track); }
.task::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 2px; border-radius: 4px; border: 1.5px solid var(--chk); box-sizing: border-box; }
.drop-slot { height: 36px; border: 1.5px dashed var(--signal); border-radius: 8px; background: rgba(255, 90, 31, 0.06); }

/* Drag illustration (Plan ahead) */
.grid__cell:has(.drag-card) { position: relative; }
.drag-card { position: absolute; z-index: 1; left: 18px; top: -5px; width: 172px; transform: rotate(-3deg); border-radius: 8px; outline: 2px solid var(--signal); box-shadow: 0 18px 30px -10px var(--shadow); }
.drag-cursor { position: absolute; left: 152px; top: 26px; width: 22px; height: 22px; }

/* ---------- Product mock-ups: phone (Today) ---------- */
/* Drawn at the app's real phone size (390px wide), then scaled with zoom where it sits on the page. */
.phone { width: 390px; flex: none; zoom: 0.77; border-radius: 52px; padding: 7px; background: #0B0B0C; box-shadow: 0 40px 80px -30px var(--shadow); }
.phone__screen { position: relative; height: 780px; box-sizing: border-box; border-radius: 45px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.phone__bar { display: flex; align-items: center; gap: 9px; padding: 44px 16px 10px; background: var(--surface); border-bottom: 1px solid var(--appline); }
.phone__bar .mark { width: 22px; height: 22px; margin-right: 4px; }
.phone__bar .app__tabs { margin-right: auto; }
.phone__bar .app__tab { height: 30px; padding: 0 14px; font-size: 14px; line-height: 18px; }
.phone__bar .app__icon { width: 32px; height: 32px; border-radius: 9px; }
.phone__bar .app__icon svg { width: 16px; height: 16px; }
/* French's "Planificateur" and Ukrainian's "Планувальник" are twice "Planner": tighter tabs and gaps, so the phone's three
   icons stay on screen */
:lang(fr) .phone__bar, :lang(uk) .phone__bar { gap: 6px; }
:lang(fr) .phone__bar .app__tab, :lang(uk) .phone__bar .app__tab { padding: 0 9px; }
.phone__body { padding: 26px 16px; display: flex; flex-direction: column; gap: 30px; }
.phone__title { display: flex; flex-direction: column; gap: 16px; }
.phone__title div { display: flex; justify-content: space-between; align-items: baseline; }
.phone__title strong { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.phone__title span { font-size: 15px; color: var(--mut); }
.progress { height: 3px; border-radius: 2px; background: var(--track); }
.phone__title.is-clear span { color: var(--fg); font-weight: 600; }
.progress i { display: block; width: 20%; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--ember-start), var(--ember-end)); }
.daypart { display: flex; flex-direction: column; gap: 7px; }
.daypart__head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 600; margin-bottom: 5px; }
.daypart__head .count { height: 22px; font-size: 12px; line-height: 16px; padding: 0 7px; }
.phone-task { display: flex; align-items: center; gap: 11px; height: 42px; box-sizing: border-box; padding: 0 13px; background: var(--task); border: 1px solid var(--taskline); border-radius: 9px; font-size: 15px; line-height: 20px; box-shadow: 0 1px 1px var(--shadow); }
.phone-task::before { transition: background-color 0.2s, border-color 0.2s; content: ""; flex: none; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--chk); box-sizing: border-box; }
.phone-task.is-done span { color: var(--mut); text-decoration: line-through; }
.phone-task span { flex-grow: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-task svg { width: 15px; height: 15px; flex: none; color: var(--mut); margin-left: 6px; }
.phone-task::after { content: ""; flex: none; width: 8px; height: 8px; border-radius: 4px; margin-left: 6px; background: var(--dot); }
.phone__add { display: flex; align-items: center; gap: 10px; padding: 6px 10px; font-size: 15px; line-height: 20px; color: var(--mut); }
.phone__add svg { width: 13px; height: 13px; }
.phone__fab { position: absolute; right: 18px; bottom: 22px; width: 56px; height: 56px; border-radius: 28px; display: flex; align-items: center; justify-content: center; color: var(--on-signal); background: var(--ember); box-shadow: 0 10px 24px -8px var(--shadow); }
.phone__fab svg { width: 22px; height: 22px; }
@media (prefers-color-scheme: dark) { .phone { background: #2E2E33; } }

/* ---------- The details tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; min-height: 172px; box-sizing: border-box; }
.tile__icon { height: 28px; display: flex; align-items: center; }
.tile__icon svg:not(.mark) { width: 22px; height: 22px; }
.tile p { font-size: 14.5px; line-height: 1.55; color: var(--mut); }
.keys { display: flex; gap: 5px; flex-wrap: wrap; }
.keys kbd { min-width: 26px; height: 26px; padding: 0 6px; box-sizing: border-box; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font: 600 12px/1 Sora, system-ui, sans-serif; background: var(--bg); }

/* ---------- Comparison table ---------- */
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.compare table { border-collapse: collapse; width: 100%; min-width: 680px; }
.compare th { text-align: left; padding: 18px; font-size: 14px; font-weight: 600; color: var(--mut); }
.compare thead th { white-space: nowrap; }          /* column names never wrap */
.compare td { padding: 16px 18px; border-top: 1px solid var(--line); }
.compare thead td { border-top: 0; }   /* the empty corner cell */
.compare tbody th { padding: 16px 18px; border-top: 1px solid var(--line); font-size: 15.5px; font-weight: 500; color: var(--fg); width: 220px; text-wrap: balance; }   /* a narrow label column keeps the Overview column in view on a phone */
.compare .is-overview { background: var(--bg); color: var(--fg); }
.compare thead .is-overview { box-shadow: inset 0 2px 0 var(--signal); }
.compare .yes, .compare .no, .compare .part { display: inline-block; }
.compare .yes { width: 20px; height: 20px; background: currentColor; vertical-align: middle;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.compare .is-overview .yes { color: var(--signal); }
.compare .no { color: var(--mut); }
.compare .part { font-size: 14px; color: var(--mut); }

/* ---------- Founder note ---------- */
.founder { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.founder__lead { font-weight: 600; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.035em; line-height: 1.2; }
.founder p:not(.founder__lead) { font-size: var(--body); line-height: 1.7; color: var(--mut); }
.founder p.founder__sign { color: var(--fg); font-weight: 500; margin-top: -6px; }

/* ---------- Pricing ---------- */
.plans { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }
.plan { flex: 1 1 290px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.plan--featured { border: 2px solid var(--signal); }
.plan__head { display: flex; justify-content: space-between; align-items: center; min-height: 26px; }
.badge { font-size: 12px; font-weight: 600; color: var(--on-signal); background: var(--signal); border-radius: 999px; padding: 4px 10px; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.plan__price strong { font-size: 46px; font-weight: 600; letter-spacing: -0.04em; }
.plan__price span { font-size: 15px; color: var(--mut); }
.plan .bullets { flex-grow: 1; }
.fineprint { font-size: 14px; color: var(--mut); text-align: center; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-wrap: wrap; gap: 48px; }
.faq .section-head { flex: 1 1 280px; }
.faq__list { flex: 2 1 480px; border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 18px; height: 18px; background: var(--mut); transition: transform 0.2s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list p { margin: 0 0 22px; font-size: var(--body); line-height: 1.65; color: var(--mut); max-width: 640px; }

/* ---------- Final CTA ---------- */
.final-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.final-cta h2 { max-width: 760px; }
.final-cta p { font-size: 14px; color: var(--mut); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 48px var(--gutter) 56px; }
.site-footer__inner { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 40px; font-size: 14px; color: var(--mut); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.site-footer__brand p { font-size: var(--label); font-weight: 500; letter-spacing: 0.02em; }
.site-footer__logo { display: flex; }
.site-footer__social { display: flex; gap: 10px; margin-top: 4px; }
/* A social button: the secondary button's outline and hover, round, holding the network's glyph. */
.social { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--fg); }
.social:hover { background: var(--tint); opacity: 1; }
.social:focus-visible { border-radius: 999px; }
.social svg { width: 16px; height: 16px; }
.site-footer__columns { display: flex; gap: 32px 72px; }
.site-footer__column { min-width: 120px; }
.site-footer__column h2 { font-size: var(--label); font-weight: 500; letter-spacing: 0.02em; color: var(--mut); margin-bottom: 14px; }
.site-footer__column ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.language { display: flex; align-items: center; gap: 8px; }
.language__pill { position: relative; display: inline-flex; align-items: center; }
.language__pill select { appearance: none; cursor: pointer; font: inherit; font-size: 12px; font-weight: 500; color: var(--fg); background: var(--card); border: 0; border-radius: 8px; padding: 6px 28px 6px 32px; box-shadow: inset 0 0 0 1px var(--line); }
.language__pill select:hover { box-shadow: inset 0 0 0 1px var(--mut); }
.language__pill select:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
/* On a phone, no ring on the language select (overview-app #533): iOS Safari counts a tapped select as :focus-visible
   and drew the 2px ring around it while its list was open. A keyboard on a computer or an iPad (hover: hover) keeps it. */
@media (hover: none) { .language__pill select:focus-visible { outline: none; } }
.language__globe, .language__chevrons { position: absolute; pointer-events: none; color: var(--mut); }
.language__globe { left: 10px; }
.language__chevrons { right: 10px; }
.language__button { font: inherit; font-size: 12px; color: var(--mut); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.language__button:hover { color: var(--fg); }
.language__button[hidden] { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 404 ---------- */
.not-found { min-height: calc(100vh - 260px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: 96px var(--gutter); }
.not-found p { font-size: var(--body); color: var(--mut); }

/* The hero starts hidden only while html.motion is set (see the head of index.html), so there is no flash */
.motion .hero .pill, .motion .hero h1, .motion .hero__lede, .motion .hero__ctas, .motion .hero__note, .motion .hero__visual { opacity: 0; }

/* ---------- Motion states (js/motion.js adds these classes; without it the static look above stands) ---------- */
.drag-card.is-animated { outline-width: 0; box-shadow: 0 1px 1px var(--shadow); transition: outline-width 0.25s, box-shadow 0.25s; }
.drag-card.is-animated.is-lifted { outline-width: 2px; box-shadow: 0 18px 30px -10px var(--shadow); }
.drag-card.is-animated .drag-cursor { opacity: 0; transition: opacity 0.2s; }
.drag-card.is-animated.is-lifted .drag-cursor { opacity: 1; }

/* Focus mock-up: while motion.js plays the collapse, the two hidden columns start at full width.
   Their temporary content is out of the layout flow, so no row ever changes height. */
.grid--focus .grid__cell--collapsed { position: relative; overflow: hidden; transition: width 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
.grid--focus .grid__cell--collapsed.is-expanded { width: var(--col); }
.grid--focus .focus-full { display: none; position: absolute; top: 8px; left: 8px; width: calc(var(--col) - 16px); }
.grid--focus .grid__row--head .focus-full { top: 12px; left: 12px; }
.grid--focus .is-expanded .focus-full, .grid--focus .is-collapsing .focus-full { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 600; }
.grid--focus .focus-full .task { width: 100%; font-weight: 400; white-space: nowrap; }
.grid--focus .focus-full .task span { overflow: hidden; text-overflow: ellipsis; }
.app__icon { transition: background-color 0.25s; }
.app__icon.is-on { background: var(--track); }

/* Small polish */
@media (prefers-reduced-motion: no-preference) {
  .btn svg { transition: transform 0.2s ease; }
  .btn--primary:hover svg { transform: translateX(3px); }
}
.site-header.has-scroll-state { border-bottom-color: transparent; transition: border-color 0.25s; }
.site-header.has-scroll-state.is-scrolled { border-bottom-color: var(--line); }
.faq__list details.is-closing summary::after { transform: none; }

/* Replay link under an animated mock-up (added by js/motion.js, so it is only there when the motion is) */
.replay { display: flex; width: fit-content; margin-inline: auto; align-items: center; gap: 7px; margin-top: 16px; padding: 4px 0; background: none; border: 0; font: inherit; font-size: 13px; font-weight: 400; letter-spacing: 0.02em; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; visibility: hidden; opacity: 0; }
.replay svg { width: 8px; height: 8px; flex: none; fill: currentColor; }
/* Not there while the animation plays; motion.js adds .is-ready two seconds after it ends. Deliberately faint (about 3.6:1), full strength on hover and focus. */
.replay.is-ready { visibility: visible; opacity: 0.5; transition: opacity 0.8s ease; }
.replay.is-ready:hover, .replay.is-ready:focus-visible { opacity: 1; transition-duration: 0.2s; }
.replay:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }

/* Hero planner: tap a task to tick it (js/interactions.js) */
.app .task:not(.task--ghost) { cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.app .task { transition: background-color 0.2s, border-color 0.2s; }
.app .task:not(.task--ghost):hover { border-color: var(--chk); }
.app .drag-card .task { cursor: default; }
.app .task span { transition: color 0.2s; }
@media (prefers-reduced-motion: no-preference) {
  .task--pop { animation: task-settle 0.28s ease-out; }
}
@keyframes task-settle { 0% { transform: scale(0.97); } 100% { transform: scale(1); } }

/* ---------- Mock-ups on tablets and phones ----------
   Phones keep the hero planner at full size and let it scroll sideways.
   Tablets draw each mock-up smaller (zoom, as the phone mock-up does) so more of the grid fits and
   task text is not oversized. Cells stretch to fill the window, so nothing is left empty. */
@media (max-width: 767px) {
  .hero__visual { overflow-x: auto; overflow-y: hidden; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); border-radius: 0; overscroll-behavior-x: contain; }
  /* Plan ahead and Focus are fixed crops, like How it works: they do not scroll (js/interactions.js sets Plan ahead's position) */
  .split__scroll { overflow: hidden; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 48px; }
  .split__scroll .app { min-width: 680px; }
  .split__scroll + .replay { margin-top: -24px; }   /* sits in the room left for the shadow */
}
@media (min-width: 768px) and (max-width: 869px) { .hero__visual > .app { zoom: 0.65; } }
@media (min-width: 870px) and (max-width: 999px) { .hero__visual > .app { zoom: 0.72; } }
@media (min-width: 1000px) and (max-width: 1199px) { .hero__visual > .app { zoom: 0.85; } }
@media (min-width: 768px) and (max-width: 789px) { .annotated .app { zoom: 0.75; } }
@media (min-width: 790px) and (max-width: 1023px) { .annotated .app { zoom: 0.8; } }
@media (min-width: 1024px) and (max-width: 1099px) { .annotated .app { zoom: 0.9; } }   /* the grid is 858px wide, so it needs these to fit beside the Days down gutter */
@media (max-width: 1279px) {
  .split__text { flex-basis: 300px; max-width: 340px; }          /* more room for the visual */
  .split__visual:not(.split__visual--center) { flex-basis: 520px; }
}
@media (min-width: 768px) and (max-width: 931px) { .split__visual .app { zoom: 0.85; } }
@media (min-width: 932px) and (max-width: 1099px) { .split__visual .app { zoom: 0.78; } }
@media (min-width: 1100px) and (max-width: 1279px) { .split__visual .app { zoom: 0.95; } }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .compare table { min-width: 600px; }
  .compare th, .compare td, .compare tbody th { padding: 14px 12px; }
  .compare tbody th { width: 150px; font-size: 14px; }   /* the Overview column shows in full without scrolling */
  /* the two link columns side by side; the picker first in the bottom bar, full width, then the copyright */
  .site-footer__inner { gap: 28px; }
  .site-footer__top { flex-direction: column; gap: 28px; }
  /* the logo and the social buttons share a row, the tagline under them */
  .site-footer__brand { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px; }
  .site-footer__brand p { grid-column: 1 / -1; grid-row: 2; }
  .site-footer__social { grid-column: 2; grid-row: 1; margin-top: 0; gap: 8px; }
  .site-footer__columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .site-footer__column { min-width: 0; }
  .site-footer__bottom { flex-direction: column-reverse; align-items: stretch; gap: 14px; padding-top: 20px; }
  .site-footer__bottom .language__pill, .site-footer__bottom .language__pill select { width: 100%; }
  .site-nav { display: none; }
  .logo--header { width: 130px; height: 18px; }
  .site-header__actions { gap: 14px; }
  /* less whitespace between sections on a phone */
  .section { padding-block: 64px; }
  .container { gap: 32px; }
  .hero { padding-top: 48px; }
  .hero__inner { gap: 20px; }
  .hero__visual { margin-top: 40px; padding-bottom: 48px; }
  .hero .btn--lg { min-height: 46px; padding: 0 18px; font-size: 15px; }   /* the size of the header button */
  .split { gap: 40px; }
  .steps { gap: 24px; }
  .card { padding: 22px; }
  .tile { min-height: 0; padding: 20px; }
  .plan { padding: 24px; }
  .faq { gap: 28px; }
  .faq__list summary { padding: 18px 0; }
  .faq__list p { margin-bottom: 18px; }
  .final-cta { gap: 20px; }
  .site-footer { padding-block: 36px; }
  .not-found { padding-block: 64px; }
}
/* A tablet has no room for the nav beside a long trial button (Finnish, Danish, Filipino…): its links are shortcuts to
   sections below, so it goes, as on a phone. */
@media (max-width: 1023px) { .site-nav { display: none; } }
/* A phone wraps a button's words rather than run them off the screen: Danish's, Filipino's and Malay's trial buttons
   are longer than a 360px screen at one line. Balanced, so two lines are about even. */
@media (max-width: 767px) {
  .btn { white-space: normal; text-wrap: balance; text-align: center; line-height: 1.2; padding-block: 8px; max-width: 100%; }
  .btn svg { flex: none; }
  .plan__price strong { font-size: min(46px, 10.5vw); }   /* "FCFA 229,000" fits a 360px card */
}
@media (max-width: 479px) {
  .site-header__inner { column-gap: 16px; }
  .site-header__actions { gap: 8px; }
  .site-header__signin { font-size: 13px; }
  .site-header .btn { font-size: 13px; padding: 0 10px; }
  .site-header .btn svg { display: none; }
  .pill { font-size: 12px; padding: 7px 18px; }
  .pill .mark { vertical-align: -3px; margin-right: 6px; }
  .pill .mark--18 { width: 16px; height: 16px; }
}
/* The narrowest phones: the header lockup at the brand's minimum width, so a longer "Sign in" (French's "Se connecter")
   and the trial button still fit beside it. */
@media (max-width: 379px) {
  .site-header__inner { column-gap: 8px; }
  .logo--header { width: 120px; height: 17px; }
}
