/* solmath v2 — a trading-desk instrument.
   Layout idea: the page is quiet ink; the one loud object is the readout card, where the answer lands.
   Gradient appears only on the logo mark and the readout hairline. */
:root {
  --bg: #08080f;            /* ink, violet bias */
  --panel: #111019;         /* bench surface */
  --panel-hi: #171525;      /* raised surface, readout */
  --well: rgba(0, 0, 0, 0.32); /* input wells */
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(255, 255, 255, 0.16);
  --text: #f2f0f9;
  --muted: #a39fbc;
  --faint: #726e8c;
  --violet: #9945ff;        /* Solana violet: focus and selection */
  --violet-soft: #c3a1ff;
  --mint: #14f195;          /* Solana mint: positive numbers, primary action */
  --red: #ff6b81;
  --amber: #f5b85c;         /* fees */
  --grad: linear-gradient(105deg, #9945ff 0%, #5b8dff 48%, #14f195 100%);
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --wrap: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Faint ledger grid that fades out below the fold */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 760px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 10%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }
a { color: var(--text); text-decoration-color: var(--line-hi); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--mint); }
:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 2px; border-radius: 6px; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }

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

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(8, 8, 15, 0.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 650; font-size: 21px; letter-spacing: -0.03em; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 2px; margin-left: auto; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.02); }
.nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; padding: 6px 13px; border-radius: 999px; white-space: nowrap; transition: color 0.15s, background 0.15s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.price-chip { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--font-mono); color: var(--muted); white-space: nowrap; }
.price-chip strong { color: var(--text); font-weight: 500; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; display: inline-block; }
.dot.live { background: var(--mint); box-shadow: 0 0 0 3px rgba(20, 241, 149, 0.16); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; margin: 0; font-weight: 600; }
h1 { font-size: clamp(38px, 5.4vw, 64px); }
h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; }
h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 52ch; }
.eyebrow { font: 500 12px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.pos { color: var(--mint); }
.neg { color: var(--red); }

/* ---------- Surfaces ---------- */
.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)) , var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 70px -36px rgba(0, 0, 0, 0.9);
}

/* The signature object: where the answer lands */
.readout-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 22px 24px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, #1a1830, var(--panel-hi)) padding-box,
    linear-gradient(120deg, rgba(153, 69, 255, 0.95), rgba(91, 141, 255, 0.3) 45%, rgba(20, 241, 149, 0.85)) border-box;
  box-shadow: 0 18px 50px -24px rgba(153, 69, 255, 0.55);
}
.readout-card .label { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.actions { display: flex; gap: 6px; }
.readout-card .big { font: 500 clamp(34px, 4.4vw, 52px)/1.05 var(--font-mono); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.readout-card .sub { font: 400 14px var(--font-mono); color: var(--muted); }
.copy { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); border-radius: 8px; padding: 4px 10px; font-size: 12px; color: var(--muted); cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.copy:hover { color: var(--text); border-color: var(--line-hi); }
.copy.done { color: var(--mint); border-color: rgba(20, 241, 149, 0.4); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; padding: 72px 0 56px; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-copy h1 em { font-style: normal; color: var(--mint); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust i { width: 16px; height: 16px; border-radius: 50%; background: rgba(20, 241, 149, 0.14); display: inline-grid; place-items: center; }
.hero-trust i::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.hero-widget { position: relative; padding: 24px; display: grid; gap: 18px; }
.hero-widget::before { content: ""; position: absolute; inset: -60px -40px; background: radial-gradient(closest-side, rgba(153, 69, 255, 0.28), transparent 70%); z-index: -1; pointer-events: none; }
.hw-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 44px 0 40px; }
}

/* ---------- Data strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.02); overflow: hidden; }
.strip div { padding: 16px 20px; display: grid; gap: 2px; border-right: 1px solid var(--line); }
.strip div:last-child { border-right: 0; }
.strip span { font-size: 12px; color: var(--faint); letter-spacing: 0.02em; }
.strip strong { font: 500 20px var(--font-mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .strip div:nth-child(2) { border-right: 0; }
  .strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: 44px 0; display: grid; gap: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 9px; background: rgba(255, 255, 255, 0.02); }
.badge:hover { color: var(--text); border-color: var(--line-hi); }
.badge i { width: 14px; height: 14px; border-radius: 50%; background: rgba(20, 241, 149, 0.16); display: inline-grid; place-items: center; }
.badge i::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }

/* ---------- Bento of tools ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { grid-column: span 2; display: grid; grid-template-rows: auto 1fr; gap: 22px; padding: 24px; text-decoration: none; transition: transform 0.2s, border-color 0.2s; }
.tile.wide { grid-column: span 3; }
.tile.full { grid-column: span 6; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); grid-template-rows: auto; align-items: center; }
.tile:hover { transform: translateY(-3px); border-color: var(--line-hi); }
.tile-head { display: grid; gap: 8px; align-content: start; }
.tile-head p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.tile .go { font-size: 14px; font-weight: 500; color: var(--mint); }
.mini { align-self: end; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--well); padding: 14px 16px; display: grid; gap: 10px; font: 400 13px var(--font-mono); color: var(--muted); }
.mini strong { color: var(--text); font-weight: 500; }
.mini .mini-big { font-size: 22px; letter-spacing: -0.03em; color: var(--text); }
.mini-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.mini-bars { display: grid; gap: 8px; }
.mini-bars div { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; }
.mini-bars b { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); position: relative; overflow: hidden; }
.mini-bars b::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--c, var(--mint)); }
.mini svg { display: block; width: 100%; height: 56px; }
@media (max-width: 940px) { .tile, .tile.wide { grid-column: span 3; } }
@media (max-width: 640px) { .tile, .tile.wide { grid-column: span 6; } .tile.full { grid-template-columns: 1fr; } }

/* ---------- Page head ---------- */
.page-head { padding: 48px 0 32px; display: grid; gap: 16px; }
.page-head h1 { font-size: clamp(34px, 4.6vw, 54px); }
.crumbs { font-size: 13px; color: var(--faint); display: flex; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.answer { font-size: 18px; line-height: 1.55; color: #d9d5ea; max-width: 68ch; padding-left: 18px; border-left: 2px solid var(--violet); }

/* ---------- Bench: inputs left, readout right ---------- */
.bench { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); overflow: hidden; }
.bench-in { padding: 28px; display: grid; gap: 20px; align-content: start; border-right: 1px solid var(--line); }
.bench-out { padding: 28px; display: grid; gap: 22px; align-content: start; background: rgba(0, 0, 0, 0.22); }
@media (max-width: 860px) {
  .bench { grid-template-columns: 1fr; }
  .bench-in { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
  .bench-out { padding: 22px; }
}
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field .lbl { font-size: 13px; font-weight: 500; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.field output { font: 500 14px var(--font-mono); color: var(--text); }
.field .hint { font-size: 12px; color: var(--faint); line-height: 1.45; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 440px) { .row { grid-template-columns: 1fr; } }
.input-wrap { display: flex; align-items: stretch; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--well); overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.input-wrap:hover { border-color: var(--line-hi); }
.input-wrap:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(153, 69, 255, 0.22); }
.input-wrap input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 500 17px var(--font-mono); letter-spacing: -0.02em; padding: 0 14px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.input-wrap input::-webkit-outer-spin-button, .input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-wrap input:focus { outline: none; }
.input-wrap .unit { display: flex; align-items: center; padding: 0 14px; font: 500 12px var(--font-mono); letter-spacing: 0.04em; color: var(--faint); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 4px 11px; font: 500 12.5px var(--font-mono); cursor: pointer; transition: all 0.15s; }
.chips button:hover { color: var(--text); border-color: var(--line-hi); }
.chips button[aria-pressed="true"] { color: var(--text); background: rgba(153, 69, 255, 0.2); border-color: rgba(195, 161, 255, 0.55); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--well); justify-self: start; }
.seg button { border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; padding: 7px 13px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.1); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; line-height: 1.4; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--violet); flex: none; }
.group { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 16px; }
.group > .eyebrow { margin-bottom: -4px; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #fff; border: 4px solid var(--violet); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 4px solid var(--violet); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }

.price-note { font-size: 12px; color: var(--faint); line-height: 1.45; }
.price-note .dot { margin-right: 8px; vertical-align: 1px; }

/* ---------- Readout visuals ---------- */
.viz { display: grid; gap: 10px; }
.viz-title { font-size: 13px; font-weight: 500; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.split { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, 0.06); gap: 2px; }
.split span { display: block; min-width: 3px; transition: flex-basis 0.3s ease; }
.split .keep { background: var(--mint); }
.split .fee { background: var(--amber); }
.split .loss { background: var(--red); }
.split .plat { background: var(--violet-soft); }
.split-cap { font-size: 13px; color: var(--muted); line-height: 1.45; }
.split-cap b { color: var(--text); font-weight: 500; }
.keylist { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.keylist i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.scale { display: block; width: 100%; height: auto; overflow: visible; }
.scale text, .chart text { fill: var(--muted); font: 12px var(--font-mono); }
.scale text.strong { fill: var(--text); font-weight: 500; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.chart { width: 100%; height: auto; display: block; }

/* ---------- Terminal bars ---------- */
.tbars { list-style: none; margin: 0; padding: 0; display: grid; }
.tb { display: grid; grid-template-columns: minmax(170px, 210px) minmax(120px, 1fr) auto auto; gap: 24px; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.tb:last-child { border-bottom: 0; }
.tb.has-cta { grid-template-columns: minmax(170px, 210px) minmax(120px, 1fr) auto 150px; }
.tb.has-cta .btn { width: 100%; }
.tb.best { background: linear-gradient(90deg, rgba(20, 241, 149, 0.07), transparent 60%); }
.tb-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tb-id strong { display: block; font-weight: 600; line-height: 1.2; }
.tb-id small { color: var(--faint); font-size: 12.5px; }
.tile-mono { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; font: 600 16px var(--font-display); color: var(--h); background: color-mix(in srgb, var(--h) 16%, transparent); border: 1px solid color-mix(in srgb, var(--h) 34%, transparent); }
.tb-bar { position: relative; height: 12px; }
.tb-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; transition: width 0.3s ease; }
.tb-bar .ghost { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0 3px, transparent 3px 6px); border: 1px solid rgba(255, 255, 255, 0.12); }
.tb-bar .fill { background: var(--h); }
.tb-nums { display: flex; gap: 26px; }
.tb-num { display: grid; gap: 1px; text-align: right; min-width: 64px; font: 500 15px var(--font-mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tb-num small { font: 400 11.5px var(--font-body); letter-spacing: 0; color: var(--faint); }
.tb-num.save { color: var(--mint); }
.tb-num.dim { color: var(--faint); }
@media (max-width: 900px) {
  .tb, .tb.has-cta { grid-template-columns: 1fr auto; gap: 14px; padding: 18px 20px; }
  .tb.has-cta .btn { width: auto; }
  .tb-bar { grid-column: 1 / -1; grid-row: 2; }
  .tb-nums { grid-column: 1 / -1; grid-row: 3; justify-content: space-between; }
  .tb-num { text-align: left; }
  .tb .btn { grid-column: 2; grid-row: 1; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 11px; font-size: 14px; font-weight: 500; text-decoration: none; border: 1px solid var(--line-hi); color: var(--text); background: rgba(255, 255, 255, 0.04); cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.btn:hover { background: rgba(255, 255, 255, 0.09); }
.btn.primary { background: var(--mint); border-color: var(--mint); color: #04130c; font-weight: 600; }
.btn.primary:hover { background: #4bf5ae; transform: translateY(-1px); }
.btn.lg { padding: 12px 20px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--well); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font: 500 11.5px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
td.num, th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
th.num { letter-spacing: 0.06em; }
tr:last-child td { border-bottom: 0; }
td.barcell { width: 34%; min-width: 90px; padding-left: 4px; padding-right: 4px; }
td.barcell span { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(153, 69, 255, 0.85), var(--mint)); }
.legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 7px; }

/* ---------- Article ---------- */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cols > div { padding: 22px; display: grid; gap: 8px; align-content: start; }
.cols p { color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }
.prose { max-width: 70ch; display: grid; gap: 16px; }
.prose p, .prose li { color: #cdc9de; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose h2 { margin-top: 12px; }
.formula { font: 400 13.5px/1.7 var(--font-mono); background: var(--well); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; overflow-x: auto; white-space: pre; color: var(--text); }
.faq { display: grid; gap: 10px; max-width: 78ch; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.02); padding: 16px 20px; }
.faq details[open] { border-color: var(--line-hi); }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1 var(--font-mono); color: var(--faint); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: #cdc9de; }
.updated { font-size: 13px; color: var(--faint); }
.notice { font-size: 13px; line-height: 1.55; color: var(--muted); border: 1px dashed var(--line-hi); border-radius: var(--r-sm); padding: 14px 18px; max-width: 80ch; }
.related { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Sticky result on phones ---------- */
.sticky-result { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: none; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid transparent; background: linear-gradient(#171525, #171525) padding-box, linear-gradient(120deg, rgba(153, 69, 255, 0.9), rgba(20, 241, 149, 0.8)) border-box; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.9); font-size: 13px; color: var(--muted); }
.sticky-result strong { font: 500 18px var(--font-mono); letter-spacing: -0.03em; color: var(--text); }
@media (max-width: 860px) { .sticky-result.show { display: flex; } }

/* ---------- Cookie choice ---------- */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 40; max-width: 380px; display: grid; gap: 12px; padding: 16px 18px; border: 1px solid var(--line-hi); border-radius: var(--r-md); background: #151322; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9); font-size: 14px; color: var(--muted); line-height: 1.5; }
.consent div { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 860px) { .consent { left: 12px; right: 12px; bottom: 76px; max-width: none; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 40px 0 96px; color: var(--faint); font-size: 13px; line-height: 1.6; }
.site-footer .wrap { display: grid; gap: 22px; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-cols div { display: grid; gap: 7px; align-content: start; }
.foot-cols strong { color: var(--muted); font-weight: 500; }
.foot-cols a { color: var(--faint); text-decoration: none; }
.foot-cols a:hover { color: var(--text); }
.site-footer p { max-width: 96ch; }

@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .site-header { position: static; }
  .site-header .wrap { gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .price-chip { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
