/* Mind Clean — site. "Menos, porém melhor": one quiet object, matte greys, one sage dot switched on.
   Day colorway by default; night colorway in dark mode and in the closing section. Everything on an 8 px grid. */

/* Geist and Geist Mono (SIL Open Font License), self-hosted: one static file per weight, latin and latin-ext. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/geist-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/geist-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/geist-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/geist-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/geist-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'Geist'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/geist-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/geist-mono-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/geist-mono-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/geist-mono-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'Geist Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/geist-mono-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ground: #eceeec;
  --object: #f7f8f7;
  --object-2: #f1f3f1;
  --ink: #1f2321;
  --ink-2: #555d59;
  --ink-3: #636b67;
  --line: #d9ddda;
  --hole: #dde1de;
  --sage: #4a6761;
  --sage-deep: #3a524d;
  --sage-text: #3a524d;
  --sage-soft: #dfe7e4;
  --on-sage: #ffffff;

  --night: #191c1b;
  --night-object: #222624;
  --night-ink: #eef0ee;
  --night-ink-2: #a7afab;
  --night-ink-3: #8a928e;
  --night-line: #323735;

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --step-small: 0.875rem;
  --step-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-lead: clamp(1.125rem, 1.04rem + 0.4vw, 1.375rem);
  --step-sub: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.5rem + 3vw, 4.5rem);
  --step-display: clamp(4rem, 15vw, 16rem);

  --m: clamp(20px, 4vw, 64px);
  --gap: clamp(128px, 16vw, 224px);
  --r-object: 28px;
  --r-small: 18px;
  --shadow: 0 1px 0 rgb(255 255 255 / 0.7) inset, 0 2px 4px rgb(31 35 33 / 0.04), 0 32px 64px -32px rgb(31 35 33 / 0.22);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #191c1b;
    --object: #222624;
    --object-2: #1e2220;
    --ink: #eef0ee;
    --ink-2: #a7afab;
    --ink-3: #8a928e;
    --line: #323735;
    --hole: #343a37;
    --sage-text: #9cc2b8;
    --sage-soft: #26332f;
    --shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 32px 64px -32px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
@media (prefers-color-scheme: dark) {
  .dot:not(.dot--warn), .lamp, .wordmark::before, .grille i.is-on.is-on { box-shadow: 0 0 0 1px color-mix(in srgb, var(--sage) 60%, white); }
  .grille i { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04); }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-color: var(--line) var(--ground); }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sage); color: var(--on-sage); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* Frame and type */
.frame { width: min(100% - 2 * var(--m), 1312px); margin-inline: auto; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h1 { font-size: var(--step-display); line-height: 0.92; letter-spacing: -0.055em; }
h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -0.04em; }
h3 { font-size: var(--step-sub); line-height: 1.2; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
.lead { font-size: var(--step-lead); line-height: 1.45; color: var(--ink-2); max-width: 36ch; }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.24em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color 200ms var(--ease); }
.link:hover { text-decoration-color: currentColor; }

/* The one sage dot */
.dot { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--sage); }
.dot--warn { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-2); }

/* Controls: pills. Pressed sinks, chosen gets sage, disabled fades. */
.pill, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--on-sage);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.18) inset, 0 6px 16px -8px rgb(58 82 77 / 0.6);
  transition: background 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.pill:hover, .button:hover { background: var(--sage-deep); }
.pill:active, .button:active { transform: translateY(1px); box-shadow: 0 1px 2px rgb(0 0 0 / 0.2) inset; }
.pill:disabled { opacity: 0.5; cursor: default; }
.pill--small, .button--small { min-height: 40px; padding: 0 18px; font-size: var(--step-small); }
.pill--quiet { background: var(--object); color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; }
.pill--quiet:hover { background: var(--object-2); }

/* Bar */
.bar { display: flex; align-items: center; gap: 40px; height: 88px; font-size: var(--step-small); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.wordmark::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }
.wordmark img { display: none; }
.wordmark-strong { font-weight: inherit; color: inherit; }
.bar nav { display: flex; gap: 32px; margin-left: auto; }
.bar nav a { color: var(--ink-2); text-decoration: none; transition: color 200ms var(--ease); }
.bar nav a:hover, .bar nav a[aria-current='page'] { color: var(--ink); }
.subnav { display: none; }

/* Objects: the product surfaces, each one thing on the ground */
.device { position: relative; border-radius: var(--r-object); background: var(--object); box-shadow: var(--shadow); }
.device--small { border-radius: var(--r-small); padding: 24px; }
.device-label { color: var(--ink-3); font-size: var(--step-small); }
.device-note { color: var(--ink-3); }

/* ——— Hero ——— */
.hero { padding-top: clamp(40px, 6vw, 96px); }
.hero h1 { margin-left: -0.05em; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.hero-copy { grid-column: 1 / span 4; display: grid; gap: 32px; padding-top: 8px; }
.clearing { grid-column: 5 / -1; }

.license { display: grid; gap: 16px; }
.license-row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--object); box-shadow: 0 0 0 1px var(--line) inset; transition: box-shadow 200ms var(--ease); }
.license-row:focus-within { box-shadow: 0 0 0 2px var(--sage) inset; }
.license input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 0; background: transparent; caret-color: var(--sage); }
.license input:focus { outline: none; }
.license input::placeholder { color: var(--ink-3); }
.license .pill { min-height: 44px; }
.license-note { color: var(--ink-2); font-size: var(--step-small); max-width: 40ch; }

/* The clearing: a speaker-grille of holes; loose items fill some, then drain away. */
.clearing { padding: 24px; display: grid; gap: 24px; }
.device-strip { display: flex; align-items: center; justify-content: space-between; color: var(--ink-3); }
.strip-right { display: inline-flex; align-items: center; gap: 16px; }
.lamp { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }
.grille { display: grid; grid-template-columns: repeat(var(--cols, 24), 1fr); gap: 12px 0; justify-items: center; padding: 8px 0; }
.grille i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--hole); box-shadow: inset 0 1px 2px rgb(31 35 33 / 0.12); }
.grille i::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ink-3);
  opacity: 0;
  transform: scale(0.2);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.grille i.is-loose::after { opacity: 0.85; transform: none; }
.grille i.is-on { background: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); transition: background 700ms var(--ease), box-shadow 700ms var(--ease); transition-delay: var(--d, 0ms); }
.tomorrow { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 500; }
.plan-head .mono { color: var(--ink-3); font-weight: 400; }
.plan-list { display: grid; }
.plan-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; min-height: 40px; border-bottom: 1px solid var(--line); }
.plan-list li:last-child { border-bottom: 0; }
.plan-list .mono { color: var(--ink-3); }
.knob { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--object-2); box-shadow: 0 0 0 1px var(--line) inset, 0 1px 2px rgb(31 35 33 / 0.08); transition: transform 200ms var(--ease); }
.knob svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.knob:hover { color: var(--ink); }
.knob:active { transform: scale(0.94); }
/* While the day is still loose, tomorrow's list waits. */
.js .clearing .plan-list li { transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: var(--d, 0ms); }
.js .clearing.is-loose .plan-list li { opacity: 0.15; transform: translateX(-8px); }

/* ——— The day, in courses ——— */
.day { margin-top: var(--gap); }
.day > h2 { margin-bottom: 64px; max-width: 14ch; }
.course { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; padding: 48px 0; border-top: 1px solid var(--line); }
.course:last-child { border-bottom: 1px solid var(--line); }
.course-time { grid-column: 1 / span 2; padding-top: 8px; color: var(--ink-3); }
.course-text { grid-column: 3 / span 4; display: grid; gap: 16px; }
.course-text p { color: var(--ink-2); max-width: 40ch; }
.course-text .aside { font-size: var(--step-small); color: var(--ink-3); }
.course .device { grid-column: 8 / -1; }

/* Record */
.rec { display: grid; gap: 16px; }
.rec-top { display: flex; align-items: center; justify-content: space-between; }
.rec-button { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 24px 0 16px; border-radius: 999px; background: var(--object-2); box-shadow: 0 0 0 1px var(--line) inset, 0 2px 6px rgb(31 35 33 / 0.08); font-weight: 500; transition: transform 200ms var(--ease), background 200ms var(--ease); }
.rec-button:active { transform: translateY(1px); }
.rec-dot { width: 16px; height: 16px; border-radius: 50%; background: #c8463b; box-shadow: 0 0 0 4px color-mix(in srgb, #c8463b 18%, transparent); }
.rec.is-recording .rec-dot { animation: breathe 1.6s var(--ease) infinite; }
.rec-clock { color: var(--ink-2); font-size: 1rem; }
.rec-lines { display: grid; gap: 12px; min-height: 152px; align-content: start; }
.rec-lines li { display: grid; grid-template-columns: 48px 80px 1fr; gap: 8px; align-items: baseline; animation: rise 500ms var(--ease) both; }
.rec-lines .mono { color: var(--ink-3); }
.rec-lines b { font-weight: 500; }
.rec-lines .hint { display: block; color: var(--ink-3); }
.rec-state { color: var(--ink-3); }

/* Convert */
.convert { display: grid; gap: 16px; }
.convert-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 8px 0 12px; border-radius: 12px; background: var(--object-2); }
.convert-name { flex: 1; min-width: 0; }
.box { width: 18px; height: 18px; flex: none; border-radius: 6px; box-shadow: 0 0 0 1.5px var(--ink-3) inset; transition: all 300ms var(--ease); }
.convert.is-action .box { width: 12px; height: 12px; margin: 3px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }
.convert-meta { color: var(--ink-3); }
.md { display: block; padding: 8px 12px; border-radius: 8px; background: var(--object-2); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Stalled */
.stalled { display: grid; gap: 16px; }
.stalled-line { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); }
.stalled-line .dot { transform: translateY(-1px); }
.stalled-line b { font-weight: 500; color: var(--ink); }
.meter { height: 6px; border-radius: 3px; background: var(--hole); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--sage); }

/* ——— Brain AI ——— */
.brain { margin-top: var(--gap); }
.brain-head, .files-head, .plans-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: 64px; }
.brain-head h2, .files-head h2, .plans-head h2 { grid-column: 1 / span 6; }
.brain-head .lead, .files-head .lead, .plans-intro { grid-column: 8 / -1; }
.ask { padding: 32px; display: grid; gap: 32px; }
.ask-questions { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; color: var(--ink-2); font-size: var(--step-small); box-shadow: 0 0 0 1px var(--line) inset; transition: background 200ms var(--ease), color 200ms var(--ease); }
.chip:hover { color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--sage); color: var(--on-sage); box-shadow: none; }
.ask-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.ask-answer { display: grid; gap: 12px; font-size: var(--step-lead); line-height: 1.5; min-height: 6em; align-content: start; }
.ask-answer ul { display: grid; gap: 6px; font-size: var(--step-body); color: var(--ink-2); }
.ask-answer li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 12px 2px 0; border-radius: 50%; background: var(--sage); }
.cite { color: var(--sage-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--sage); animation: blink 900ms steps(2) infinite; }
.source { padding: 16px; border-radius: 16px; background: var(--object-2); display: grid; gap: 8px; }
.source-file { color: var(--ink-3); }
.source-lines { display: grid; gap: 2px; }
.source-lines li { display: flex; gap: 16px; padding: 4px 8px; border-radius: 6px; color: var(--ink-2); }
.source-lines span { width: 2ch; flex: none; text-align: right; color: var(--ink-3); }
.source-lines .is-hit { background: var(--sage-soft); color: var(--ink); }
.modes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-top: 32px; align-items: start; }
.mode-row { grid-column: 1 / span 6; display: flex; flex-wrap: wrap; gap: 8px; }
.mode-row li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; color: var(--ink-3); font-size: var(--step-small); box-shadow: 0 0 0 1px var(--line) inset; }
.mode-row li.is-on { color: var(--ink); }
.mode-row li.is-on::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.modes p { grid-column: 8 / -1; color: var(--ink-2); font-size: var(--step-small); max-width: 52ch; }

/* ——— Files ——— */
.files { margin-top: var(--gap); }
.files-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.folder { grid-column: 1 / span 6; padding: 32px; display: grid; gap: 16px; }
.tree { display: grid; gap: 2px; }
.tree li { padding: 6px 8px; border-radius: 8px; color: var(--ink-2); }
.tree .is-dir { color: var(--ink); }
.tree .is-sub { padding-left: 32px; }
.tree .is-on { background: var(--sage-soft); color: var(--ink); }
.md-file { margin: 0; padding: 16px; border-radius: 12px; background: var(--object-2); color: var(--ink-2); font-size: 0.8125rem; line-height: 1.7; overflow-x: auto; }
.spec { grid-column: 8 / -1; display: grid; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 500; }
.spec dd { margin: 0; color: var(--ink-2); text-wrap: pretty; }

/* ——— Letter: the argument as a file ——— */
.letter { margin-top: var(--gap); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.letter-side { grid-column: 1 / span 5; display: grid; gap: 32px; position: sticky; top: 48px; }
.letter-side h2 { max-width: 10ch; }
.letter-rule { display: flex; gap: 16px; align-items: baseline; font-size: var(--step-sub); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink-2); max-width: 22ch; }
.letter-rule::before { content: ''; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); transform: translateY(-0.1em); }
.letter-file { grid-column: 7 / -1; padding: 0 0 32px; overflow: hidden; }
.file-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--object-2); color: var(--ink-3); }
.file-bar .mono { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-front { margin: 24px 40px 0; color: var(--ink-3); line-height: 1.7; }
.letter-body { display: grid; gap: 16px; margin: 24px 40px 0; font-size: var(--step-lead); line-height: 1.55; }
.letter-body p { max-width: 46ch; }
.sign { display: flex; align-items: center; gap: 12px; margin: 32px 40px 0; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 500; }
.sign .dot { box-shadow: 0 0 0 4px var(--sage-soft); }
.sign span { display: grid; }
.sign small { color: var(--ink-3); font-weight: 400; font-size: var(--step-small); }

/* ——— Plans: one spec sheet, four columns ——— */
.plans { margin-top: var(--gap); }
.plans-intro { display: grid; gap: 24px; justify-items: start; }
.plans-intro p { color: var(--ink-2); max-width: 46ch; }
.region { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--object); box-shadow: 0 0 0 1px var(--line) inset; }
.region button { min-height: 36px; padding: 0 16px; border-radius: 999px; color: var(--ink-2); font-size: var(--step-small); font-weight: 500; transition: background 200ms var(--ease), color 200ms var(--ease); }
.region button[aria-checked='true'] { background: var(--sage); color: var(--on-sage); }
.plan-sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: var(--r-object); background: var(--object); box-shadow: var(--shadow); overflow: hidden; }
.plan-sheet--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plans-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.billing { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--object); box-shadow: var(--shadow); }
.billing button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; color: var(--ink-2); font-weight: 500; transition: background 200ms var(--ease), color 200ms var(--ease); }
.billing button[aria-checked='true'] { background: var(--sage); color: var(--on-sage); }
.save { font-size: var(--step-small); font-weight: 500; opacity: 0.8; }
.plans[data-billing='annual'] [data-only='monthly'], .plans[data-billing='monthly'] [data-only='annual'] { display: none; }
.plans[data-billing='monthly'] .plan--founder > :not(h3):not([data-only]):not(.plan-points) { opacity: 0.5; }
.plans[data-billing='monthly'] .plan--founder .plan-points { opacity: 0.5; }
.plan { display: flex; flex-direction: column; gap: 8px; padding: 32px 24px; }
.plan + .plan { box-shadow: 1px 0 0 var(--line) inset; }
.plan--main { background: var(--object-2); }
.plan h3 { display: flex; align-items: center; gap: 8px; font-size: var(--step-body); font-weight: 500; letter-spacing: 0; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 8px; }
.plan-price b { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.plan-price span, .plan-sub { color: var(--ink-3); }
.plan-sub { font-size: var(--step-small); }
.plan-points { display: grid; gap: 8px; margin: 16px 0 24px; font-size: 0.9375rem; color: var(--ink-2); }
.plan-points li { position: relative; padding-left: 16px; }
.plan-points li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.plan-seats { color: var(--ink-2); font-size: var(--step-small); font-weight: 500; }
.plan .pill { margin-top: auto; }
.plans-note { margin-top: 24px; max-width: 72ch; color: var(--ink-3); font-size: var(--step-small); }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.download p { margin-right: auto; font-size: var(--step-sub); font-weight: 500; letter-spacing: -0.02em; }

/* ——— Waiting list: the head on the left, the form on the right, like the FAQ ——— */
.waitlist { margin-top: var(--gap); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.waitlist-head, .waitlist-form { display: grid; }
.waitlist-head { grid-column: 1 / span 5; gap: 24px; }
.waitlist-head p { color: var(--ink-2); max-width: 40ch; }
.waitlist-form { grid-column: 7 / -1; gap: 20px; justify-items: start; }
.waitlist-field { display: grid; gap: 8px; width: 100%; }
.waitlist-field label { color: var(--ink-2); font-size: var(--step-small); }
.waitlist-optional { color: var(--ink-3); }
.waitlist-field input, .waitlist-field select { width: 100%; height: 52px; font: inherit; padding: 0 16px; border: 0; border-radius: 12px; background: var(--object); color: var(--ink); caret-color: var(--sage); box-shadow: 0 0 0 1px var(--line) inset; transition: box-shadow 200ms var(--ease); }
.waitlist-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.waitlist-field input::placeholder { color: var(--ink-3); }
.waitlist-field input:focus, .waitlist-field select:focus { outline: none; box-shadow: 0 0 0 2px var(--sage) inset; }
.waitlist-form .pill { min-height: 52px; margin-top: 4px; }
.waitlist-check { display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); font-size: var(--step-small); max-width: 52ch; }
.waitlist-check input { accent-color: var(--sage); }
.waitlist-note { color: var(--ink-2); font-size: var(--step-small); max-width: 46ch; }
.waitlist .download { grid-column: 1 / -1; }
.hero-cta, .close-cta { display: grid; gap: 16px; justify-items: start; }
.close .close-cta { grid-column: 8 / -1; }

/* ——— FAQ ——— */
.faq { margin-top: var(--gap); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.faq h2 { grid-column: 1 / span 5; }
.faq-list { grid-column: 7 / -1; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; cursor: pointer; font-size: var(--step-lead); letter-spacing: -0.01em; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 10px; height: 10px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink-3) inset; transition: background 300ms var(--ease), box-shadow 300ms var(--ease); }
.faq details[open] summary::after { background: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }
.faq details p { padding: 0 0 24px; max-width: 58ch; color: var(--ink-2); }
.faq details[open] p { animation: rise 400ms var(--ease) both; }

/* ——— Close: night colorway ——— */
.close {
  --ground: var(--night);
  --object: var(--night-object);
  --object-2: #1e2220;
  --ink: var(--night-ink);
  --ink-2: var(--night-ink-2);
  --ink-3: var(--night-ink-3);
  --line: var(--night-line);
  --sage-soft: #26332f;
  color-scheme: dark;
  margin-top: var(--gap);
  padding: clamp(96px, 12vw, 192px) 0 clamp(80px, 10vw, 160px);
  background: var(--ground);
  color: var(--ink);
}
.close-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.close h2 { grid-column: 1 / span 7; font-size: clamp(4rem, 0.5rem + 11vw, 11rem); line-height: 0.92; letter-spacing: -0.055em; margin-left: -0.05em; }
.close .license { grid-column: 8 / -1; }
.close-label { font-size: var(--step-lead); color: var(--ink-2); }

/* ——— Footer ——— */
.quiet { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 24px; padding: 40px 0; font-size: var(--step-small); color: var(--ink-3); }
body.home .quiet { width: 100%; padding-inline: max(var(--m), (100% - 1312px) / 2); background: var(--night); color: var(--night-ink-3); border-top: 1px solid var(--night-line); }
body.home .quiet nav a { color: var(--night-ink); }
.quiet nav { display: flex; flex-wrap: wrap; gap: 24px; }
.quiet nav a { color: var(--ink); text-decoration: none; transition: color 200ms var(--ease); }
.quiet nav a:hover { color: var(--sage-text); }
body.home .quiet nav a:hover { color: #9cc2b8; }
.quiet .right { justify-self: end; }
.quiet .legal-id { grid-column: 1 / -1; max-width: 80ch; }
.quiet .legal-id a { color: inherit; }

/* ——— Long pages: documentation, terms, privacy ——— */
.doc-head { padding-top: clamp(56px, 7vw, 112px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; align-items: end; }
.doc-head h1 { grid-column: 1 / span 7; font-size: clamp(2.75rem, 1.5rem + 4.5vw, 5.5rem); }
.doc-head p { grid-column: 8 / span 5; font-size: var(--step-lead); line-height: 1.45; color: var(--ink-2); }
.doc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-top: clamp(56px, 7vw, 104px); margin-bottom: 96px; align-items: start; }
.toc { grid-column: 1 / span 3; position: sticky; top: 32px; padding: 24px; border-radius: var(--r-small); background: var(--object); box-shadow: var(--shadow); }
.toc h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 12px; }
.toc ol { display: grid; gap: 2px; font-size: 0.9375rem; }
.toc a { display: flex; align-items: center; gap: 8px; padding: 4px 0; text-decoration: none; color: var(--ink-2); transition: color 200ms var(--ease); }
.toc a::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%; background: transparent; transition: background 200ms var(--ease); }
.toc a:hover, .toc a.is-on { color: var(--ink); }
.toc a.is-on::before { background: var(--sage); }
.prose { grid-column: 5 / span 7; max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.6em; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; font-size: 1.1875rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.45em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--ink-3); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.prose a:hover { color: var(--sage-text); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose code { font-size: 0.86em; padding: 0.1em 0.35em; border-radius: 4px; background: var(--object); overflow-wrap: anywhere; }
.prose pre { padding: 16px 18px; border-radius: 12px; background: var(--object); overflow-x: auto; }
.prose pre code { padding: 0; background: none; font-size: 0.85rem; white-space: pre; overflow-wrap: normal; }
.prose kbd { font-family: var(--font); font-size: 0.85em; padding: 0.1em 0.45em; border-radius: 5px; background: var(--object); box-shadow: 0 0 0 1px var(--line) inset; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; }
.note { padding: 20px 24px; border-radius: var(--r-small); background: var(--object); box-shadow: 0 0 0 1px var(--line) inset; }
.note > * + * { margin-top: 0.8em; }

/* ——— Motion: one grammar, slow ease-out, nothing bounces ——— */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes breathe { 50% { transform: scale(0.82); opacity: 0.7; } }
@keyframes blink { 50% { opacity: 0; } }
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { transform: none; }
}

/* ——— Tablet ——— */
@media (max-width: 1080px) {
  .hero-copy { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: start; }
  .clearing { grid-column: 1 / -1; margin-top: 48px; }
  .course-time { grid-column: 1 / -1; padding: 0 0 8px; }
  .course-text { grid-column: 1 / span 5; }
  .course .device { grid-column: 7 / -1; }
  .brain-head h2, .files-head h2, .plans-head h2, .brain-head .lead, .files-head .lead, .plans-intro { grid-column: 1 / -1; }
  .brain-head .lead, .files-head .lead, .plans-intro { margin-top: 24px; }
  .mode-row, .modes p { grid-column: 1 / -1; }
  .modes p { margin-top: 16px; }
  .folder, .spec { grid-column: 1 / -1; }
  .spec { margin-top: 48px; }
  .letter-side, .letter-file { grid-column: 1 / -1; }
  .letter-side { position: static; }
  .letter-file { margin-top: 48px; }
  .plan-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan--founder { grid-column: 1 / -1; }
  .plan + .plan { box-shadow: none; }
  .plan:nth-child(even) { box-shadow: 1px 0 0 var(--line) inset; }
  .plan:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .faq h2, .faq-list { grid-column: 1 / -1; }
  .faq-list { margin-top: 40px; }
  .close h2, .close .license, .close .close-cta { grid-column: 1 / -1; }
  .close .license, .close .close-cta { margin-top: 48px; max-width: 560px; }
  .waitlist-head, .waitlist-form { grid-column: 1 / -1; }
  .waitlist-form { margin-top: 40px; max-width: 560px; }
}

/* ——— Phone ——— */
@media (max-width: 720px) {
  .bar { gap: 16px; height: 72px; }
  .bar nav { display: none; }
  .subnav { display: flex; gap: 20px; margin-top: -8px; padding-right: 32px; overflow-x: auto; scrollbar-width: none; font-size: var(--step-small); white-space: nowrap; mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .subnav a { color: var(--ink-2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
  .bar .pill, .bar .button { margin-left: auto; }
  .hero-copy { grid-template-columns: 1fr; gap: 24px; }
  .license-row { flex-direction: column; border-radius: 24px; }
  .license input { height: 52px; padding: 4px 16px 0; }
  .license .pill { width: 100%; }
  .waitlist-form .pill { width: 100%; }
  .clearing { padding: 20px; margin-top: 40px; border-radius: 24px; }
  .grille { gap: 10px 0; }
  .grille i { width: 10px; height: 10px; }
  .plan-list li { gap: 12px; font-size: 0.9375rem; }
  .day > h2 { margin-bottom: 40px; }
  .course { padding: 40px 0; row-gap: 24px; }
  .course-text, .course .device { grid-column: 1 / -1; }
  .rec-lines li { grid-template-columns: 44px 1fr; }
  .rec-lines li > span:last-child { grid-column: 1 / -1; }
  .convert-row { flex-wrap: wrap; padding: 12px; }
  .convert-row .pill { width: 100%; }
  .ask { padding: 20px; gap: 24px; border-radius: 24px; }
  .ask-body { grid-template-columns: 1fr; gap: 24px; }
  .ask-answer { min-height: 11em; }
  .folder { padding: 20px; border-radius: 24px; }
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
  .plan-sheet, .plan-sheet--two { grid-template-columns: 1fr; border-radius: 24px; }
  .plan:nth-child(n) { box-shadow: none; border-top: 1px solid var(--line); }
  .plan:first-child { border-top: 0; }
  .download p { flex-basis: 100%; }
  .download .pill { flex: 1 1 200px; }
  .close-label { font-size: var(--step-body); }
  .file-front, .letter-body, .sign { margin-inline: 20px; }
  .file-bar { padding: 14px 20px; }
  .billing { width: 100%; }
  .billing button { flex: 1; justify-content: center; }
  .quiet, body.home .quiet { grid-template-columns: 1fr; gap: 12px; }
  .quiet nav { gap: 8px 20px; }
  .quiet .right { justify-self: start; }
  .doc-head h1, .doc-head p { grid-column: 1 / -1; }
  .doc { display: block; }
  .toc { position: static; margin-bottom: 48px; }
}
.grille:empty { display: none; }
.source-lines .is-hit span { color: var(--ink-2); }
