/* ============================================================
   Index Pages — premium dark landing
   System:
   - Type: Source Serif 4 (display), Inter Tight (UI), JetBrains Mono (labels/data)
   - Palette: near-black bg, refined neutrals, single sky-blue accent
   - Grid: 1280px content, 24/48/96 rhythm
   ============================================================ */

:root {
  --bg: #07080A;
  --bg-2: #0B0D11;
  --bg-3: #101319;
  --line: #1a1d22;
  --line-2: #2a2e35;
  --text: #E9EAEC;
  --text-dim: #9097A2;
  --text-dimmer: #5A616D;
  --accent: #7CC4FF;
  --accent-soft: color-mix(in oklab, var(--accent) 18%, transparent);
  --accent-glow: color-mix(in oklab, var(--accent) 38%, transparent);
  --success: #7FD6A7;
  --warn: #EAC86A;
  --danger: #F0888C;
  --info: #7CC4FF;
  --bg-hover: #0E1116;

  --serif: "Source Serif 4", "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1280px;
  --pad-x: 48px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scrollbar-gutter: stable; }
body {
  background:
    radial-gradient(1200px 600px at 85% -10%, color-mix(in oklab, var(--accent) 10%, transparent) 0%, transparent 55%),
    radial-gradient(900px 500px at 15% 5%, rgba(255,255,255,0.015) 0%, transparent 60%),
    var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Subtle grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .35;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.mono-s {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.dim { color: var(--text-dimmer); }
.accent { color: var(--accent); }

em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}
.nav-hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text);
}
.brand-logo { width: 28px; height: 28px; display: block; border-radius: 6px; }
.wordmark {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: baseline; gap: 2px;
}
.wm-a { color: var(--text); }
.wm-dot { color: var(--accent); margin: 0 2px; transform: translateY(-1px); }
.wm-b { color: var(--text-dim); }

.nav-links {
  display: flex; gap: 28px;
  justify-content: center;
  font-size: 14px;
  color: var(--text-dim);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }

.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .2s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #071018;
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--accent) 80%, black),
    0 10px 30px -12px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--accent) 80%, black),
    0 16px 40px -12px var(--accent-glow);
}
.btn-primary .arr { transition: transform .2s ease; }
.btn-primary:hover .arr { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: #4a5260; background: rgba(255,255,255,0.02); }

.lg { padding: 14px 20px; font-size: 15px; border-radius: 10px; }
.block { display: flex; justify-content: center; width: 100%; }

/* ── LANG DROPDOWN ───────────────────────────────────────── */
.lang-select { position: relative; }
.lang-details { display: flex; }
.lang-details summary { list-style: none; cursor: pointer; user-select: none; }
.lang-details summary::-webkit-details-marker { display: none; }
.lang-summary { gap: 6px; }
.lang-arrow { font-size: 10px; transition: transform .2s ease; display: inline-block; margin-left: 2px; }
.lang-details[open] .lang-arrow { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 6px;
  min-width: 140px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
}
.lang-option {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-dim);
  transition: background .15s ease, color .15s ease;
}
.lang-option:hover { background: var(--bg-3); color: var(--text); }
.lang-option.lang-active { color: var(--accent); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px var(--pad-x) 48px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 80px;
  align-items: start;
  z-index: 2;
}

.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--line) 60%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--line) 60%, transparent) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(60% 60% at 30% 20%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(60% 60% at 30% 20%, black 0%, transparent 80%);
  pointer-events: none;
  opacity: .7;
}
.grid-bg.inner {
  mask-image: radial-gradient(80% 80% at 50% 50%, black 0%, transparent 90%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, black 0%, transparent 90%);
  background-size: 48px 48px;
  opacity: .5;
}

.hero-inner { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.015);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.h-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(52px, 6.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 28px 0 24px;
  color: var(--text);
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 0 36px;
  text-wrap: pretty;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 64px; }

.telemetry {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 720px;
}
.tel-col { display: flex; flex-direction: column; gap: 8px; }
.tel-label { color: var(--text-dimmer); }
.tel-value {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.tel-value .unit { font-family: var(--sans); font-size: 16px; font-weight: 400; color: var(--text-dim); margin-left: 2px; }
.tel-sep { width: 1px; background: var(--line); }

/* Hero visual — live indexing feed */
.hero-vis {
  position: relative; z-index: 2;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0) 60%), var(--bg-2);
  padding: 16px;
  align-self: stretch;
  display: flex; flex-direction: column;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.03) inset,
    0 40px 80px -30px rgba(0,0,0,0.8);
  overflow: hidden;
}
.hero-vis::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 30%, transparent), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.vis-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 4px;
}
.vis-title { color: var(--text); }
.live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
  margin-right: 6px; transform: translateY(-1px);
}
.live-dot.green { background: var(--success); box-shadow: 0 0 8px color-mix(in oklab, var(--success) 50%, transparent); }

.vis-rows {
  flex: 1;
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  overflow: hidden;
  margin: 12px 0;
}
.vis-row {
  display: grid;
  grid-template-columns: 40px 1fr 70px 72px;
  gap: 12px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px dashed color-mix(in oklab, var(--line) 70%, transparent);
  color: var(--text-dim);
  transition: opacity .4s ease, transform .4s ease;
}
.vis-row:last-child { border-bottom: none; }
.vis-row.enter { opacity: 0; transform: translateY(-6px); }
.vr-time { color: var(--text-dimmer); }
.vr-url { color: var(--text); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vr-eng { color: var(--text-dim); text-align: right; }
.vr-status { text-align: right; letter-spacing: .1em; text-transform: uppercase; }
.vr-status.ok { color: var(--accent); }
.vr-status.wait { color: var(--text-dimmer); }

/* ── SECTIONS (generic) ──────────────────────────────────── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 128px var(--pad-x);
  position: relative; z-index: 2;
}
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-num { display: block; margin-bottom: 20px; color: var(--accent); }
.h-section {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--text);
}
.section-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
  max-width: 640px;
}

/* ── HOW IT WORKS ────────────────────────────────────────── */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.step {
  background: var(--bg);
  padding: 32px 28px 28px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 420px;
  position: relative;
  transition: background .3s ease;
}
.step:hover { background: var(--bg-2); }
.step-n { color: var(--text-dimmer); }
.step-t {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
.step-d { font-size: 14.5px; line-height: 1.55; color: var(--text-dim); margin: 0; text-wrap: pretty; }
.step-vis {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--mono); font-size: 11.5px;
}
.v-row { display: flex; justify-content: space-between; padding: 4px 0; }
.v-check { display: flex; align-items: center; gap: 10px; padding: 2px 0; color: var(--text); }
.v-check .tick {
  width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; background: color-mix(in oklab, var(--success) 15%, transparent);
  color: var(--success); font-size: 11px;
}
.v-check.warn .tick { background: rgba(234,200,106,0.15); color: #EAC86A; }
.chan { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.chan-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.chan .mono-s:first-of-type { color: var(--text); margin-right: auto; font-size: 10.5px; }
.spark { height: 60px; margin: 4px 0; color: var(--text-dimmer); }
.spark svg { width: 100%; height: 100%; }
.spark-animate {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 2.5s ease forwards;
}
.step:hover .spark-animate { animation: draw 2.5s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── RESULTS / METRICS ──────────────────────────────────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 16px;
}
.metric {
  grid-column: span 2;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .25s ease, transform .25s ease;
  position: relative; overflow: hidden;
}
.metric:hover { border-color: var(--line-2); }
.metric.big { grid-column: span 4; grid-row: span 2; }
.metric.wide { grid-column: span 6; }
.metric-label { color: var(--text-dim); }
.metric-val {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  display: flex; align-items: baseline; gap: 6px;
}
.metric-val .u { font-family: var(--sans); font-size: 18px; font-weight: 400; color: var(--text-dim); letter-spacing: 0; }
.metric .metric-val .v { color: var(--accent); }
.metric:not(.big) .metric-val { font-size: 52px; }
.metric.wide .metric-val { display: none; }
.metric-delta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--success) 12%, transparent);
  color: var(--success);
  align-self: flex-start;
}
.metric-sub { color: var(--text-dimmer); margin-top: auto; }
.metric-chart { height: 80px; margin-top: auto; }
.metric-chart svg { width: 100%; height: 100%; }

.case-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.case-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; }
.case-k { color: var(--text-dimmer); }
.case-v { color: var(--text-dim); }
.case-row .accent { color: var(--accent); }
.case-bar {
  position: relative; height: 6px;
  background: color-mix(in oklab, var(--line) 60%, transparent);
  border-radius: 3px; overflow: hidden;
}
.case-bar > span {
  display: block; height: 100%; width: 0 !important;
  background: var(--text-dim);
  border-radius: 3px;
  transition: width 1.1s cubic-bezier(.2,.7,.2,1);
}
.case-bar.accent > span { background: var(--accent); box-shadow: 0 0 14px var(--accent-glow); }
.case-bar.in > span { width: var(--bar-w, 0) !important; }

/* ── ENGINES ─────────────────────────────────────────────── */
.engine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.engine-grid > .engine {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 24px;
  transition: border-color .25s ease, background .25s ease;
  position: relative;
}
.engine-grid > .engine:hover { border-color: var(--line-2); background: var(--bg-3); }
.engine-head { display: flex; align-items: center; gap: 16px; }
.engine-mark {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.engine-grid > .engine:hover .engine-mark { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 40%, var(--line-2)); }
.engine-t {
  font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0;
  letter-spacing: -0.02em;
}
.engine-sub { color: var(--text-dimmer); margin-top: 4px; }
.engine-kv {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin: 0;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.engine-kv > div { display: flex; flex-direction: column; gap: 6px; }
.engine-kv dt { color: var(--text-dimmer); }
.engine-kv dd {
  margin: 0;
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  letter-spacing: -0.01em; color: var(--text);
}
.engines-foot { margin-top: 32px; color: var(--text-dimmer); text-align: center; }

/* ── PRICING ─────────────────────────────────────────────── */
.plan-h { display: flex; flex-direction: column; gap: 6px; }
.plan-t {
  font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0;
  letter-spacing: -0.02em;
}
.plan-d { margin: 0; color: var(--text-dim); font-size: 14.5px; text-wrap: pretty; }

/* ── TESTIMONIALS ───────────────────────────────────────── */
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.t-card {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 28px;
  transition: border-color .25s ease;
}
.t-card:hover { border-color: var(--line-2); }
.t-card blockquote { margin: 0; }
.t-card blockquote p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
  text-wrap: pretty;
}
.t-card blockquote p::before { content: "«"; color: var(--accent); margin-right: 2px; }
.t-card blockquote p::after { content: "»"; color: var(--accent); margin-left: 2px; }
.t-card figcaption {
  display: flex; gap: 14px; align-items: center;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  margin-top: auto;
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(140deg, color-mix(in oklab, var(--accent) 25%, transparent), transparent 60%), var(--bg-3);
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 18px; color: var(--text);
}
.t-name { font-size: 14px; font-weight: 500; color: var(--text); }
.t-role { margin-top: 3px; color: var(--text-dim); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list {
  border-top: 1px solid var(--line);
  max-width: 920px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 22px; font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon {
  font-family: var(--mono); font-size: 20px; color: var(--text-dim);
  transition: transform .25s ease, color .2s ease;
  line-height: 1;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-body {
  padding: 0 4px 24px;
  max-width: 720px;
  color: var(--text-dim);
  font-size: 15.5px; line-height: 1.6;
  text-wrap: pretty;
}

/* ── CTA ─────────────────────────────────────────────────── */
.cta {
  padding-top: 48px;
  padding-bottom: 128px;
}
.cta-card {
  position: relative;
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 8%, var(--bg-2)), var(--bg-2));
  border: 1px solid color-mix(in oklab, var(--accent) 25%, var(--line));
  border-radius: 20px;
  padding: 88px 64px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 60px 120px -40px var(--accent-glow);
}
.cta-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-kicker { color: var(--accent); }
.cta-title { margin: 0; }
.cta-sub { color: var(--text-dim); font-size: 16px; margin: 0 0 10px; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── FOOTER ──────────────────────────────────────────────── */
.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px var(--pad-x) 40px;
  border-top: 1px solid var(--line);
  position: relative; z-index: 2;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.foot-brand .brand { margin-bottom: 16px; }
.foot-tag {
  color: var(--text-dim); font-size: 14px; line-height: 1.5;
  max-width: 360px; margin: 0;
  text-wrap: pretty;
}
.foot-cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.foot-cols > div { display: flex; flex-direction: column; gap: 12px; }
.foot-h { color: var(--text-dimmer); margin-bottom: 4px; }
.foot-cols a { font-size: 14px; color: var(--text-dim); transition: color .15s ease; }
.foot-cols a:hover { color: var(--text); }

.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}
.status { color: var(--text-dim); }

/* ── Redacted elements ──────────────────────────────────── */
.redact { background: var(--text-dimmer); color: transparent; border-radius: 3px; padding: 0 2px; font-family: var(--mono); letter-spacing: .05em; user-select: none; }
.redact-av { color: var(--text-dimmer) !important; font-family: var(--mono) !important; }

/* ── Coverage grid ──────────────────────────────────────── */
.cov-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; }
.cov { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 28px; min-height: 280px; display: flex; flex-direction: column; gap: 20px; transition: border-color .25s ease, background .25s ease; }
.cov:hover { border-color: var(--line-2); background: var(--bg-3); }
.cov-primary { border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); background: radial-gradient(300px 160px at 80% 0%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%), var(--bg-2); }
.cov-label { color: var(--text-dimmer); }
.cov-primary .cov-label { color: var(--accent); }
.cov-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cov-list li { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -0.01em; color: var(--text); }
.cov-secondary .cov-list li, .cov-inherited .cov-list li { font-size: 17px; color: var(--text-dim); }
.cov-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); flex-shrink: 0; }
.cov-dot.sm { width: 5px; height: 5px; background: var(--text-dimmer); box-shadow: none; }
.cov-inherited .cov-dot, .cov-secondary .cov-dot { background: var(--text-dimmer); box-shadow: none; }

/* ── Price hero ─────────────────────────────────────────── */
.price-hero { margin-bottom: 40px; border: 1px solid color-mix(in oklab, var(--accent) 25%, var(--line)); border-radius: 18px; background: radial-gradient(500px 300px at 50% 0%, color-mix(in oklab, var(--accent) 9%, transparent), transparent 70%), var(--bg-2); padding: 56px 48px; text-align: center; position: relative; overflow: hidden; box-shadow: 0 60px 120px -40px var(--accent-glow); }
.price-hero-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.price-hero-label { color: var(--accent); margin-bottom: 8px; }
.price-hero-amount { font-family: var(--serif); font-weight: 300; display: flex; align-items: baseline; gap: 4px; color: var(--text); }
.ph-cur { font-size: 48px; color: var(--text-dim); }
.ph-v { font-size: 120px; line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.price-hero-per { color: var(--text-dim); margin-top: 4px; }
.price-hero-calc { margin: 32px 0 28px; display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 440px; }
.calc-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; color: var(--text); }
.calc-k { color: var(--text-dim); }
.calc-dots { border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); }
.calc-v { font-family: var(--mono); font-size: 14px; color: var(--text); }
.price-cta { margin-top: 8px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.price-feat { background: var(--bg); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; transition: background .25s ease; }
.price-feat:hover { background: var(--bg-2); }
.price-feat-k { color: var(--text-dimmer); }
.price-feat-v { font-family: var(--serif); font-size: 18px; font-weight: 400; letter-spacing: -0.01em; color: var(--text); text-wrap: pretty; }
.price-note { text-align: center; margin-top: 28px; color: var(--text-dimmer); }

/* ── RESPONSIVE GUARDRAIL ────────────────────────────────── */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric, .metric.big { grid-column: span 2; }
  .metric.wide { grid-column: span 2; }
  .engine-grid, .plans, .t-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .telemetry { grid-template-columns: 1fr 1fr; gap: 20px; }
  .tel-sep { display: none; }
  .foot-top { grid-template-columns: 1fr; }
  .cov-grid, .price-grid { grid-template-columns: 1fr; }
  .price-hero { padding: 40px 24px; }
  .ph-v { font-size: 88px; }
}

/* ============================================================
   SHARED UI KIT (landing + app)
   Generic components introduced with the user-area redesign.
   Safe to use on any Hugo page; app-only plumbing lives in
   Laravel's public/css/dashboard.css.
   ============================================================ */

/* ── Buttons: extra variants ─────────────────────────────── */
.btn-danger, .btn-danger-solid {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .2s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in oklab, var(--danger) 40%, var(--line-2)); }
.btn-danger:hover { background: color-mix(in oklab, var(--danger) 12%, transparent); border-color: var(--danger); }
.btn-danger-solid { background: color-mix(in oklab, var(--danger) 90%, black); color: #1a0709; box-shadow: 0 0 0 1px color-mix(in oklab, var(--danger) 60%, black); }
.btn-danger-solid:hover { transform: translateY(-1px); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 7px; }
.btn-primary:disabled, .btn-ghost:disabled, .btn-danger:disabled, .btn-danger-solid:disabled,
.btn-primary.is-disabled, .btn-ghost.is-disabled { opacity: .4; pointer-events: none; }
.link-action { font-size: 14px; color: var(--accent); transition: color .15s ease; }
.link-action:hover { color: color-mix(in oklab, var(--accent) 80%, white); }

/* ── Page shell ──────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.section-pad { padding-bottom: 100px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 44px 0 28px; flex-wrap: wrap; }
.page-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--text);
}
.page-sub { color: var(--text-dim); margin: 8px 0 0; font-size: 15px; }
.page-back { font-size: 14px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 8px; transition: color .15s ease; }
.page-back:hover { color: var(--text); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Cards ───────────────────────────────────────────────── */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.card-pad { padding: 26px 28px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent); }
.card-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}
.card-sub { color: var(--text-dim); font-size: 14.5px; line-height: 1.55; margin: 6px 0 0; text-wrap: pretty; }

/* ── Stat cards ──────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 150px;
  transition: border-color .25s ease;
}
.stat:hover { border-color: var(--line-2); }
.stat-label { color: var(--text-dim); }
.stat-val {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  display: flex; align-items: baseline; gap: 6px;
}
.stat-val .cur { font-size: 26px; color: var(--text-dim); }
.stat-foot { margin-top: auto; color: var(--text-dimmer); }
.stat-link { font-size: 14px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.stat-link .arr { transition: transform .2s ease; }
.stat-link:hover .arr { transform: translateX(3px); }

/* ── Tables ──────────────────────────────────────────────── */
.tbl-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tbl-scroll { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  text-align: left;
  font-weight: 400;
  padding: 16px 24px;
  background: color-mix(in oklab, var(--bg-3) 60%, var(--bg-2));
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl tbody td { padding: 18px 24px; border-bottom: 1px solid color-mix(in oklab, var(--line) 55%, transparent); color: var(--text-dim); font-size: 14.5px; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .15s ease; }
.tbl tbody tr:hover { background: var(--bg-hover); }
.tbl .t-title { color: var(--text); font-weight: 500; font-size: 15px; }
.tbl .t-num { font-family: var(--mono); font-size: 13px; color: var(--text-dim); }
.tbl .t-amount { font-family: var(--mono); font-size: 13.5px; text-align: right; }
.tbl .t-amount.neg { color: var(--danger); }
.tbl .t-amount.pos { color: var(--success); }
.tbl .col-r { text-align: right; }
.tbl .row-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.tbl a.link-action { white-space: nowrap; }

/* ── Status badges ───────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge.done, .badge.topup, .badge.answered, .badge.referral {
  color: var(--success);
  background: color-mix(in oklab, var(--success) 12%, transparent);
  border-color: color-mix(in oklab, var(--success) 28%, transparent);
}
.badge.open { color: var(--warn); background: color-mix(in oklab, var(--warn) 12%, transparent); border-color: color-mix(in oklab, var(--warn) 28%, transparent); }
.badge.pending, .badge.purchase, .badge.doing {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in oklab, var(--accent) 30%, transparent);
}
.badge.error, .badge.withdrawal {
  color: var(--danger);
  background: color-mix(in oklab, var(--danger) 12%, transparent);
  border-color: color-mix(in oklab, var(--danger) 28%, transparent);
}
.badge.closed, .badge.draft, .badge.neutral {
  color: var(--text-dim);
  background: color-mix(in oklab, var(--text-dim) 12%, transparent);
  border-color: color-mix(in oklab, var(--text-dim) 25%, transparent);
}

/* ── Alerts (flash / session notices) ────────────────────── */
.alert-stack { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}
.alert-ico {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  margin-top: 1px;
}
.alert-body { display: flex; flex-direction: column; gap: 3px; padding-top: 1px; }
.alert-title { font-size: 14.5px; font-weight: 600; color: var(--text); letter-spacing: -0.005em; }
.alert-msg { font-size: 14px; color: var(--text-dim); line-height: 1.5; text-wrap: pretty; }
.alert-msg a, .alert-msg button { color: inherit; text-decoration: underline; text-underline-offset: 2px; padding: 0; }
.alert-x { color: var(--text-dimmer); font-size: 18px; line-height: 1; padding: 2px 4px; border-radius: 6px; transition: color .15s ease, background .15s ease; }
.alert-x:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.alert.critical { border-color: color-mix(in oklab, var(--danger) 40%, var(--line-2)); background: color-mix(in oklab, var(--danger) 8%, var(--bg-2)); }
.alert.critical .alert-ico { background: color-mix(in oklab, var(--danger) 20%, transparent); color: var(--danger); }
.alert.warning { border-color: color-mix(in oklab, var(--warn) 38%, var(--line-2)); background: color-mix(in oklab, var(--warn) 8%, var(--bg-2)); }
.alert.warning .alert-ico { background: color-mix(in oklab, var(--warn) 20%, transparent); color: var(--warn); }
.alert.info { border-color: color-mix(in oklab, var(--info) 38%, var(--line-2)); background: color-mix(in oklab, var(--info) 7%, var(--bg-2)); }
.alert.info .alert-ico { background: color-mix(in oklab, var(--info) 18%, transparent); color: var(--info); }
.alert.success { border-color: color-mix(in oklab, var(--success) 38%, var(--line-2)); background: color-mix(in oklab, var(--success) 8%, var(--bg-2)); }
.alert.success .alert-ico { background: color-mix(in oklab, var(--success) 18%, transparent); color: var(--success); }

/* ── Progress ────────────────────────────────────────────── */
.progress-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.progress-meta .pct { color: var(--success); font-size: 13px; }
.progress { height: 8px; border-radius: 999px; background: var(--bg-3); overflow: hidden; border: 1px solid var(--line); }
.progress > span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--success) 55%, transparent), var(--success));
  box-shadow: 0 0 16px color-mix(in oklab, var(--success) 40%, transparent);
}
.progress.running > span {
  background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 55%, transparent), var(--accent));
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ── Forms ───────────────────────────────────────────────── */
.form-narrow { max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.field-label, .field label { font-size: 14px; color: var(--text); font-weight: 500; }
.field .hint { color: var(--text-dimmer); font-size: 12.5px; }
.input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--text-dimmer); }
.input:focus { outline: none; border-color: color-mix(in oklab, var(--accent) 55%, var(--line-2)); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.55; }
select.input { appearance: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.field-error { color: var(--danger); font-size: 13px; margin: 6px 0 0; }
.field-success { color: var(--success); font-size: 14px; }
.form-note { color: var(--text-dimmer); font-size: 13px; line-height: 1.55; margin: 18px 0 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

/* ── Empty state ─────────────────────────────────────────── */
.empty { padding: 80px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.empty-sub { color: var(--text-dim); font-size: 15px; max-width: 440px; margin: 0; text-wrap: pretty; }
.empty .btn-primary, .empty .btn-ghost { margin-top: 8px; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-scrim {
  position: fixed; inset: 0; z-index: 200;
  background: color-mix(in oklab, var(--bg) 55%, transparent);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-scrim[hidden] { display: none; }
.modal {
  width: min(460px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.85);
}
.modal h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--text);
}
.modal p { color: var(--text-dim); font-size: 14.5px; line-height: 1.5; margin: 0 0 24px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ── Shared UI responsive ────────────────────────────────── */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .page-head { padding: 32px 0 22px; }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; }
  .card-pad { padding: 20px; }
  .card-head { padding: 18px 20px; }
  .tbl thead th { padding: 12px 16px; }
  .tbl tbody td { padding: 14px 16px; }
}
