/* OneToken landing — vanilla CSS, no frameworks */

:root {
  --bg: #090a0f;
  --bg-2: #0d0f17;
  --bg-3: #12141d;
  --card: rgba(18, 20, 29, 0.72);
  --card-solid: #12141d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f4f6;
  --text-2: #c7cdd9;
  --muted: #8f99ad;
  --indigo: #6366f1;
  --cyan: #38bdf8;
  --violet: #a855f7;
  --green: #22c55e;
  --amber: #f5b036;
  --red: #f87171;
  --grad: linear-gradient(100deg, var(--indigo) 0%, var(--cyan) 50%, var(--violet) 100%);
  --radius: 8px;
  --radius-sm: 6px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.aurora {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}
.aurora span {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  will-change: transform;
}
.aurora span:nth-child(1) { background: #3b3fd8; top: -25vw; left: -12vw; animation: drift 26s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { background: #0e6a93; top: -10vw; right: -20vw; animation: drift 32s ease-in-out infinite alternate-reverse; }
.aurora span:nth-child(3) { background: #5b1e9e; top: 40vh; left: 30vw; opacity: 0.16; animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vw, 8vh, 0) scale(1.12); }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code, pre, kbd, .mono { font-family: var(--mono); }
code { font-size: 0.92em; color: var(--cyan); }
.tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
section { position: relative; padding: 96px 0; }
section[id] { scroll-margin-top: 72px; }
.hero-grid > *, .calc-grid > *, .hood > *, .panel > *, .grid-3 > *, .steps > *, .models > * { min-width: 0; }
@media (max-width: 760px) { section { padding: 64px 0; } }

/* Section header */
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.6; }
.sec-head.center .eyebrow::after { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.6; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; font-weight: 800; }
h2 { font-size: clamp(28px, 4.2vw, 44px); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.sec-head p { color: var(--muted); font-size: 17px; margin: 16px 0 0; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cards with blueprint corner ticks */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.ticks > .tick {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}
.ticks::before, .ticks::after,
.ticks > .tick::before, .ticks > .tick::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(99, 102, 241, 0.65);
  border-style: solid;
  pointer-events: none;
  transition: border-color .2s var(--ease);
}
.ticks::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
  border-top-left-radius: var(--radius);
  border-top-left-radius: inherit;
}
.ticks::after {
  top: -1px;
  right: -1px;
  border-width: 1px 1px 0 0;
  border-top-right-radius: var(--radius);
  border-top-right-radius: inherit;
}
.ticks > .tick::before {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 1px 1px;
  border-bottom-left-radius: var(--radius);
  border-bottom-left-radius: inherit;
}
.ticks > .tick::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
  border-bottom-right-radius: var(--radius);
  border-bottom-right-radius: inherit;
}

/* Accent corner on card hover — only stroke color changes, NO box-shadow so there is zero box outline artifact */
.card.ticks:hover::before,
.card.ticks:hover::after,
.card.ticks:hover > .tick::before,
.card.ticks:hover > .tick::after,
.keycard.ticks:hover::before,
.keycard.ticks:hover::after,
.keycard.ticks:hover > .tick::before,
.keycard.ticks:hover > .tick::after {
  border-color: rgba(165, 180, 252, 0.95);
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  max-width: 100%;
  border-radius: 14px;
  font-weight: 650;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  box-sizing: border-box;
  text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #6d6ff6 0%, #4f46e5 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 10px 30px -8px rgba(99,102,241,0.75);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: var(--grad);
  z-index: -1;
  filter: blur(14px);
  opacity: 0.45;
  transition: opacity .3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,0.14) inset, 0 16px 40px -10px rgba(99,102,241,0.9); }
.btn-primary:hover::after { opacity: 0.8; }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: var(--text-2);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); color: #fff; transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 11px; }
.btn .bonus {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-size: 12.5px;
  font-weight: 700;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(9, 10, 15, 0.65);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 20px rgba(99,102,241,0.35); }
.nav-links { display: flex; gap: 28px; font-size: 14.5px; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: #fff; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* Hero */
.hero { padding: 72px 0 60px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding-top: 40px; } }
.pill {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  align-items: center;
  gap: 6px 9px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(99,102,241,0.35);
  background: rgba(99,102,241,0.09);
  color: #c7d2fe;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 26px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); position: relative; flex: none; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--green); opacity: .6; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
.pill .mono { font-size: 12px; color: #a5b4fc; }
.pill .sep { opacity: .35; }
h1.hero-title {
  font-size: clamp(36px, 5.4vw, 64px);
  margin-bottom: 22px;
}
h1.hero-title .line { display: block; }
.hero-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 560px; margin: 0 0 32px; }
.hero-lead strong { color: #fff; font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.micro { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.micro span::before { content: "✓"; color: var(--green); margin-right: 7px; font-weight: 700; }
.hero-note { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }

/* Demo terminal */
.demo-wrap { position: relative; }
.demo-wrap::before {
  content: "";
  position: absolute;
  inset: 10% -5%;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.28), transparent 65%);
  filter: blur(30px);
  z-index: -1;
}
.demo {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(10, 11, 18, 0.9);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(99,102,241,0.08);
  font-family: var(--mono);
  font-size: 13px;
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  color: var(--muted);
  font-size: 12px;
}
.demo-bar .dots { display: flex; gap: 6px; margin-right: 4px; }
.demo-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2d3a; display: block; }
.demo-bar .url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.demo-bar .model {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(56,189,248,0.1);
  color: var(--cyan);
  border: 1px solid rgba(56,189,248,0.25);
  white-space: nowrap;
}
.demo-body {
  margin: 0;
  padding: 16px 16px 12px;
  min-height: 268px;
  max-height: 268px;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
  color: #d5dae6;
}
.demo-body .c-key { color: #a5b4fc; }
.demo-body .c-str { color: #86efac; }
.demo-body .c-user { color: var(--amber); }
.demo-body .c-ai { color: var(--cyan); }
.demo-body .c-dim { color: #6b7389; }
.demo-body .c-ok { color: var(--green); }
.cursor-blink { display: inline-block; width: 8px; height: 15px; background: var(--cyan); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-meter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.demo-meter div { padding: 12px 14px; border-right: 1px solid var(--border); }
.demo-meter div:last-child { border-right: 0; }
.demo-meter small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.demo-meter b { font-size: 16px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.demo-meter b.cost { color: var(--green); }

.keycard {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 13px;
}
.keycard .kv { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.keycard .kv small { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.keycard .kv code { color: #e2e8f0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keycard .status { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-weight: 600; white-space: nowrap; }
@media (max-width: 480px) { .keycard { grid-template-columns: 1fr; } }

/* Copy button */
.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.04);
  color: var(--text-2);
  font-size: 12px;
  font-family: var(--font);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.copy:hover { background: rgba(255,255,255,0.09); color: #fff; }
.copy.done { color: var(--green); border-color: rgba(34,197,94,.4); }
.copy svg { width: 14px; height: 14px; }

/* Compat strip */
.strip { padding: 10px 0 0; }
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13.5px;
}
.strip-inner span { display: inline-flex; align-items: center; gap: 8px; }
.strip-inner span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--indigo); }
.strip-inner .label { color: var(--text-2); font-weight: 600; }
.strip-inner .label::before { display: none; }

/* Grid helpers */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.feature { padding: 26px; }
.feature .num { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .12em; margin-bottom: 18px; display: block; }
.feature h3 { margin-bottom: 10px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature p b { color: var(--text-2); font-weight: 600; }
.feature .big {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 6px 0 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Calculator */
.calc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-panel { padding: 28px; }
.calc-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--muted); margin-bottom: 12px; font-weight: 500; }
.calc-label output { font-weight: 700; color: #fff; font-size: 18px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  color: var(--text-2);
  font-size: 13.5px;
  transition: all .2s;
}
.chip:hover { background: rgba(255,255,255,0.07); }
.chip[aria-pressed="true"] { background: rgba(99,102,241,0.18); border-color: rgba(99,102,241,0.6); color: #fff; }
.chip small { color: var(--muted); margin-left: 6px; font-family: var(--mono); font-size: 11.5px; }
.chip[aria-pressed="true"] small { color: #c7d2fe; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; outline: none; margin: 10px 0 30px; cursor: pointer;
  background: linear-gradient(90deg, var(--indigo) 0%, var(--cyan) var(--pct, 25%), rgba(255,255,255,0.1) var(--pct, 25%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--indigo); box-shadow: 0 0 0 6px rgba(99,102,241,0.18), 0 4px 14px rgba(0,0,0,.5); cursor: grab; transition: transform .15s; }
.range::-webkit-slider-thumb:hover { transform: scale(1.1); }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--indigo); box-shadow: 0 0 0 6px rgba(99,102,241,0.18); cursor: grab; }
.range::-moz-range-track { height: 6px; border-radius: 999px; background: transparent; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.seg button { padding: 11px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); transition: all .2s; line-height: 1.25; }
.seg button small { display: block; font-weight: 400; font-size: 11.5px; margin-top: 3px; opacity: .8; }
.seg button[aria-pressed="true"] { background: var(--bg); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 18px -8px rgba(0,0,0,.8); }
@media (max-width: 640px) { .seg { grid-template-columns: 1fr; } }

.result { padding: 28px; display: flex; flex-direction: column; gap: 20px; background: linear-gradient(160deg, rgba(99,102,241,0.12), rgba(18,20,29,0.75) 50%); }
.result .headline small { display: block; font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.result .headline strong { display: block; font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin-top: 6px; font-variant-numeric: tabular-nums; }
.result .headline strong.good { color: var(--green); }
.result .headline strong.bad { color: var(--amber); }
.result .headline .pct { font-size: .5em; color: var(--text-2); font-weight: 700; margin-left: 8px; }
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar { display: grid; gap: 6px; }
.bar header { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); }
.bar header b { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.bar .track { height: 12px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 999px; width: 0; transition: width .6s var(--ease); }
.bar.sub .fill { background: linear-gradient(90deg, #4b5069, #6b7189); }
.bar.ot .fill { background: var(--grad); box-shadow: 0 0 18px rgba(56,189,248,.45); }
.result .note { font-size: 13.5px; color: var(--muted); margin: 0; }
.result .note.warn { color: #fcd34d; }
details.how { font-size: 13.5px; color: var(--muted); }
details.how summary { cursor: pointer; color: var(--text-2); font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
details.how summary::-webkit-details-marker { display: none; }
details.how summary::after { content: "+"; font-family: var(--mono); color: var(--cyan); }
details.how[open] summary::after { content: "−"; }
details.how ul { margin: 10px 0 0; padding-left: 18px; }
details.how li { margin: 4px 0; }

/* Compare table */
.cmp { margin-top: 26px; overflow: hidden; }
.cmp table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: rgba(255,255,255,0.025); }
.cmp th.ot { color: var(--cyan); }
.cmp td:first-child { color: var(--text-2); font-weight: 600; width: 22%; }
.cmp td.no { color: #c9a0a0; }
.cmp td.yes { color: #c4f3d2; }
.cmp td.no::before { content: "✕ "; color: var(--red); font-weight: 700; }
.cmp td.yes::before { content: "✓ "; color: var(--green); font-weight: 700; }
.cmp td small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }
@media (max-width: 720px) {
  .cmp table, .cmp tbody, .cmp tr, .cmp td { display: block; width: 100%; }
  .cmp thead { display: none; }
  .cmp tr { padding: 6px 0; border-bottom: 1px solid var(--border); }
  .cmp td { padding: 8px 18px; border: 0; }
  .cmp td:first-child { width: auto; padding-top: 14px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .cmp td.no::before { content: "Подписки: ✕ "; }
  .cmp td.yes::before { content: "OneToken: ✓ "; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 26px; position: relative; }
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(99,102,241,0.14); border: 1px solid rgba(99,102,241,0.4);
  font-family: var(--mono); font-weight: 600; color: #c7d2fe; margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step h3 small { display: inline-block; margin-left: 8px; color: var(--muted); font-weight: 500; font-size: 13px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step .kvs { margin-top: 14px; display: grid; gap: 6px; }
.step .kvs code { display: block; padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.35); border: 1px solid var(--border); color: #dbe3f3; font-size: 12.5px; overflow: auto; }

/* Setup tabs */
.setup { margin-top: 22px; overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; background: rgba(255,255,255,0.02); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 9px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; flex-shrink: 0; transition: all .2s; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { background: rgba(99,102,241,0.16); color: #fff; }
.panel { display: none; padding: 22px; }
.panel[data-active] { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; }
@media (max-width: 860px) { .panel[data-active] { grid-template-columns: 1fr; } }
.panel ol { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 15px; }
.panel ol li { margin: 8px 0; }
.panel ol li code { color: var(--cyan); }
.panel .hint { margin-top: 14px; font-size: 13.5px; color: var(--muted); padding: 10px 12px; border-left: 2px solid var(--indigo); background: rgba(99,102,241,0.07); border-radius: 0 8px 8px 0; }
.codebox { position: relative; border-radius: 12px; background: #07080c; border: 1px solid var(--border); overflow: hidden; }
.codebox .cb-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.codebox pre { margin: 0; padding: 16px; overflow: auto; font-size: 13px; line-height: 1.6; color: #d5dae6; }
.codebox .k { color: #c084fc; } .codebox .s { color: #86efac; } .codebox .f { color: #7dd3fc; } .codebox .c { color: #6b7389; font-style: italic; }

/* Models */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .models { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .models { grid-template-columns: 1fr; } }
.model { padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: transform .3s var(--ease), border-color .3s; }
.model:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.45); }
.model-head { display: flex; justify-content: space-between; align-items: center; }
.model .vendor { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.model h3 { font-size: 19px; margin: 0; }
.model .tag { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.tag.cheap { background: rgba(34,197,94,.12); color: #86efac; }
.tag.fast { background: rgba(56,189,248,.12); color: #7dd3fc; }
.tag.top { background: rgba(168,85,247,.14); color: #d8b4fe; }
.tag.classic { background: rgba(245,176,54,.12); color: #fcd34d; }

/* Model Alias & 1-Click Copy */
.model-alias-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: -4px 0 2px;
}
.model-id-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 6px 11px;
  background: rgba(8, 12, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background .2s, border-color .2s, box-shadow .2s;
  outline: none;
}
.model-id-box:hover, .model-id-box:focus-visible {
  background: rgba(18, 24, 42, 0.9);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.16);
}
.model-id-box:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}
.model-id-main {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
}
.model-id-main .id-prefix {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .02em;
  font-weight: 500;
  flex-shrink: 0;
}
.model-id-main .id-value {
  font-family: var(--mono);
  font-size: 12.5px;
  color: #7dd3fc;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: none;
  padding: 0;
}
.copy-id-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font);
  transition: background .18s, color .18s, border-color .18s;
  flex-shrink: 0;
  margin-left: 6px;
}
.copy-id-btn svg {
  flex-shrink: 0;
}
.copy-id-btn .icon-check {
  display: none;
}
.model-id-box:hover .copy-id-btn {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
}
/* Copied state */
.model-id-box.copied {
  background: rgba(34, 197, 94, 0.1) !important;
  border-color: rgba(34, 197, 94, 0.6) !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.22) !important;
}
.model-id-box.copied .id-value {
  color: #86efac;
}
.model-id-box.copied .copy-id-btn {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  color: #86efac;
}
.model-id-box.copied .icon-copy {
  display: none;
}
.model-id-box.copied .icon-check {
  display: inline-block;
  stroke: #86efac;
  animation: checkPop .2s ease-out;
}
@keyframes checkPop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Compat subtitle */
.model-compat-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  padding: 0 2px;
}
.model-compat-hint .compat-label {
  font-size: 11px;
  color: var(--muted);
}
.model-compat-hint .compat-code {
  font-family: var(--mono);
  font-size: 11px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  padding: 1px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .18s ease;
  outline: none;
}
.model-compat-hint .compat-code:hover, .model-compat-hint .compat-code:focus-visible {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.08);
}
.model-compat-hint .compat-code.copied {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.12);
}
@media (max-width: 400px) {
  .copy-id-btn .copy-text { display: none; }
  .copy-id-btn { padding: 4px 6px; }
}
.model .desc { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; flex: 1; }
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price div { padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.3); border: 1px solid var(--border); }
.price small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.price b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price b i { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 500; }
.benefit-badge {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 11px; border-radius: 8px;
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.22);
  font-size: 12px; color: var(--text-2);
}
.benefit-badge del { color: var(--muted); margin-left: 4px; }
.benefit-badge b { color: #86efac; font-weight: 700; font-size: 12.5px; }
.model .buys { font-size: 13px; color: var(--text-2); padding-top: 12px; border-top: 1px dashed var(--border); }
.model .buys b { color: var(--cyan); font-weight: 600; }
.models-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); text-align: center; }
.models-note code { font-size: 12.5px; }

/* Tools grid */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tool { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; transition: border-color .25s; }
.tool:hover { border-color: rgba(56,189,248,.4); }
.tool b { font-size: 15px; }
.tool span { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }

/* Under the hood */
.hood { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
@media (max-width: 900px) { .hood { grid-template-columns: 1fr; } }
.spec-list { padding: 8px 26px; }
.spec-list dl { margin: 0; }
.spec-list div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.spec-list div:last-child { border-bottom: 0; }
.spec-list dt { font-family: var(--mono); font-size: 12.5px; color: var(--cyan); letter-spacing: .04em; padding-top: 2px; }
.spec-list dd { margin: 0; color: var(--text-2); font-size: 14.5px; }
.spec-list dd code { color: #dbe3f3; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
@media (max-width: 560px) { .spec-list div { grid-template-columns: 1fr; gap: 6px; } }
.ping { padding: 26px; display: flex; flex-direction: column; gap: 14px; align-self: start; }
.ping .btn { align-self: flex-start; }
.ping h3 { font-size: 17px; }
.ping p { margin: 0; color: var(--muted); font-size: 14px; }
.ping .readout { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.ping .readout b { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ping .readout span { color: var(--muted); font-family: var(--mono); font-size: 14px; }
.ping .samples { display: flex; gap: 6px; align-items: flex-end; height: 44px; }
.ping .samples i { flex: 1; display: block; background: rgba(99,102,241,.35); border-radius: 3px 3px 0 0; height: 10%; transition: height .5s var(--ease); min-height: 3px; }
.ping .samples i.ok { background: linear-gradient(180deg, var(--cyan), var(--indigo)); }
.ping .verdict { font-size: 13.5px; color: var(--text-2); font-family: var(--mono); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border-radius: 14px; border: 1px solid var(--border); background: var(--card); transition: border-color .25s; }
.faq details[open] { border-color: rgba(99,102,241,0.45); }
.faq summary { cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 650; font-size: 16.5px; position: relative; list-style: none; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .ans { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }
.faq .ans p { margin: 0 0 8px; }
.faq .ans p:last-child { margin: 0; }
.faq .ans b { color: var(--text-2); font-weight: 600; }

/* Final CTA */
.final { padding: 60px 0 110px; }
.final-card { padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px); text-align: center; overflow: hidden; background: linear-gradient(160deg, rgba(99,102,241,0.18), rgba(18,20,29,0.8) 55%, rgba(168,85,247,0.12)); }
.final-card::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(ellipse at bottom, rgba(56,189,248,0.22), transparent 60%); pointer-events: none; }
.final-card h2 { font-size: clamp(30px, 4.6vw, 52px); max-width: 760px; margin-inline: auto; }
.final-card p { color: var(--text-2); font-size: 18px; margin: 18px auto 32px; max-width: 560px; }
.final-card .btn { font-size: 17px; padding: 18px 30px; }
.final-card .micro { justify-content: center; margin-top: 22px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0 110px; color: var(--muted); font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr 1fr; gap: 24px; margin-bottom: 30px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } }
.footer p { margin: 8px 0 0; max-width: 380px; }
.footer h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer a:hover { color: #fff; }
.footer .legal { padding-top: 22px; border-top: 1px solid var(--border); font-size: 12px; display: flex; flex-direction: column; gap: 8px; }
.footer .legal-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.footer .legal-note { color: var(--muted); font-size: 11.5px; line-height: 1.5; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 16px;
  background: rgba(13,15,23,0.92); border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.9);
  transform: translateY(120%); opacity: 0;
  transition: transform .4s var(--ease), opacity .3s;
}
.sticky-cta.show { transform: translateY(0); opacity: 1; }
.sticky-cta .t { font-size: 13px; line-height: 1.3; }
.sticky-cta .t b { display: block; font-size: 14px; color: #fff; }
.sticky-cta .t span { color: var(--muted); }
@media (max-width: 760px) { .sticky-cta { display: flex; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==================================================================
   Mobile Responsive Adjustments & Button Overflow Fixes
   ================================================================== */

@media (max-width: 640px) {
  /* Prevent horizontal card overflow and give more internal space */
  .calc-panel, .result, .step, .feature, .ping, .tool {
    padding: 20px 16px;
  }
  .spec-list {
    padding: 6px 16px;
  }
  .panel {
    padding: 16px 12px;
  }

  /* Hero CTAs: full-width stacked on mobile with neat bonus badge */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .hero-ctas .btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    gap: 8px;
    box-sizing: border-box;
  }
  .hero-ctas .btn .bonus {
    margin-left: auto;
    font-size: 12px;
    padding: 3px 8px;
    flex-shrink: 0;
  }

  /* Calculator chips: clean list items rather than cramped wrapped pills */
  .chips {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
  }
  .chip {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    font-size: 13px;
    border-radius: 11px;
    text-align: left;
    box-sizing: border-box;
  }
  .chip small {
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Calculator result button */
  .result .btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    box-sizing: border-box;
  }

  /* Setup codebox headers: wrap gracefully without overflowing copy button */
  .codebox .cb-head {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
  }
  .codebox .cb-head span {
    font-size: 11.5px;
  }
  .codebox .cb-head .copy {
    padding: 4px 8px;
    font-size: 11px;
    margin-left: auto;
  }
  .codebox pre {
    padding: 12px;
    font-size: 12px;
  }

  /* Final CTA card: fix button overflowing out of card on mobile */
  .final {
    padding: 40px 0 90px;
  }
  .final-card {
    padding: 36px 16px;
    border-radius: 16px;
  }
  .final-card h2 {
    font-size: 26px;
  }
  .final-card p {
    font-size: 15px;
    margin: 14px auto 24px;
  }
  .final-card .btn {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    white-space: normal;
    line-height: 1.25;
    box-sizing: border-box;
  }
  .final-card .micro {
    gap: 6px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  /* Reduce side padding on small phones so content has 16px more space */
  .container {
    width: min(100% - 24px, var(--container));
  }

  /* Compact header on narrow phones */
  .site-header .nav {
    height: 58px;
    gap: 10px;
  }
  .brand {
    font-size: 16px;
    gap: 8px;
  }
  .brand img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }
  .site-header .btn {
    padding: 7px 11px;
    font-size: 12.5px;
  }

  /* Hero pill */
  .pill {
    font-size: 12px;
    padding: 6px 10px;
    gap: 4px 6px;
    border-radius: 12px;
  }

  /* Sticky CTA at bottom */
  .sticky-cta {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 8px 10px;
    gap: 8px;
    border-radius: 13px;
  }
  .sticky-cta .t {
    font-size: 12px;
  }
  .sticky-cta .t b {
    font-size: 13px;
  }
  .sticky-cta .t span {
    font-size: 11px;
  }
  .sticky-cta .btn {
    padding: 8px 12px;
    font-size: 13px;
    flex-shrink: 0;
  }

  /* Keycard */
  .keycard {
    padding: 12px;
    gap: 8px 12px;
  }
  .keycard .copy {
    justify-self: start;
  }
}

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(99,102,241,.45); color: #fff; }

/* ==================================================================
   Legal Pages & Cookie Banner
   ================================================================== */

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  width: min(calc(100% - 32px), 640px);
  z-index: 999;
  padding: 14px 18px;
  background: rgba(13, 15, 23, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.3s;
  pointer-events: none;
}
.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 640px) {
  .cookie-banner {
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 12px;
  }
}
.cookie-content {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
}
.cookie-content p {
  margin: 0;
}
.cookie-content a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-content a:hover {
  color: #fff;
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-actions .btn {
  padding: 8px 14px;
  font-size: 13px;
}

/* Legal document layout */
.legal-page {
  padding: 100px 0 80px;
  min-height: 100vh;
}
.legal-wrap {
  max-width: 860px;
  margin: 0 auto;
}
.legal-card {
  padding: clamp(24px, 4vw, 48px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.5);
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 24px;
  transition: color 0.2s;
  text-decoration: none;
}
.legal-back:hover {
  color: var(--cyan);
}
.legal-card h1 {
  font-size: clamp(24px, 3.6vw, 36px);
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 12.5px;
  color: var(--muted);
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legal-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.legal-badge.green {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.3);
}
.legal-body {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.7;
}
.legal-body h2 {
  font-size: 19px;
  color: #fff;
  margin: 34px 0 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.legal-body h2:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.legal-body h3 {
  font-size: 15.5px;
  color: #fff;
  margin: 20px 0 8px;
}
.legal-body p {
  margin: 0 0 14px;
}
.legal-body ul, .legal-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-body li {
  margin-bottom: 6px;
}
.legal-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-body a:hover {
  color: #fff;
}
.legal-highlight {
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid var(--indigo);
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
}
.legal-highlight.shield {
  background: rgba(34, 197, 94, 0.08);
  border-left-color: var(--green);
}
.legal-highlight.alert {
  background: rgba(245, 176, 54, 0.08);
  border-left-color: var(--amber);
}
.legal-requisites {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 20px 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
}
.legal-requisites b {
  color: var(--cyan);
}

/* ==========================================================================
   OneToken Shield & Platform Benefits
   ========================================================================== */

.shield-wrapper {
  background: radial-gradient(circle at 50% 15%, rgba(16, 185, 129, 0.09) 0%, transparent 70%);
  border-radius: var(--radius);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 34px 32px;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}
.shield-wrapper::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #10b981, #06b6d4, transparent);
}
.shield-demo-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin: 24px 0 20px;
}
@media (max-width: 900px) {
  .shield-demo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.shield-code-box {
  background: rgba(10, 12, 18, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  position: relative;
  overflow-x: auto;
}
.shield-code-box .box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.shield-badge-danger {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.shield-badge-safe {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.code-secret {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  padding: 1px 5px;
  border-radius: 4px;
  border-bottom: 1px dashed #ef4444;
}
.code-masked {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}
.shield-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
}
.shield-icon-glow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
  margin-bottom: 8px;
}
.shield-icon-glow svg {
  width: 24px;
  height: 24px;
}
.shield-latency-badge {
  font-size: 11.5px;
  font-family: var(--mono);
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  white-space: nowrap;
}
.shield-footer-note {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--text-2);
}
.shield-footer-note svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #10b981;
}

.shield-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.shield-card {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}
.shield-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
  line-height: 1.4;
}
.shield-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 960px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

.benefit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}
.benefit-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}
.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 18px;
}
.benefit-icon svg {
  width: 22px;
  height: 22px;
}
.benefit-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--text);
}
.benefit-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.benefit-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
}

/* ==========================================================================
   PARTNER / REFERRAL PROGRAM SECTION
   ========================================================================== */
.partner-eyebrow {
  color: #c084fc !important;
  border-color: rgba(192, 132, 252, 0.35) !important;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}
@media (max-width: 820px) {
  .partner-grid {
    grid-template-columns: 1fr;
  }
}

.partner-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.partner-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font);
}
.partner-badge.friend {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}
.partner-badge.me {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.partner-role {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.partner-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: -0.02em;
}

.partner-desc {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

.partner-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.partner-perks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.perk-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.perk-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.perk-text b {
  font-size: 15px;
  color: #fff;
  font-weight: 650;
}
.perk-text span {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.partner-card-footer {
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  margin-top: auto;
}
.partner-foot-note {
  font-size: 12.5px;
  color: var(--text-2);
  font-family: var(--mono);
}

/* Partner banner box */
.partner-banner {
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(99, 102, 241, 0.06) 50%, rgba(56, 189, 248, 0.08) 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
}
@media (max-width: 860px) {
  .partner-banner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }
}

.banner-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.partner-banner-content h4 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}
.partner-banner-content p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}
.partner-banner-content p b {
  color: #fff;
}

.partner-banner-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.partner-banner-action .btn {
  width: 100%;
}
.partner-micro {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

