:root {
  --ink: #1b2230;
  --ink-soft: #4a5468;
  --paper: #f7f9fc;
  --paper-deep: #e9eef5;
  --teal: #2d6670;
  --teal-deep: #234f57;
  --amber: #ffb547;
  --amber-dim: #c48a35;
  --term: #17120c;
  --slate: #35456a;
  --slate-deep: #243052;
  --line: #d3dae6;
  --font: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 60ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1rem + 4.4vw, 4.25rem); letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(1.7rem, 1rem + 2.2vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
kbd {
  font: 500 0.85em var(--mono);
  padding: 0.05em 0.4em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
}
strong { font-weight: 600; }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85em 1.45em;
  background: var(--teal); color: #fff;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none;
  border: 2px solid var(--teal);
  transition: background-color 150ms, border-color 150ms;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: rgba(45, 102, 112, 0.08); color: var(--teal-deep); }
.btn-small { padding: 0.6em 1.05em; font-size: 0.925rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-btn {
  font: inherit; color: var(--teal); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.15em;
}

/* Header */
.top {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: 18px var(--gutter);
  max-width: 1200px; margin: 0 auto;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 181, 71, 0.25);
}
.top nav { display: flex; gap: clamp(12px, 2vw, 28px); margin-left: auto; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--ink); }
.top .btn-small { flex-shrink: 0; }

/* Shared section rhythm */
main > section { padding: clamp(56px, 9vw, 120px) var(--gutter); }
main > section > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { max-width: var(--measure); margin-top: 14px; font-size: 1.15rem; color: var(--ink-soft); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  max-width: 1120px;
  margin: 0 auto;
  padding-top: clamp(24px, 5vw, 64px) !important;
}
.hero > * { margin-left: 0; margin-right: 0; width: 100%; }
.hero-copy { padding-bottom: clamp(12px, 3vw, 48px); }
.hero .lede { margin-top: 24px; max-width: 52ch; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-soft); }
.hero .lede strong { color: var(--ink); }
.hero .cta-row { margin-top: 32px; }
.hero .fine { margin-top: 18px; max-width: 48ch; font-size: 0.925rem; color: var(--ink-soft); }

.hero-stage { display: flex; flex-direction: column; align-items: flex-end; }
.wallpaper {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 520 / 500;
  border-radius: 28px 28px 10px 10px;
  background:
    radial-gradient(120% 90% at 70% 10%, #58709a 0%, var(--slate) 48%, var(--slate-deep) 100%);
  overflow: visible;
}
.wallpaper::after {
  /* the taskbar: he sits just above it, like on your desktop */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
  background: rgba(20, 26, 44, 0.75);
  border-radius: 0 0 10px 10px;
}
#room {
  position: absolute; right: 0; bottom: 30px;
  width: min(76%, 420px); height: auto; aspect-ratio: 420 / 460;
  display: block;
  cursor: pointer;
  z-index: 1;
}
.bubble {
  position: absolute; left: 6%; top: 10%;
  max-width: 50%;
  padding: 12px 16px;
  background: #fff; color: var(--ink);
  border-radius: 16px 16px 16px 4px;
  font-size: 0.95rem; line-height: 1.4;
  box-shadow: 0 10px 30px rgba(16, 22, 38, 0.25);
  opacity: 0; transform: translateY(6px);
  transition: opacity 220ms, transform 220ms;
  z-index: 2;
}
.bubble.on { opacity: 1; transform: none; }
.stage-hint {
  width: 100%; max-width: 520px; margin-top: 12px;
  font-size: 0.875rem; color: var(--ink-soft);
}
@media (prefers-reduced-motion: reduce) {
  .bubble { transition: none; }
}

/* How it works */
.how { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  counter-reset: step;
}
.steps li { position: relative; padding-top: 18px; border-top: 3px solid var(--teal); }
.steps .n {
  display: block; font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  color: var(--teal); margin-bottom: 14px;
}
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-soft); }

/* Your subscription */
.where {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch; gap: 0;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.where .screen {
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 32px);
  position: relative;
  background: #fff;
}
.where .screen::after {
  /* monitor foot */
  content: ""; position: absolute; left: 50%; bottom: -16px; width: 90px; height: 14px;
  transform: translateX(-50%);
  background: var(--ink);
  border-radius: 0 0 8px 8px;
}
.where .his { border-color: var(--teal); background: #eef5f6; }
.where .his::after { background: var(--teal); }
.where h3 { margin-bottom: 14px; }
.where ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.where li + li { margin-top: 8px; }
.where .link {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  padding: 0 clamp(14px, 2.5vw, 36px);
  font-size: 0.85rem; color: var(--ink-soft); text-align: center;
  position: relative;
}
.where .link::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 2px dashed var(--teal);
  z-index: 0;
}
.where .link span { background: var(--paper); padding: 2px 6px; position: relative; z-index: 1; }

.truths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin: 0; }
.truths dt { font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.truths dd { margin: 0; color: var(--ink-soft); }

/* Watch, take over, stop */
.control {
  background: var(--term);
  color: #f3e9d8;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  max-width: none !important;
}
.control > * { max-width: 540px; margin-left: 0; margin-right: 0; }
.control-copy { justify-self: end; width: 100%; }
.control h2 { color: #fff; }
.control-points { margin-top: 32px; display: grid; gap: 24px; }
.control-points h3 { color: var(--amber); margin-bottom: 6px; }
.control-points p { color: #d9ccb6; }
.term { margin: 0; width: 100%; justify-self: start; }
.term figcaption { font-size: 0.85rem; color: #9a8a70; margin-bottom: 10px; }
.term pre {
  margin: 0;
  background: #0f0b07;
  border: 1px solid #3a2c18;
  border-radius: 12px;
  padding: clamp(16px, 2.5vw, 28px);
  font: 500 0.92rem/1.75 var(--mono);
  color: var(--amber);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-shadow: 0 0 10px rgba(255, 181, 71, 0.35);
}
.term .ask { color: #ffe6bd; }
.term .res { color: var(--amber-dim); text-shadow: none; }
.term .say { color: var(--amber); }
.term .cur { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .term .cur { animation: none; } }

/* Settings */
.tune { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tune dl {
  margin: clamp(28px, 4vw, 44px) auto 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px);
}
.tune dt { font-weight: 600; font-size: 1.1rem; margin-bottom: 6px; color: var(--teal); }
.tune dd { margin: 0; color: var(--ink-soft); }

/* FAQ */
.faq > * { max-width: 760px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 40px 18px 0;
  font-weight: 600; font-size: 1.1rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--teal); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: var(--measure); }

/* Final */
.final { text-align: center; }
.final p { margin: 14px auto 28px; color: var(--ink-soft); font-size: 1.15rem; }
.final .cta-row { justify-content: center; }

/* Footer */
footer {
  padding: 32px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft); font-size: 0.9rem;
}
footer > p { max-width: 1120px; margin: 0 auto; }
footer .wordmark { font-size: 1rem; margin-right: 14px; }
footer .legal { margin-top: 12px; }

/* Responsive */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero-stage { align-items: center; }
  .wallpaper { max-width: 480px; }
  .steps, .truths, .tune dl { grid-template-columns: 1fr; }
  .where { grid-template-columns: 1fr; }
  .where .link { padding: 28px 0; flex-direction: row; gap: 16px; }
  .where .link::before { top: 50%; }
  .where .screen::after { display: none; }
  .control { grid-template-columns: minmax(0, 1fr); }
  .control > * { max-width: 720px; justify-self: stretch; }
}
@media (max-width: 640px) {
  .top { flex-wrap: wrap; gap: 12px 16px; }
  .top nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; gap: 8px 18px; font-size: 0.95rem; }
  .top .btn-small { margin-left: auto; }
  .hero .cta-row .btn { width: 100%; }
  .wallpaper { aspect-ratio: 1 / 1.05; }
  #room { width: 86%; }
  .bubble { max-width: 70%; }
  .term pre { font-size: 0.82rem; }
}
