/* ==========================================================================
   Lanes - product site
   Design tokens are taken verbatim from the Lanes app (the :root block in
   assets/lanes.html), so the site and the product read as one family.

   Site-only additions, all for accessibility (see README):
     --link                          accessible accent for text links
     --ink-soft                      secondary prose colour
     --warn/danger/success-ink       readable status colours on the light theme
   ========================================================================== */

:root {
  /* ---- App tokens: dark (default) ---- */
  --bg2: #13162a;
  --panel: rgba(24, 28, 52, .68);
  --solid: #181c34;
  --card: rgba(30, 35, 66, .62);
  --hover: rgba(46, 53, 96, .9);
  --border: rgba(255, 255, 255, .09);
  --border2: rgba(255, 255, 255, .18);
  --text: #eef1ff;
  --dim: #a3a9d0;
  --faint: #767ca6;
  --accent: #6c8cff;
  --accent2: #a06bff;
  --danger: #ff5c7a;
  --success: #3ddc97;
  --warn: #ffb020;
  --scrim: linear-gradient(180deg, rgba(8, 10, 22, .74), rgba(8, 10, 22, .87));
  --shadow: 0 12px 42px -12px rgba(0, 0, 0, .58);
  --r: 18px;
  --rs: 12px;
  --focus: 0 0 0 3px rgba(108, 140, 255, .42);

  /* ---- Site-only ----
     The app's status colours are tuned for a dark surface. On the light theme
     they drop to ~1.7:1, so text and icons use these "ink" variants while the
     tinted backgrounds keep the original tokens. */
  --link: var(--accent);
  --ink-soft: var(--dim);
  --warn-ink: var(--warn);
  --danger-ink: var(--danger);
  --success-ink: var(--success);
  /* The page's visible background comes from fixed layers, which leaves the
     canvas itself unpainted. On mobile that shows as a white flash in the strip
     the address bar frees up while scrolling, so the canvas gets the colour the
     layers composite to: #0f1220 seen through the scrim. */
  --canvas: #0a0c19;
  --grad: linear-gradient(135deg, var(--accent), var(--accent2));
  --maxw: 1180px;
  --gap: clamp(18px, 3vw, 28px);
  --section-y: clamp(64px, 9vw, 128px);
}

[data-theme="light"] {
  --bg2: #eef1fb;
  --panel: rgba(255, 255, 255, .78);
  --solid: #fff;
  --card: rgba(255, 255, 255, .84);
  --hover: #fff;
  --border: rgba(10, 20, 60, .1);
  --border2: rgba(10, 20, 60, .2);
  --text: #171a2e;
  --dim: #4a5078;
  --faint: #7b81a5;
  --scrim: linear-gradient(180deg, rgba(238, 241, 251, .82), rgba(238, 241, 251, .91));
  --shadow: 0 12px 42px -14px rgba(30, 50, 120, .27);

  --link: #3f5fd6;         /* 4.87:1 on the light surface; app --accent is 2.72:1 */
  --ink-soft: var(--dim);
  --warn-ink: #9a6200;     /* 4.75:1; app --warn is 1.71:1 here */
  --danger-ink: #c92a4c;   /* 5.00:1; app --danger is 2.77:1 here */
  --success-ink: #0f7a53;  /* 4.99:1; app --success is 1.65:1 here */
  --canvas: #d6d9e3;
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--canvas); }

body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: transparent;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 16px;
}

/* Background stack, mirroring the app: flat base + theme scrim + two blurred orbs */
.bg-layer, .bg-scrim { position: fixed; inset: 0; pointer-events: none; }
.bg-layer { z-index: -4; background: #0f1220; }
.bg-scrim { z-index: -3; background: var(--scrim); }
.orb {
  position: fixed; border-radius: 50%; filter: blur(90px);
  opacity: .34; z-index: -2; pointer-events: none;
}
.orb.o1 { width: 46vw; height: 46vw; left: -8vw; top: -12vw; background: var(--accent2); }
.orb.o2 { width: 40vw; height: 40vw; right: -10vw; bottom: -14vw; background: var(--accent); }

a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

img, svg { display: block; max-width: 100%; }

::selection { background: color-mix(in srgb, var(--accent) 38%, transparent); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 9px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--solid); border: 1px solid var(--border2);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
  transition: top .16s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Copy that has to differ once the mock drops its fourth lane at 760px. */
.narrow-only { display: none; }
@media (max-width: 760px) {
  .wide-only { display: none; }
  .narrow-only { display: inline; }
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

section { padding-block: var(--section-y); }
section + section { padding-top: 0; }

.section-head { max-width: 660px; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--link); margin-bottom: 14px;
}

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.025em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.7vw, 2.7rem); }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.3rem); letter-spacing: -.015em; }
h4 { font-size: 1rem; letter-spacing: -.01em; }

.lede { font-size: clamp(1rem, 1.35vw, 1.16rem); color: var(--ink-soft); margin-top: 16px; line-height: 1.62; }

p + p { margin-top: 14px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

code, kbd, .mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .88em;
}
code {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid var(--border);
  border-radius: 6px; padding: .1em .42em;
  color: var(--text);
}
kbd {
  display: inline-block; min-width: 1.9em; text-align: center;
  background: var(--bg2); border: 1px solid var(--border2);
  border-bottom-width: 2px; border-radius: 7px;
  padding: 2px 7px; font-size: 11.5px; font-weight: 600;
  color: var(--text); white-space: nowrap; line-height: 1.5;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: 12px; font-weight: 700; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: .16s;
  padding: 12px 20px; font-size: 15px;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 18px; }

/* White-on-gradient sits at 3.48:1, so the gradient button is only ever used at
   19px/700 or larger, where WCAG's large-text threshold (3:1) applies. */
.btn.primary { background: var(--grad); color: #fff; font-size: 19px; font-weight: 700; padding: 15px 28px; }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px var(--accent); }

.btn.outline { background: var(--panel); border: 1px solid var(--border2); color: var(--text); }
.btn.outline:hover { background: var(--hover); border-color: var(--accent); transform: translateY(-1px); }

.btn.accent-line { background: transparent; border: 1px solid color-mix(in srgb, var(--link) 55%, transparent); color: var(--link); }
.btn.accent-line:hover { background: color-mix(in srgb, var(--link) 12%, transparent); border-color: var(--link); }

.btn.lg { padding: 15px 28px; font-size: 17px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg2) 72%, transparent), color-mix(in srgb, var(--bg2) 22%, transparent));
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.stuck { border-bottom-color: var(--border); }

.nav { display: flex; align-items: center; gap: 14px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; color: var(--text); flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.logo {
  width: 32px; height: 32px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; flex: 0 0 32px;
  box-shadow: 0 6px 18px -4px var(--accent);
}
.logo svg { width: 19px; height: 19px; }
/* Stacked under the wordmark, as the app has done since v0.5.0. The app runs
   this at 7px/48% opacity; on a marketing header that is below legibility, so
   it keeps the shape at a readable size. */
.brand-copy { display: flex; flex-direction: column; justify-content: center; line-height: 1; min-width: 0; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.025em; }
.brand-version {
  display: block; margin-top: 3px;
  font-size: 9px; font-weight: 650; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-soft); line-height: 1;
}

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 8px 12px; border-radius: 9px; transition: .14s;
}
.nav-links a:hover { color: var(--text); background: var(--panel); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.iconbtn {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; cursor: pointer; transition: .16s; flex: 0 0 auto;
  color: var(--text);
}
.iconbtn:hover { background: var(--hover); transform: translateY(-1px); border-color: var(--border2); }
.iconbtn svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav-cta { padding: 9px 16px; font-size: 14px; border-radius: 11px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding-top: clamp(44px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero-copy { max-width: 780px; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px 6px 8px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 24px;
}
.badge b { color: var(--text); font-weight: 700; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success-ink); flex: 0 0 7px; }

.hero h1 { margin-bottom: 4px; }
.hero .lede { max-width: 660px; font-size: clamp(1.05rem, 1.5vw, 1.24rem); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }

.hero-note { margin-top: 18px; font-size: 13px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 15px; height: 15px; color: var(--success-ink); flex: 0 0 15px; }

/* ==========================================================================
   Mini-Lanes - a real, live rendering of the app's own components,
   built from the same tokens. Not a screenshot, and not pretending to be.
   ========================================================================== */

/* The mock is built from <span>s so it never nests interactive/blocky markup
   inside the hero's aria-label. Each piece therefore needs its display set. */
.mcollection, .mcol-body, .mtodo, .mnote, .mnote-title, .mnote-text,
.mnote-due, .mnote-progress, .mtodo-progress, .mcountdown,
.mcd-time, .mcd-date, .mgroup-desc, .mock-clock .g { display: block; }

.mock {
  margin-top: clamp(38px, 5vw, 62px);
  border: 1px solid var(--border2); border-radius: var(--r);
  background: color-mix(in srgb, var(--bg2) 94%, transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.mock::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--bg2) 82%, transparent));
}

.mock-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--solid) 55%, transparent);
}
.mock-dots { display: flex; gap: 6px; flex: 0 0 auto; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border2); display: block; }
.mock-url {
  flex: 1; text-align: center; font-size: 11.5px; color: var(--ink-soft);
  background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 10px; max-width: 320px; margin-inline: auto;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.mock-app { padding: 0; }

/* Three-column header with the search centred, as in the app's own header. */
.mock-header {
  display: grid; align-items: center; gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(360px, 44%)) minmax(0, 1fr);
  padding: 12px 16px 8px;
}
.mock-brand { justify-self: start; display: flex; align-items: center; gap: 8px; min-width: 0; }
.mock-brand-copy { display: flex; flex-direction: column; justify-content: center; line-height: 1; min-width: 0; }
.mock-brand-name { font-size: 14px; font-weight: 800; letter-spacing: -.025em; }
.mock-brand-ver {
  display: block; margin-top: 2px; font-size: 6.5px; font-weight: 650;
  letter-spacing: .08em; text-transform: uppercase; color: var(--faint);
  opacity: .55; line-height: 1;
}
.mock-search {
  justify-self: center; width: 100%;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; color: var(--faint); font-size: 12.5px;
  overflow: hidden; white-space: nowrap;
}
.mock-search .label { flex: 1; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); }
.mock-kbd { font-size: 10.5px; color: var(--ink-soft); border: 1px solid var(--border2); padding: 2px 6px; border-radius: 6px; flex: 0 0 auto; }
.mock-actions { justify-self: end; display: flex; align-items: center; gap: 6px; min-width: 0; }
.mock-clock { text-align: right; line-height: 1.08; margin-right: 2px; }
.mock-iconbtn {
  width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 9px; color: var(--ink-soft);
}
.mock-iconbtn svg { width: 14px; height: 14px; }
.mock-clock .t { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; display: block; }
.mock-clock .g { font-size: 11px; color: var(--ink-soft); }

.mock-boardbar { display: flex; align-items: center; gap: 7px; padding: 6px 16px 12px; overflow: hidden; }
.mock-tab {
  border: 1px solid var(--border); background: var(--panel); color: var(--ink-soft);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; font-weight: 650; flex: 0 0 auto;
}
.mock-tab.active { color: #fff; background: var(--grad); border-color: transparent; }

.mock-board {
  display: grid; gap: 16px; padding: 0 16px 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: start;
}

/* Named lane, as the app draws it: a quiet uppercase label with a rule that
   fades out to the right (the app's .lane-label). */
.mlane { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.mlane-label {
  display: flex; align-items: center; gap: 8px; min-height: 18px;
  padding: 0 3px 1px; color: var(--faint);
  font-size: 9.5px; font-weight: 800; letter-spacing: .085em;
  text-transform: uppercase; white-space: nowrap;
}
.mlane-label::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 42%, transparent), transparent);
}

.mgroup {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r);
  padding: 12px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 9px; min-width: 0;
}
.mgroup-head { display: flex; align-items: center; gap: 8px; }
.mgroup-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.mgroup-titles { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.mgroup-title { font-weight: 700; font-size: 13.5px; letter-spacing: -.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mgroup-desc { font-size: 9.5px; font-weight: 500; color: var(--ink-soft); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mgroup-count { font-size: 10.5px; color: var(--ink-soft); flex: 0 0 auto; }
.mgroup-body { display: flex; flex-wrap: wrap; gap: 8px; }

.mcard {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--rs);
  flex: 1 1 100%; min-width: 0;
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
}
.mfav {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px;
  display: grid; place-items: center; background: rgba(127, 127, 160, .16);
  font-size: 15px; font-weight: 750;
}
.mmeta { min-width: 0; flex: 1; line-height: 1.2; }
.mtitle { font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.mhost { font-size: 10.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.mcollection { width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.mcol-head { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.mcol-icon { width: 27px; height: 27px; border-radius: 8px; background: rgba(127, 127, 160, .16); display: grid; place-items: center; flex: 0 0 27px; font-size: 14px; }
.mcol-title { display: block; font-size: 12.5px; font-weight: 750; }
.mcol-sub { display: block; font-size: 10px; color: var(--ink-soft); margin-top: 1px; }
.mcol-head > span:last-child { min-width: 0; }
.mcol-body { padding: 7px; }
.mmatrix { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 10px; table-layout: fixed; }
.mmatrix th { color: var(--ink-soft); font-weight: 700; padding: 3px 4px; text-align: center; }
.mmatrix th:first-child { text-align: left; }
.mmatrix td { padding: 0; }
.mrow-title { font-weight: 650; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
/* Square icon cells: since v0.5.0 the environment letter lives in the column
   header only, and each cell is an open-link button. */
.mlink {
  display: grid; place-items: center; margin: 0 auto;
  width: 24px; height: 24px; padding: 0;
  border: 1px solid var(--border); border-radius: 6px;
  background: rgba(127, 127, 160, .07); color: var(--ink-soft);
}
.mlink svg { width: 12px; height: 12px; }
.mlink.on { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--link); }

/* Note card - mirrors .note-card / .note-due in the app.
   The bar shows how much of the final 7-day window is left, so it shrinks
   towards the deadline rather than filling up. */
.mnote { width: 100%; padding: 10px 11px; background: rgba(255, 176, 32, .075); border: 1px solid rgba(255, 176, 32, .18); border-radius: 12px; }
.mnote-title { font-size: 11.5px; font-weight: 750; color: var(--warn-ink); margin-bottom: 4px; }
.mnote-text { font-size: 11.5px; line-height: 1.45; color: var(--ink-soft); }
.mnote-due { margin-top: 9px; }
.mnote-due-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; font-size: 9.5px; color: var(--ink-soft); }
.mnote-due-label { font-weight: 750; color: var(--warn-ink); }
.mnote-due-date { white-space: nowrap; }
.mnote-progress { height: 5px; border-radius: 999px; background: rgba(127, 127, 160, .14); overflow: hidden; }
.mnote-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--warn)); }

/* Todo card - mirrors .todo-card. It is a card inside the group, like every
   other item; priority is a coloured dot, not a pill. */
.mtodo {
  width: 100%; padding: 11px 12px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--rs);
}
.mtodo-head { display: flex; align-items: center; gap: 10px; }
.mtodo-title { font-size: 13px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtodo-count { font-size: 10.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.mtodo-progress { height: 5px; border-radius: 999px; background: rgba(127, 127, 160, .15); overflow: hidden; margin: 8px 0 9px; }
.mtodo-progress i { display: block; height: 100%; border-radius: inherit; background: var(--success-ink); }
.mtodo-tasks { display: flex; flex-direction: column; gap: 3px; }

.mtask { display: flex; align-items: flex-start; gap: 8px; padding: 5px 4px; border-radius: 8px; }
.mtask .box {
  width: 14px; height: 14px; flex: 0 0 14px; margin-top: 2px;
  border: 1px solid var(--border2); border-radius: 4px;
  display: grid; place-items: center; font-size: 9px; line-height: 1;
}
.mtask.done .box { background: var(--success-ink); border-color: var(--success-ink); color: #fff; font-weight: 900; }
.mtask-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; margin-top: 6px; background: var(--faint); }
.mtask-dot.high { background: var(--warn); box-shadow: 0 0 7px color-mix(in srgb, var(--warn) 40%, transparent); }
.mtask-dot.urgent { background: var(--danger); box-shadow: 0 0 8px color-mix(in srgb, var(--danger) 45%, transparent); }
.mtask-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mtask-title { font-size: 11.5px; line-height: 1.35; }
/* Only the title is struck through - never the checkbox or the due date. */
.mtask.done .mtask-title { text-decoration: line-through; color: var(--ink-soft); }
.mtask-due { font-size: 9.5px; color: var(--ink-soft); }
.mtask-due.overdue { color: var(--danger-ink); font-weight: 650; }
.mtodo-completed {
  margin-top: 3px; border-top: 1px solid var(--border); padding-top: 6px;
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; color: var(--ink-soft);
}
.mtodo-completed svg { width: 11px; height: 11px; flex: 0 0 11px; }

/* Countdown card - mirrors .countdown-card. */
.mcountdown {
  width: 100%; padding: 13px 14px; border-radius: var(--rs);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, color-mix(in srgb, var(--card) 94%, transparent), color-mix(in srgb, var(--accent) 5%, var(--card)));
}
.mcd-top { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 10px; font-weight: 750; margin-bottom: 5px; }
.mcd-icon { font-size: 15px; line-height: 1; flex: 0 0 auto; }
.mcd-title { font-size: 12.5px; font-weight: 750; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcd-time { font-size: 22px; font-weight: 820; letter-spacing: -.035em; line-height: 1.1; margin-top: 3px; }
.mcd-date { font-size: 10px; color: var(--ink-soft); margin-top: 5px; }

/* Icons layout - mirrors .launcher-grid / .launcher-link at the compact size. */
.mlauncher { display: grid; grid-template-columns: repeat(auto-fill, 42px); gap: 7px; }
.mlaunch {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 12px;
  background: rgba(127, 127, 160, .065);
}
.mlaunch i {
  width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 8px; font-size: 13px; font-style: normal;
  background: rgba(127, 127, 160, .10);
}

.msep { width: 100%; display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 9.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; padding: 2px 1px; }
.msep::before, .msep::after { content: ""; height: 1px; background: var(--border2); flex: 1; }

.mock-caption {
  position: relative; z-index: 1;
  text-align: center; font-size: 12.5px; color: var(--ink-soft);
  padding: 0 16px 16px; margin-top: -8px;
}

/* ==========================================================================
   Structure - the mental model
   ========================================================================== */

.model { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.model-step {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r);
  padding: 22px; position: relative; min-width: 0;
}
.model-step .n {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 9px; background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  color: var(--link); font-size: 13px; font-weight: 800; margin-bottom: 14px;
}
.model-step h3 { margin-bottom: 8px; }
.model-step p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ==========================================================================
   Bento feature grid
   ========================================================================== */

.bento { display: grid; gap: 14px; grid-template-columns: repeat(6, 1fr); }

.tile {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r);
  padding: 24px; min-width: 0; display: flex; flex-direction: column; gap: 12px;
  transition: .18s; grid-column: span 2;
}
.tile:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--shadow); }
.tile.wide { grid-column: span 3; }
.tile.full { grid-column: span 6; }

.tile-icon {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--link);
}
.tile-icon svg { width: 19px; height: 19px; }
.tile h3 { font-size: 1.02rem; }
.tile p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.tile .demo { margin-top: auto; padding-top: 6px; }

.chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11.5px; font-weight: 650; color: var(--ink-soft);
  border: 1px solid var(--border); background: var(--card);
  border-radius: 999px; padding: 4px 11px;
}
.chip.on { color: var(--link); border-color: color-mix(in srgb, var(--link) 45%, transparent); background: color-mix(in srgb, var(--link) 10%, transparent); }

.codeline {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; font-size: 12px; overflow-x: auto; white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color: var(--ink-soft);
}
.codeline b { color: var(--link); font-weight: 700; }
.codeline + .codeline { margin-top: 6px; }

/* ==========================================================================
   Deep feature rows (screenshots)
   ========================================================================== */

.feature-row {
  display: grid; gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(56px, 8vw, 104px); }
.feature-row.flip .feature-copy { order: 2; }

.feature-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.feature-copy .lede { font-size: 1rem; }

.checklist { list-style: none; margin-top: 22px; display: grid; gap: 11px; }
.checklist li { display: flex; gap: 11px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.checklist svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 4px; color: var(--link); }
.checklist b { color: var(--text); font-weight: 650; }

/* Screenshot slot - deliberately an empty state, not a fake image */
.shot {
  border: 1px solid var(--border2); border-radius: var(--r);
  background: color-mix(in srgb, var(--bg2) 70%, transparent);
  box-shadow: var(--shadow); overflow: hidden; min-width: 0;
}
.shot img { width: 100%; height: auto; display: block; }
.shot-empty {
  aspect-ratio: 16 / 10; display: grid; place-content: center; justify-items: center;
  gap: 10px; text-align: center; padding: 28px;
  border: 1px dashed var(--border2); border-radius: inherit;
  background:
    repeating-linear-gradient(45deg,
      color-mix(in srgb, var(--accent) 4%, transparent) 0 12px,
      transparent 12px 24px);
  color: var(--ink-soft);
}
.shot-empty svg { width: 30px; height: 30px; color: var(--faint); }
.shot-empty b { color: var(--text); font-size: 14px; font-weight: 700; }
.shot-empty code { font-size: 11.5px; }
.shot-empty small { font-size: 11.5px; }

/* ==========================================================================
   Item types
   ========================================================================== */

/* Six cards, so a clean 3x2 rather than a row that just misses fitting six. */
.types { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .types { grid-template-columns: 1fr; } }
.type {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--rs);
  padding: 18px; min-width: 0; transition: .16s;
}
.type:hover { border-color: var(--border2); background: var(--hover); }
.type .tile-icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; margin-bottom: 12px; }
.type .tile-icon svg { width: 16px; height: 16px; }
.type h3 { font-size: 1rem; letter-spacing: -.01em; margin-bottom: 6px; }
.type p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

/* ==========================================================================
   Keyboard
   ========================================================================== */

.keys-panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r); padding: clamp(20px, 3vw, 34px);
}
.keys-grid { display: grid; gap: 26px clamp(24px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.keys-col h3 {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--link); margin-bottom: 14px;
}
.keys-list { list-style: none; display: grid; gap: 2px; }
.keys-list li {
  display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 14px;
  align-items: baseline; padding: 7px 0; font-size: 13.5px; color: var(--ink-soft);
  border-top: 1px solid var(--border);
}
.keys-list li:first-child { border-top: 0; }
.keys-list .k { display: flex; flex-wrap: wrap; gap: 4px; }

/* ==========================================================================
   Privacy
   ========================================================================== */

.privacy {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r);
  padding: clamp(24px, 4vw, 48px);
  display: grid; gap: clamp(24px, 4vw, 52px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.facts { list-style: none; display: grid; gap: 14px; }
.facts li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.facts .mark { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px; display: grid; place-items: center; margin-top: 1px; }
.facts .mark svg { width: 13px; height: 13px; }
.facts .yes { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success-ink); }
.facts .no { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger-ink); }
.facts b { color: var(--text); font-weight: 650; }

.caveat {
  border: 1px solid color-mix(in srgb, var(--warn) 28%, transparent);
  background: rgba(255, 176, 32, .075);
  border-radius: var(--rs); padding: 16px 18px; margin-top: 22px;
}
.caveat h4 { color: var(--warn-ink); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 7px; }
.caveat p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.caveat-list { list-style: none; margin-top: 11px; display: grid; gap: 8px; }
.caveat-list li {
  position: relative; padding-left: 17px;
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.5;
}
.caveat-list li::before {
  content: ""; position: absolute; left: 4px; top: .6em;
  width: 4px; height: 4px; border-radius: 50%; background: var(--warn-ink);
}
.caveat-list b { color: var(--text); font-weight: 650; }

/* ==========================================================================
   Download routes
   ========================================================================== */

.routes { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.route {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r);
  padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px;
  min-width: 0; transition: .18s;
}
.route:hover { border-color: var(--border2); }
.route-mark {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--link);
}
.route-mark svg { width: 20px; height: 20px; }
.route p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.route-list { list-style: none; display: grid; gap: 8px; margin-top: -2px; }
.route-list li {
  position: relative; padding-left: 20px;
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.45;
}
.route-list li::before {
  content: ""; position: absolute; left: 5px; top: .55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--link);
}
.route-btn { margin-top: auto; align-self: flex-start; }
.route-caveat { margin-top: 18px; }
.route-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.route-note b { color: var(--text); font-weight: 650; }

@media (max-width: 760px) {
  .routes { grid-template-columns: 1fr; }
  .route-btn { align-self: stretch; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--rs);
  transition: .16s; overflow: hidden;
}
.faq details[open] { border-color: var(--border2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 20px;
  font-weight: 650; font-size: 15px;
  display: flex; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--hover); }
.faq summary .chev { margin-left: auto; flex: 0 0 16px; width: 16px; height: 16px; color: var(--ink-soft); transition: transform .18s; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 20px 19px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.62; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r);
  padding: clamp(26px, 4vw, 44px);
  display: grid; gap: clamp(22px, 3vw, 44px);
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: center;
}
.contact-copy h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.contact-copy .lede { font-size: 1rem; max-width: 60ch; }
.contact-action { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.contact-mail { font-size: 15px; }
.contact-mail svg { width: 18px; height: 18px; }
.contact-note { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; max-width: 30ch; }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .contact-mail { align-self: stretch; }
  .contact-note { max-width: none; }
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta-panel {
  text-align: center; border-radius: var(--r);
  border: 1px solid var(--border2);
  background:
    radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 62%),
    var(--panel);
  padding: clamp(40px, 6vw, 76px) clamp(20px, 4vw, 48px);
}
.cta-panel h2 { max-width: 18ch; margin-inline: auto; }
.cta-panel .lede { max-width: 54ch; margin-inline: auto; }
.cta-panel .hero-actions { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { border-top: 1px solid var(--border); padding-block: 40px 56px; margin-top: var(--section-y); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 4px; margin-left: auto; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 13.5px; padding: 6px 10px; border-radius: 8px; }
.footer-links a:hover { color: var(--text); background: var(--panel); }
.footer-meta { width: 100%; font-size: 12.5px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .tile, .tile.wide { grid-column: span 2; }
  .tile.full { grid-column: span 4; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip .feature-copy { order: 0; }
  .privacy { grid-template-columns: 1fr; }
}

/* The six nav links plus the CTA stop fitting beside the wordmark below this.
   .nav-links carries the margin-left:auto that pushes everything right, so the
   actions have to take it over once the links are gone. */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .nav { min-height: 62px; }
}

@media (max-width: 760px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide, .tile.full { grid-column: span 2; }
  .mock-clock { display: none; }
  .mock-board { grid-template-columns: 1fr; }
  /* Four stacked lanes is a lot of scrolling on a phone; the point is made in three. */
  .lane-wide-only { display: none; }
  .keys-list li { grid-template-columns: 1fr; gap: 5px; }
  .footer-links { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
  .brand-version { display: none; }
  .hero-actions .btn { width: 100%; }
  .btn.primary { font-size: 19px; }
  .mock-url { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
  .btn:hover, .tile:hover, .iconbtn:hover { transform: none; }
}
