/* =============================================================================
   CareerMate — public landing / install page.
   Self-contained: no external fonts, no CDN, no network (works fully offline).

   Design language synthesized from established install/registry sites
   (Homebrew, Bun, npm, MCP docs), not copied from any one:
     · restraint over decoration — one flat accent, warm-neutral paper, no
       gradients / glows / gradient-text
     · the two install paths (.mcpb one-click / terminal) are the focal point
     · system sans for prose, monospace for commands → reads as a real tool
     · trust through whitespace, hairlines and consistency
   Light + dark (system preference or manual toggle).
   ========================================================================== */

/* Self-hosted brand font — the SAME face the dashboard ships (apps/web), so the
   landing prose and the embedded dashboard screenshots read as one product.
   Without this the page silently falls back to Segoe UI / 맑은 고딕 on machines
   that don't have Pretendard installed. */
@font-face {
  font-family: 'Pretendard Variable';
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  /* relative URL: resolves under the site root (Vercel) AND under /install/ when
     the local dashboard serves this same page. */
  src: local('Pretendard Variable'),
       url('fonts/PretendardVariable.woff2') format('woff2');
}

:root {
  /* quiet green-neutral system (light) */
  --bg: #f7f8f5;
  --bg-elev: #ffffff;
  --bg-subtle: #eef3ed;
  --bg-sunken: #e8ede8;
  --surface: #ffffff;
  --surface-hover: #f1f5f0;
  --border: #dfe5dc;
  --border-strong: #cbd5ca;
  --text: #171a16;
  --text-secondary: #50584f;
  --text-tertiary: #7d877b;

  /* signature accent — deep emerald, kept from the existing product */
  --accent: #0f7256;
  --accent-hover: #0b5b44;
  --accent-soft: #e7f1ec;
  --accent-border: #bcdccd;
  --text-on-accent: #ffffff;
  --support-blue: #2f6fed;
  --support-blue-soft: #edf4ff;
  --support-amber: #b46917;
  --support-amber-soft: #fff5e7;

  --code-bg: #f2f5ef;
  --code-text: #20261f;
  --warn-bg: #fbf3e3;
  --warn-border: #ecd9ac;
  --warn-text: #876214;

  --shadow-sm: 0 1px 2px rgba(28,26,22,.05);
  --shadow-md: 0 4px 14px rgba(28,26,22,.07);

  --radius-sm: 6px;
  --radius: 9px;
  --radius-lg: 12px;
  --maxw: 1000px;

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic',
    'Apple SD Gothic Neo', 'Noto Sans KR', Roboto, sans-serif;
  --mono: 'Cascadia Code', 'SFMono-Regular', 'JetBrains Mono', Consolas, 'D2Coding', ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) { color-scheme: dark; }
}
:root[data-theme='dark'] { color-scheme: dark; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #111513; --bg-elev: #171c19; --bg-subtle: #1d241f; --bg-sunken: #0c100e;
    --surface: #171c19; --surface-hover: #202822;
    --border: #2a332e; --border-strong: #3a463f;
    --text: #eef4ed; --text-secondary: #aab5a9; --text-tertiary: #788579;
    --accent: #34d399; --accent-hover: #6ee7b7; --accent-soft: #11281d; --accent-border: #1f4f3c; --text-on-accent: #05241a;
    --support-blue: #75a7ff; --support-blue-soft: #10213a;
    --support-amber: #f0b76a; --support-amber-soft: #33230e;
    --code-bg: #0c100e; --code-text: #d9e3d7;
    --warn-bg: #292008; --warn-border: #574510; --warn-text: #e6c578;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-md: 0 4px 14px rgba(0,0,0,.45);
  }
}
:root[data-theme='dark'] {
  --bg: #111513; --bg-elev: #171c19; --bg-subtle: #1d241f; --bg-sunken: #0c100e;
  --surface: #171c19; --surface-hover: #202822;
  --border: #2a332e; --border-strong: #3a463f;
  --text: #eef4ed; --text-secondary: #aab5a9; --text-tertiary: #788579;
  --accent: #34d399; --accent-hover: #6ee7b7; --accent-soft: #11281d; --accent-border: #1f4f3c;
  --support-blue: #75a7ff; --support-blue-soft: #10213a;
  --support-amber: #f0b76a; --support-amber-soft: #33230e;
  --code-bg: #0c100e; --code-text: #d9e3d7;
  --warn-bg: #292008; --warn-border: #574510; --warn-text: #e6c578;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-md: 0 4px 14px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  word-break: keep-all; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: 0; line-height: 1.25; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
/* skip link — hidden until focused, then drops into the top-left */
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 200; transform: translateY(-200%);
  background: var(--accent); color: var(--text-on-accent); padding: 8px 14px; border-radius: var(--radius-sm);
  font-weight: 600; transition: transform .15s; }
.skip-link:focus { transform: none; outline: 2px solid var(--text-on-accent); outline-offset: 2px; }
/* agent-prompt paste boxes: a caption so they read as "message to the AI", not a shell command,
   plus the privacy reassurance at the highest-anxiety paste moment */
.paste-note { font-size: .86rem; line-height: 1.55; color: var(--text-secondary);
  background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: var(--radius-sm);
  padding: .55rem .8rem; margin: 0 0 .5rem; }
.paste-note strong { color: var(--text); font-weight: 650; }
.recover { font-size: .88rem; line-height: 1.55; color: var(--text-secondary); margin: .5rem 0 0; }
.recover strong { color: var(--text); }

.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }

/* ----------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  max-width: var(--maxw); margin: 0 auto; padding: 15px 24px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; }
.nav__brand:hover { text-decoration: none; }
.nav__logo {
  width: 24px; height: 24px; border-radius: 6px; flex: none;
  background: var(--accent); color: var(--text-on-accent); font-weight: 800; font-size: 13px;
  display: grid; place-items: center;
}
.nav__name { font-size: 15.5px; font-family: var(--mono); letter-spacing: 0; }
.nav__links { display: flex; gap: 2px; margin-left: 12px; }
.nav__links a {
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  padding: 6px 10px; border-radius: var(--radius-sm);
}
.nav__links a:hover { color: var(--text); background: var(--surface-hover); text-decoration: none; }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius-sm);
  color: var(--text-secondary); cursor: pointer; transition: background .15s, color .15s;
}
.theme-toggle:hover { background: var(--surface-hover); color: var(--text); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .i-moon { display: none; }
.theme-toggle .i-sun { display: block; }
:root[data-theme='dark'] .theme-toggle .i-moon { display: block; }
:root[data-theme='dark'] .theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .i-moon { display: block; }
  :root:not([data-theme='light']) .theme-toggle .i-sun { display: none; }
}

/* github icon link — mirrors .theme-toggle so the two read as siblings */
.nav__icon {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius-sm);
  color: var(--text-secondary); transition: background .15s, color .15s;
}
.nav__icon:hover { background: var(--surface-hover); color: var(--text); text-decoration: none; }
.nav__icon svg { width: 17px; height: 17px; }

/* Language toggle — globe + label, styled like the icon buttons. */
.nav__lang {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px;
  border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 13px; font-weight: 500; line-height: 1;
  transition: background .15s, color .15s;
}
.nav__lang:hover { background: var(--surface-hover); color: var(--text); text-decoration: none; }
.nav__lang svg { width: 15px; height: 15px; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface-hover); text-decoration: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text-secondary); }
.btn--ghost:hover { color: var(--text); background: var(--surface-hover); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--text-on-accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ----------------------------------------------------------------- hero */
/* Asymmetric two columns: headline + CTAs on the left, the "한 문장" install
   demo (the signature element) on the right. Left-aligned, not centered.
   Stacks to one column on narrow screens. */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 76px 24px 8px;
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: start;
}
.hero__main { min-width: 0; }
/* solo variant (start.html): no demo column — one left-aligned column */
.hero--solo { grid-template-columns: 1fr; max-width: 760px; }
/* gentle staggered entrance on load */
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero__main > *, .hero__demo { animation: riseIn .55s cubic-bezier(.22,.61,.36,1) both; }
.hero__title { animation-delay: .04s; }
.hero__lede { animation-delay: .10s; }
.hero__cta { animation-delay: .18s; }
.hero__note { animation-delay: .24s; }
.hero__demo { animation-delay: .16s; }
.pill-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border);
}
.pill-badge__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
/* heavy display weight + tight tracking — strong contrast against the 400 lede */
.hero__title { font-size: 3.05rem; font-weight: 800; margin: 20px 0 0; letter-spacing: 0; line-height: 1.12; }
/* English headline is longer than the Korean two-liner; smaller size keeps it on
   one line in the desktop two-column hero, and it wraps cleanly on narrow screens. */
html[lang="en"] .hero__title { font-size: 2.4rem; }
.hero__lede {
  font-size: 1.11rem; color: var(--text-secondary);
  margin: 18px 0 0; max-width: 33rem; line-height: 1.62;
}
.hero__lede strong { color: var(--text); font-weight: 650; }

/* trust strip — the four anxiety answers, scannable, restrained (accent only on the ✓) */
.trust-strip {
  list-style: none; margin: 20px 0 0; padding: 0; max-width: 38rem;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.trust-strip li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--text-secondary);
  background: var(--surface); border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 999px;
}
.trust-strip li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* hero call-to-action — two install paths */
.hero__cta { margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__cta .btn { height: 42px; padding: 0 18px; font-size: 14.5px; }

.hero__note {
  margin: 20px 0 0; max-width: 36rem; font-size: 12.5px; line-height: 1.65;
  color: var(--text-tertiary);
}
.hero__note strong { color: var(--text-secondary); font-weight: 600; }
.hero__note code { font-family: var(--mono); font-size: .92em; background: var(--bg-sunken); padding: 1px 5px; border-radius: 4px; color: var(--text-secondary); }

/* signature — one stable card that shows what people can ask their AI to do. */
.hero__demo { min-width: 0; margin-top: 18px; }
.hero__demo-note { margin: 12px 2px 0; font-size: 12.5px; line-height: 1.55; color: var(--text-tertiary); }
.command-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden; min-height: 392px;
}
.command-card__head {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 15px;
  font-family: var(--mono); font-size: 12px; color: var(--text-tertiary);
  background: var(--bg-subtle); border-bottom: 1px solid var(--border);
}
.command-card__dots { display: inline-flex; gap: 6px; flex: none; }
.command-card__dots i { width: 9px; height: 9px; border-radius: 999px; background: var(--border-strong); }
.command-card__title { color: var(--text-secondary); }
.command-card__status {
  margin-left: auto; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border);
  border-radius: 999px; padding: 2px 9px; font-family: var(--font); font-size: 11.5px; font-weight: 650;
  /* Fades with the body during a scene change so the badge never snaps ahead of it. */
  transition: opacity .24s ease, transform .24s ease;
}
.command-card__file {
  display: flex; align-items: center; gap: 10px; margin: 18px 18px 0; padding: 11px 13px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev);
}
.command-card__file svg { width: 20px; height: 20px; flex: none; color: var(--support-amber); }
.command-card__file span {
  min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-family: var(--mono); font-size: 12.5px; color: var(--text);
}
.command-card__file strong {
  flex: none; color: var(--support-amber); background: var(--support-amber-soft);
  border-radius: 999px; padding: 2px 8px; font-size: 11.5px; font-weight: 650;
}
.command-card__body { display: grid; gap: 12px; padding: 18px; }
.command-card__bubble {
  border-radius: var(--radius); border: 1px solid var(--border); padding: 13px 14px;
  min-height: 94px; transition: opacity .24s ease, transform .24s ease;
}
.command-card__bubble span {
  display: block; margin-bottom: 8px; font-size: 11px; font-weight: 700; color: var(--text-tertiary);
}
.command-card__bubble p { font-size: 14px; line-height: 1.58; color: var(--text-secondary); }
.command-card__bubble--user {
  background: var(--code-bg);
}
.command-card__bubble--user p {
  color: var(--code-text); font-family: var(--mono); font-size: 12.7px;
}
.command-card__bubble--ai {
  margin-left: 28px; background: var(--surface);
}
.command-card__bubble--ai span { color: var(--accent); }
.command-card__steps {
  list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  margin: 0 18px 14px; padding: 0;
}
.command-card__steps li { min-width: 0; }
.command-card__steps button {
  width: 100%; height: 28px; display: grid; place-items: center; border: 1px solid var(--border);
  border-radius: 999px; color: var(--text-tertiary); font-family: inherit; font-size: 11.5px; font-weight: 650;
  background: var(--bg-elev); cursor: pointer; transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.command-card__steps button:hover {
  border-color: var(--accent-border); color: var(--accent); background: var(--accent-soft);
}
.command-card__steps button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.command-card__steps button.is-active {
  color: var(--text-on-accent); background: var(--accent); border-color: var(--accent);
}
.command-card__progress {
  height: 3px; background: var(--bg-subtle); overflow: hidden;
}
.command-card__progress span {
  display: block; height: 100%; width: 100%; background: var(--accent);
  transform-origin: left; animation: commandProgress 4.5s linear infinite;
}
.command-demo.is-changing .command-card__bubble,
.command-demo.is-changing .command-card__file,
.command-demo.is-changing .command-card__status {
  opacity: .28; transform: translateY(3px);
}
@keyframes commandProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ----------------------------------------------------------------- sections */
.section { max-width: var(--maxw); margin: 0 auto; padding: 136px 24px 0; scroll-margin-top: 80px; }
/* left-aligned section heads (centered heads + uppercase eyebrows read as a template) */
.section__head { max-width: 50rem; margin: 0 0 44px; }
.section__head h2 { font-size: 2rem; font-weight: 750; letter-spacing: 0; }
.section__head p { margin-top: 14px; color: var(--text-secondary); font-size: 1.02rem; max-width: 42rem; }
.section__cta { margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.section__cta-note { font-size: 13px; color: var(--text-tertiary, var(--text-secondary)); }
/* Centered head for showcase/guide sections whose body is itself centered (the big
   carousel screenshot, the reading-column install guide) — a left head would misalign
   with the centered media below it. Left-aligned heads stay on the content sections above. */
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__head--center p { margin-left: auto; margin-right: auto; }
.section__head--center .section__cta { align-items: center; }

/* how-it-works — a quiet numbered sequence, not an icon-card grid */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature { padding-top: 22px; border-top: 1px solid var(--border-strong); }
.feature__no { display: block; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--accent); }
.feature h3 { font-size: 16px; margin: 14px 0 8px; }
.feature p { color: var(--text-secondary); font-size: 14px; line-height: 1.65; }
.feature code { font-family: var(--mono); font-size: .85em; background: var(--bg-sunken); padding: 1px 5px; border-radius: 4px; }

/* capability list — hairline rows, not boxes ("use fewer borders") */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; max-width: 880px; margin: 0; }
.check {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 19px 0; border-bottom: 1px solid var(--border);
}
.check > svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 1px; }
.check strong { display: block; font-size: 14.5px; font-weight: 650; }
.check span { display: block; color: var(--text-secondary); font-size: 13px; margin-top: 2px; }

/* ----------------------------------------------------------- dashboard preview */
/* A carousel of real dashboard screenshots, one browser-framed slide at a time.
   Prev/next arrows + dots; light/dark variants both in the DOM, CSS shows the one
   matching the page theme. Degrades to the first slide if JS is off. */
/* side padding reserves space for the arrows so they sit OUTSIDE the frame
   (never covering the screenshot). The frame shrinks to fit; on small screens
   the padding collapses and arrows overlap the edges instead. */
.carousel { position: relative; max-width: 936px; margin: 0 auto; padding: 0 54px; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.carousel__track { display: flex; transition: transform .42s cubic-bezier(.22,.61,.36,1); }
@media (prefers-reduced-motion: reduce) { .carousel__track { transition: none; } }
.slide { flex: 0 0 100%; min-width: 0; margin: 0; } /* reset <figure> default margin so each slide is exactly 100% (translateX math) */
.slide figcaption { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--text-secondary); }
.slide figcaption strong { color: var(--text); font-weight: 650; }

.browser {
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-md);
}
.browser__bar {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px;
  background: var(--bg-subtle); border-bottom: 1px solid var(--border);
}
.browser__dots { display: inline-flex; gap: 6px; flex: none; }
.browser__dots i { width: 10px; height: 10px; border-radius: 999px; background: var(--border-strong); }
.browser__url {
  flex: 1; max-width: 320px; margin: 0 auto;
  font-family: var(--mono); font-size: 12px; color: var(--text-tertiary); text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser__body { display: block; background: var(--bg); }
.browser__body img { width: 100%; height: auto; }

/* show the screenshot that matches the current theme (default page theme = dark) */
.shot__img { display: none; }
:root[data-theme='dark'] .shot__img--dark { display: block; }
:root:not([data-theme='dark']) .shot__img--light { display: block; }

/* prev / next arrows — overlap the frame edges, vertically centred on the FRAME
   (not the frame+caption). top:0 / bottom:caption-height + margin-block:auto centers
   the arrow within the image area regardless of the responsive frame height — no
   eyeballed percentage. ~36px ≈ figcaption line (13.5px ×1.65) + its 14px margin-top. */
.carousel__arrow {
  position: absolute; top: 0; bottom: 36px; margin-block: auto;
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  box-shadow: var(--shadow-md); cursor: pointer; z-index: 2;
  transition: background .15s, opacity .15s;
}
.carousel__arrow:hover { background: var(--surface-hover); }
.carousel__arrow:disabled { opacity: .3; cursor: default; box-shadow: none; }
.carousel__arrow svg { width: 20px; height: 20px; }
.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }

/* dots */
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.carousel__dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: var(--border-strong); cursor: pointer; transition: background .15s, width .15s;
}
.carousel__dot:hover { background: var(--text-tertiary); }
.carousel__dot.is-active { width: 22px; background: var(--accent); }

@media (max-width: 640px) {
  .carousel { padding: 0; }
  .carousel__arrow--prev { left: 6px; }
  .carousel__arrow--next { right: 6px; }
}

/* ----------------------------------------------------------------- install */
/* The first install view is intentionally short: three human steps, one
   pasteable prompt, and one developer command. */
.quick-start {
  max-width: 840px; margin: 0 auto 18px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.quick-start__step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 19px; min-height: 184px;
}
.quick-start__step span {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent);
  font-weight: 750; font-size: 13px;
}
.quick-start__step h3 { margin-top: 13px; font-size: 16px; font-weight: 720; }
.quick-start__step p { margin-top: 7px; color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.quick-start__step a {
  display: inline-flex; margin-top: 10px; color: var(--accent); font-size: 13px; font-weight: 700;
}
.code--install { max-width: 840px; }
.install-footnote {
  max-width: 840px; margin: 0 auto 20px; text-align: center;
  color: var(--text-tertiary); font-size: 13px; line-height: 1.58;
}
.install-footnote--label {
  margin-bottom: 8px; color: var(--text-secondary); font-weight: 700;
}
.code.code--install + .install-footnote--label { margin-top: 18px; }
.note--compact { margin-bottom: 22px; }

/* install track (A: .mcpb / B: terminal) */
.track {
  max-width: 720px; margin: 0 auto;
  padding: 26px 0 0;
}
.track + .track { margin-top: 14px; padding-top: 30px; border-top: 1px solid var(--border); }
.track__head { max-width: 720px; margin: 0 auto 18px; }
.track__tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.track__head h3 { font-size: 1.15rem; }
.track__head h3 code { font-family: var(--mono); font-size: .82em; background: var(--bg-sunken); padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.track__head > p { margin-top: 7px; color: var(--text-secondary); font-size: 14px; }
.track .steps, .track .note, .track .acc { margin-left: 0; margin-right: 0; }
.track .step__body .btn { margin-top: 4px; }

.note {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: var(--radius);
  padding: 13px 17px; margin: 0 auto 24px; max-width: 720px;
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
}
.note strong { color: var(--text); }
.note code { font-family: var(--mono); background: var(--bg-sunken); padding: 1px 5px; border-radius: 4px; font-size: .88em; color: var(--text); }

.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; }
.step { display: flex; gap: 15px; padding: 2px 0 24px; position: relative; }
.step__no {
  width: 30px; height: 30px; flex: none; border-radius: 999px;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border); z-index: 1;
}
.step:not(:last-of-type)::before {
  content: ''; position: absolute; left: 15px; top: 34px; bottom: 6px; width: 1px;
  background: var(--border); z-index: 0;
}
.step__body { flex: 1; min-width: 0; padding-top: 3px; }
.step__body h3 { font-size: 16px; margin-bottom: 5px; }
.step__body > p { color: var(--text-secondary); font-size: 14px; margin-bottom: 11px; }
.step__body code { font-family: var(--mono); background: var(--bg-sunken); padding: 1px 5px; border-radius: 4px; font-size: .86em; }
.step__tip { margin-top: 11px; font-size: 13px; color: var(--text-secondary); }
.step__tip code { font-family: var(--mono); background: var(--bg-sunken); padding: 1px 5px; border-radius: 4px; }

kbd {
  font-family: inherit; font-size: .82em; background: var(--bg-sunken);
  border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px;
}

/* code blocks */
.code {
  position: relative; margin: 11px 0; background: var(--code-bg);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.code.code--install { margin: 0 auto 10px; }
.code__label {
  display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .03em;
  color: var(--text-tertiary); padding: 9px 13px 0;
}
.code pre {
  margin: 0; padding: 11px 64px 13px 13px; overflow-x: auto;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--code-text);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.copy-btn {
  position: absolute; top: 7px; right: 7px; font-family: inherit; font-size: 12px; font-weight: 600;
  color: var(--text-secondary); background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 6px; padding: 3px 10px; cursor: pointer; transition: background .12s, color .12s, border-color .12s;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.copied { color: var(--text-on-accent); background: var(--accent); border-color: var(--accent); }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: 4px 0 0; flex-wrap: wrap; }
.tab {
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-secondary);
  background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 8px 12px; cursor: pointer; transition: color .12s;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.panel { display: none; padding-top: 11px; }
.panel[data-active='true'] { display: block; }
.path-note { font-size: 12.5px; color: var(--text-tertiary); margin-bottom: 6px; line-height: 1.6; }
.path-note code { font-family: var(--mono); font-size: .9em; background: var(--bg-sunken); padding: 1px 5px; border-radius: 4px; }

/* troubleshooting accordion */
.acc {
  max-width: 720px; margin: 4px auto 0; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
.acc > summary {
  cursor: pointer; list-style: none; padding: 15px 17px; font-weight: 650; font-size: 14.5px;
  display: flex; align-items: center; gap: 10px;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: '＋'; margin-left: auto; color: var(--text-tertiary); font-weight: 400; }
.acc[open] > summary::after { content: '－'; }
.acc > summary:hover { background: var(--surface-hover); }
.acc__hint { font-weight: 500; font-size: 12.5px; color: var(--text-tertiary); }
.acc__body { padding: 0 17px 16px; }
.acc + .acc { margin-top: 10px; }
.track + .acc { margin-top: 16px; }
/* track-as-accordion: pill in summary + intro paragraph in body */
.acc > summary .track__tag { margin: 0; flex: none; }
.acc > summary { flex-wrap: wrap; }
.track-desc { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.trouble { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.trouble__item h4 { font-size: 14px; margin-bottom: 4px; }
.trouble__item p { color: var(--text-secondary); font-size: 13px; }
.trouble__item code { font-family: var(--mono); background: var(--bg-sunken); padding: 1px 5px; border-radius: 4px; font-size: .86em; }

/* privacy */
.privacy-card {
  max-width: 800px; margin: 0 auto; display: flex; gap: 20px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 30px;
}
.privacy-card__icon {
  width: 50px; height: 50px; flex: none; border-radius: 12px; display: grid; place-items: center;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border);
}
.privacy-card__icon svg { width: 26px; height: 26px; }
.privacy-card__text h2 { font-size: 1.3rem; }
.privacy-card__text > p { color: var(--text-secondary); margin-top: 9px; font-size: 14.5px; }
.privacy-card__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
.privacy-card__list li { font-size: 13.5px; color: var(--text-secondary); }
.privacy-card__list strong { color: var(--text); margin-right: 8px; }
.privacy-card__list code { font-family: var(--mono); font-size: .86em; background: var(--bg-sunken); padding: 1px 6px; border-radius: 4px; color: var(--text); }
.privacy-card__note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-tertiary); line-height: 1.6; }

/* footer */
.foot {
  max-width: var(--maxw); margin: 104px auto 0; padding: 32px 24px 56px;
  border-top: 1px solid var(--border); text-align: center; color: var(--text-tertiary);
}
.foot__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); font-size: 15px; font-family: var(--mono); }
.foot p { margin: 11px 0 0; font-size: 13px; }
.foot__links { display: flex; justify-content: center; gap: 16px; margin-top: 14px; font-size: 13px; }
.foot__links a { color: var(--text-secondary); }

/* a11y */
.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;
}

/* scroll reveal — JS adds .reveal only when motion is allowed, so no-JS /
   reduced-motion shows everything immediately (no hidden content risk) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.cards-3 .feature:nth-child(2).reveal { transition-delay: .07s; }
.cards-3 .feature:nth-child(3).reveal { transition-delay: .14s; }
.checks .check:nth-child(even).reveal { transition-delay: .05s; }

/* responsive */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
  .section { padding-top: 104px; }
  .section__head { margin-bottom: 34px; }
  .hero__title { font-size: 2.48rem; }
  .section__head h2 { font-size: 1.72rem; }
  .hero__demo { max-width: 520px; margin-top: 0; }
  .cards-3 { grid-template-columns: 1fr; gap: 24px; }
  .checks { grid-template-columns: 1fr; }
  .trouble { grid-template-columns: 1fr; }
  .quick-start { grid-template-columns: 1fr; max-width: 720px; }
  .quick-start__step { min-height: 0; }
  /* Logo-only brand on mobile keeps the sticky nav quiet and compact. */
  .nav__name { display: none; }
  .nav__links a { display: none; }
}
@media (max-width: 540px) {
  .hero { padding-top: 46px; }
  .section { padding-top: 88px; }
  .hero__title { font-size: 2.18rem; }
  .hero__lede { font-size: 1rem; }
  .command-card { min-height: 420px; }
  .command-card__bubble { min-height: 108px; }
  .command-card__bubble--ai { margin-left: 0; }
  .command-card__steps { grid-template-columns: repeat(3, 1fr); }
  .privacy-card { flex-direction: column; gap: 15px; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
