/* Wren website — design system and page styles.
   Fonts: Fraunces and Figtree, self-hosted (SIL Open Font License, see assets/fonts/). */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-variable.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette */
  --ivory: #f7f3ea;
  --paper: #fdfbf7;
  --cream: #fbf5e4;
  --charcoal: #1f1d1a;
  --charcoal-2: #2a2723;
  --ink: #26231f;
  --text: #4a4640;
  --muted: #7a756c;
  --line: #e3ddd0;
  --line-strong: #d3ccbd;
  --blue: #4c6f96;
  --blue-soft: #e6edf4;
  --green: #4d6b4f;
  --green-soft: #e7eee3;
  --amber: #8a6a2f;
  --amber-soft: #f4ecd9;

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(88px, 12vw, 168px);
  --radius: 14px;
  --radius-s: 8px;
  --shadow-window: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 24px 60px -24px rgba(48, 38, 20, 0.22), 0 4px 14px -6px rgba(48, 38, 20, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -0.01em; font-variation-settings: "opsz" 144; text-wrap: balance; }
p, li { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: 12px; transform: translateY(-200%); background: var(--charcoal); color: var(--paper); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--charcoal); color: #cfc9bd; }
.section--dark h2, .section--dark h3 { color: #f6f1e6; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section--dark .eyebrow { color: #9fb6cf; }
.h-display { font-size: clamp(42px, 6.6vw, 96px); line-height: 1.04; letter-spacing: -0.018em; }
.h-section { font-size: clamp(36px, 5vw, 66px); line-height: 1.06; }
.h-feature { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; }
.blue { color: var(--blue); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.7; color: var(--text); max-width: 34em; }
.section--dark .lede { color: #cfc9bd; }
.small { font-size: 15px; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 10px;
  font: 600 16px/1 var(--sans); letter-spacing: 0.005em;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn--dark { background: var(--charcoal); color: #f6f1e6; box-shadow: 0 8px 20px -10px rgba(31, 29, 26, 0.6); }
.btn--dark:hover { background: #34302a; transform: translateY(-1px); }
.btn--ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.section--dark .btn--ghost { background: transparent; color: #f6f1e6; border-color: #4d4740; }
.btn .arrow { font-family: -apple-system, "Segoe UI Symbol", var(--sans); transition: transform 0.25s var(--ease); }
.btn:hover .arrow--out { transform: translate(2px, -2px); }
.btn:hover .arrow--down { transform: translateY(2px); }
.link-arrow { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow span { transition: transform 0.25s var(--ease); }
.link-arrow:hover span { transform: translateX(3px); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 234, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s, backdrop-filter 0.35s;
}
.header.is-scrolled { background: rgba(247, 243, 234, 0.95); border-bottom-color: var(--line); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.header__bar { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: -0.01em; font-variation-settings: "opsz" 72; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); font-size: 16px; font-weight: 500; }
.nav__links a:hover { color: var(--blue); text-decoration: none; }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: 84px 0 auto 0; background: var(--ivory); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav .btn { margin-top: 18px; min-height: 52px; }
}

/* Hero */
.hero { padding: clamp(36px, 5vw, 64px) 0 0; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 0%, rgba(255, 253, 247, 0.9), transparent 70%); pointer-events: none; }
.hero .eyebrow { color: var(--muted); letter-spacing: 0.24em; }
.hero .eyebrow img { width: 18px; height: 15px; opacity: 0.75; }
.hero h1 { margin: 0 auto; }
.hero h1 .line { text-wrap: balance; }
.hero h1 .line { display: block; }
.hero .lede { margin: 26px auto 0; text-align: center; max-width: 40em; color: var(--muted); text-wrap: balance; }
.hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.status-line { margin: 20px 0 0; font-size: 15px; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; }
.dot--pulse { box-shadow: 0 0 0 0 rgba(77, 107, 79, 0.35); animation: pulse 3.2s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(77, 107, 79, 0.35); } 70% { box-shadow: 0 0 0 8px rgba(77, 107, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(77, 107, 79, 0); } }

.hero__stage { position: relative; margin: clamp(36px, 4vw, 56px) auto 0; max-width: 980px; padding: 0 0 clamp(64px, 8vw, 110px); text-align: left; }
.hero__stage::before { content: ""; position: absolute; left: -50vw; right: -50vw; top: 34%; height: 1px; background: var(--line); }
.hero__stage::after { content: ""; position: absolute; left: -50vw; right: -50vw; top: 62%; height: 1px; background: var(--line); }

/* macOS window mockups */
.window { position: relative; z-index: 1; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-window); overflow: hidden; }
.window--cream { background: #fbf8f0; }
.window__bar { height: 46px; display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); background: linear-gradient(#fdfbf7, #f8f4ec); }
.window__lights { display: flex; gap: 7px; }
.window__lights i { width: 11px; height: 11px; border-radius: 50%; background: #dcd6ca; display: block; }
.window__title { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.window__title img { width: 18px; height: 18px; }
.window__body { padding: clamp(20px, 3.6vw, 40px); }
.caption { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.section--dark .caption { color: #8f887c; }

/* Hero capture mockup */
.capture-prompt { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--muted); }
.capture-prompt svg { width: 18px; height: 18px; }
.capture-input { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; min-height: 52px; }
.capture-input .typed { font-size: clamp(20px, 2.6vw, 30px); color: var(--ink); letter-spacing: -0.01em; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--blue); vertical-align: -0.15em; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.send { color: var(--blue); width: 28px; height: 28px; flex: none; opacity: 0.35; transition: opacity 0.4s, transform 0.4s var(--ease); }
.send.is-ready { opacity: 1; }
.send.is-sent { transform: translateX(6px); opacity: 0.25; }
.window__foot { border-top: 1px solid var(--line); padding: 16px clamp(20px, 3.6vw, 40px); display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); background: #faf7f0; }
.window__foot svg { width: 16px; height: 16px; }

.result-card {
  position: absolute; z-index: 2; right: clamp(-28px, -2vw, 0px); bottom: clamp(24px, 4vw, 48px);
  width: min(360px, 78%);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 12px; padding: 22px 24px;
  box-shadow: 0 30px 60px -28px rgba(48, 38, 20, 0.35), 0 6px 16px -8px rgba(48, 38, 20, 0.16);
  opacity: 0; transform: translateY(14px) scale(0.98);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.result-card.is-in { opacity: 1; transform: none; }
.result-card__status { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--green); font-weight: 500; }
.result-card__status svg { width: 18px; height: 18px; }
.result-card__title { font-size: 20px; color: var(--ink); margin: 14px 0 6px; font-weight: 500; }
.result-card__meta { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--muted); }
.result-card__meta svg { width: 15px; height: 15px; }
.illustrative { position: absolute; left: 0; bottom: clamp(20px, 3vw, 40px); font-size: 13px; color: var(--muted); }

/* Generic two-column feature */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.feature--flip > :first-child { order: 2; }
.feature h2, .voice-grid h2, .intro h2, .name h2 { margin-bottom: 28px; }
.intro h2 { margin-bottom: 0; }
.feature .lede { margin-bottom: 22px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip > :first-child { order: 0; }
}

/* Status chips */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font: 600 12.5px/1.3 var(--sans); letter-spacing: 0.02em; white-space: nowrap; border: 1px solid transparent; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--available { color: var(--green); background: var(--green-soft); }
.chip--auth { color: var(--blue); background: var(--blue-soft); }
.chip--dev { color: var(--amber); background: var(--amber-soft); }
.chip--soon { color: var(--muted); background: transparent; border-color: var(--line-strong); }
.section--dark .chip--dev { background: rgba(244, 236, 217, 0.1); color: #e2c88f; }

/* Intro: what Wren does */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.flow { list-style: none; margin: clamp(56px, 7vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.flow li { padding: 26px 24px 0 0; position: relative; }
.flow li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.flow b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); margin-bottom: 8px; font-variation-settings: "opsz" 72; }
.flow span { font-size: 16px; color: var(--muted); }
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; align-items: start; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* Task list mockup */
.tasks__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.tasks__head strong { font-size: 19px; color: var(--ink); font-weight: 600; }
.tasks__head span { font-size: 14px; color: var(--muted); }
.task { display: grid; grid-template-columns: 26px 1fr auto; gap: 16px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); }
.task:first-of-type { border-top: 0; }
.ring { width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--blue); margin-top: 3px; }
.ring--done { border-color: var(--green); display: grid; place-items: center; color: var(--green); }
.ring--done svg { width: 12px; height: 12px; }
.task__title { color: var(--ink); font-size: 17px; font-weight: 500; }
.task__meta { color: var(--muted); font-size: 14.5px; margin-top: 3px; }
.task--done .task__title { text-decoration: line-through; text-decoration-color: rgba(38, 35, 31, 0.5); color: var(--muted); }
.tag { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: 4px 9px; margin-top: 2px; }
.sentence { display: flex; gap: 14px; align-items: center; margin: 0 0 28px; padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: 10px; font-size: 16px; color: var(--ink); background: rgba(255, 255, 255, 0.5); }
.sentence svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

/* Voice */
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.panel-dark { background: #2b2824; border: 1px solid #3c3731; border-radius: var(--radius); padding: 22px 24px 20px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.panel-dark__top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #9d968a; }
.panel-dark__top span { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.panel-dark__top img { width: 16px; height: 13px; }
.panel-dark__text { font-size: clamp(19px, 2vw, 24px); color: #f4efe4; margin: 18px 0 18px; min-height: 2.6em; line-height: 1.35; }
.listening { display: flex; align-items: center; gap: 14px; }
.wave { display: flex; align-items: center; gap: 3px; height: 28px; }
.wave i { width: 3px; border-radius: 3px; background: #9fb6cf; height: 6px; transform-origin: center; }
.is-listening .wave i { animation: wave 1.1s var(--ease) infinite; }
.wave i:nth-child(2) { animation-delay: 0.1s !important; } .wave i:nth-child(3) { animation-delay: 0.22s !important; }
.wave i:nth-child(4) { animation-delay: 0.34s !important; } .wave i:nth-child(5) { animation-delay: 0.16s !important; }
.wave i:nth-child(6) { animation-delay: 0.28s !important; } .wave i:nth-child(7) { animation-delay: 0.05s !important; }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 26px; } }
.listening__label { font-size: 15px; color: #f4efe4; font-weight: 600; }
.listening__sub { font-size: 13px; color: #9d968a; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #d06a56; }
.panel-dark__result { margin-top: 18px; border-top: 1px solid #3c3731; padding-top: 16px; display: none; }
.panel-dark__result.is-in { display: block; animation: rise 0.8s var(--ease) both; }
.panel-dark__result .result-card__status { color: #a9c3a3; }
.panel-dark__result p { margin: 8px 0 0; color: #f4efe4; font-size: 16px; }
.panel-dark__result small { color: #9d968a; font-size: 14px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid #3a352f; font-size: 16px; color: #cfc9bd; transition: color 0.4s; }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: 12px; letter-spacing: 0.08em; color: #8f887c; padding-top: 4px; }
.steps li.is-active { color: #f6f1e6; }
.steps li.is-active::before { color: #9fb6cf; }
.keys { display: inline-flex; gap: 6px; vertical-align: middle; margin: 0 4px; }
kbd { font: 600 13px/1 var(--sans); padding: 6px 8px; border-radius: 6px; background: #3a352f; color: #f4efe4; border: 1px solid #4d4740; box-shadow: 0 2px 0 #171512; }
.voice-note { margin-top: 24px; padding: 18px 20px; border: 1px solid #3c3731; border-radius: 10px; font-size: 15px; color: #b7b0a3; }
@media (max-width: 900px) { .voice-grid { grid-template-columns: 1fr; } }

/* GPT delegation */
.requests { display: grid; gap: 0; }
.request { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.request:first-child { border-top: 0; padding-top: 4px; }
.request__q { font-size: 16.5px; color: var(--ink); }
.request__src { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.state { font: 600 13px/1 var(--sans); padding: 7px 11px; border-radius: 999px; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; transition: background-color 0.5s var(--ease), color 0.5s var(--ease); }
.state--prepared { background: #f0ece3; color: var(--muted); }
.state--running { background: var(--blue-soft); color: var(--blue); }
.state--running::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.9s linear infinite; }
.state--done { background: var(--green-soft); color: var(--green); }
.state--failed { background: var(--amber-soft); color: var(--amber); }
@keyframes spin { to { transform: rotate(360deg); } }
.view-result { display: none; margin-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--blue); }
.view-result.is-in { display: inline-flex; gap: 6px; animation: rise 0.6s var(--ease) both; }
.toast { margin-top: 22px; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, 0.75); box-shadow: 0 16px 30px -22px rgba(48, 38, 20, 0.4); opacity: 0; transform: translateY(8px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.toast.is-in { opacity: 1; transform: none; }
.toast img { width: 34px; height: 34px; border-radius: 8px; }
.toast b { color: var(--ink); font-size: 15px; display: block; font-weight: 600; }
.toast span { font-size: 14px; color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; }
.facts svg { width: 18px; height: 18px; color: var(--blue); margin-top: 4px; }

/* Email briefing */
.briefing__date { font-size: 13px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.briefing__title { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); margin: 8px 0 22px; font-variation-settings: "opsz" 72; }
.mail { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.mail__cat { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--blue); }
.mail__cat--quiet { color: var(--muted); }
.mail__line { font-size: 16.5px; color: var(--ink); margin-top: 4px; }
.mail__why { font-size: 14px; color: var(--muted); margin-top: 2px; }
.mail__actions { display: flex; gap: 8px; align-items: start; }
.mini { font-size: 12.5px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--ink); background: var(--paper); white-space: nowrap; }
.mini--muted { color: var(--muted); }
.ladder { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.ladder li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.ladder b { color: var(--ink); font-weight: 600; display: block; }
.ladder span { font-size: 15px; color: var(--muted); }
@media (max-width: 560px) { .mail { grid-template-columns: 1fr; } .ladder li { grid-template-columns: 1fr; } }

/* Reminders lifecycle */
.lifecycle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; list-style: none; padding: 0; margin: clamp(48px, 6vw, 72px) 0 0; position: relative; }
.lifecycle::before { content: ""; position: absolute; top: 12px; left: 10%; right: 10%; height: 1px; background: var(--line-strong); }
.lifecycle li { text-align: center; padding: 0 10px; position: relative; }
.lifecycle .node { width: 25px; height: 25px; border-radius: 50%; margin: 0 auto 18px; background: var(--ivory); border: 1.5px solid var(--line-strong); position: relative; transition: border-color 0.5s, background 0.5s; }
.lifecycle li.is-active .node { border-color: var(--blue); background: var(--blue-soft); }
.lifecycle li.is-done .node { border-color: var(--green); background: var(--green); }
.lifecycle b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }
.lifecycle span { font-size: 14.5px; color: var(--muted); }
.reminder-stage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: clamp(48px, 6vw, 72px); }
.notif { background: rgba(250, 248, 243, 0.92); border: 1px solid var(--line-strong); border-radius: 18px; padding: 16px 18px; box-shadow: 0 30px 60px -30px rgba(48, 38, 20, 0.4); display: grid; grid-template-columns: 38px 1fr; gap: 12px; max-width: 420px; justify-self: center; width: 100%; }
.notif img { width: 38px; height: 38px; border-radius: 9px; }
.notif__app { font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; }
.notif__title { font-size: 15.5px; color: var(--ink); font-weight: 600; margin-top: 2px; }
.notif__body { font-size: 14px; color: var(--text); }
.notif__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.notif__actions span { text-align: center; font-size: 13.5px; padding: 8px; border-radius: 8px; background: #efebe3; color: var(--ink); font-weight: 500; transition: background 0.4s, color 0.4s; }
.notif__actions span.is-pressed { background: var(--green); color: #fff; }
@media (max-width: 900px) {
  .lifecycle { grid-template-columns: 1fr; gap: 22px; text-align: left; }
  .lifecycle::before { top: 0; bottom: 0; left: 12px; right: auto; width: 1px; height: auto; }
  .lifecycle li { display: grid; grid-template-columns: 25px 1fr; gap: 16px; text-align: left; padding: 0; }
  .lifecycle .node { margin: 0; }
  .reminder-stage { grid-template-columns: 1fr; }
}

/* Mac companion composition */
.desk { position: relative; margin-top: clamp(48px, 6vw, 80px); border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #e9e2d3 0%, #dfe5ea 55%, #e6dfd1 100%); border: 1px solid var(--line-strong); aspect-ratio: 16 / 9; min-height: 420px; width: 100%; }
.menubar { height: 28px; background: rgba(253, 251, 247, 0.72); backdrop-filter: blur(10px); display: flex; justify-content: space-between; align-items: center; padding: 0 16px; font-size: 13px; color: var(--ink); }
.menubar__left { display: flex; gap: 18px; font-weight: 500; }
.menubar__right { display: flex; gap: 14px; align-items: center; color: var(--text); }
.menubar__bird { padding: 3px 6px; border-radius: 5px; background: rgba(31, 29, 26, 0.08); display: inline-flex; }
.menubar__bird img { width: 18px; height: 15px; }
.desk__window { position: absolute; left: 6%; top: 15%; width: 54%; }
.desk__window .window__body { padding: 18px 22px; }
.desk__side { display: grid; grid-template-columns: 120px 1fr; min-height: 220px; }
.desk__nav { border-right: 1px solid var(--line); padding: 14px 10px; font-size: 12.5px; color: var(--muted); display: grid; gap: 6px; align-content: start; }
.desk__nav span { padding: 4px 8px; border-radius: 6px; }
.desk__nav span.on { background: #ece6d9; color: var(--ink); }
.desk__main { padding: 16px 18px; font-size: 13px; }
.desk__main b { font-family: var(--serif); font-size: 19px; color: var(--ink); font-weight: 600; display: block; margin-bottom: 10px; }
.desk__row { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); color: var(--ink); }
.desk__row em { font-style: normal; color: var(--muted); }
.desk__capture { position: absolute; left: 34%; top: 62%; width: 46%; background: rgba(253, 251, 247, 0.94); border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 18px; box-shadow: 0 30px 60px -24px rgba(48, 38, 20, 0.4); font-size: 15px; color: var(--ink); }
.desk__capture small { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.desk__notif { position: absolute; right: 3%; top: 10%; width: 32%; padding: 12px 14px; }
.desk__notif .notif__title { font-size: 13.5px; }
.desk__notif .notif__body { font-size: 12.5px; }
.desk__notif img { width: 30px; height: 30px; }
.desk__notif { grid-template-columns: 30px 1fr; }
.desk__settings { position: absolute; right: 4%; bottom: 17%; width: 30%; }
.desk__settings .window__bar { height: 34px; }
.desk__settings .window__body { padding: 12px 14px; font-size: 12.5px; }
.conn-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink); }
.conn-row:first-child { border-top: 0; }
.conn-row .chip { font-size: 10.5px; padding: 3px 7px; }
.dock { position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); display: flex; gap: 10px; padding: 8px 12px; border-radius: 16px; background: rgba(253, 251, 247, 0.55); border: 1px solid rgba(255, 255, 255, 0.6); backdrop-filter: blur(12px); }
.dock i { width: 34px; height: 34px; border-radius: 9px; background: rgba(31, 29, 26, 0.1); display: block; }
.dock img { width: 34px; height: 34px; }
.dock .running { position: relative; }
.dock .running::after { content: ""; position: absolute; bottom: -6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink); }
@media (max-width: 760px) {
  .desk { aspect-ratio: auto; min-height: 0; padding-bottom: 72px; }
  .desk__window, .desk__capture, .desk__notif, .desk__settings { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; margin: 16px; }
  .desk__window { margin-top: 20px; }
  .desk__side { grid-template-columns: 1fr; }
  .desk__nav { display: none; }
  .menubar__left span:not(:first-child) { display: none; }
}

/* Connectors directory */
.connectors-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 26px; }
.directory { margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--ink); }
.conn { display: grid; grid-template-columns: 56px minmax(150px, 0.8fr) 2fr auto; gap: 20px 28px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: background-color 0.3s var(--ease); }
.conn:hover { background: rgba(255, 255, 255, 0.45); }
.conn__icon { width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line-strong); display: grid; place-items: center; background: var(--paper); color: var(--ink); }
.conn__icon svg { width: 22px; height: 22px; }
.conn__name { font-family: var(--serif); font-size: 25px; font-weight: 600; color: var(--ink); font-variation-settings: "opsz" 72; }
.conn__kind { display: block; font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; margin-top: 2px; }
.conn__desc { font-size: 16px; color: var(--text); }
.conn__desc small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.conn .chip { justify-self: end; }
@media (max-width: 900px) {
  .connectors-head { grid-template-columns: 1fr; }
  .conn { grid-template-columns: 48px 1fr; gap: 8px 16px; }
  .conn__desc { grid-column: 2; }
  .conn .chip { grid-column: 2; justify-self: start; }
}

/* Principles */
.principles-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 120px); }
.principles-grid h2 { position: sticky; top: 120px; }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { padding: 30px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles .num { font-family: var(--serif); font-size: 15px; color: var(--blue); padding-top: 8px; font-variation-settings: "opsz" 14; }
.principles h3 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 8px; font-variation-settings: "opsz" 72; }
.principles p { margin: 0; color: var(--text); }
@media (max-width: 900px) { .principles-grid { grid-template-columns: 1fr; } .principles-grid h2 { position: static; } }

/* Name story */
.name { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.name__art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.name__art svg.flight { position: absolute; inset: 0; width: 100%; height: 100%; }
.name__art svg.flight path { fill: none; stroke: #5a544b; stroke-width: 1; stroke-dasharray: 3 6; }
.name__mark { position: absolute; width: 46%; left: 30%; top: 30%; animation: drift 9s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -8px); } }
.name blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 27px); line-height: 1.45; color: #f6f1e6; font-weight: 400; font-variation-settings: "opsz" 36; }
.name p { color: #cfc9bd; }
@media (max-width: 900px) { .name { grid-template-columns: 1fr; } .name__art { max-width: 320px; } }

/* About */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.about__icon { width: min(380px, 100%); justify-self: center; filter: drop-shadow(0 30px 40px rgba(48, 38, 20, 0.18)); }
.about__links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 30px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about__icon { width: min(240px, 70%); } }

/* Pricing */
.price { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.price__big { font-family: var(--serif); font-size: clamp(64px, 9vw, 128px); line-height: 0.95; color: var(--ink); font-weight: 600; letter-spacing: -0.03em; font-variation-settings: "opsz" 144; }
.price__big small { display: block; font-family: var(--sans); font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 16px; }
.checks { list-style: none; margin: 30px 0 34px; padding: 0; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 16.5px; color: var(--ink); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks svg { width: 18px; height: 18px; color: var(--green); margin-top: 4px; }
@media (max-width: 900px) { .price { grid-template-columns: 1fr; } }

/* Privacy narrative */
.privacy-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--ink); }
.privacy-cols > div { padding: 30px 32px 10px 0; }
.privacy-cols > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.privacy-cols h3 { font-size: 24px; margin-bottom: 14px; font-variation-settings: "opsz" 72; }
.privacy-cols ul { margin: 0; padding: 0 0 0 18px; color: var(--text); font-size: 16px; }
.privacy-cols li { margin-bottom: 10px; }
@media (max-width: 900px) {
  .privacy-cols { grid-template-columns: 1fr; }
  .privacy-cols > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Closing */
.closing { text-align: center; padding: clamp(110px, 14vw, 200px) 0; position: relative; overflow: hidden; }
.closing .wrap { position: relative; }
.closing h2 { max-width: 13ch; margin: 0 auto; }
.closing .lede { margin: 28px auto 40px; text-align: center; }
.closing__bird { width: 64px; margin: 0 auto 34px; opacity: 0.9; }

/* Footer */
.footer { background: var(--charcoal); color: #a59e91; padding: clamp(64px, 8vw, 96px) 0 40px; font-size: 15px; }
.footer a { color: #e9e3d6; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer .brand { color: #f6f1e6; }
.footer .brand img { border-radius: 9px; }
.footer__about { max-width: 30em; margin-top: 18px; }
.footer h4 { margin: 0 0 14px; font: 600 12.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #8f887c; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__word { margin: clamp(56px, 7vw, 96px) 0 0; font-family: var(--serif); font-weight: 600; font-size: clamp(96px, 22vw, 300px); line-height: 0.8; letter-spacing: -0.04em; color: #2b2824; display: flex; align-items: flex-end; gap: 0.08em; user-select: none; font-variation-settings: "opsz" 144; }
.footer__word img { width: 0.36em; height: auto; opacity: 0.18; margin-bottom: 0.1em; }
.footer__bottom { margin-top: 28px; padding-top: 26px; border-top: 1px solid #36322c; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* Long-form pages (privacy, 404) */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(80px, 10vw, 140px); }
.doc h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.04; margin-bottom: 22px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.doc h2 { font-size: clamp(26px, 3vw, 34px); margin: 64px 0 18px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.doc h3 { font-size: 21px; margin: 28px 0 10px; font-variation-settings: "opsz" 36; }
.doc p, .doc li { font-size: 17.5px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc code { font-size: 0.88em; background: #efeadf; padding: 2px 6px; border-radius: 5px; color: var(--ink); word-break: break-word; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin: 0 0 24px; }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { font-size: 15.5px; margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.callout { border-left: 3px solid var(--blue); background: var(--paper); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 22px 0; font-size: 16.5px; }
.lost { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.lost img { width: 72px; margin: 0 auto 30px; }

/* Reveal on scroll (only when JavaScript runs and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.12s; }
.js .reveal[data-delay="2"] { transition-delay: 0.24s; }
.js .reveal[data-delay="3"] { transition-delay: 0.36s; }
.js .hero-in { opacity: 0; transform: translateY(16px); animation: heroIn 1.2s var(--ease) forwards; }
.js .hero-in[data-delay="1"] { animation-delay: 0.15s; }
.js .hero-in[data-delay="2"] { animation-delay: 0.35s; }
.js .hero-in[data-delay="3"] { animation-delay: 0.55s; }
.js .hero-in[data-delay="4"] { animation-delay: 0.75s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero-in { opacity: 1; transform: none; }
  .caret { display: none; }
  .name__mark { animation: none; }
}

/* Small screens: hero refinements */
@media (max-width: 640px) {
  .hero .eyebrow { letter-spacing: 0.16em; font-size: 12px; flex-wrap: wrap; justify-content: center; max-width: 22em; }
  .status-line { display: block; max-width: 22em; margin-left: auto; margin-right: auto; line-height: 1.5; }
  .status-line .dot { margin-right: 8px; vertical-align: 2px; }
  .hero__stage { padding-bottom: 56px; }
  .hero__stage::before, .hero__stage::after { display: none; }
  .result-card { position: relative; right: auto; bottom: auto; width: auto; margin: -18px 14px 0 auto; max-width: 300px; }
  .illustrative { position: static; margin-top: 18px; }
  .window__foot { font-size: 13px; }
  .btn { width: 100%; max-width: 340px; }
  .nav .btn { max-width: none; }
}

/* Download page */
.download__box { margin: 8px 0 8px; padding: 26px 28px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--paper); }
.download__box p { margin: 0 0 12px; }
.download__box p:last-child { margin-bottom: 0; }
.download__box [hidden] { display: none !important; }


/* Demo video */
.demo { margin: clamp(28px, 4vw, 44px) auto 0; max-width: 1040px; }
.demo__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #11100e; border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(23, 21, 18, 0.45); }
.demo figcaption { margin-top: 12px; text-align: center; }
.demo--compact { margin: 8px 0 28px; }
#demo .eyebrow, #demo h2, #demo .lede { text-align: center; margin-left: auto; margin-right: auto; }
#demo .eyebrow { display: flex; justify-content: center; }

/* Guide and shortcuts pages */
.doc kbd { font: 600 13px/1 var(--sans); padding: 4px 7px; border-radius: 6px; background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: 0 1px 0 var(--line-strong); white-space: nowrap; }
.doc ol { padding-left: 22px; }
.table-wrap { overflow-x: auto; margin: 8px 0 16px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.doc td:first-child { white-space: nowrap; width: 34%; }
@media (max-width: 560px) { .doc td:first-child { white-space: normal; } }
