/* ---------- Theme tokens ---------- */
:root,
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #070b10;
  --bg-2: #0b1118;
  --surface: #0f1720;
  --surface-2: #142030;
  --border: #1d2a39;
  --border-strong: #2a3b4f;
  --text: #e8eef5;
  --muted: #8d9cb0;
  --faint: #5d6b7e;
  --accent: #3cc8f5;
  --accent-strong: #7ddcff;
  --accent-ink: #04121a;
  --warm: #ffb547;
  --pos: #3ddc97;
  --neg: #ff7a6b;
  --glow: rgba(60, 200, 245, 0.18);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 60px -30px rgba(0, 0, 0, 0.8);
  --grid-line: rgba(141, 156, 176, 0.07);

  --map-sea: #070b10;
  --map-land: #0e1620;
  --map-land-stroke: #223244;
  --map-pipe: #2b3d52;
  --flow-low: #3cc8f5;
  --flow-mid: #59e3c2;
  --flow-high: #ffb547;
  --flow-max: #ff6b5b;
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f6f7f9;
  --bg-2: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f3f6f9;
  --border: #dfe5ec;
  --border-strong: #c7d1dc;
  --text: #0c1621;
  --muted: #566579;
  --faint: #8592a3;
  --accent: #0373b0;
  --accent-strong: #025a8a;
  --accent-ink: #ffffff;
  --warm: #b45309;
  --pos: #0f8a5f;
  --neg: #c23b22;
  --glow: rgba(3, 115, 176, 0.1);
  --shadow: 0 1px 2px rgba(12, 22, 33, 0.04), 0 18px 50px -28px rgba(12, 22, 33, 0.25);
  --grid-line: rgba(12, 22, 33, 0.05);

  --map-sea: #eef2f6;
  --map-land: #ffffff;
  --map-land-stroke: #c9d3de;
  --map-pipe: #c3cdd8;
  --flow-low: #0a84c6;
  --flow-mid: #0f9f80;
  --flow-high: #d97706;
  --flow-max: #d23a24;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
img,
svg {
  display: block;
}
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}
.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
.muted {
  color: var(--muted);
}
.pos {
  color: var(--pos);
}
.neg {
  color: var(--neg);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.wrap {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- Brand + buttons ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--pos)));
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 6px 20px -8px var(--accent);
}
.brand-name small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover {
  border-color: var(--accent);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px var(--accent);
}
.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.theme-toggle .sun {
  display: none;
}
:root[data-theme='light'] .theme-toggle .sun {
  display: block;
}
:root[data-theme='light'] .theme-toggle .moon {
  display: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a:hover {
  color: var(--text);
  background: var(--surface);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 720px;
  height: 720px;
  right: -180px;
  top: -260px;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pos);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pos) 20%, transparent);
}
h1,
h2,
h3 {
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 750;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 35%, var(--pos)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin: 24px 0 32px;
  max-width: 600px;
  color: var(--muted);
  font-size: 19px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
.proof li {
  display: flex;
  flex-direction: column;
}
.proof strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.proof span {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Live market card ---------- */
.market-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.market-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.market-card h2 {
  font-size: 15px;
  letter-spacing: -0.01em;
}
.market-card header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pos) 14%, transparent);
  color: var(--pos);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}
.ticker {
  margin: 0;
  padding: 6px 0;
  list-style: none;
}
.ticker li {
  display: grid;
  grid-template-columns: 1fr 92px auto;
  align-items: center;
  gap: 14px;
  padding: 11px 20px;
}
.ticker li + li {
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.ticker .hub-name {
  font-weight: 600;
  font-size: 15px;
}
.ticker .hub-market {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.ticker .price {
  text-align: right;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.ticker .price small {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.ticker .spark {
  width: 92px;
  height: 30px;
}
.spark path.line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}
.spark path.area {
  fill: var(--glow);
  stroke: none;
}
.market-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--muted);
}
.market-card footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ticker .state {
  display: block;
  padding: 28px 20px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.skeleton {
  display: inline-block;
  height: 12px;
  width: 70%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ---------- Sections ---------- */
section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}
.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head .kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 720;
}
.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.card .icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}
.card li {
  padding-left: 18px;
  position: relative;
  margin-top: 6px;
}
.card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

/* Gap section */
.gap-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.band-visual {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.band-visual h3 {
  font-size: 15px;
  margin-bottom: 4px;
}
.band-visual > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}
.band-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  font-size: 13px;
}
.band-row .label {
  color: var(--muted);
}
.band-track {
  position: relative;
  height: 34px;
  border-radius: 8px;
  background: var(--surface-2);
  overflow: hidden;
}
.band-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.band-fill.retail {
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  color: var(--muted);
}
.band-fill.l2 {
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 85%, transparent), color-mix(in srgb, var(--pos) 70%, transparent));
  color: var(--accent-ink);
}
.band-fill.desk {
  background: color-mix(in srgb, var(--warm) 22%, transparent);
  color: var(--warm);
  justify-content: flex-end;
}
.band-scale {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 0 144px;
  color: var(--faint);
  font-size: 11px;
}
.points {
  margin: 0;
  padding: 0;
  list-style: none;
}
.points li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.points li:first-child {
  border-top: 0;
  padding-top: 0;
}
.points b {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}
.points span.n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.points p {
  margin: 0;
  color: var(--muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}
.steps li {
  list-style: none;
  padding: 28px;
  border-left: 1px solid var(--border);
}
.steps li:first-child {
  border-left: 0;
}
.steps li::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font: 600 13px ui-monospace, Menlo, monospace;
}
.steps h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.steps ol {
  margin: 0;
  padding: 0;
  display: contents;
}

/* Who */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
}
.who {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.who h3 {
  font-size: 15px;
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 600;
}
.who .chips + h3 {
  margin-top: 32px;
}

/* Calculator */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.calc-inputs {
  padding: 36px;
}
.calc-out {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface-2));
  border-left: 1px solid var(--border);
}
.field {
  margin-bottom: 26px;
}
.field label,
.field .label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}
.field output {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
input[type='range'] {
  width: 100%;
  accent-color: var(--accent);
}
.calc-out .big {
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1;
}
.calc-out .sub {
  margin-top: 10px;
  color: var(--muted);
}
.calc-out dl {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  gap: 10px 20px;
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.calc-out dt {
  color: var(--muted);
}
.calc-out dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.fineprint {
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 12px;
}

/* Forward curves */
.fc {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.fc-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.fc-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fc-regions button {
  display: grid;
  min-width: 74px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.fc-regions button span {
  font-weight: 700;
  font-size: 14px;
}
.fc-regions button small {
  color: var(--muted);
  font-size: 12px;
}
.fc-regions button:hover {
  border-color: var(--border-strong);
}
.fc-regions button[aria-selected='true'] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}
.fc-regions button.empty {
  opacity: 0.6;
}
.fc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.seg button {
  padding: 5px 11px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.seg button[aria-pressed='true'] {
  background: var(--surface-2);
  color: var(--text);
}
.fc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
}
.fc-chart-wrap {
  position: relative;
  padding: 18px 12px 14px 8px;
}
#fc-chart {
  width: 100%;
  height: auto;
  font-family: inherit;
}
.fc-grid {
  stroke: var(--border);
  stroke-width: 1;
}
.fc-ylab {
  fill: var(--faint);
  font-size: 11px;
  text-anchor: end;
}
.fc-xlab {
  fill: var(--faint);
  font-size: 11px;
  text-anchor: middle;
}
.fc-xlab.now {
  fill: var(--accent);
  font-weight: 700;
}
.fc-vol {
  fill: color-mix(in srgb, var(--accent) 45%, transparent);
}
.fc-vol.past {
  fill: color-mix(in srgb, var(--muted) 30%, transparent);
}
.fc-line {
  fill: none;
  stroke: var(--warm);
  stroke-width: 2.4;
  stroke-linejoin: round;
}
.fc-line.past {
  stroke: var(--muted);
  stroke-width: 1.6;
}
.fc-dot {
  fill: var(--surface);
  stroke: var(--warm);
  stroke-width: 2;
}
.fc-dot.past {
  stroke: var(--muted);
}
.fc-today {
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.fc-today-lab {
  fill: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.fc-hover {
  fill: color-mix(in srgb, var(--accent) 8%, transparent);
  pointer-events: none;
}
.fc-empty {
  fill: var(--muted);
  font-size: 14px;
  text-anchor: middle;
}
.fc-tip {
  position: absolute;
  top: 10px;
  transform: translateX(-50%);
  min-width: 160px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 12px;
  pointer-events: none;
}
.fc-tip b {
  display: block;
  margin-bottom: 2px;
}
.fc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-left: 48px;
  color: var(--faint);
  font-size: 12px;
}
.fc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fc-legend .k-line {
  width: 18px;
  border-top: 2.4px solid var(--warm);
}
.fc-legend .k-line.past {
  border-top: 1.6px solid var(--muted);
}
.fc-legend .k-bar {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 45%, transparent);
}
.fc-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 22px 20px;
  border-left: 1px solid var(--border);
  background: var(--surface-2);
}
.fc-stats h3 {
  font-size: 18px;
}
.fc-cadence {
  margin: -10px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.fc-stat {
  display: grid;
}
.fc-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fc-stat strong {
  font-size: 24px;
  letter-spacing: -0.02em;
}
.fc-stat small {
  color: var(--faint);
  font-size: 12px;
}
.fc-links {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.fc-links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.fc-foot {
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 12px;
}
.fc-foot a {
  color: var(--accent);
}
@media (max-width: 960px) {
  .fc-body {
    grid-template-columns: 1fr;
  }
  .fc-stats {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

/* Market teaser */
.teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}
.teaser-frame {
  position: relative;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--map-sea);
  box-shadow: var(--shadow);
}
.teaser-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.teaser-frame a {
  position: absolute;
  inset: 0;
}
.feature-list {
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}
.feature-list li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  color: var(--muted);
}
.feature-list svg {
  flex: none;
  margin-top: 4px;
  color: var(--accent);
}

/* FAQ */
.faq {
  max-width: 860px;
}
.faq details {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.faq details:last-child {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--accent);
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 720px;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form .full {
  grid-column: 1 / -1;
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.form textarea {
  min-height: 120px;
  resize: vertical;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}
/* Spam trap: hidden from people, filled in by bots. */
.form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 0;
  font-size: 14px;
}
.contact-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.contact-points li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.contact-points b {
  color: var(--text);
}

/* Footer */
.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
}
.site-footer p {
  margin: 8px 0 0;
  max-width: 720px;
}
.site-footer nav {
  display: flex;
  gap: 18px;
}
.site-footer nav a {
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--text);
}

@media (max-width: 960px) {
  .hero .wrap,
  .gap-band,
  .who,
  .calc,
  .teaser,
  .contact {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .steps li:nth-child(3) {
    border-left: 0;
  }
  .steps li:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
  .calc-out {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .site-nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
}
@media (max-width: 620px) {
  section {
    padding: 64px 0;
  }
  .hero {
    padding-top: 56px;
  }
  .grid-3,
  .steps,
  .form {
    grid-template-columns: 1fr;
  }
  .steps li {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .steps li:first-child {
    border-top: 0;
  }
  .band-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .band-scale {
    margin-left: 0;
  }
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
  .header-actions .btn {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
