/* ==========================================================================
   Synet Public Site — Midnight Black & Lime Edition (Dark-Only, Zero Shadows)
   Shared across landing.html, models.html, pricing.html, auth.html, forgot-password.html
   ========================================================================== */

:root {
  --bg:           #000000;
  --paper:        #080808;
  --surface:      #101012;
  --surface-2:    #17171a;
  --code:         #050506;
  --codeink:      #e6e6ea;
  --ink:          #f4f4f6;
  --ink-2:        #c8c8cf;
  --muted:        #8b8b94;
  --dim:          #5e5e66;
  --hairline:     #1c1c20;
  --line:         #2c2c32;
  --line-hi:      #4a4a52;
  --accent:       #c5e986;
  --accent-hover: #d5f2a2;
  --on:           #000000;
  --good:         #c5e986;
  --bad:          #f07666;
  --font-sans:    -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-serif:   Georgia, 'Times New Roman', serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace;
  color-scheme:   dark;
}

*, *::before, *::after {
  box-sizing: border-box;
  box-shadow: none;
  text-shadow: none;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 14.5px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
main {
  flex: 1 0 auto;
  padding-bottom: 56px;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4, p { margin-top: 0; }
[hidden] { display: none !important; }

.skip {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--on);
  font: 700 13px/1 var(--font-sans);
}
.skip:focus { top: 12px; }

/* === Layout shell === */
.shell {
  width: calc(100% - 72px);
  max-width: 1240px;
  margin: 0 auto;
}

/* === Typography primitives === */
.mono, .label {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.label {
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--muted);
  font-weight: 600;
}

/* === Buttons (crisp, zero shadow) === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--on);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 10px 18px;
  min-height: 40px;
  font: 700 13.5px/1 var(--font-sans);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.btn:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn.secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}
.btn.secondary:hover:not(:disabled) {
  background: var(--surface);
  border-color: var(--ink);
}
.btn.btn-nav {
  min-height: 34px;
  padding: 7px 14px;
  font-size: 12.5px;
  gap: 6px;
}
.btn.btn-sm {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 13px;
  gap: 6px;
}
.btn svg.ico-arr {
  width: 12px;
  height: 12px;
  flex: none;
  display: block;
}

.text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--accent-hover); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.arrowlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid var(--accent);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.14s ease;
}
.arrowlink:hover { color: var(--accent); }
.arrowlink svg.ico-arr { width: 12px; height: 12px; flex: none; }

/* === Navigation === */
.nav-wrap {
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 60;
}
nav.site-nav {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 800 20px/1 var(--font-sans);
  letter-spacing: -0.045em;
  color: var(--ink);
  flex-shrink: 0;
}
.brand svg.symbol {
  width: 26px;
  height: 18px;
  color: var(--accent);
  display: block;
  flex-shrink: 0;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
}
.navlinks a {
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color 0.14s ease;
}
.navlinks a:hover { color: var(--ink); }
.navlinks a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}
.navright {
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.menu-btn svg { width: 19px; height: 19px; display: block; }

/* === Hero (Desktop Screen 1: Nav + Hero + Ticker = 100svh, Side-by-Side Always) === */
.hero-monolith {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr);
  gap: 20px;
  align-items: center;
  min-height: clamp(520px, calc(100svh - 122px), 840px);
  padding: 32px 0 36px;
}
.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 720px;
}
.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 4.7vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 500;
  color: var(--ink);
}
.hero-copy h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.hero-copy .lead {
  margin: 0 0 26px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.56;
  color: var(--muted);
}
.monolith-stage {
  width: min(580px, 100%);
  aspect-ratio: 1;
  justify-self: end;
  margin-right: -28px;
  pointer-events: none;
}
#monoCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* === Model Family Ticker (Real SVG Marks, Tight Edge Feather, Seamless Loop) === */
.ticker {
  border-block: 1px solid var(--hairline);
  padding: 18px 0;
  position: relative;
  z-index: 6;
  background: var(--bg);
}
.ticker-viewport {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
}
.ticker-belt {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: ticker-scroll 48s linear infinite;
}
.ticker-viewport:hover .ticker-belt {
  animation-play-state: paused;
}
.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ticker-model {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 36px;
  color: var(--ink-2);
  flex: none;
}
.ticker-model .mark {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
  color: var(--ink);
}
.ticker-model span {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
@keyframes ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* === Sections (Screen 2: Platform + Featured Models Fit Together in 1 Desktop Viewport) === */
.section {
  padding: 38px 0;
  scroll-margin-top: 64px;
}
.section + .section {
  border-top: 1px solid var(--hairline);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 20px;
}
.section-head h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.036em;
  font-weight: 500;
}
.section-head .head-sub {
  max-width: 440px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}
.section-head-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* === Core Platform Split + SDK Codebox (Flush Vertical Balance) === */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}
.principle {
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
}
.principle:last-child {
  border-bottom: 1px solid var(--hairline);
}
.principle .num {
  font: 600 11.5px/1.6 var(--font-mono);
  color: var(--accent);
}
.principle h3 {
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--ink);
}
.principle p {
  margin: 0;
  font-size: 13px;
  line-height: 1.48;
  color: var(--muted);
}

.codebox {
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--codeink);
  padding: 16px 18px;
  min-width: 0;
}
.codehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--hairline);
}
.sdkpick {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.sdkpick button {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 6px 11px;
  min-height: 30px;
  font: 600 11px/1 var(--font-mono);
  color: var(--muted);
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease;
}
.sdkpick button:last-child { border-right: 0; }
.sdkpick button:hover { color: var(--ink); background: var(--surface); }
.sdkpick button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on);
}
.copy-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 6px 10px;
  min-height: 30px;
  font: 600 11px/1 var(--font-mono);
  color: var(--ink-2);
  white-space: nowrap;
}
.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.codebox pre {
  font: 12.5px/1.54 var(--font-mono);
  margin: 14px 0 12px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--codeink);
}
.codebox .code-note {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.codebox .copy-status {
  margin-top: 6px;
  font: 11px/1.4 var(--font-mono);
  color: var(--accent);
}
.codebox .copy-status:empty { display: none; }

/* === Featured Models Continuous Slow Real-Time Stream === */
.carousel-controls {
  display: inline-flex;
  gap: 6px;
}
.carousel-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink-2);
  transition: border-color 0.14s ease, color 0.14s ease;
}
.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 16px 2px 16px;
  margin: 0 -16px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 36px), transparent 100%);
}
.carousel-track::-webkit-scrollbar { display: none; }

.model-card {
  flex: 0 0 264px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 14px 16px 13px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.14s ease;
}
.model-card:hover {
  border-color: var(--line-hi);
}
.model-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.model-card-fam {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 10.5px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--muted);
}
.model-card-fam svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  color: var(--ink-2);
}
.ctx-pill {
  font: 600 10px/1 var(--font-mono);
  color: var(--accent);
  border: 1px solid var(--hairline);
  padding: 3px 6px;
  border-radius: 2px;
}
.model-card h3 {
  font-size: 15.5px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--ink);
}
.model-card .model-id {
  font: 11px/1.35 var(--font-mono);
  color: var(--dim);
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.model-card .rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 0;
  border-block: 1px solid var(--hairline);
  margin-bottom: 10px;
}
.model-card .rate-k {
  display: block;
  font: 10px/1.25 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
}
.model-card .rate-v {
  display: block;
  margin-top: 2px;
  font: 700 14px/1.2 var(--font-mono);
  color: var(--ink);
}
.model-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}
.model-card-foot .unit {
  font: 10.5px/1 var(--font-mono);
  color: var(--dim);
}
.model-card-foot a {
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.model-card-foot a:hover { text-decoration: underline; }

/* === 3-Audience Strip === */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.audience-col {
  padding: 20px 24px 20px 24px;
  border-left: 1px solid var(--hairline);
}
.audience-col:first-child {
  border-left: 0;
  padding-left: 0;
}
.audience-col:last-child {
  padding-right: 0;
}
.audience-col .aud-k {
  font: 600 10.5px/1.4 var(--font-mono);
  color: var(--accent);
  letter-spacing: 1.1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.audience-col h3 {
  font-size: 16.5px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 6px;
}
.audience-col p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* === Closing CTA Band === */
.block-cta {
  padding: 32px 38px;
  background: var(--accent);
  color: var(--on);
  border-radius: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-top: 12px;
}
.block-cta h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--on);
}
.block-cta p {
  margin: 0;
  max-width: 580px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.78);
}
.block-cta .btn {
  background: #000000;
  color: var(--accent);
  border-color: #000000;
  flex-shrink: 0;
}
.block-cta .btn:hover {
  background: #161618;
  border-color: #161618;
}

/* === Subpage Header === */
.pagehead {
  padding: 34px 0 24px;
  max-width: 100%;
}
.pagehead h1 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.pagehead p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 780px;
}
.pricing-page .pagehead p {
  max-width: none;
  font-size: 14.5px;
}

/* === Models Catalog Page === */
.toolbar {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 14px;
  padding: 16px 0;
  border-block: 1px solid var(--hairline);
}
.field-label {
  display: block;
  font: 600 10.5px/1.4 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 5px;
}
input, select {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 8px 12px;
  min-height: 38px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  font-size: 13.5px;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
input::placeholder { color: var(--dim); }
input:focus, select:focus {
  border-color: var(--accent);
  outline: none;
}

.count-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font: 12px/1.4 var(--font-mono);
  color: var(--muted);
}

.tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: var(--paper);
}
table.catalog-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.catalog-table th {
  text-align: left;
  font: 600 10.5px/1.4 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.catalog-table th:first-child { width: 46%; }
.catalog-table th:nth-child(2) { width: 18%; }
.catalog-table th:nth-child(3) { width: 18%; }
.catalog-table th:nth-child(4) { width: 18%; }
.catalog-table th:not(:first-child),
.catalog-table td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.catalog-table .th-short { display: none; }
.catalog-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13.5px;
  vertical-align: middle;
}
.catalog-table tbody tr:last-child td { border-bottom: 0; }
.catalog-table tbody tr:hover { background: var(--surface); }
.catalog-table td.model-cell { font-weight: 600; color: var(--ink); }
.catalog-table td.model-cell small {
  display: block;
  font: 11.5px/1.35 var(--font-mono);
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-table td.num {
  font-family: var(--font-mono);
  color: var(--ink-2);
}
.empty-msg {
  padding: 24px 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* === Compact Horizontal PAYG Estimator (No Preset Clutter) === */
.estimator-bar {
  margin-top: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(220px, 0.52fr);
  gap: 24px;
  align-items: center;
}
.est-head {
  margin-bottom: 12px;
}
.est-head h2 {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.est-fields {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
}
.est-foot {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--dim);
}
.est-result {
  border-left: 1px solid var(--hairline);
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.est-result .est-total {
  font: 600 32px/1.05 var(--font-mono);
  letter-spacing: -0.03em;
  color: var(--accent);
  margin: 5px 0 5px;
}
.est-result .est-split {
  font: 12px/1.45 var(--font-mono);
  color: var(--muted);
  margin: 0;
}

/* === Pricing Cards (Uniform, Zero Highlight, Compact) === */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.plan {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.14s ease;
}
.plan:hover {
  border-color: var(--line-hi);
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.plan h3 {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
}
.plan-desc {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.price {
  font: 600 30px/1 var(--font-mono);
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 8px;
}
.price small {
  font: 400 12.5px/1 var(--font-sans);
  letter-spacing: 0;
  color: var(--muted);
}
.allowance {
  font: 11.5px/1.4 var(--font-mono);
  color: var(--ink-2);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 16px;
}
.plan li {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 5px 0;
  padding-left: 15px;
  position: relative;
}
.plan li::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}
.plan .btn {
  width: 100%;
  margin-top: auto;
}
.billing-scope {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* === Pricing FAQ (Sticky 2-Column Border-Ruled Accordion, Closed by Default) === */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 48px;
  margin-top: 48px;
  padding-top: 44px;
  border-top: 1px solid var(--hairline);
  align-items: start;
}
.faq-intro {
  position: sticky;
  top: 76px;
}
.faq-intro h2 {
  margin: 8px 0 10px;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.faq-intro p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 14px;
}
.faq-list details {
  border-top: 1px solid var(--hairline);
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--hairline);
}
.faq-list summary {
  cursor: pointer;
  padding: 14px 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font: 600 17px/1 var(--font-mono);
  color: var(--accent);
  flex: none;
}
.faq-list details[open] summary::after {
  content: '−';
}
.faq-list details p {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.faq-list details code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 2px;
}

/* === Auth Layout (Centered in Viewport, -25% Compact Proportions, Full-Area Maze) === */
body.auth-page main.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
}
.authlayout {
  display: grid;
  grid-template-columns: minmax(0, 0.90fr) minmax(0, 1.10fr);
  width: 100%;
  max-width: 880px;
  min-height: 450px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
}
.authart {
  padding: 0;
  background: var(--paper);
  border-right: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.authart-copy {
  padding: 28px 28px 18px;
  flex: none;
}
.authart h1 {
  margin: 10px 0 10px;
  font-size: clamp(26px, 2.5vw, 33px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.authart h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.authart .auth-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 340px;
}
.auth-maze-wrap {
  flex: 1 1 0;
  width: 100%;
  min-height: 220px;
  position: relative;
  border-top: 1px solid var(--hairline);
  background: #000000;
  overflow: hidden;
}
#authMazeCanvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.authform {
  padding: 28px 30px;
  align-self: center;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}
.authform .invite-hint {
  font-size: 11.5px;
  line-height: 1.4;
  white-space: nowrap;
}
.authform h2 {
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 14px 0 4px;
}
.authform .hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}
.authform label {
  display: block;
  margin: 10px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.authform input {
  margin-top: 4px;
  min-height: 37px;
  padding: 8px 11px;
  font-size: 13px;
}
.authform .btn {
  width: 100%;
  min-height: 37px;
  padding: 9px 14px;
  font-size: 13px;
  margin-top: 6px;
}
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 2px;
  width: 100%;
}
.segmented button {
  background: transparent;
  border: 0;
  padding: 8px 12px;
  min-height: 35px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.segmented button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on);
}
.divider-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0 6px;
  font: 10px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dim);
}
.divider-or::before, .divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.message {
  font-size: 13.5px;
  line-height: 1.45;
  margin: 12px 0 0;
  color: var(--muted);
}
.message:empty { display: none; }

/* === Legal Page === */
.legal-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 78px;
}
.legal-toc nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
}
.legal-toc a {
  padding: 7px 0;
  font: 12.5px/1.4 var(--font-mono);
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
  transition: color 0.14s ease;
}
.legal-toc a:hover { color: var(--accent); }
.legal-section {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: 78px;
}
.legal-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.legal-section h2 {
  margin: 8px 0 12px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.028em;
  font-weight: 600;
  color: var(--ink);
}
.legal-section p {
  margin: 0 0 12px;
  max-width: 720px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 2px;
}

/* === Full-Width Page Footer (Centered Links) === */
.footer-wrap {
  width: 100%;
  border-top: 1px solid var(--hairline);
  background: var(--bg);
  margin-top: auto;
}
.site-footer {
  padding: 24px 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 32px;
}
.site-footer .brand {
  justify-self: start;
}
.footer-links {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 13px;
  color: var(--muted);
}
.footer-links a {
  transition: color 0.14s ease;
}
.footer-links a:hover,
.footer-links a[aria-current="page"] { color: var(--ink); }

/* === Tablet (<= 960px, e.g. 768px — Side-by-Side Hero + Proportional Downscaling) === */
@media (max-width: 960px) {
  .shell { width: calc(100% - 40px); }
  body { font-size: 14px; line-height: 1.5; }
  nav.site-nav { height: 52px; }
  .brand { font-size: 18px; gap: 7px; }
  .brand svg.symbol { width: 22px; height: 15px; }
  .navlinks { gap: 20px; }
  .navlinks a { font-size: 13px; }
  .btn { min-height: 36px; padding: 8px 14px; font-size: 12.5px; }
  .btn.btn-nav { min-height: 32px; padding: 6px 12px; font-size: 12px; }
  input, select { min-height: 36px; padding: 7px 10px; font-size: 13px; }

  .hero-monolith {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: 16px;
    min-height: 0;
    padding: 32px 0 36px;
  }
  .hero-copy { max-width: none; }
  .hero-copy h1 { font-size: clamp(30px, 4.3vw, 42px); margin-bottom: 12px; }
  .hero-copy .lead { font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
  .monolith-stage {
    width: min(290px, 100%);
    margin-right: -8px;
  }

  .ticker { padding: 14px 0; }
  .ticker-model { padding: 0 26px; gap: 8px; }
  .ticker-model .mark { width: 18px; height: 18px; }
  .ticker-model span { font-size: 14px; }

  .section { padding: 36px 0; }
  .section-head { gap: 18px; margin-bottom: 18px; }
  .section-head h2 { font-size: 26px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .model-card { flex: 0 0 244px; padding: 13px 14px; }

  .audience-grid { grid-template-columns: 1fr; }
  .audience-col {
    border-left: 0;
    border-top: 1px solid var(--hairline);
    padding: 16px 0;
  }
  .audience-col:first-child { border-top: 0; }

  .pagehead { padding: 26px 0 18px; }
  .pagehead h1 { font-size: clamp(26px, 4.1vw, 36px); }
  .pagehead p, .pricing-page .pagehead p { font-size: 13.5px; }

  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .plan { padding: 15px 16px; }
  .plan .price { font-size: 26px; }

  .faq { grid-template-columns: 1fr; gap: 20px; margin-top: 34px; padding-top: 30px; }
  .faq-intro { position: static; }

  .estimator-bar { grid-template-columns: 1fr; gap: 16px; padding: 16px 18px; }
  .est-result {
    border-left: 0;
    border-top: 1px solid var(--hairline);
    padding-left: 0;
    padding-top: 14px;
  }

  .legal-grid { grid-template-columns: 1fr; gap: 28px; }
  .legal-toc { position: static; }

  .authlayout {
    grid-template-columns: 1fr;
    max-width: 520px;
    min-height: 0;
  }
  .authart { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 0; }
  .authart-copy { padding: 22px 24px; }
  .authart h1 { font-size: 28px; margin: 8px 0; }
  .authart .auth-sub { font-size: 13px; }
  .auth-maze-wrap { display: none; }
  .authform { padding: 24px; max-width: none; }
}

/* === Mobile (<= 720px, e.g. 375px — Logo-Only Brand, Visible CTA + Burger, Side-by-Side Hero, Compact Scale) === */
@media (max-width: 720px) {
  .shell { width: calc(100% - 32px); }
  body { font-size: 13.5px; line-height: 1.5; }
  nav.site-nav { height: 48px; gap: 12px; }
  .site-nav .brand span { display: none; }
  .site-nav .brand svg.symbol { width: 24px; height: 17px; }
  .navright { gap: 8px; }
  .navright > .btn.btn-nav {
    display: inline-flex;
    min-height: 30px;
    padding: 6px 10px;
    font-size: 11.5px;
    gap: 5px;
  }
  .menu-btn { display: inline-flex; width: 32px; height: 32px; }

  .navlinks {
    display: none;
    position: absolute;
    top: 48px;
    left: -16px;
    right: -16px;
    background: var(--bg);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 80;
  }
  .navlinks.open { display: flex; }
  .navlinks a {
    padding: 10px 2px;
    border-bottom: 1px solid var(--hairline);
    font-size: 13.5px;
  }
  .navlinks a:last-child { border-bottom: 0; }
  .navlinks a[aria-current="page"] { border-bottom-color: var(--accent); padding-bottom: 10px; }

  /* Hero + Monolith side-by-side cleanly on 375px */
  .hero-monolith {
    grid-template-columns: minmax(0, 1fr) 124px;
    gap: 8px 8px;
    padding: 20px 0 22px;
  }
  .hero-copy { display: contents; }
  .hero-copy h1 {
    grid-column: 1;
    grid-row: 1;
    font-size: 21px;
    line-height: 1.08;
    letter-spacing: -0.038em;
    margin: 0;
  }
  .hero-copy .lead {
    grid-column: 1;
    grid-row: 2;
    font-size: 12px;
    line-height: 1.44;
    margin: 0;
  }
  .monolith-stage {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 126px;
    height: 126px;
    margin-right: -4px;
    align-self: center;
  }
  .hero-copy .actions {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    margin-top: 8px;
    gap: 8px;
  }
  .actions .btn {
    flex: 1 1 0;
    min-height: 34px;
    padding: 8px 10px;
    font-size: 12px;
    gap: 5px;
  }

  .ticker { padding: 12px 0; }
  .ticker-model { padding: 0 20px; gap: 7px; }
  .ticker-model .mark { width: 16px; height: 16px; }
  .ticker-model span { font-size: 13px; }

  .section { padding: 28px 0; }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
  }
  .section-head h2 { font-size: 21px; }
  .section-head .head-sub { font-size: 12.5px; }
  .principle { padding: 10px 0; gap: 10px; }
  .principle h3 { font-size: 14px; }
  .principle p { font-size: 12.5px; }

  /* Keep SDK tabs + Copy on ONE single row on mobile */
  .codebox { padding: 12px 14px; }
  .codehead { flex-wrap: nowrap; gap: 8px; padding-bottom: 10px; }
  .sdkpick { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); }
  .sdkpick button { padding: 6px 4px; font-size: 10.5px; text-align: center; }
  .copy-btn { padding: 6px 9px; font-size: 10.5px; flex-shrink: 0; }
  .codebox pre { font-size: 11.5px; line-height: 1.5; margin: 12px 0 10px; }

  .carousel-btn { width: 34px; height: 34px; }
  .model-card { flex: 0 0 226px; padding: 12px 13px; }
  .model-card h3 { font-size: 14.5px; }

  .audience-col h3 { font-size: 15px; }
  .audience-col p { font-size: 12.5px; }

  .block-cta {
    padding: 20px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .block-cta h2 { font-size: 20px; }
  .block-cta p { font-size: 12.5px; }
  .block-cta .btn { width: 100%; min-height: 36px; }

  .pagehead { padding: 20px 0 14px; }
  .pagehead h1 { font-size: 24px; line-height: 1.08; }
  .pagehead p, .pricing-page .pagehead p { font-size: 12.5px; }

  /* Models mobile toolbar (2 compact rows) + zero-scroll 4-col table */
  .toolbar {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 0;
  }
  .toolbar label:first-child { grid-column: 1 / -1; }
  .catalog-table .th-full { display: none; }
  .catalog-table .th-short { display: inline; }
  .catalog-table th, .catalog-table td { padding: 8px 5px; }
  .catalog-table th:first-child, .catalog-table td:first-child { padding-left: 10px; width: 46%; }
  .catalog-table th:nth-child(2), .catalog-table td:nth-child(2) { width: 14%; }
  .catalog-table th:nth-child(3), .catalog-table td:nth-child(3) { width: 20%; }
  .catalog-table th:nth-child(4), .catalog-table td:nth-child(4) { width: 20%; padding-right: 10px; }
  .catalog-table th { font-size: 9.5px; letter-spacing: 0.4px; }
  .catalog-table td.model-cell { font-size: 12px; line-height: 1.25; }
  .catalog-table td.model-cell small { font-size: 10px; }
  .catalog-table td.num { font-size: 11px; }

  .est-fields { grid-template-columns: 1fr 1fr; gap: 10px; }
  .est-fields label:first-child { grid-column: 1 / -1; }
  .est-result .est-total { font-size: 26px; }

  .plans { grid-template-columns: 1fr; gap: 10px; }
  .plan { padding: 14px 15px; }
  .plan .price { font-size: 24px; }
  .plan li { font-size: 12.5px; }
  .faq-list summary { font-size: 13.5px; padding: 12px 0; }
  .faq-list details p { font-size: 12.5px; }

  main { padding-bottom: 36px; }
  body.auth-page main.auth-main { padding: 20px 0; }
  .authlayout { margin: 0 auto; }
  .authart-copy { padding: 18px 18px; }
  .authart h1 { font-size: 22px; margin: 6px 0; }
  .authart .auth-sub { font-size: 12.5px; }
  .authform { padding: 18px; }
  .authform h2 { font-size: 20px; margin: 16px 0 4px; }
  .authform .hint { font-size: 12.5px; margin-bottom: 14px; }
  .authform label { font-size: 12.5px; margin: 11px 0; }
  .authform input, .authform .btn { min-height: 40px; font-size: 13.5px; }
  .authform .invite-hint { white-space: normal; font-size: 11.5px; }
  .segmented button { min-height: 36px; font-size: 13px; padding: 8px 10px; }

  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 20px 0 24px;
  }
  .site-footer .brand { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-belt { animation: none; }
  * { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
