/* ============================================================
   DARK SHAN CLOUD PANEL — Public site design system
   Direction: precise dark developer platform.
   Neutral charcoal surfaces, restrained emerald accent,
   strong typography, hairline borders, no decorative noise.
   Fonts (Space Grotesk / Inter / JetBrains Mono) are loaded
   via <link> in public/base.html — Google Fonts is allowed
   by the app CSP; Fontshare is not, do not reintroduce it.
   ============================================================ */

/* ---------- design tokens ---------- */
:root {
  /* color — surfaces */
  --bg:        #090B0D;
  --bg-2:      #0D1013;
  --surface:   #13171B;
  --surface-2: #191F24;
  --line:      #21282A;
  --line-2:    #2C3433;

  /* color — text */
  --ink:   #F2F5F3;
  --ink-2: #A3ADA9;
  --ink-3: #73807B;

  /* color — brand + semantic (refined azure accent) */
  --acc:       #4D9FFF;
  --acc-hover: #6AB0FF;
  --acc-press: #3B85E6;
  --acc-ink:   #071119;
  --acc-soft:  rgba(77, 159, 255, .08);
  --acc-soft-2: rgba(77, 159, 255, .13);
  --acc-line:  rgba(77, 159, 255, .32);
  --ok:    #4D9FFF;
  --warn:  #E0B34A;
  --err:   #E57373;
  --info:  #8AA9C9;

  /* typography */
  --f-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* type scale */
  --t-hero:  clamp(2.55rem, 5vw, 3.9rem);
  --t-page:  clamp(2rem, 4vw, 2.6rem);
  --t-h2:    clamp(1.55rem, 2.6vw, 1.95rem);
  --t-h3:    1.0625rem;
  --t-body:  1rem;
  --t-sm:    .875rem;
  --t-xs:    .8125rem;
  --t-mono:  .8125rem;

  /* spacing scale (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* layout */
  --max:   1140px;
  --read:  730px;
  --nav-h: 64px;

  /* radii */
  --r-1: 6px;
  --r-2: 10px;
  --r-3: 14px;

  /* shadows (restrained) */
  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 16px 40px rgba(0,0,0,.45);

  /* motion */
  --ease: cubic-bezier(.25,.1,.25,1);
  --dur:  160ms;

  /* focus */
  --focus: 0 0 0 3px rgba(77,159,255,.32);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.pub {
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}
.pub a { color: inherit; text-decoration: none; }
.pub button, .pub input, .pub select, .pub textarea { font: inherit; color: inherit; }
.pub img { max-width: 100%; display: block; }
.pub ul, .pub ol { list-style: none; }
.pub ::selection { background: rgba(77,159,255,.28); }
.pub ::-webkit-scrollbar { width: 8px; height: 8px; }
.pub ::-webkit-scrollbar-thumb { background: #2A3233; border-radius: 4px; }
.pub ::-webkit-scrollbar-track { background: transparent; }

.pub :focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }

/* keyboard skip link — hidden until focused */
.skip-link {
  position: fixed; top: var(--s-2); left: var(--s-2); z-index: 200;
  padding: 10px 16px; border-radius: var(--r-2);
  background: var(--acc); color: var(--acc-ink);
  font-size: var(--t-sm); font-weight: 600;
  transform: translateY(-160%); transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: none; }

/* static, near-invisible top tint — keeps the page from feeling
   uniformly flat without any animated decoration */
.pub-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 480px at 50% -220px, rgba(77,159,255,.05), transparent 70%),
    var(--bg);
}

/* ---------- shared layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--s-5); }
.pub-main { padding-top: var(--nav-h); min-height: 70vh; }
.section { padding: var(--s-9) 0; }
.section + .section { padding-top: 0; }
.section[id] { scroll-margin-top: calc(var(--nav-h) + var(--s-4)); }
/* full-width band variant: separates a section without decoration.
   Always keeps its own top padding so content never touches the edge. */
.section-band {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section.section-band { padding-top: var(--s-9); }

.sec-head { max-width: 620px; margin-bottom: var(--s-7); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-kicker {
  display: block; font-family: var(--f-mono); font-size: var(--t-xs);
  color: var(--ink-3); margin-bottom: var(--s-3); letter-spacing: .01em;
}
.sec-kicker i { font-style: normal; color: var(--acc); margin-right: 2px; }
.sec-title {
  font-family: var(--f-display); font-weight: 600;
  font-size: var(--t-h2); line-height: 1.15; letter-spacing: -.015em;
  text-wrap: balance;
}
.sec-sub { color: var(--ink-2); font-size: var(--t-body); margin-top: var(--s-3); line-height: 1.65; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-5);
  border-radius: var(--r-2); border: 1px solid transparent;
  font-weight: 600; font-size: .9375rem; cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--acc); color: var(--acc-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover {
  background: var(--acc-hover); transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 4px 16px rgba(77, 159, 255, .26);
}
.btn-primary:active { background: var(--acc-press); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--surface); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* small inline status dot */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); flex: none; }
.dot-pulse { animation: dotPulse 2.4s var(--ease) infinite; }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(77,159,255,.45); }
  55%      { box-shadow: 0 0 0 5px rgba(77,159,255,0); }
}

/* ---------- navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(9, 11, 13, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(9, 11, 13, .95); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; height: 100%;
  padding: 0 var(--s-5);
  display: flex; align-items: center; gap: var(--s-6);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: var(--acc); color: var(--acc-ink);
  display: grid; place-items: center; font-size: 13px;
}
.brand-word {
  font-family: var(--f-display); font-weight: 700; font-size: .9375rem;
  letter-spacing: .02em; white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; padding: 8px 12px; border-radius: var(--r-1);
  font-size: var(--t-sm); font-weight: 500; color: var(--ink-2);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; border-radius: 1px; background: var(--acc);
}
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); flex: none; }
.nav-signin { font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); padding: 8px 10px; border-radius: var(--r-1); transition: color var(--dur); }
.nav-signin:hover { color: var(--ink); }
.nav-actions .btn { min-height: 38px; padding: 0 var(--s-4); font-size: var(--t-sm); border-radius: 8px; }
.nav-burger {
  display: none; width: 38px; height: 38px; flex: none;
  border: 1px solid var(--line-2); border-radius: 8px; background: transparent;
  cursor: pointer; place-items: center; color: var(--ink); font-size: 14px;
  transition: border-color var(--dur), background var(--dur);
}
.nav-burger:hover { border-color: var(--ink-3); background: var(--surface); }
.nav-mobile {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  padding: var(--s-3) var(--s-5) var(--s-5);
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav-mobile.open { visibility: visible; opacity: 1; transform: none; }
.nav-mobile a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px var(--s-3); border-radius: var(--r-2);
  font-size: .9375rem; font-weight: 500; color: var(--ink-2);
  transition: color var(--dur), background var(--dur);
}
.nav-mobile a:hover, .nav-mobile a.active { color: var(--ink); background: var(--surface); }
.nav-mobile a i { font-size: 11px; color: var(--ink-3); }
.nav-mobile a.nav-mobile-cta {
  color: var(--acc); border: 1px solid var(--acc-line); background: var(--acc-soft);
  margin-top: var(--s-2); font-weight: 600;
}
.nav-mobile a.nav-mobile-cta i { color: var(--acc); }

/* ---------- hero ---------- */
.hero { padding: var(--s-9) 0 var(--s-8); position: relative; }
/* faint engineering dot-grid, fading out downward — static, no noise */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(148, 178, 204, .13) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(85% 75% at 50% 8%, #000 15%, transparent 78%);
  mask-image: radial-gradient(85% 75% at 50% 8%, #000 15%, transparent 78%);
}
.hero > .wrap { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: var(--s-8); align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-2);
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--bg-2); margin-bottom: var(--s-5);
}
.hero-kicker .dot { width: 7px; height: 7px; }
.hero h1 {
  font-family: var(--f-display); font-weight: 600;
  font-size: var(--t-hero); line-height: 1.06; letter-spacing: -.022em;
  text-wrap: balance; max-width: 13ch;
}
.hero h1 .hl { font-style: normal; color: var(--acc); }
.hero-lead {
  margin-top: var(--s-4); color: var(--ink-2);
  font-size: 1.0625rem; line-height: 1.65; max-width: 44ch;
}
.hero-ctas { margin-top: var(--s-6); display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero-meta {
  margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  font-size: var(--t-xs); color: var(--ink-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta i { color: var(--acc); font-size: 10px; }

/* hero product visualization — one coherent deployment panel */
.hero-viz { min-width: 0; justify-self: end; width: 100%; max-width: 560px; }
.viz {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.viz-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: 14px var(--s-5); border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.viz-app { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--t-sm); min-width: 0; }
.viz-app .dot { width: 8px; height: 8px; }
.viz-app span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viz-status {
  font-family: var(--f-mono); font-size: 11px; color: var(--acc);
  background: var(--acc-soft); border: 1px solid var(--acc-line);
  padding: 4px 10px; border-radius: 100px; flex: none;
}
.viz-repo {
  display: flex; align-items: center; gap: 10px;
  padding: 13px var(--s-5); border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: var(--t-mono); color: var(--ink-2);
  min-width: 0;
}
.viz-repo > i { color: var(--ink); flex: none; }
.viz-repo .viz-branch {
  margin-left: auto; flex: none; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: var(--r-1);
  padding: 3px 9px; font-size: 11px;
  display: inline-flex; align-items: center; gap: 6px;
}
.viz-rows { padding: var(--s-2) 0; }
.viz-row {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: 11px var(--s-5);
}
.viz-row + .viz-row { border-top: 1px solid var(--line); }
.viz-ic {
  width: 22px; height: 22px; flex: none; margin-top: 1px;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 9px; color: var(--acc); background: var(--acc-soft);
}
.viz-row > div { min-width: 0; }
.viz-row b { display: block; font-size: var(--t-sm); font-weight: 600; }
.viz-row small { display: block; color: var(--ink-3); font-size: var(--t-xs); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viz-row time { margin-left: auto; flex: none; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); padding-top: 3px; }
.viz-term {
  border-top: 1px solid var(--line); background: #0A0D10;
  padding: 13px var(--s-5);
  font-family: var(--f-mono); font-size: 12px; line-height: 1.9; color: var(--ink-2);
}
.viz-term-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz-term .ok { color: var(--acc); }
.viz-term .dim { color: var(--ink-3); }
.viz-caret { display: inline-block; width: 7px; height: 13px; margin-left: 5px; background: var(--ink-3); vertical-align: -2px; animation: caretBlink 1.2s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
.viz-note {
  margin-top: var(--s-3); text-align: right;
  font-family: var(--f-mono); font-size: 11px; color: var(--ink-3);
}

/* ---------- credibility strip ---------- */
.cred { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.cred-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: var(--s-3) var(--s-5); padding: var(--s-4) 0;
}
.cred-item { display: inline-flex; align-items: center; gap: 9px; font-size: var(--t-sm); color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.cred-item i { color: var(--ink-3); font-size: 14px; }

/* ---------- features ---------- */
/* pointer-following spotlight (progressive enhancement — CSS vars
   set by JS in base.html; without JS nothing is hidden, no glow shows) */
.feat-card, .feat-mini, .plan, .doc-mini { position: relative; }
.feat-card::before, .feat-mini::before, .plan::before, .doc-mini::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
              rgba(77, 159, 255, .07), transparent 65%);
  opacity: 0; transition: opacity .24s var(--ease); pointer-events: none;
}
.feat-card:hover::before, .feat-mini:hover::before, .plan:hover::before, .doc-mini:hover::before { opacity: 1; }

.feat-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.feat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-3); padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: border-color var(--dur) var(--ease);
}
.feat-card:hover { border-color: var(--line-2); }
.feat-ic {
  width: 38px; height: 38px; flex: none; border-radius: var(--r-2);
  display: grid; place-items: center; font-size: 15px;
  color: var(--acc); background: var(--acc-soft); border: 1px solid var(--acc-line);
}
.feat-card h3 { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.005em; }
.feat-card > p { color: var(--ink-2); font-size: .9375rem; line-height: 1.65; }
.feat-demo { margin-top: auto; padding-top: var(--s-4); }
/* deploy flow mini-visual */
.flow-line {
  display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--r-2);
  background: var(--bg-2); padding: var(--s-4);
  font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2);
}
.flow-node {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); border-radius: var(--r-1);
  padding: 7px 11px; background: var(--surface); white-space: nowrap;
}
.flow-node.live { color: var(--acc); border-color: var(--acc-line); background: var(--acc-soft); }
.flow-arrow { color: var(--ink-3); font-size: 10px; }
/* credits meter mini-visual */
.meter {
  border: 1px solid var(--line); border-radius: var(--r-2);
  background: var(--bg-2); padding: var(--s-4);
}
.meter-row { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2); margin-bottom: 12px; }
.meter-row b { color: var(--ink); font-weight: 500; }
.meter-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter-bar span { display: block; height: 100%; width: 62%; border-radius: 3px; background: var(--acc); }
.meter-note { margin-top: 12px; font-size: var(--t-xs); color: var(--ink-3); }
/* compact secondary features */
.feat-minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-top: var(--s-4); }
.feat-mini {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-5) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-2);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease);
}
.feat-mini:hover { border-color: var(--line-2); }
.feat-mini .feat-ic { width: 32px; height: 32px; font-size: 13px; border-radius: 8px; }
.feat-mini h4 { font-size: var(--t-sm); font-weight: 600; margin-bottom: 5px; }
.feat-mini p { font-size: var(--t-xs); color: var(--ink-2); line-height: 1.55; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); position: relative; }
/* one continuous hairline the three steps hang from */
.steps::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--line);
}
.step { position: relative; padding-top: var(--s-5); }
.step::before {
  content: ""; position: absolute; top: -2.5px; left: 0; width: 6px; height: 6px;
  border-radius: 50%; background: var(--acc);
}
.step-num { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-3); display: block; margin-bottom: var(--s-3); }
.step h3 { font-size: var(--t-h3); font-weight: 600; margin-bottom: var(--s-2); }
.step p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.6; max-width: 34ch; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-3); padding: var(--s-5);
  transition: border-color var(--dur) var(--ease);
}
.plan:hover { border-color: var(--line-2); }
.plan-feat {
  border-color: var(--acc-line);
  background: linear-gradient(180deg, rgba(77,159,255,.06), rgba(77,159,255,.015) 55%, transparent), var(--surface);
}
.plan-feat:hover { border-color: rgba(77,159,255,.5); }
@media (min-width: 1021px) {
  /* the recommended plan sits slightly above the row — no glow, just poise */
  .plan-feat { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(0, 0, 0, .42); }
}
.plan-top { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s-4); }
.plan-ic {
  width: 30px; height: 30px; flex: none; border-radius: 8px;
  display: grid; place-items: center; font-size: 12px;
  color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line-2);
}
.plan-feat .plan-ic { color: var(--acc); background: var(--acc-soft); border-color: var(--acc-line); }
.plan-name { font-weight: 600; font-size: .9375rem; }
.plan-tag {
  margin-left: auto; flex: none; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .07em; color: var(--acc);
  border: 1px solid var(--acc-line); background: var(--acc-soft);
  border-radius: 100px; padding: 3px 8px;
}
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price .v { font-family: var(--f-display); font-size: 2.4rem; font-weight: 600; letter-spacing: -.02em; }
.plan-price .u { font-size: var(--t-xs); color: var(--ink-3); }
.plan-desc { font-size: var(--t-xs); color: var(--ink-2); line-height: 1.55; margin: var(--s-2) 0 var(--s-4); min-height: 40px; }
.plan-list {
  border-top: 1px solid var(--line); padding-top: var(--s-4); margin-bottom: var(--s-5);
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.plan-list li { display: flex; gap: 10px; font-size: var(--t-sm); color: var(--ink-2); align-items: baseline; }
.plan-list li i { color: var(--acc); font-size: 10px; flex: none; }
.plan-list li b { color: var(--ink); font-weight: 600; }
.pricing-note {
  margin-top: var(--s-6); display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: var(--t-sm); color: var(--ink-3); text-align: center; flex-wrap: wrap;
}
.pricing-note i { color: var(--ink-3); font-size: 12px; }
.pricing-note a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-2); transition: border-color var(--dur); }
.pricing-note a:hover { border-color: var(--acc); }

/* ---------- faq ---------- */
.faq { max-width: 780px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) var(--s-2); border-radius: var(--r-2);
  font-weight: 600; font-size: .9375rem;
  transition: color var(--dur), background var(--dur);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--acc); background: rgba(77, 159, 255, .05); }
.faq-item[open] summary { color: var(--ink); background: rgba(77, 159, 255, .04); }
.faq-x {
  width: 24px; height: 24px; flex: none; display: grid; place-items: center;
  font-size: 10px; color: var(--ink-3);
  transition: transform var(--dur) var(--ease), color var(--dur);
}
.faq-item[open] .faq-x { transform: rotate(45deg); color: var(--acc); }
.faq-a { padding: 0 var(--s-1) var(--s-5); color: var(--ink-2); font-size: var(--t-sm); line-height: 1.7; max-width: 64ch; }
.faq-a a { color: var(--acc); font-weight: 600; }
.faq-a a:hover { text-decoration: underline; }

/* ---------- final cta ---------- */
.end {
  border-top: 1px solid var(--line);
  background: radial-gradient(700px 240px at 50% 100%, rgba(77, 159, 255, .06), transparent 70%), var(--bg-2);
}
.end-inner {
  padding: var(--s-8) 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--s-4);
}
.end h2 { font-family: var(--f-display); font-size: var(--t-h2); font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
.end p { color: var(--ink-2); max-width: 46ch; }
.end-ctas { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; justify-content: center; margin-top: var(--s-2); }
.end-link { font-size: .9375rem; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; transition: color var(--dur); }
.end-link:hover { color: var(--acc); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); position: relative; }
.footer::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: min(560px, 72%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 159, 255, .45), transparent);
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-6); padding: var(--s-7) 0 var(--s-6);
}
.footer-brand p { color: var(--ink-2); font-size: var(--t-sm); margin: var(--s-3) 0 var(--s-4); max-width: 34ch; line-height: 1.6; }
.footer-contact { display: flex; flex-direction: column; gap: 9px; font-size: var(--t-sm); color: var(--ink-2); }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 10px; min-width: 0; transition: color var(--dur); overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--acc); }
.footer-contact i { width: 14px; flex: none; color: var(--ink-3); font-size: 12px; }
.footer h4 { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--ink-3); margin-bottom: var(--s-3); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-2); font-size: var(--t-sm); width: fit-content; transition: color var(--dur); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: var(--s-4) 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap;
  font-size: var(--t-xs); color: var(--ink-3);
}
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); transition: color var(--dur); }
.to-top:hover { color: var(--acc); }
.pay { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.pay span {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: var(--r-1);
  padding: 4px 9px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2);
  background: var(--surface);
}
.pay i { font-size: 13px; color: var(--ink-2); }

/* ---------- inner page hero ---------- */
.page-head { padding: var(--s-8) 0 var(--s-5); max-width: var(--read); }
.page-head.center { margin: 0 auto; text-align: center; }
.page-title { font-family: var(--f-display); font-weight: 600; font-size: var(--t-page); letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.page-sub { color: var(--ink-2); margin-top: var(--s-3); font-size: 1.0625rem; line-height: 1.65; }

/* ---------- docs ---------- */
.docs-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: var(--s-8); padding: var(--s-7) 0 var(--s-9); }
.docs-nav { position: sticky; top: calc(var(--nav-h) + var(--s-5)); align-self: start; }
.docs-nav .dn-label { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); letter-spacing: .07em; margin: var(--s-4) 0 var(--s-2) var(--s-3); }
.docs-nav .dn-label:first-child { margin-top: 0; }
.docs-nav a {
  display: block; padding: 7px var(--s-3); border-radius: var(--r-1);
  font-size: var(--t-sm); color: var(--ink-2); font-weight: 500;
  border-left: 2px solid transparent;
  transition: color var(--dur), background var(--dur), border-color var(--dur);
}
.docs-nav a:hover { color: var(--ink); background: var(--surface); }
.docs-nav a.active { color: var(--acc); border-left-color: var(--acc); background: var(--acc-soft); }
.docs-content { max-width: var(--read); min-width: 0; }
.docs-content h1 { font-family: var(--f-display); font-size: var(--t-page); font-weight: 600; letter-spacing: -.02em; margin-bottom: var(--s-3); }
.docs-lead { color: var(--ink-2); font-size: 1.0625rem; margin-bottom: var(--s-7); line-height: 1.65; }
.docs-content section { margin-bottom: var(--s-8); scroll-margin-top: calc(var(--nav-h) + var(--s-5)); }
.docs-content h2 {
  font-family: var(--f-display); font-size: 1.375rem; font-weight: 600; letter-spacing: -.01em;
  margin-bottom: var(--s-4); padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.docs-content section:first-of-type h2 { border-top: none; padding-top: 0; }
.docs-content h3 { font-size: var(--t-body); font-weight: 600; margin: var(--s-5) 0 var(--s-2); }
.docs-content p { color: var(--ink-2); font-size: .9375rem; margin-bottom: var(--s-3); line-height: 1.7; }
.docs-content p b, .docs-content li b { color: var(--ink); font-weight: 600; }
.docs-content ul.tick, .docs-content ol.num { margin: 0 0 var(--s-4); display: flex; flex-direction: column; gap: 10px; }
.docs-content ul.tick li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: .9375rem; line-height: 1.6; }
.docs-content ul.tick li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); }
.docs-content ol.num { counter-reset: n; }
.docs-content ol.num li { position: relative; padding-left: 38px; color: var(--ink-2); font-size: .9375rem; line-height: 1.6; }
.docs-content ol.num li::before {
  counter-increment: n; content: counter(n);
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--acc-soft); border: 1px solid var(--acc-line);
  color: var(--acc); font-family: var(--f-mono); font-size: 11px;
  display: grid; place-items: center;
}
.docs-content code {
  font-family: var(--f-mono); font-size: .84em;
  padding: 2px 6px; border-radius: var(--r-1);
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink);
  overflow-wrap: break-word;
}
.docs-content a.doc-link { color: var(--acc); font-weight: 600; }
.docs-content a.doc-link:hover { text-decoration: underline; }
.doc-callout {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-4); margin: var(--s-4) 0;
  border: 1px solid var(--acc-line); border-radius: var(--r-2); background: var(--acc-soft);
}
.doc-callout i { color: var(--acc); margin-top: 3px; flex: none; }
.doc-callout p { margin: 0; font-size: var(--t-sm); }
.doc-callout.warn { border-color: rgba(224,179,74,.3); background: rgba(224,179,74,.06); }
.doc-callout.warn i { color: var(--warn); }
.doc-table { margin: var(--s-4) 0 var(--s-5); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; overflow-x: auto; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.doc-table th {
  text-align: left; padding: 11px var(--s-4);
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .05em;
  color: var(--ink-3); background: var(--surface); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.doc-table td { padding: 12px var(--s-4); border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.doc-table tbody tr:hover td { background: rgba(77,159,255,.04); }
.doc-table tr:last-child td { border-bottom: none; }
.doc-table td b { color: var(--ink); font-weight: 600; }
.doc-minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin: var(--s-4) 0 var(--s-5); }
.doc-mini { padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.doc-mini i { color: var(--acc); font-size: 14px; display: block; margin-bottom: 10px; }
.doc-mini b { display: block; font-size: var(--t-sm); font-weight: 600; margin-bottom: 5px; }
.doc-mini span { font-size: var(--t-xs); color: var(--ink-2); line-height: 1.55; }
/* code block */
.code { margin: var(--s-4) 0 var(--s-5); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; background: #0A0D10; }
.code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px var(--s-4); border-bottom: 1px solid var(--line); background: var(--surface);
}
.code-head span { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.code-copy {
  font-family: var(--f-mono); font-size: 11px; color: var(--ink-2);
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-1);
  padding: 4px 10px; cursor: pointer; transition: color var(--dur), border-color var(--dur);
}
.code-copy:hover { color: var(--ink); border-color: var(--ink-3); }
.code-copy.done { color: var(--acc); border-color: var(--acc-line); }
.code pre { padding: var(--s-4); overflow-x: auto; }
.code pre code { display: block; background: none; border: none; padding: 0; font-size: var(--t-mono); line-height: 1.75; color: #C7D0CD; white-space: pre; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: var(--s-8); padding-bottom: var(--s-9); align-items: start; }
.chan-list { border-top: 1px solid var(--line); }
.chan {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-5) var(--s-1); border-bottom: 1px solid var(--line);
  transition: background var(--dur);
}
a.chan:hover { background: var(--bg-2); }
.chan-ic {
  width: 38px; height: 38px; flex: none; border-radius: var(--r-2);
  display: grid; place-items: center; font-size: 14px;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2);
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
a.chan:hover .chan-ic { color: var(--acc); border-color: var(--acc-line); background: var(--acc-soft); }
.chan > div { min-width: 0; }
.chan b { display: block; font-size: var(--t-sm); font-weight: 600; }
.chan small { display: block; color: var(--ink-3); font-size: var(--t-xs); margin-top: 2px; }
.chan-v { margin-left: auto; flex: none; font-size: var(--t-sm); font-weight: 500; color: var(--ink); overflow-wrap: anywhere; text-align: right; transition: color var(--dur); }
a.chan:hover .chan-v { color: var(--acc); }
.contact-note { margin-top: var(--s-4); font-size: var(--t-xs); color: var(--ink-3); line-height: 1.6; }
.contact-note a { color: var(--acc); font-weight: 600; }
.contact-note a:hover { text-decoration: underline; }
/* form */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-6); }
.form-card h2 { font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; margin-bottom: var(--s-1); letter-spacing: -.005em; }
.form-card > p { color: var(--ink-2); font-size: var(--t-sm); margin-bottom: var(--s-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.field label .req { color: var(--acc); font-weight: 600; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px;
  padding: 10px 13px; border-radius: var(--r-2);
  border: 1px solid var(--line-2); background: var(--bg);
  color: var(--ink); font-size: .9375rem; outline: none;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--acc); box-shadow: var(--focus); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); }
.form-status { display: none; margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--r-2); font-size: var(--t-sm); align-items: flex-start; gap: 10px; line-height: 1.5; }
.form-status.show { display: flex; }
.form-status i { margin-top: 3px; flex: none; }
.form-status.ok { background: var(--acc-soft); border: 1px solid var(--acc-line); color: var(--ink); }
.form-status.ok i { color: var(--acc); }
.form-status.err { background: rgba(229,115,115,.07); border: 1px solid rgba(229,115,115,.3); color: var(--ink); }
.form-status.err i { color: var(--err); }

/* ---------- prose (legal) ---------- */
.prose { max-width: var(--read); padding: var(--s-6) 0 var(--s-9); }
.prose h1 { font-family: var(--f-display); font-size: var(--t-page); font-weight: 600; letter-spacing: -.02em; margin-bottom: var(--s-2); }
.prose-meta { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-3); margin-bottom: var(--s-7); padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.prose-meta i { color: var(--acc); font-size: 11px; }
.prose h2 { font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.005em; margin: var(--s-7) 0 var(--s-3); }
.prose p { color: var(--ink-2); font-size: .9375rem; line-height: 1.75; margin-bottom: var(--s-3); overflow-wrap: break-word; }
.prose ul { margin: 0 0 var(--s-4); display: flex; flex-direction: column; gap: 9px; }
.prose ul li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: .9375rem; line-height: 1.65; overflow-wrap: break-word; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); }
.prose b { color: var(--ink); font-weight: 600; }
.prose a { color: var(--acc); font-weight: 600; overflow-wrap: anywhere; }
.prose a:hover { text-decoration: underline; }
.prose-box { margin-top: var(--s-6); padding: var(--s-5); border: 1px solid var(--acc-line); border-radius: var(--r-2); background: var(--acc-soft); }
.prose-box p { margin-bottom: var(--s-2); font-size: var(--t-sm); }
.prose-box p:last-child { margin-bottom: 0; }

/* ---------- stats (about) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); margin: var(--s-7) 0; }
.stat { padding: var(--s-5); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .v { font-family: var(--f-display); font-size: 1.9rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.stat .l { color: var(--ink-2); font-size: var(--t-xs); margin-top: 6px; line-height: 1.5; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.value { border-top: 1px solid var(--line); padding-top: var(--s-4); position: relative; }
.value::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 1px; background: var(--acc); }
.value i { color: var(--acc); font-size: 15px; display: block; margin-bottom: var(--s-3); }
.value h3 { font-size: var(--t-h3); font-weight: 600; margin-bottom: var(--s-2); }
.value p { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; }
/* about page layout blocks (replaces inline styles) */
.about-block { max-width: var(--read); }
.about-block + .stats { margin-top: var(--s-7); }
.about-block p { color: var(--ink-2); line-height: 1.75; margin-bottom: var(--s-4); font-size: 1rem; }
.about-block p:last-child { margin-bottom: 0; }
.about-block b { color: var(--ink); font-weight: 600; }
.about-actions { margin-top: var(--s-8); max-width: var(--read); }
.about-actions p { color: var(--ink-2); margin-bottom: var(--s-5); }
.about-actions .btns { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero h1 { max-width: 16ch; }
  .hero-viz { justify-self: start; max-width: 600px; }
  .feat-duo { grid-template-columns: 1fr; }
  .feat-minis { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; gap: var(--s-5); }
  .docs-nav {
    position: sticky; top: var(--nav-h); z-index: 50;
    display: flex; gap: var(--s-2); overflow-x: auto;
    padding: var(--s-3) 0; margin: 0 calc(var(--s-5) * -1); padding-left: var(--s-5); padding-right: var(--s-5);
    background: rgba(9,11,13,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line); scrollbar-width: none;
  }
  .docs-nav::-webkit-scrollbar { display: none; }
  .docs-nav .dn-label { display: none; }
  .docs-nav a { flex: none; white-space: nowrap; border: 1px solid var(--line-2); border-radius: 100px; padding: 7px 14px; font-size: var(--t-xs); }
  .docs-nav a.active { border-color: var(--acc-line); }
  .contact-layout { grid-template-columns: 1fr; gap: var(--s-7); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav-inner { gap: var(--s-3); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 var(--s-4); }
  /* docs pill nav must not exceed the wrap's own padding */
  .docs-nav {
    margin: 0 calc(var(--s-4) * -1);
    padding-left: var(--s-4);
    padding-right: var(--s-4);
  }
  .section { padding: var(--s-8) 0; }
  .hero { padding: var(--s-7) 0 var(--s-8); }
  .hero h1 { font-size: clamp(2.15rem, 9vw, 2.7rem); }
  .hero-lead { font-size: var(--t-body); }
  .hero-ctas .btn { width: 100%; }
  .hero-meta { gap: var(--s-2) var(--s-3); }
  .brand-word { font-size: .875rem; }
  .nav-actions .btn { min-height: 36px; padding: 0 var(--s-3); font-size: var(--t-xs); }
  .nav-signin { display: none; }
  .cred-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); justify-items: start; padding: var(--s-4) 0; }
  .cred-item { white-space: normal; }
  .feat-minis { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--s-5); }
  .steps::before { display: none; }
  .step { border-top: 1px solid var(--line); }
  .step::before { top: -3px; }
  .plans { grid-template-columns: 1fr; }
  .plan-desc { min-height: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: var(--s-5) var(--s-4); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat + .stat { border-left: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .values { grid-template-columns: 1fr; }
  .doc-minis { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer-bottom { justify-content: center; text-align: center; }
  .chan { align-items: flex-start; }
  .chan-ic { margin-top: 2px; }
  .chan-v { max-width: 52%; padding-top: 2px; }
}

@media (max-width: 380px) {
  .brand-word { font-size: .75rem; }
  .nav-inner { gap: var(--s-2); }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 0 8px; min-height: 34px; }
  .nav-burger { width: 34px; height: 34px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
