:root {
  --ink: #111111;
  --paper: #ffffff;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --accent: #d97757;          /* used ONLY for the active agent / result moment */
  --maxw: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --hand: "Kalam", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; }

/* ---------- single-screen stage ---------- */
.stage {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 22px clamp(20px, 5vw, 56px) 16px;
  position: relative;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 20px;
}

.ghost-link {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  transition: border-color .2s, color .2s;
}
.ghost-link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.35;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 16px;
  max-width: 34ch;
}

.hero-copy h1 {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0 0 22px;
}

.ink-underline {
  position: relative;
  white-space: nowrap;
}
.ink-underline::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.06em;
  height: 0.42em;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpath d='M3 20 C 60 8, 110 26, 160 16 S 250 6, 297 18' fill='none' stroke='%23d97757' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
  z-index: -1;
  opacity: .9;
}

.sub {
  font-size: clamp(16px, 1.6vw, 20px);
  color: #333;
  max-width: 30ch;
  margin: 0 0 18px;
}

.micro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 28px;
}
.micro-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink);
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 12px;
  transition: transform .12s ease, background .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

/* ---------- the interactive stage ---------- */
.hero-stage { display: flex; flex-direction: column; align-items: stretch; }

/* feature tab strip */
.tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.tab {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 14px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* the user's question — typed (human) above the hand-drawn team (AI) */
.ask {
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-height: 28px;
  margin: 70px 0 6px;
  opacity: 0;
  transition: opacity .25s ease;
}
.ask.show { opacity: 1; }
.ask-text {
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
}
.ask-text::before { content: "“"; }
.ask-text::after { content: "”"; }
.ask.typing .ask-text::after {
  content: "▌";
  color: var(--accent);
  margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.scene-wrap { position: relative; width: 100%; }

#scene {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* CSS controls colour (inline strokes are stripped in JS so the accent can swap) */
#scene path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#scene .agent.active path { stroke: var(--accent); }

/* when the result lands, the scene recedes so the answer pops */
#scene .agent, #scene .arrow, #scene .wf-box, #scene .conv-bubble,
#scene .sch-clock, #scene .sch-hand, #scene .sch-out,
#scene .conn-card, #scene .conn-link, #scene .tele-phone { transition: opacity .45s ease; }
#scene.resolved .agent, #scene.resolved .arrow, #scene.resolved .wf-box, #scene.resolved .conv-bubble,
#scene.resolved .sch-clock, #scene.resolved .sch-hand, #scene.resolved .sch-out,
#scene.resolved .conn-card, #scene.resolved .conn-link, #scene.resolved .tele-phone { opacity: 0.16; }

/* Conversations: speech bubbles; the challenge bubble carries the accent */
#scene .conv-bubble.challenge .bub path { stroke: var(--accent); }
#scene .conv-bubble.challenge .conv-text { fill: var(--accent); }

/* Schedules: an animated clock; agents wake at their hour and produce work */
#scene .sch-hand path { stroke: var(--accent); }   /* the moving hour hand draws the eye */
.sch-agent { transition: opacity .45s ease; }
.sch-agent.asleep { opacity: 0.28; }
.sch-agent.awake .sch-z { opacity: 0; }
#scene .sch-out path { stroke: var(--accent); }     /* produced work = the highlight */

/* Connections: agents wire out to your tools, or you reach them from Telegram */
#scene .conn-link.live path { stroke: var(--accent); }  /* a live connection turns accent */
.conn-card .conn-label { font-size: 19px; }

/* Workflow: hand-drawn task boxes */
#scene .wf-box.active .box path { stroke: var(--accent); }
.wf-box .wf-label { font-size: 15px; }
#scene .wf-box.active .wf-label { fill: var(--accent); }

/* all in-scene labels are handwritten, to match the doodles */
#scene .label {
  font-family: var(--hand);
  font-weight: 700;
  fill: var(--ink);
}
.agent .label { font-size: 21px; }
#scene .agent.active .label { fill: var(--accent); }
#scene .arrow.active path { stroke: var(--accent); }

.result-card {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%) translateY(8px);
  width: min(300px, 70%);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 4px 5px 0 rgba(17,17,17,0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.result-card.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.result-title {
  font-weight: 700; font-size: 14px; margin-bottom: 8px;
  color: var(--accent);
  display: flex; align-items: center; gap: 6px;
}
.result-title::before { content: "✓"; }
.result-list { margin: 0; padding-left: 18px; text-align: left; }
.result-list li { font-size: 14px; color: #222; margin: 3px 0; }

.prompt-label {
  text-align: center;
  font-family: var(--hand);
  font-size: 19px;
  color: #555;
  margin: 8px 0 12px;
}

.cards, .controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 36px;
}
/* secondary "try it" chips — deliberately lighter than the Download / Star CTAs */
.card {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  background: var(--paper);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.card:hover { color: var(--ink); border-color: var(--ink); }
.card.selected { color: var(--ink); border-color: var(--ink); background: #fafafa; }

.scroll-hint {
  text-align: center;
  font-size: 26px;
  color: var(--muted);
  text-decoration: none;
  margin-top: 8px;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(5px);} }

/* ============ narrative scroll chapters ============ */
.chapter {
  border-top: 1px solid var(--line);
  padding: clamp(64px, 10vw, 130px) clamp(20px, 5vw, 56px);
}
.chapter-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}
/* odd chapters flip sides so the eye never settles into a column */
.chapter.flip .chapter-copy { order: 2; }
.chapter.flip .chapter-stage { order: 1; }

.chapter-num {
  font-family: var(--hand);
  font-size: 16px; font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}
.chapter-head {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.02; letter-spacing: -0.03em;
  font-weight: 800; margin: 0 0 18px;
}
.chapter-body {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65; color: #3a3a3a;
  max-width: 42ch; margin: 0 0 22px;
}
.chapter-curio {
  font-family: var(--hand);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 700; color: var(--ink); margin: 0;
}
.chapter-curio::before { content: "↳ "; color: var(--accent); }

/* the hand-drawn window frame: doodle plays inside, then the real screen fills it */
.doodle-frame {
  border: 2px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 6px 7px 0 rgba(17, 17, 17, 0.10);
}
.frame-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  border-bottom: 1.5px solid var(--ink);
  background: #fafafa;
}
.frame-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); }
.frame-title {
  margin-left: 8px;
  font-family: var(--hand);
  font-size: 14px; font-weight: 700; color: var(--muted);
}
.frame-body {
  position: relative;
  /* each chapter sets --shot-ratio to its screenshot's exact w/h so the image
     fills the frame with no crop and no letterbox */
  aspect-ratio: var(--shot-ratio, 1.5 / 1);
  cursor: pointer;
  background: var(--paper);
}
.chapter-scene {
  /* viewBox matches the screenshot ratio, so the sketch fills the frame and maps
     onto the real UI in place */
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block; overflow: visible;
  transition: opacity .5s ease;
}
.frame-shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.frame-body.show-shot .chapter-scene,
.frame-body.show-shot .chapter-result { opacity: 0; }
.frame-body.show-shot .frame-shot { opacity: 1; }

.frame-hint {
  text-align: center;
  font-family: var(--hand);
  font-size: 14px; color: var(--muted);
  margin: 12px 0 0;
}

/* chapter scene: a loose wireframe of the real screen, in the hero's doodle language */
.chapter-scene path {
  fill: none; stroke: var(--ink); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.chapter-scene .label { font-family: var(--hand); font-weight: 700; fill: var(--ink); }
.chapter-scene .wire-name { fill: var(--ink); }
.chapter-scene .wire-faint path { stroke: #d4d4d4; }      /* chrome recedes */
.chapter-scene .wire-accent path { stroke: var(--accent); } /* the one accent in the chrome */
.chapter-scene .wire-card, .chapter-scene .wire-q { transition: opacity .4s ease; }
/* accent flashes on the card that is currently "speaking" */
.chapter-scene .wire-card.speaking .box path,
.chapter-scene .wire-card.speaking .avatar path { stroke: var(--accent); }
.chapter-scene .wire-card.speaking .wire-name { fill: var(--accent); }
.chapter-scene.resolved .wire-card, .chapter-scene.resolved .wire-q { opacity: 0.2; }

/* ============ finale ============ */
.finale {
  border-top: 1px solid var(--line);
  padding: clamp(80px, 13vw, 170px) clamp(20px, 5vw, 56px) clamp(40px, 6vw, 72px);
  text-align: center;
}
.finale-inner { max-width: 760px; margin: 0 auto; }
.finale-eyebrow {
  font-family: var(--hand);
  font-size: clamp(18px, 2.3vw, 26px);
  color: var(--muted); margin: 0 0 8px;
}
.finale-head {
  font-size: clamp(52px, 9vw, 104px);
  line-height: 0.98; letter-spacing: -0.04em;
  font-weight: 800; margin: 0 0 28px;
}
.finale-sub {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.6; color: #3a3a3a;
  max-width: 54ch; margin: 0 auto 16px;
}
.finale-kicker {
  font-family: var(--hand);
  font-size: clamp(19px, 2.1vw, 25px);
  color: var(--ink); margin: 0 auto 38px; max-width: 40ch;
}
.finale-facts {
  list-style: none; padding: 0; margin: 0 0 40px;
  display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center;
}
.finale-facts li {
  font-size: 14px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
}
.finale-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.finale-note { font-size: 13px; color: var(--muted); margin: 18px 0 0; }

/* phones: swap the desktop download for "send to my computer" */
.send-to-computer { display: none; }
.send-hint { display: none; font-size: 13px; color: var(--muted); margin: 10px 0 0; }
body.is-mobile .finale-download,
body.is-mobile .cta-download { display: none; }
body.is-mobile .send-to-computer { display: inline-flex; }
body.is-mobile .send-hint { display: block; }

.finale .foot { margin-top: clamp(52px, 8vw, 100px); }

/* ---------- tail ---------- */
.tail {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 56px);
}
.tail-inner { max-width: 880px; margin: 0 auto; }

/* ---------- screenshot carousel ---------- */
.shots-lead {
  max-width: 660px;
  margin: 0 auto 40px;
  text-align: center;
}
.shots-lead h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.shots-lead p {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: #444;
  margin: 0;
}
.shots-lead .ink-underline { color: var(--ink); font-weight: 600; }
/* sit the squiggle just below the text so it doesn't cross the letters */
.shots-lead .ink-underline::after { bottom: -0.12em; height: 0.26em; opacity: 0.85; }
.keep-box {
  border: 1px solid #d6d6d6;
  background: #fafafa;
  border-radius: 6px;
  padding: 1px 7px;
  white-space: nowrap;
  color: var(--ink);
}
.shots { max-width: 880px; margin: 0 auto; }

/* the screenshots already include their own window — just frame them */
.shot-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.16);
}
.shot-img {
  width: 100%; aspect-ratio: 1.46 / 1; object-fit: cover;
  display: block; transition: opacity .3s ease;
}

/* caption sits ON the image, over a legibility scrim */
.shot-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 64px 30px 22px;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.84) 0%, rgba(10, 10, 12, 0.5) 45%, transparent 100%);
  text-align: left;
  pointer-events: none;
}
.shots-title {
  color: #fff; font-size: clamp(19px, 2.4vw, 25px);
  letter-spacing: -0.02em; margin: 0 0 4px;
}
.shots-text { color: rgba(255, 255, 255, 0.86); margin: 0; max-width: 54ch; font-size: 15px; }

.theme-toggle {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  font: inherit; font-size: 12px; font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.1); background: rgba(255, 255, 255, 0.92); color: #111;
  border-radius: 999px; padding: 5px 12px; cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.shot-play {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font: inherit; font-size: 12px; line-height: 1;
  border: 1px solid rgba(0, 0, 0, 0.1); background: rgba(255, 255, 255, 0.92); color: #111;
  border-radius: 999px; width: 30px; height: 30px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

.shot-nav {
  position: absolute; top: 44%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1); background: rgba(255, 255, 255, 0.92); color: #111;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.shots:hover .shot-nav { opacity: 1; }
.shot-nav.prev { left: 12px; } .shot-nav.next { right: 12px; }

.shot-dots { display: flex; gap: 7px; justify-content: center; margin-top: 16px; }
.shot-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: var(--line); cursor: pointer; padding: 0; transition: background .2s;
}
.shot-dots button.active { background: var(--accent); }

.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.foot a { text-decoration: none; }

/* ---------- responsive / mobile ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
    padding-top: 8px;
  }
  .hero-copy { order: 1; }
  .hero-stage { order: 2; }
  .sub, .hero-copy h1 { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .micro-badge { justify-content: center; }
  .send-hint { text-align: center; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .scroll-hint { display: none; }

  /* chapters stack: copy first, the frame below — story stays intact */
  .chapter-inner { grid-template-columns: 1fr; gap: 26px; }
  .chapter.flip .chapter-copy { order: 1; }
  .chapter.flip .chapter-stage { order: 2; }
  .chapter-body { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none; }
  * { scroll-behavior: auto; }
}

/* ============================================================
   How You Use It — usage page (text-first)
   ============================================================ */

/* shared nav additions */
.wordmark { text-decoration: none; color: var(--ink); }
.topnav { display: flex; gap: 18px; }
.topnav a {
  text-decoration: none; font-size: 15px; color: var(--muted);
  transition: color .2s; position: relative;
}
.topnav a:hover { color: var(--ink); }
.topnav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.topnav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

/* doc-page top bar (sticky, scrolls with page) */
.topbar-doc {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 26px;
  padding: 14px clamp(20px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-cta { margin-left: auto; padding: 9px 18px; font-size: 14px; }

.huui { max-width: 1040px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px) clamp(40px, 6vw, 80px); }

/* hero / mental model */
.huui-hero { text-align: center; padding: clamp(44px, 7vw, 92px) 0 clamp(28px, 4vw, 52px); }
.huui-eyebrow { font-family: var(--hand); font-weight: 700; color: var(--accent); font-size: clamp(16px, 2vw, 20px); margin: 0 0 10px; }
.huui-hero h1 { font-size: clamp(40px, 6.5vw, 76px); line-height: 1.0; letter-spacing: -0.04em; font-weight: 800; margin: 0 0 22px; }
.huui-lede { max-width: 62ch; margin: 0 auto; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.6; color: #3a3a3a; }
.huui-spine { margin-top: clamp(28px, 4vw, 48px); }
#spine { display: block; width: 100%; height: auto; max-width: 860px; margin: 0 auto; overflow: visible; }
#spine path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spine-label { font-family: var(--hand); font-weight: 700; fill: var(--ink); font-size: 19px; }
.spine-frame path { stroke: #d2d2d2; }
.spine-frame-label { fill: var(--muted); font-weight: 400; }
.spine-box.accent .box path { stroke: var(--accent); }
.spine-way { fill: var(--muted); font-weight: 400; }

/* sticky section nav */
.huui-secnav {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: clamp(12px, 2.5vw, 28px); justify-content: center; flex-wrap: wrap;
  padding: 13px clamp(20px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.huui-secnav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.huui-secnav a:hover { color: var(--ink); }

/* steps */
.huui-step {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 68px); align-items: center;
  padding: clamp(48px, 7vw, 92px) 0; border-top: 1px solid var(--line);
}
.huui-step-wide { display: block; }
.huui-kicker { font-family: var(--hand); font-weight: 700; color: var(--accent); font-size: 15px; margin: 0 0 12px; letter-spacing: 0.02em; }
.huui-step h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 16px; }
.huui-step p { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; color: #3a3a3a; max-width: 48ch; margin: 0 0 14px; }
.huui-eg { font-family: var(--hand); font-size: clamp(17px, 1.8vw, 21px); color: var(--ink); }
.huui-eg strong { font-weight: 700; }

/* the four ways */
.huui-ways { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 3vw, 30px); }
.huui-way { border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 28px); }
.huui-way h3 { font-size: clamp(19px, 2.1vw, 24px); letter-spacing: -0.02em; margin: 0 0 8px; }
.huui-way p { font-size: 16px; line-height: 1.55; color: #3a3a3a; margin: 0 0 10px; max-width: none; }
.huui-way .huui-eg { font-size: 17px; margin: 0 0 18px; color: var(--accent); }

/* small window-frame thumbnail (no morph) */
.mini-frame { margin: 0; border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: 5px 6px 0 rgba(17, 17, 17, 0.08); }
.mini-bar { display: flex; gap: 5px; align-items: center; padding: 7px 11px; border-bottom: 1.5px solid var(--ink); background: #fafafa; }
.mini-bar span { width: 8px; height: 8px; border-radius: 50%; border: 1.4px solid var(--ink); }
.mini-frame img { display: block; width: 100%; height: auto; }

/* safety anchor */
.huui-safe-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; align-content: center; }
.huui-safe-points li {
  position: relative; padding: 14px 18px 14px 44px;
  border: 1px solid var(--line); border-radius: 12px;
  font-size: clamp(15px, 1.5vw, 17px); font-weight: 500; color: var(--ink);
}
.huui-safe-points li::before {
  content: "✓"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-weight: 700;
}

/* faq */
.huui-faq { padding: clamp(48px, 7vw, 92px) 0; border-top: 1px solid var(--line); }
.huui-faq h2 { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -0.03em; font-weight: 800; margin: 0 0 clamp(26px, 4vw, 40px); }
.huui-qa { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); margin: 0; }
.huui-qa dt { font-weight: 700; font-size: clamp(17px, 1.8vw, 20px); margin: 0 0 6px; }
.huui-qa dd { margin: 0; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.6; color: #3a3a3a; }

/* close */
.huui-cta { text-align: center; padding: clamp(56px, 8vw, 100px) 0 0; border-top: 1px solid var(--line); }
.huui-cta h2 { font-size: clamp(32px, 5vw, 60px); letter-spacing: -0.04em; font-weight: 800; margin: 0 0 30px; }
.huui-cta .foot { margin-top: clamp(52px, 8vw, 100px); }

/* gentle reveal */
.pre-reveal { opacity: 0; transform: translateY(14px); }
.revealed { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

@media (max-width: 860px) {
  .huui-step { grid-template-columns: 1fr; gap: 26px; }
  .huui-ways { grid-template-columns: 1fr; }
  .huui-qa { grid-template-columns: 1fr; }
  .topbar-cta { display: none; }
  .huui-secnav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* home: grouped left nav + the bridge link to the usage page */
.topbar-left { display: flex; align-items: center; gap: 22px; }
.midlink { text-align: center; padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 56px) 0; }
.midlink a {
  text-decoration: none; font-family: var(--hand); font-size: clamp(18px, 2vw, 23px);
  color: var(--muted); transition: color .2s;
}
.midlink a span { color: var(--accent); white-space: nowrap; }
.midlink a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .topnav { display: none; }
}

/* ============================================================
   How You Use It — the walking trail (replaces spine + screenshots)
   ============================================================ */
.trail { position: relative; margin-top: clamp(18px, 3vw, 34px); }
#trail-rail { position: absolute; left: 0; top: 0; width: 64px; overflow: visible; pointer-events: none; }
#trail-rail path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trail-numtext { font-family: var(--hand); font-weight: 700; fill: var(--ink); font-size: 17px; }

.trail-step { position: relative; padding: clamp(28px, 4.5vw, 50px) 0 clamp(28px, 4.5vw, 50px) clamp(76px, 9vw, 96px); }
.trail-step .huui-kicker { margin: 0 0 10px; }
.trail-step h2 { font-size: clamp(26px, 3.8vw, 44px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 14px; }
.trail-step > p { font-size: clamp(16px, 1.55vw, 19px); line-height: 1.65; color: #3a3a3a; max-width: 56ch; margin: 0 0 12px; }
.trail-step .huui-eg { font-family: var(--hand); font-size: clamp(17px, 1.8vw, 21px); color: var(--ink); margin: 4px 0 0; max-width: 52ch; }
.trail-end { padding-bottom: clamp(36px, 5vw, 64px); }

/* step 02: the four ways, as lanes off the same path */
.trail-ways { margin-top: clamp(20px, 3vw, 30px); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 3vw, 30px); max-width: 780px; }
.trail-way { position: relative; padding-left: 18px; }
.trail-way::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.trail-way h3 { font-size: clamp(18px, 2vw, 22px); letter-spacing: -0.02em; margin: 0 0 7px; }
.trail-way p { font-size: 15.5px; line-height: 1.55; color: #3a3a3a; margin: 0 0 8px; }
.trail-way .huui-eg { font-family: var(--hand); font-size: 16px; color: var(--accent); margin: 0; }

@media (max-width: 860px) {
  .trail-ways { grid-template-columns: 1fr; }
  .trail-step { padding-left: clamp(58px, 16vw, 76px); }
}

/* "other OS" / all-downloads secondary link under the CTA */
.alt-download { margin: 14px 0 0; }
.alt-download a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s; }
.alt-download a:hover { color: var(--ink); }
body.is-mobile .alt-download { display: none; }

/* understated plain-text top-right nav (scales as pages are added) */
.topnav-text { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.topnav-text a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color .2s; }
.topnav-text a:hover { color: var(--ink); }
.topnav-text a[aria-current="page"] { color: var(--ink); }
.topnav-div { width: 1px; height: 14px; background: var(--line); display: inline-block; }
