/* MATCHA site — shared styles */
:root {
  --matcha-950: #0E1A09;
  --matcha-900: #15250D;
  --matcha-800: #1E3412;
  --matcha-700: #2B4A19;
  --matcha-600: #3B6122;
  --matcha-500: #4F7A2C;
  --matcha-300: #A8C178;
  --matcha-100: #E3EBD3;
  --gold: #B8935A;
  --gold-soft: #D9BE8F;
  --paper: #F3F2EC;
  --paper-2: #E9E8E0;
  --white: #FFFFFF;
  --ink: #141B10;
  --ink-2: #4A5245;
  --ink-3: #7A8274;
  --line: #D7D8CD;
  --line-dark: rgba(233, 238, 224, 0.14);

  --font: "Manrope", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; } /* keep the picture's shape whatever width/height attributes say */
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, p { word-break: auto-phrase; }
h1, h2 { text-wrap: balance; }
.lead, .sub { text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 72px; }
.site-header .brand img { height: 30px; width: auto; }
.site-header nav { display: flex; gap: 28px; margin-left: 12px; }
.site-header nav a {
  color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 14px; font-weight: 500;
}
.site-header nav a:hover { color: #fff; }
.site-header .actions { margin-left: auto; display: flex; gap: 10px; }
.site-header.scrolled {
  background: rgba(14, 26, 9, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line-dark);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 14px; height: 14px; }
.btn-light { background: var(--paper); color: var(--matcha-900); }
.btn-light:hover { background: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-dark { background: var(--matcha-900); color: var(--paper); }
.btn-dark:hover { background: var(--matcha-700); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 168px 0 96px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(120, 165, 70, .55), transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 25%, rgba(184, 147, 90, .22), transparent 70%),
    linear-gradient(180deg, var(--matcha-900) 0%, var(--matcha-800) 38%, var(--matcha-700) 58%, #6F8F4E 74%, #C9D3B5 86%, var(--paper) 100%);
}
.hero .wrap { text-align: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em;
  color: var(--gold-soft); text-transform: uppercase;
}
.hero h1 {
  margin: 20px auto 0; max-width: 15em;
  font-size: clamp(40px, 7vw, 88px); font-weight: 300; line-height: 1.12; letter-spacing: -.02em;
}
.hero-figure img { width: 100%; max-width: 620px; height: auto; margin: 32px auto 0; }
.hero .lead {
  margin: 28px auto 0; max-width: 40em;
  font-size: clamp(15px, 1.6vw, 18px); color: rgba(255, 255, 255, .82);
}
.hero .cta { margin-top: 40px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .status {
  margin-top: 20px; font-size: 12px; color: rgba(255, 255, 255, .6); font-family: var(--font-mono);
}

/* Product window mock */
.product {
  position: relative; margin: 72px auto 0; max-width: 1040px;
  border-radius: 14px; overflow: hidden;
  background: #F4F6EF; color: var(--ink);
  box-shadow: 0 40px 80px -20px rgba(14, 26, 9, .55), 0 0 0 1px rgba(255, 255, 255, .08);
  text-align: left;
}
.product .titlebar {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  background: #E4E8DC; font-size: 12px; color: var(--ink-2);
}
.product .titlebar i { width: 11px; height: 11px; border-radius: 50%; background: #C9CEBF; }
.product .titlebar span { margin-left: 10px; }
.product .body { display: grid; grid-template-columns: 190px 1fr; min-height: 420px; }
.product .nav { background: var(--matcha-900); padding: 18px 0; font-size: 13px; color: #9AA88C; }
.product .nav .logo { padding: 0 18px 14px; }
.product .nav .logo img { height: 20px; width: auto; }
.product .nav .sec { padding: 12px 18px 4px; font-size: 10px; letter-spacing: .1em; color: var(--gold); font-weight: 600; }
.product .nav .item { padding: 7px 18px; border-left: 3px solid transparent; }
.product .nav .item.on { color: #E9EEE0; background: #2A3A24; border-left-color: var(--matcha-300); }
.product .main { padding: 22px 26px; }
.product .main h3 { font-size: 16px; font-weight: 600; }
.product .main .meta { font-size: 12px; color: var(--ink-3); font-family: var(--font-mono); margin-top: 2px; }
.product .flow { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section.alt { background: var(--paper-2); }
.section.white { background: var(--white); }
.section.dark { background: var(--matcha-950); color: #E9EEE0; }
.kicker { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.dark .kicker { color: var(--gold-soft); }
h2 {
  font-size: clamp(32px, 4.6vw, 56px); font-weight: 300; line-height: 1.18; letter-spacing: -.015em;
}
.sub { margin-top: 22px; max-width: 34em; color: var(--ink-2); font-size: 16px; }
.dark .sub { color: #B7C2A9; }

/* Two-column: heading left, numbered list right */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.numbered { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.numbered li {
  display: grid; grid-template-columns: 28px 1fr; gap: 8px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.numbered .n { font-size: 12px; color: var(--ink-3); padding-top: 5px; font-family: var(--font-mono); }
.numbered h3 { font-size: 19px; font-weight: 500; }
.numbered p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }

/* Architecture */
.arch { margin-top: 64px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.arch-diagram {
  border-radius: 16px; padding: 28px;
  background: linear-gradient(160deg, var(--matcha-800), var(--matcha-900));
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
.roles { display: grid; gap: 0; }
.role { padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.role:first-child { border-top: 1px solid var(--line-dark); }
.role .tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--matcha-300); }
.role h3 { font-size: 20px; font-weight: 500; margin-top: 4px; }
.role p { font-size: 14px; color: #B7C2A9; margin-top: 4px; }

/* Facts row */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; }
.fact { padding: 0 28px; border-left: 1px solid var(--line); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact .v { font-size: clamp(30px, 3.6vw, 44px); font-weight: 300; letter-spacing: -.02em; color: var(--matcha-700); }
.fact .k { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* Feature cards with vertical rules */
.features { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-top: 1px solid var(--line); }
.feature { padding: 32px 28px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature:nth-child(3n) { border-right: 0; }
.feature:nth-child(3n+1) { padding-left: 0; }
.feature .icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--matcha-100); color: var(--matcha-700);
}
.feature .icon svg { width: 20px; height: 20px; }
.feature h3 { margin-top: 20px; font-size: 18px; font-weight: 600; }
.feature p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* Docs cards */
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.doc {
  display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 14px;
  background: var(--white); border: 1px solid var(--line); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.doc:hover { transform: translateY(-3px); border-color: var(--matcha-300); box-shadow: 0 16px 32px -16px rgba(20, 27, 16, .25); }
.doc .t { font-size: 18px; font-weight: 600; }
.doc .d { font-size: 14px; color: var(--ink-2); flex: 1; }
.doc .go { font-size: 13px; font-weight: 600; color: var(--matcha-600); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 56px; }
.plan.plan-paid { background: var(--matcha-900); color: var(--paper); border-color: var(--matcha-900); }
.plan.plan-paid .plan-tag { color: var(--gold-soft); }
.plan.plan-paid .price { color: rgba(243, 242, 236, .72); }
.plan.plan-paid li { border-top-color: var(--line-dark); }
.plan.plan-paid li::before { border-color: var(--matcha-300); }
.plan.plan-paid .btn-dark { background: var(--paper); color: var(--matcha-900); }
.plan.plan-paid .btn-dark:hover { background: #fff; }
.plan {
  display: flex; flex-direction: column; padding: 36px 32px; border-radius: 16px;
  background: var(--white); border: 1px solid var(--line);
}
.plan-tag { font-size: 13px; font-weight: 600; color: var(--matcha-600); }
.plan h3 { margin-top: 8px; font-size: 26px; font-weight: 700; }
.plan .price { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.plan ul { margin: 24px 0 32px; padding: 0; list-style: none; flex: 1; }
.plan li { position: relative; padding: 8px 0 8px 26px; font-size: 14px; border-top: 1px solid var(--line); }
.plan li::before {
  content: ""; position: absolute; left: 4px; top: 15px; width: 10px; height: 6px;
  border: solid var(--matcha-600); border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.plan .btn { align-self: flex-start; }
.btn.is-disabled { opacity: .45; cursor: default; pointer-events: none; }
button.btn { border: 0; cursor: pointer; font-family: inherit; line-height: inherit; }

/* Sign-up dialog */
.signup {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0;
  border: 0; border-radius: 18px; background: var(--white); color: var(--ink);
  box-shadow: 0 40px 80px -20px rgba(14, 26, 9, .6);
}
.signup::backdrop { background: rgba(14, 26, 9, .62); backdrop-filter: blur(4px); }
.signup[open] { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.signup-form { position: relative; padding: 36px 32px 28px; }
.signup h3 { margin-top: 6px; font-size: 24px; font-weight: 700; }
.signup-sub { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.signup-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; padding: 10px;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer;
}
.signup-close:hover { background: var(--paper); color: var(--ink); }
.field { display: block; margin-top: 18px; }
.field > span { display: block; font-size: 13px; font-weight: 600; }
.field small { font-weight: 400; color: var(--ink-3); }
.field input {
  width: 100%; margin-top: 6px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  font: inherit; font-size: 15px; color: var(--ink);
}
.field input:focus { outline: 2px solid var(--matcha-300); outline-offset: 0; border-color: var(--matcha-500); background: var(--white); }
.field .err { display: none; margin-top: 4px; font-size: 12px; font-style: normal; color: #B3261E; }
.field.invalid input { border-color: #B3261E; }
.field.invalid .err { display: block; }
.signup-submit { width: 100%; justify-content: center; margin-top: 28px; padding: 14px 22px; }
.signup-note { margin-top: 14px; font-size: 12px; color: var(--ink-3); text-align: center; }

/* Download page */
.page-hero {
  padding: 152px 0 72px; color: #fff; text-align: center;
  background:
    radial-gradient(ellipse 70% 70% at 50% 0%, rgba(120, 165, 70, .5), transparent 70%),
    linear-gradient(180deg, var(--matcha-900), var(--matcha-800));
}
.page-hero h1 { margin-top: 16px; font-size: clamp(34px, 5vw, 56px); font-weight: 300; line-height: 1.2; }
.page-hero .lead { margin: 18px auto 0; max-width: 36em; color: rgba(255, 255, 255, .82); }
.page-hero .lead a { color: #fff; }
.edition {
  display: inline-block; margin-top: 22px; padding: 2px 14px; border-radius: 999px;
  border: 1px solid var(--gold-soft); color: var(--gold-soft); font-size: 13px; font-weight: 600;
}
.edition[hidden] { display: none; }
.downloads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.dl {
  display: grid; grid-template-columns: 48px 1fr; gap: 6px 18px; align-items: start;
  padding: 28px; border-radius: 16px; background: var(--white); border: 1px solid var(--line);
}
.dl .icon {
  grid-row: span 3; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; background: var(--matcha-100); color: var(--matcha-700);
}
.dl .icon svg { width: 24px; height: 24px; }
.dl h3 { font-size: 18px; font-weight: 600; }
.dl p { font-size: 14px; color: var(--ink-2); }
.dl .meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.dl .btn { grid-column: 2; justify-self: start; margin-top: 12px; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--matcha-600); }
.steps li::before { content: "0" counter(step); font-family: var(--font-mono); font-size: 13px; color: var(--matcha-600); }
.steps h3 { margin-top: 6px; font-size: 18px; font-weight: 600; }
.steps p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.steps a { color: var(--matcha-600); font-weight: 600; }
.notice { margin-top: 32px; padding: 16px 20px; border-radius: 12px; background: var(--paper-2); font-size: 14px; color: var(--ink-2); }

/* Support page */
.support-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; margin-top: 48px; align-items: start; }
.support-info h3 { font-size: 18px; font-weight: 600; }
.support-info p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.support-info .lic {
  margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: var(--paper-2);
  font-family: var(--font-mono); font-size: 14px; color: var(--ink);
}
.support-info .block + .block { margin-top: 32px; }
.support-form { padding: 32px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.support-form .field:first-child { margin-top: 0; }
.field select, .field textarea {
  width: 100%; margin-top: 6px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  font: inherit; font-size: 15px; color: var(--ink);
}
.field textarea { min-height: 160px; resize: vertical; }
.field select:focus, .field textarea:focus { outline: 2px solid var(--matcha-300); outline-offset: 0; border-color: var(--matcha-500); background: var(--white); }
.field.invalid select, .field.invalid textarea { border-color: #B3261E; }
.field .hint { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.field input.mono { font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.form-done { text-align: center; padding: 24px 0; }
.form-done h3 { font-size: 22px; font-weight: 600; }
.form-done p { margin-top: 8px; color: var(--ink-2); font-size: 14px; }

/* Edition comparison */
.compare-wrap { margin-top: 48px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; background: var(--white); border-radius: 16px; overflow: hidden; }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 13px; font-weight: 700; background: var(--paper-2); }
.compare thead th:nth-child(n+3) { color: var(--matcha-700); }
.compare tbody th { text-align: left; font-weight: 500; color: var(--ink-2); }
.compare tbody th small { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--paper-2); font-size: 11px; color: var(--ink-3); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--matcha-600); font-weight: 700; }
.compare .no { color: var(--ink-3); }
.compare .span { background: rgba(227, 235, 211, .45); color: var(--matcha-700); font-weight: 600; }

.compare tfoot td, .compare tfoot th { border-bottom: 0; padding: 18px; background: var(--white); }
.btn-ghost-dark { background: var(--paper-2); color: var(--matcha-900); }
.btn-ghost-dark:hover { background: var(--matcha-100); }
.compare .price-tbd { font-weight: 700; color: var(--ink-3); }
.compare .price { font-weight: 700; color: var(--ink); }
.compare-usd { margin-top: 24px; }
.compare-usd caption { text-align: left; font-weight: 700; padding: 0 0 8px; color: var(--ink-2); }
.compare-note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.compare-note a { color: var(--matcha-600); }
.signup-note a { color: var(--matcha-600); }

/* Footer legal links */
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.legal-links a { color: inherit; text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }

/* Legal / document pages */
.draft-note {
  margin-bottom: 32px; padding: 14px 18px; border-radius: 10px;
  background: #FFF4D6; border: 1px solid #E8CF8A; color: #6B5212; font-size: 14px;
}
.doc-body { max-width: 820px; }
.doc-body h2 { margin-top: 48px; font-size: 22px; font-weight: 600; }
.doc-body .draft-note + h2 { margin-top: 0; }
.doc-body p, .doc-body li { font-size: 15px; color: var(--ink-2); }
.doc-body p { margin-top: 12px; }
.doc-body ol, .doc-body ul { margin: 12px 0 0; padding-left: 1.4em; }
.doc-body li + li { margin-top: 6px; }
.doc-body h3 { margin-top: 28px; font-size: 17px; font-weight: 600; }
.doc-body code { overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 0.9em; padding: 1px 5px; border-radius: 4px; background: var(--paper-2); }
.doc-body .updated { margin-top: 48px; font-size: 13px; color: var(--ink-3); }
.ph { padding: 0 4px; border-radius: 4px; background: #FFF4D6; color: #6B5212; }
.kv { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 14px; overflow: hidden; font-size: 15px; }
.kv th, .kv td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.kv th { width: 30%; font-weight: 600; background: var(--paper-2); }
.kv td { color: var(--ink-2); }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }

/* Checkout confirmation */
.checkout { max-width: 720px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; font-size: 15px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--matcha-600); flex: none; }
.consent a { color: var(--matcha-600); }
.checkout .actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.checkout .btn[disabled] { opacity: .45; cursor: default; }
.checkout .hint { font-size: 13px; color: var(--ink-3); }

/* Closing CTA */
.closing {
  text-align: center; color: #fff; padding: clamp(96px, 12vw, 160px) 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(120, 165, 70, .45), transparent 70%),
    linear-gradient(180deg, var(--matcha-900), var(--matcha-800));
}
.closing h2 { max-width: 16em; margin: 0 auto; }
.closing .sub { margin: 22px auto 0; color: rgba(255, 255, 255, .78); }
.closing .cta { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--matcha-950); color: #9AA88C; padding: 64px 0 40px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer img { height: 34px; width: auto; }
.site-footer h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .12em; color: var(--gold-soft); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #E9EEE0; }
.site-footer .legal {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-header nav { display: none; }
  .split, .arch { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3n) { border-right: 1px solid var(--line); }
  .feature:nth-child(3n+1) { padding-left: 28px; }
  .feature:nth-child(2n) { border-right: 0; }
  .feature:nth-child(2n+1) { padding-left: 0; }
  .docs { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; gap: 40px; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .product .body { grid-template-columns: 1fr; }
  .product .nav { display: none; }
  .product .body { min-height: 0; }
}
@media (max-width: 560px) {
  .site-header .actions .btn-ghost { display: none; }
  .features, .docs, .plans, .downloads { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; }
  .dl .icon { grid-row: auto; }
  .dl .btn { grid-column: 1; }
  .signup-form { padding: 32px 22px 24px; }
  .kv th, .kv td { display: block; width: 100%; }
  .kv th { border-bottom: 0; padding-bottom: 6px; }
  .support-form { padding: 24px 20px; }
  .plan { padding: 28px 22px; }
  .feature, .feature:nth-child(n) { padding-left: 0; padding-right: 0; border-right: 0; }
  .hero { padding-top: 128px; }
}

/* Demo (review) build */
.demo-bar { position: fixed; inset: auto 0 0 0; z-index: 90; padding: 6px 16px; background: #f5d76e; color: #3a3000; font-size: 12px; text-align: center; }
.demo-toast { position: fixed; left: 50%; bottom: 56px; z-index: 100; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 10px; background: rgba(20, 30, 15, .92); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.demo-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Online help */
.help-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; }
.help-toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.help-toc p { margin: 16px 0 4px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.help-toc p:first-child { margin-top: 0; }
.help-toc a { padding: 4px 10px; border-left: 2px solid var(--line); color: var(--ink-2); text-decoration: none; }
.help-toc a:hover { border-left-color: var(--matcha-500); color: var(--matcha-700); }
.help-layout .doc-body h2 { scroll-margin-top: 96px; }
.help-layout .doc-body h2:first-child { margin-top: 0; }
.help-shot { margin: 16px 0 0; }
.help-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.help-soon { font-size: 13px !important; color: var(--ink-3) !important; }
.help-key { display: inline-block; min-width: 1.6em; padding: 0 6px; border: 1px solid rgba(255,255,255,.5); border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: .85em; text-align: center; }
@media (max-width: 760px) {
  .help-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .help-toc { position: static; }
}
.help-code { margin: 12px 0 0; padding: 12px 16px; border-radius: 8px; background: var(--matcha-900); color: #E9EEE0; font-family: 'JetBrains Mono', monospace; font-size: 13px; overflow-x: auto; }

/* Documentation pages (docs / spec / api) */
.doc-table { margin: 16px 0 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-table th, .doc-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.doc-table th { background: var(--paper-2); color: var(--ink); font-weight: 600; white-space: nowrap; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table td code { white-space: nowrap; }
.st { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.8; white-space: nowrap; vertical-align: 1px; }
.st-done { background: var(--matcha-100); color: var(--matcha-700); }
.st-dev { background: #FFF4D6; color: #6B5212; }
.st-plan { background: var(--paper-2); color: var(--ink-3); }
.doc-figure { margin: 16px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.doc-figure svg { width: 100%; height: auto; }
.doc-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.doc-body .note { margin-top: 16px; padding: 12px 16px; border-left: 3px solid var(--matcha-500); background: var(--white); border-radius: 0 8px 8px 0; font-size: 14px; }
.endpoint { margin-top: 20px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.endpoint .sig { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.endpoint .m { display: inline-block; min-width: 4.2em; margin-right: 8px; padding: 0 6px; border-radius: 4px; font-size: 12px; text-align: center; color: #fff; background: var(--matcha-600); }
.endpoint .m.post { background: #2F6690; }
.endpoint .m.put { background: #8A6A1F; }
.endpoint .m.delete { background: #9B3B32; }
.endpoint p { margin-top: 6px; font-size: 14px; }
.doc-table td.nowrap { white-space: nowrap; }
@media (max-width: 560px) {
  .doc-figure.wide { overflow-x: auto; }
  .doc-figure.wide svg { min-width: 600px; }
}
