/* Beekon — landing + pricing
   Warm-neutral system, single amber accent family, mono for code */

:root {
  /* Surfaces */
  --bg: oklch(98.5% 0.008 80);
  --bg-elev: oklch(99.5% 0.005 80);
  --bg-sunk: oklch(96% 0.012 80);
  --line: oklch(90% 0.012 75);
  --line-strong: oklch(82% 0.018 70);

  /* Ink */
  --ink: oklch(20% 0.015 60);
  --ink-2: oklch(35% 0.015 60);
  --ink-3: oklch(52% 0.02 65);
  --ink-4: oklch(65% 0.02 70);

  /* Brand */
  --honey: oklch(74% 0.16 65);   /* primary amber */
  --honey-2: oklch(82% 0.13 75); /* warm yellow */
  --honey-3: oklch(68% 0.18 50); /* sunset */
  --honey-ink: oklch(45% 0.14 55);

  /* Status */
  --green: oklch(62% 0.13 155);
  --red: oklch(60% 0.18 25);

  /* Geometry */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 22px;

  /* Type */
  --f-display: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  --f-body: "Inter", -apple-system, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Density */
  --pad-section: 120px;
  --container: 1240px;
}

html[data-theme="dark"] {
  --bg: oklch(16% 0.012 60);
  --bg-elev: oklch(20% 0.015 60);
  --bg-sunk: oklch(13% 0.01 60);
  --line: oklch(28% 0.018 60);
  --line-strong: oklch(38% 0.025 60);
  --ink: oklch(96% 0.008 80);
  --ink-2: oklch(82% 0.012 75);
  --ink-3: oklch(65% 0.02 70);
  --ink-4: oklch(50% 0.02 65);
}

html[data-density="compact"] {
  --pad-section: 80px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ------- Layout primitives ------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: var(--pad-section) 0;
  position: relative;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--honey-ink);
  font-weight: 500;
}
html[data-theme="dark"] .eyebrow { color: var(--honey); }

.h1 {
  font-family: var(--f-display);
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

.h2 {
  font-family: var(--f-display);
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

.h3 {
  font-family: var(--f-display);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.018em;
  font-weight: 500;
  margin: 0;
}

.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 620px;
  letter-spacing: -0.005em;
}

.body { color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-3); }
.tiny { font-size: 13px; }
.mono { font-family: var(--f-mono); }

/* ------- Buttons ------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: all .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
html[data-theme="dark"] .btn-primary {
  background: var(--honey);
  color: oklch(15% 0.02 60);
  border-color: var(--honey);
}
.btn-primary:hover { background: var(--honey-ink); border-color: var(--honey-ink); color: var(--bg); }
html[data-theme="dark"] .btn-primary:hover { background: var(--honey-2); border-color: var(--honey-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--ink-3); }
.btn-link {
  padding: 0;
  border-radius: 0;
  background: none;
}
.btn-link:hover { color: var(--honey-ink); transform: none; }

.kbd {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink-3);
}

/* ------- Nav ------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.022em;
}
.brand-mark { width: 26px; height: 26px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 450;
  transition: color .15s ease;
}
.nav-link:hover { color: var(--ink); }

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

/* ------- Hero ------- */
.hero {
  padding-top: 96px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.hero-solo { padding-top: 140px; padding-bottom: 140px; text-align: left; }
.hero-solo .container { max-width: 920px; }
.hero-h1 { word-break: break-word; overflow-wrap: break-word; }
.hero-h1 .accent { padding-right: 0.08em; margin-right: -0.08em; }
.hero-lede { margin-top: 28px; max-width: 62ch; }
.hero-stats-solo { max-width: 720px; margin-top: 72px; }
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 28px;
  background: var(--bg-elev);
}
.hero-meta-tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  text-transform: uppercase;
  font-weight: 500;
}
html[data-theme="dark"] .hero-meta-tag { background: var(--honey); color: oklch(15% 0.02 60); }

.hero h1 .accent {
  background: linear-gradient(135deg, var(--honey-3) 0%, var(--honey) 50%, var(--honey-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  max-width: 540px;
}
.stat-num {
  font-family: var(--f-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
}
.stat-label {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 8px;
  letter-spacing: -0.005em;
}

/* Hero visual — honeycomb composition */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 78% 18%, color-mix(in oklch, var(--honey) 22%, transparent) 0%, transparent 45%),
    radial-gradient(circle at 18% 88%, color-mix(in oklch, var(--honey-3) 14%, transparent) 0%, transparent 45%),
    var(--bg-elev);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 1px 0 0 color-mix(in oklch, var(--ink) 4%, transparent), 0 24px 60px -28px color-mix(in oklch, var(--honey) 35%, transparent);
}
html[data-theme="dark"] .hero-visual {
  background:
    radial-gradient(circle at 78% 18%, color-mix(in oklch, var(--honey) 22%, transparent) 0%, transparent 45%),
    radial-gradient(circle at 18% 88%, color-mix(in oklch, var(--honey-3) 18%, transparent) 0%, transparent 45%),
    var(--bg-elev);
}
.hex-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--green) 60%, transparent); }
  100% { box-shadow: 0 0 0 8px color-mix(in oklch, var(--green) 0%, transparent); }
}

.hex-tl {
  position: absolute;
  top: 28px;
  left: 28px;
  pointer-events: none;
}
.hex-tl-eyebrow {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.hex-tl-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Live readout pinned over the feature hex (cell 2,3 → ~center) */
.hex-now {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  color: oklch(99% 0.005 80);
  text-shadow: 0 1px 2px color-mix(in oklch, oklch(35% 0.10 50) 60%, transparent);
}
.hex-now-row {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  opacity: 0.95;
}
.hex-now-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(99% 0.005 80);
  animation: pulse 1.8s ease-out infinite;
}
.hex-now-coord {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.hex-now-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  margin-top: 6px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.hex-rail {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: color-mix(in oklch, var(--bg-elev) 80%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.hex-rail > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rail-num {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.rail-lbl {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
}
/* ------- Logo strip ------- */
.logo-strip {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logo-strip-label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  text-align: center;
  margin-bottom: 28px;
}
.logo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.logo-item {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink-3);
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ------- Section header ------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 64px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head .lede { max-width: none; }

/* ------- Platform grid ------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.platform-card {
  background: var(--bg-elev);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
  position: relative;
  transition: background .2s ease;
}
.platform-card:hover { background: var(--bg-sunk); }
.platform-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--bg-sunk);
  color: var(--ink);
}
.platform-name {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.018em;
}
.platform-art {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: -0.005em;
}
.platform-status {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.status-stable { background: color-mix(in oklch, var(--green) 14%, transparent); color: var(--green); }
.status-soon { background: color-mix(in oklch, var(--honey) 18%, transparent); color: var(--honey-ink); }
html[data-theme="dark"] .status-soon { color: var(--honey); }
.status-future { background: var(--bg-sunk); color: var(--ink-3); }

.platform-version {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

/* ------- Code samples ------- */
.code-block {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  overflow: hidden;
}
.code-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-sunk);
  overflow-x: auto;
}
.code-tab {
  padding: 14px 20px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--ink-3);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: color .15s ease;
}
.code-tab:hover { color: var(--ink); }
.code-tab[data-active="true"] {
  color: var(--ink);
  background: var(--bg-elev);
  border-bottom-color: var(--honey);
}
.code-tab-badge {
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.code-tab[data-active="true"] .code-tab-badge {
  background: var(--bg-sunk);
}
.code-body {
  padding: 24px 28px 28px;
  font-family: var(--f-mono);
  font-size: 13.5px;
  line-height: 1.65;
  overflow-x: auto;
  color: var(--ink-2);
}
.code-body pre { margin: 0; }
.tok-key { color: var(--honey-ink); }
html[data-theme="dark"] .tok-key { color: var(--honey); }
.tok-fn { color: oklch(55% 0.13 230); }
html[data-theme="dark"] .tok-fn { color: oklch(75% 0.12 230); }
.tok-str { color: oklch(55% 0.12 145); }
html[data-theme="dark"] .tok-str { color: oklch(72% 0.11 145); }
.tok-num { color: oklch(60% 0.13 25); }
.tok-com { color: var(--ink-4); font-style: italic; }
.tok-typ { color: oklch(55% 0.12 285); }
html[data-theme="dark"] .tok-typ { color: oklch(75% 0.11 285); }
.tok-pun { color: var(--ink-3); }

.code-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  background: var(--bg-sunk);
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
  transition: all .15s ease;
}
.copy-btn:hover { background: var(--bg-elev); color: var(--ink); border-color: var(--ink-3); }

/* ------- Battery presets ------- */
.preset-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: center;
}
.preset-list { display: flex; flex-direction: column; gap: 10px; }
.preset-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  cursor: pointer;
  transition: all .18s ease;
  text-align: left;
}
.preset-row:hover { border-color: var(--line-strong); }
.preset-row[data-active="true"] {
  border-color: var(--ink);
  background: var(--bg-elev);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ink) 8%, transparent);
}
html[data-theme="dark"] .preset-row[data-active="true"] {
  border-color: var(--honey);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--honey) 22%, transparent);
}
.preset-radio {
  width: 16px; height: 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.preset-row[data-active="true"] .preset-radio {
  border-color: var(--ink);
}
.preset-row[data-active="true"] .preset-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--ink);
  border-radius: 50%;
}
html[data-theme="dark"] .preset-row[data-active="true"] .preset-radio { border-color: var(--honey); }
html[data-theme="dark"] .preset-row[data-active="true"] .preset-radio::after { background: var(--honey); }

.preset-label {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.015em;
  display: flex; align-items: center; gap: 10px;
}
.preset-default {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--bg);
}
html[data-theme="dark"] .preset-default { background: var(--honey); color: oklch(15% 0.02 60); }
.preset-desc {
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 3px;
}
.preset-bat {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
  text-align: right;
  white-space: nowrap;
}

.preset-readout {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.readout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 24px;
}
.readout-cell {
  background: var(--bg-elev);
  padding: 20px 22px;
}
.readout-cell-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.readout-cell-value {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.readout-cell-value .unit {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0;
  font-weight: 400;
}

.bat-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-sunk);
  position: relative;
  overflow: hidden;
}
.bat-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--green), var(--honey-2), var(--honey-3));
  border-radius: 999px;
  transition: width .4s cubic-bezier(.5,.1,.2,1);
}
.bat-readout-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
}

/* ------- Why Beekon (3-up) ------- */
.invariants {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.invariant {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  min-height: 320px;
}
.invariant-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--honey-ink);
}
html[data-theme="dark"] .invariant-num { color: var(--honey); }
.invariant-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.invariant-body {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.invariant-meta {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
}

/* ------- Pricing ------- */
.pricing-section { background: var(--bg-sunk); }
.pricing-mode {
  display: inline-flex;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 56px;
}
.pricing-mode-btn {
  padding: 8px 18px;
  background: none;
  border: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 999px;
  color: var(--ink-3);
  letter-spacing: -0.005em;
  transition: all .18s ease;
}
.pricing-mode-btn[data-active="true"] {
  background: var(--ink);
  color: var(--bg);
}
html[data-theme="dark"] .pricing-mode-btn[data-active="true"] { background: var(--honey); color: oklch(15% 0.02 60); }

.license-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.license-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  cursor: pointer;
  transition: all .18s ease;
  text-align: left;
}
.license-card:hover { border-color: var(--line-strong); }
.license-card[data-selected="true"] {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ink) 8%, transparent);
}
html[data-theme="dark"] .license-card[data-selected="true"] {
  border-color: var(--honey);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--honey) 22%, transparent);
}
.license-head {
  display: flex; align-items: center; justify-content: space-between;
}
.license-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--bg-sunk);
}
.license-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.license-card[data-selected="true"] .license-check {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
html[data-theme="dark"] .license-card[data-selected="true"] .license-check {
  border-color: var(--honey);
  background: var(--honey);
  color: oklch(15% 0.02 60);
}
.license-name {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.018em;
}
.license-platform {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: -0.005em;
}
.license-price {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-top: 8px;
  color: var(--ink);
}
.license-price .per {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 400;
  letter-spacing: 0;
}
.license-feats {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.license-feats li {
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.4;
}
.license-feats li::before {
  content: "+";
  font-family: var(--f-mono);
  color: var(--honey-ink);
  font-weight: 600;
  flex-shrink: 0;
}
html[data-theme="dark"] .license-feats li::before { color: var(--honey); }

.cart {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}
.cart-summary { font-size: 14.5px; color: var(--ink-2); }
.cart-summary strong { color: var(--ink); font-weight: 500; }
.cart-total {
  font-family: var(--f-display);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.028em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cart-total .per {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 400;
  letter-spacing: 0;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.tier-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tier-card.featured {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
html[data-theme="dark"] .tier-card.featured {
  background: linear-gradient(140deg, oklch(28% 0.06 65), oklch(20% 0.04 60));
  border-color: var(--honey);
  color: var(--ink);
}
.tier-card.featured .tier-name,
.tier-card.featured .tier-price,
.tier-card.featured .tier-feats { color: inherit; }
.tier-card.featured .tier-feats li { color: color-mix(in oklch, var(--bg) 80%, var(--ink)); }
html[data-theme="dark"] .tier-card.featured .tier-feats li { color: var(--ink-2); }
.tier-card.featured .tier-feats li::before { color: var(--honey-2); }
.tier-card.featured .tier-meta { border-top-color: color-mix(in oklch, var(--bg) 30%, transparent); }

.tier-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
}
.tier-name {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.tier-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--honey);
  color: oklch(20% 0.02 60);
  font-weight: 500;
}
.tier-price {
  font-family: var(--f-display);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.028em;
}
.tier-price .per {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.7;
}
.tier-feats {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.tier-feats li {
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.45;
  color: var(--ink-2);
}
.tier-feats li::before {
  content: "✓";
  color: var(--honey-ink);
  flex-shrink: 0;
  font-weight: 600;
}
html[data-theme="dark"] .tier-feats li::before { color: var(--honey); }
.tier-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-3);
}

/* ------- FAQ ------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 0;
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
}
.faq-toggle {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  flex-shrink: 0;
  transition: all .2s ease;
}
.faq-item[data-open="true"] .faq-toggle {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: rotate(45deg);
}
html[data-theme="dark"] .faq-item[data-open="true"] .faq-toggle {
  background: var(--honey);
  color: oklch(15% 0.02 60);
  border-color: var(--honey);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}
.faq-item[data-open="true"] .faq-a {
  max-height: 360px;
  padding: 0 0 28px;
}
.faq-a-inner { max-width: 720px; }

/* ------- Footer ------- */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand-block { max-width: 320px; }
.footer-brand-block .body { margin-top: 16px; font-size: 14px; }
.footer-col h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--ink-2); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: -0.005em;
}

/* Honeycomb background motif */
.honeycomb-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mask-image: radial-gradient(circle at 80% 20%, black 0%, transparent 70%);
  z-index: 0;
}

/* ------- Responsive ------- */
@media (max-width: 980px) {
  :root { --pad-section: 80px; }
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .preset-stage { grid-template-columns: 1fr; gap: 32px; }
  .invariants { grid-template-columns: 1fr; }
  .license-grid { grid-template-columns: repeat(2, 1fr); }
  .cart { grid-template-columns: 1fr; gap: 16px; }
  .tier-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
