/* ==========================================================================
   LightningDB Design System
   Identity: Navy-forward (#0a1f3d) C++ Graph Database for AI Retrieval
   Typography: Space Grotesk (Brand & Display), Plus Jakarta Sans (Body),
               JetBrains Mono (Code, Metrics & Telemetry)
   ========================================================================== */

:root {
  /* Brand Navy Spectrum */
  --navy-950: #040d1a;
  --navy-900: #07172e;
  --navy-850: #0a1f3d; /* Signature LightningDB navy */
  --navy-800: #0f2c56;
  --navy-700: #153e77;
  --navy-600: #1e529a;

  /* Electric Accents */
  --electric: #00d4ff;
  --electric-hover: #38bdf8;
  --electric-dim: rgba(0, 212, 255, 0.14);
  --electric-border: rgba(0, 212, 255, 0.35);

  /* Semantic Tones */
  --gain: #047857;
  --gain-bg: #ecfdf5;
  --gain-border: #a7f3d0;
  --neo: #64748b;

  /* Light Field Surfaces (atmospheric, not flat) */
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-wash: #f0f4f9;
  --bg-subtle: #e8eef6;

  /* Ink & Typography */
  --ink: #071526;
  --body: #24354c;
  --muted: #536780;
  --line: #cbd7e4;
  --line-subtle: #e2e9f2;

  /* Typography Stacks */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --max: 1160px;
  --max-wide: 1280px;
  --gutter: clamp(20px, 4vw, 44px);
  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 8px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  background-image: none;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy-800);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--navy-600);
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

.lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--body);
  max-width: 42rem;
}

/* Code & Pre */
code, pre, .cmd {
  font-family: var(--font-mono);
}

code {
  font-size: 0.9em;
  background: var(--bg-wash);
  color: var(--navy-900);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(10, 31, 61, 0.08);
}

pre, .cmd {
  background: var(--navy-950);
  color: #e2e8f0;
  padding: 24px 26px;
  margin: 0;
  line-height: 1.6;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  white-space: pre;
  max-width: 100%;
  box-sizing: border-box;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: 0;
  font-size: inherit;
}

.cmd {
  margin-top: 18px;
  white-space: pre-wrap;
  word-break: break-word;
}

.cmd .prompt {
  display: block;
  color: #7dd3fc;
  font-size: 0.84rem;
  margin-bottom: 6px;
  font-weight: 500;
}

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin: 0 auto;
}

.wrap-wide {
  width: min(var(--max-wide), 100% - 2 * var(--gutter));
  margin: 0 auto;
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 2px;
}

/* ==========================================================================
   Header & Chrome Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 23, 46, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.site-header .bar {
  display: flex;
  align-items: center;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand:hover {
  color: #ffffff;
}

.brand-bolt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: var(--radius-sm);
  color: var(--electric);
  flex-shrink: 0;
}

.brand-bolt svg,
.bolt-svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-header .nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 32px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link[aria-current="page"] {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.14);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.link-quiet:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.header-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.08);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.header-login:hover {
  color: #ffffff;
  background: rgba(0, 212, 255, 0.18);
  border-color: rgba(0, 212, 255, 0.7);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.3);
}

.header-login[aria-current="page"] {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.16);
  border-color: var(--electric);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.35);
}

.login-icon {
  flex-shrink: 0;
  fill: currentColor;
}

.mobile-header-tools {
  display: none;
}

.nav-link-portal-mobile {
  display: none;
}

.gh-icon {
  flex-shrink: 0;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.9rem;
}

/* Primary Electric Action */
.btn-electric,
.btn-white,
.site-header .btn-primary {
  background: var(--electric);
  color: var(--navy-950);
  border-color: var(--electric);
  font-weight: 700;
}

.btn-electric:hover,
.btn-white:hover,
.site-header .btn-primary:hover {
  background: var(--electric-hover);
  border-color: var(--electric-hover);
  color: var(--navy-950);
}

/* Navy Primary Button */
.btn-navy,
.btn-primary {
  background: var(--navy-850);
  color: #ffffff;
  border-color: var(--navy-850);
}

.btn-navy:hover,
.btn-primary:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #ffffff;
}

/* Light Outline Button */
.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

/* Dark Outline Button */
.btn-line {
  background: transparent;
  color: var(--navy-850);
  border-color: var(--line);
}

.btn-line:hover {
  border-color: var(--navy-850);
  color: var(--navy-850);
  background: rgba(10, 31, 61, 0.03);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

/* Static landing hero */

.hero-flagship {
  background-color: var(--navy-950);
  background-image:
    radial-gradient(130% 90% at 50% -10%, #102a50 0%, var(--navy-850) 45%, var(--navy-950) 100%),
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  color: #ffffff;
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-flagship-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
}

.hero-brand-anchor {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-bolt {
  width: 24px;
  height: 24px;
  color: var(--electric);
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.hero-brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-transform: uppercase;
}

.hero-brand-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #7dd3fc;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 12px;
  text-transform: uppercase;
}

.hero-flagship h1 {
  color: #ffffff;
  font-size: clamp(2.6rem, 5.2vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  max-width: 100%;
}

.hero-flagship .hero-subtext {
  font-size: clamp(1.15rem, 2vw, 1.32rem);
  line-height: 1.55;
  color: #cbd5e1;
  max-width: 44rem;
  margin-bottom: 34px;
}

.hero-flagship .hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

/* ==========================================================================
   Standard Page Hero
   ========================================================================== */

.hero {
  padding: 80px 0 64px;
}

.hero.hero-dark {
  background-color: var(--navy-950);
  background-image:
    radial-gradient(130% 90% at 50% -10%, #102a50 0%, var(--navy-850) 45%, var(--navy-950) 100%),
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero.hero-dark h1 {
  color: #ffffff;
}

.hero.hero-dark .lede {
  color: #cbd5e1;
}

.hero h1 {
  margin-bottom: 0.35em;
}

.hero-num {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: clamp(4.5rem, 9.5vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--navy-850);
}

.steps-heading .step-num {
  color: var(--navy-850);
  font-family: var(--font-mono);
  font-weight: 700;
  margin-right: 0.15em;
}

/* ==========================================================================
   Benchmark Duel Band (Head-to-head comparison)
   ========================================================================== */

.band {
  background: var(--navy-900);
  background-image:
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px;
  color: #ffffff;
  padding: 68px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.duel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.duel-k {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: -0.01em;
}

.duel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.1rem;
  color: #ffffff;
}

.duel-row span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.duel-row strong {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.duel-row.other {
  color: #94a3b8;
}

.duel-row.other strong {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 500;
  color: #94a3b8;
}

.duel-x {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--electric);
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.duel-x::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--electric);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--electric);
}

/* Visual Comparison Bar */
.duel-bars {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.duel-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.duel-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.duel-bar-fill.fast {
  background: var(--electric);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.duel-bar-fill.slow {
  background: #64748b;
}

/* Stats band */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.stats.four-col {
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stats strong {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 10px;
  color: #ffffff;
}

.stats p {
  margin: 0;
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.stats-clocks {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.stats-clocks .vs {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: lowercase;
}

.stats-sub {
  display: block;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* ==========================================================================
   Sections & Layout
   ========================================================================== */

section.block {
  padding: 96px 0;
  border-bottom: 1px solid var(--line-subtle);
}

section.wash {
  background-color: var(--bg-wash);
  background-image: none;
}

.intro {
  max-width: 100%;
  margin-bottom: 48px;
}

.intro.intro-wide {
  max-width: none;
}

.intro h2 {
  margin-bottom: 0.35em;
}

.intro p {
  margin: 0;
  font-size: 1.2rem;
  color: var(--body);
  max-width: 44rem;
}

.intro.row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.intro.row .actions {
  margin: 0;
  flex-shrink: 0;
}

/* Architectural Lines Grid (One engine, three jobs) */
.lines article {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr);
  gap: 20px 56px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.lines article:last-child {
  border-bottom: 1px solid var(--line);
}

.lines h3 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.line-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--navy-600);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.lines p {
  margin: 0;
  font-size: 1.12rem;
  color: var(--body);
  max-width: 44rem;
  line-height: 1.6;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}

.split > * {
  min-width: 0;
}

.prose p {
  font-size: 1.12rem;
  color: var(--body);
  line-height: 1.65;
  max-width: 42rem;
}

.prose h2 {
  margin-top: 0;
}

.side h2 {
  margin-top: 0;
}

.side dl {
  margin: 0;
}

.side dt {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  padding-top: 20px;
}

.side dd {
  color: var(--body);
  font-size: 1.02rem;
  margin: 0;
  padding: 6px 0 18px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

/* ==========================================================================
   Data Tables & Tabular Benchmarks
   ========================================================================== */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.02rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 16px 20px;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-subtle);
}

table.data th {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-wash);
  border-bottom: 2px solid var(--navy-850);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table.data td.num {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--navy-850);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

table.data td.neo {
  font-family: var(--font-mono);
  color: var(--neo);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

table.data td.gain {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gain);
  text-align: right;
  white-space: nowrap;
}

table.data td:first-child {
  font-weight: 600;
  color: var(--ink);
}

table.data .sub {
  display: block;
  margin-top: 2px;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
}

table.data.matrix th:not(:first-child),
table.data.matrix td:not(:first-child) {
  text-align: center;
}

.note {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 24px 0 0;
  max-width: 48rem;
  line-height: 1.55;
}

.note a {
  font-weight: 600;
}

/* ==========================================================================
   Pricing System (Self-hosted & Cloud)
   Rule: Preserves Self-hosted / Cloud tabs UX & accurate pricing model
   ========================================================================== */

.price-tabs-container {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 32px;
  max-width: 100%;
}

.price-tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 680px;
  background: var(--bg-wash);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  gap: 8px;
  box-shadow: inset 0 2px 4px rgba(10, 31, 61, 0.04);
}

.price-tab {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-tab:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.price-tab.is-active {
  background: var(--navy-850);
  border-color: var(--navy-900);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(10, 31, 61, 0.18), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.price-tab .tab-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-tab .tab-badge {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.25;
  transition: color 0.15s ease;
}

.price-tab.is-active .tab-badge {
  color: rgba(255, 255, 255, 0.82);
}

.price-panel {
  display: block;
}

.price-panel[hidden] {
  display: none !important;
}

@media (max-width: 680px) {
  .price-tabs {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

.price-lead {
  font-size: 1.18rem;
  color: var(--body);
  max-width: 48rem;
  margin: 0 0 28px;
  line-height: 1.55;
}

/* Editions Cards (Interactive user objects) */
.editions {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.editions-4 {
  grid-template-columns: repeat(4, 1fr);
}

.editions-3 {
  grid-template-columns: repeat(3, 1fr);
}

.editions article {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.editions article:hover {
  border-color: var(--navy-700);
  box-shadow: 0 8px 24px rgba(10, 31, 61, 0.08);
  transform: translateY(-2px);
}

.editions h2 {
  font-size: 1.55rem;
  margin: 0 0 10px;
  max-width: none;
}

.editions .amt {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 16px;
  color: var(--navy-850);
  letter-spacing: -0.03em;
}

.editions .amt span,
.unit {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.editions p {
  font-size: 0.98rem;
  color: var(--body);
  line-height: 1.5;
  margin: 0;
}

.editions ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  font-size: 0.96rem;
  flex-grow: 1;
}

.editions li {
  padding: 7px 0;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-subtle);
}

.editions li:last-child {
  border-bottom: 0;
}

.editions li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--navy-850);
  flex-shrink: 0;
}

.editions .btn {
  width: 100%;
  margin-top: auto;
}

/* Panel Intro Bar & Cadence Switch */
.panel-intro-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.panel-intro-bar .price-lead {
  margin-bottom: 0;
  flex: 1 1 300px;
}
.cadence-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cadence-caption {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}
.cadence-pills {
  display: inline-flex;
  background: var(--bg-wash);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  gap: 2px;
}
.cadence-pill {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.cadence-pill:hover {
  color: var(--ink);
}
.cadence-pill.is-active {
  background: var(--navy-850);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(10, 31, 61, 0.2);
}
.badge-save {
  background: #047857;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.amt-group {
  margin-bottom: 14px;
}
.amt-group .amt {
  margin-bottom: 2px;
}
.billing-note {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #047857;
  min-height: 1.2em;
}
.card-login-hint {
  margin-top: 10px;
  font-size: 0.82rem;
  text-align: center;
}
.card-login-hint a {
  color: var(--navy-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.card-login-hint a:hover {
  color: var(--navy-900);
}

/* ==========================================================================
   Customer Portal & Commercial Services UI
   ========================================================================== */

.portal-hero {
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: #ffffff;
  padding: 48px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.portal-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.portal-badge {
  display: inline-block;
  background: rgba(0, 212, 255, 0.14);
  color: var(--electric);
  border: 1px solid var(--electric-border);
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.portal-header-bar h1 {
  color: #ffffff;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 6px;
}
.portal-header-bar .lede {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 0;
}
.portal-auth-state {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: var(--radius-md);
}
.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--electric);
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 1px solid var(--electric-border);
}
.user-email {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
}
.user-role {
  font-size: 0.8rem;
  color: #34d399;
  font-weight: 500;
}

/* Guest Auth Card */
.portal-guest-container {
  max-width: 480px;
  margin: 0 auto;
}
.portal-auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 8px 28px rgba(10, 31, 61, 0.06);
}
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--bg-wash);
  border: 1px solid var(--line-subtle);
  border-radius: 7px;
  margin-bottom: 28px;
}
.auth-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 4px;
  padding: 11px 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.auth-tab.is-active {
  color: var(--navy-850);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(10, 31, 61, 0.1);
}
.auth-form .form-group {
  margin-bottom: 20px;
}
.auth-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.auth-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: #ffffff;
  color: var(--ink);
}
.auth-form input:focus {
  outline: 2px solid var(--navy-850);
  border-color: var(--navy-850);
}
.auth-actions {
  margin-top: 24px;
}
.auth-hint {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
}
.verify-banner {
  background: var(--gain-bg);
  border: 1px solid var(--gain-border);
  color: #065f46;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 20px;
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.verify-banner p {
  margin: 4px 0 10px;
}

/* Authenticated Dashboard Navigation Pills */
.portal-nav-pills {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 32px;
  overflow-x: auto;
}
.portal-pill {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}
.portal-pill:hover {
  color: var(--ink);
  background: var(--bg-wash);
}
.portal-pill.is-active {
  background: var(--navy-850);
  color: #ffffff;
}

/* License Card Component */
.card-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.card-section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.card-section-header p {
  color: var(--muted);
  margin-bottom: 0;
}
.license-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 16px rgba(10, 31, 61, 0.04);
}
.lic-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-subtle);
}
.lic-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lic-tier-badge {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-850);
}
.lic-annual-tag {
  background: var(--gain-bg);
  color: #065f46;
  border: 1px solid var(--gain-border);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.lic-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
}
.lic-status-badge.is-active {
  background: var(--gain-bg);
  color: #065f46;
  border: 1px solid var(--gain-border);
}
.lic-key-row {
  margin-bottom: 24px;
}
.lic-key-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.lic-key-display {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-wash);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}
.lic-key-display code {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-850);
  background: transparent;
  padding: 0;
  flex: 1;
}
.lic-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg-wash);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-subtle);
}
.meta-item .meta-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.meta-item .meta-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}
.meta-item .meta-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}
.lic-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-subtle);
  flex-wrap: wrap;
}
.lic-actions-note {
  flex: 1 1 300px;
  font-size: 0.9rem;
  color: var(--body);
}
.lic-actions-note strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}
.lic-actions-note p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.btn-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  font-weight: 600;
}
.btn-danger:hover {
  background: #fecaca;
  color: #7f1d1d;
}
.quickstart-box {
  background: var(--navy-950);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  color: #ffffff;
}
.quickstart-box h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.quickstart-box pre {
  margin: 0;
  padding: 0;
  background: transparent;
}

/* Downloads Matrix Grid */
.download-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.dl-os-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.download-card h3 {
  font-size: 1.18rem;
  margin-bottom: 6px;
}
.free-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.free-downloads .download-card {
  padding: clamp(24px, 3vw, 40px);
}
.free-downloads .dl-links {
  padding-top: 12px;
}
.download-release, .download-note {
  color: var(--muted);
  font-size: 0.95rem;
}
.download-release span {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.download-note {
  margin-top: 24px;
}
@media (max-width: 680px) {
  .free-downloads { grid-template-columns: minmax(0, 1fr); }
}
.dl-sub {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.dl-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}
.sha-preview {
  font-size: 0.76rem;
  color: var(--muted);
}

/* Managed Azure Cluster Card */
.cloud-cluster-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 32px;
}
.cluster-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-subtle);
}
.cluster-ident {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cluster-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
}
.cluster-sku {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg-wash);
  padding: 2px 8px;
  border-radius: 4px;
}
.cluster-badge.is-running {
  background: var(--gain-bg);
  color: #065f46;
  border: 1px solid var(--gain-border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}
.cluster-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.cl-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.cl-uri {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--navy-850);
  font-weight: 600;
  background: var(--bg-wash);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}
.cl-link {
  font-weight: 600;
  color: var(--navy-850);
}
.sub-text {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}
.badge-safe {
  display: inline-block;
  background: rgba(0, 212, 255, 0.12);
  color: var(--navy-850);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}
.cluster-actions {
  display: flex;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-subtle);
}

/* Billing Grid */
.billing-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bill-box {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}
.bill-label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.bill-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.bill-sub {
  font-size: 0.82rem;
  color: var(--muted);
}
.bill-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-850);
}

/* Security & MFA Settings */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.security-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 4px 16px rgba(10, 31, 61, 0.04);
  display: flex;
  flex-direction: column;
}
.security-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-subtle);
}
.security-card-header h3 {
  font-size: 1.15rem;
  margin: 0 0 4px;
  color: var(--navy-850);
}
.security-card-header p {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.security-badge.is-enabled {
  background: var(--gain-bg);
  color: #065f46;
  border: 1px solid var(--gain-border);
}
.security-badge.is-configured {
  background: rgba(0, 212, 255, 0.12);
  color: var(--navy-850);
  border: 1px solid rgba(0, 212, 255, 0.35);
}
.security-badge.is-pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.security-body {
  flex: 1;
  font-size: 0.9rem;
  color: var(--body);
}
.security-detail-row {
  margin-bottom: 16px;
}
.security-detail-row label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.security-detail-row .value-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-wash);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--ink);
}
.security-card-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.recovery-codes-box {
  background: var(--bg-wash);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--navy-850);
}
.recovery-code {
  padding: 4px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--line-subtle);
  border-radius: 3px;
  text-align: center;
}

@media (max-width: 1100px) {
  .lic-meta-grid,
  .download-matrix-grid,
  .billing-summary-grid,
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .lic-meta-grid,
  .download-matrix-grid,
  .cluster-details-grid,
  .billing-summary-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }
  .portal-header-bar,
  .lic-top,
  .lic-actions-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Steps, Platforms, and Interactive Lists
   ========================================================================== */

.steps {
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  list-style: none;
  position: relative;
  padding: 32px 0 32px 4rem;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  font-size: 1.08rem;
}

.steps li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 30px;
  font-family: var(--font-mono);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--navy-850);
  font-weight: 700;
}

.steps strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.38rem;
  margin-bottom: 8px;
}

.steps p {
  margin: 0;
  max-width: 46rem;
  line-height: 1.6;
}

.steps pre {
  margin-top: 18px;
}

/* ==========================================================================
   Platform Packages & Download Cards (Vertically Aligned)
   ========================================================================== */

.release-channel-bar {
  background: var(--bg-wash);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.release-channel-bar .channel-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  display: block;
}

.release-channel-bar .channel-version {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.release-channel-bar .channel-badge {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  background: var(--electric-dim);
  border: 1px solid var(--electric-border);
  padding: 2px 8px;
  border-radius: 12px;
  color: var(--navy-800);
  font-weight: 600;
}

.release-channel-bar .channel-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  border-top: none;
}

.platforms article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 26px;
  box-shadow: 0 2px 6px rgba(10, 31, 61, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.platforms article:hover {
  border-color: var(--navy-600);
  box-shadow: 0 6px 18px rgba(10, 31, 61, 0.07);
}

.platform-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.platform-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.platforms h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.platform-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.platform-tag.tag-free {
  background: var(--gain-bg);
  color: var(--gain);
  border: 1px solid var(--gain-border);
}

.platform-tag.tag-pro {
  background: rgba(0, 212, 255, 0.15);
  color: var(--navy-850);
  border: 1px solid rgba(0, 212, 255, 0.4);
}

.platforms .sub {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.platforms p {
  margin: 0 0 18px 0;
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.55;
  flex-grow: 1;
}

.platforms .platform-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
}

.platforms a {
  font-weight: 600;
  white-space: nowrap;
}

/* Recommended OS Card Highlight */
.platforms article.rec {
  border: 2px solid var(--electric);
  box-shadow: 0 4px 18px rgba(0, 212, 255, 0.18);
  background: #ffffff;
  padding: 24px 26px;
  margin: 0;
}

.platforms article.rec::before {
  content: "YOUR OS · RECOMMENDED";
  position: absolute;
  top: -11px;
  right: 18px;
  background: var(--navy-850);
  color: #00d4ff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--electric);
}

/* Pro & Pro+ GPU Commercial Panel (Bottom Panel) */
.platforms article[data-os="pro-cuda"],
.platforms article.platform-pro {
  grid-column: 1 / -1;
  background: var(--navy-900);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: #ffffff;
  padding: 28px 30px;
  box-shadow: 0 8px 24px rgba(7, 23, 46, 0.22);
}

.platforms article[data-os="pro-cuda"]:hover,
.platforms article.platform-pro:hover {
  border-color: var(--electric);
}

.platforms article[data-os="pro-cuda"] h3,
.platforms article.platform-pro h3 {
  color: #ffffff;
}

.platforms article[data-os="pro-cuda"] .sub,
.platforms article.platform-pro .sub {
  color: #94a3b8;
}

.platforms article[data-os="pro-cuda"] p,
.platforms article.platform-pro p {
  color: #e2e8f0;
}

.platforms article[data-os="pro-cuda"] .platform-tag.tag-pro,
.platforms article.platform-pro .platform-tag.tag-pro {
  background: rgba(0, 212, 255, 0.18);
  color: var(--electric);
  border: 1px solid rgba(0, 212, 255, 0.45);
}

.platforms article[data-os="pro-cuda"] .btn-electric,
.platforms article.platform-pro .btn-electric {
  background: var(--electric);
  color: var(--navy-950);
  font-weight: 700;
}

.platforms article[data-os="pro-cuda"] .btn-electric:hover,
.platforms article.platform-pro .btn-electric:hover {
  background: var(--electric-hover);
}

.platforms article[data-os="pro-cuda"] .btn-line,
.platforms article.platform-pro .btn-line {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.platforms article[data-os="pro-cuda"] .btn-line:hover,
.platforms article.platform-pro .btn-line:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

/* Quickstart vertical steps (Download & Onboarding) */
.quickstart-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.quickstart-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.quickstart-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.quickstart-step .step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.quickstart-step .step-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--navy-800);
  background: var(--bg-wash);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.quickstart-step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}

.quickstart-step p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--body);
  max-width: 52rem;
  line-height: 1.6;
}

.quickstart-step pre {
  margin: 6px 0 0;
  max-width: 52rem;
}

/* Q&A section */
.qa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 64px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.qa article {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.qa h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--ink);
}

.qa p {
  margin: 0;
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Badges & Phase Grids (Proof page) */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.2;
}

.badge-easy { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-med { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-hard { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-vhard { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-navy { background: rgba(10, 31, 61, 0.06); color: var(--navy-850); border: 1px solid rgba(10, 31, 61, 0.15); }
.badge-cyan { background: var(--electric-dim); color: var(--navy-900); border: 1px solid var(--electric-border); }

/* ==========================================================================
   Query Shape Code Styling
   ========================================================================== */

table.data code.query-shape {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--navy-800);
  background: var(--bg-wash);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}

table.data .arch-note {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ==========================================================================
   Interactive Forms (Contact)
   ========================================================================== */

.form {
  display: grid;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px;
}

.form .fields {
  display: grid;
  gap: 22px;
}

.form .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--ink);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--navy-850);
  box-shadow: 0 0 0 3px rgba(10, 31, 61, 0.1);
}

.form textarea {
  min-height: 130px;
  resize: vertical;
}

.form .ok {
  display: none;
  color: var(--gain);
  font-weight: 600;
  font-size: 1.12rem;
  margin-top: 14px;
}

.form.sent .ok {
  display: block;
}

.form.sent .fields {
  display: none;
}

/* ==========================================================================
   Closing CTA Band
   ========================================================================== */

.cta {
  background-color: var(--navy-900);
  background-image:
    radial-gradient(110% 90% at 50% 0%, #102a50 0%, var(--navy-950) 100%),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px;
  color: #ffffff;
  padding: 96px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.cta .wrap:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.cta .wrap > * {
  min-width: 0;
}

.cta h2 {
  color: #ffffff;
  margin: 0 0 16px;
  max-width: 100%;
}

.cta p {
  color: #cbd5e1;
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0;
  max-width: 36rem;
}

.cta a:not(.btn) {
  color: #7dd3fc;
}

.cta .btn-electric,
.cta .btn-white {
  background: var(--electric);
  color: var(--navy-950);
  border-color: var(--electric);
}

.cta .btn-outline-light,
.cta .btn-line {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta .btn-outline-light:hover,
.cta .btn-line:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.cta pre {
  background: rgba(4, 13, 26, 0.6);
  border-left: 3px solid var(--electric);
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-950);
  color: #94a3b8;
  padding: 72px 0 36px;
  font-size: 0.98rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.foot-top {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 36px;
  align-items: start;
  padding-bottom: 40px;
  margin-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.foot-summary {
  margin: 14px 0 0;
  max-width: 36rem;
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.6;
}

.foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
  max-width: 800px;
}

.foot-col-title {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.foot-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.foot-links li {
  margin: 0 0 10px;
}

.foot-links li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.foot-links li a:hover {
  color: #ffffff;
}

.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 0.92rem;
}

.legal a {
  color: #94a3b8;
  text-decoration: none;
}

.legal a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Motions & Animations (Intentional, presence & hierarchy)
   ========================================================================== */

/* Simple marketing layouts and the request / response example. */

.hero-simple {
  padding: clamp(64px, 8vw, 108px) 0;
  background-image: linear-gradient(120deg, var(--navy-850), var(--navy-950));
}

.hero-simple .hero-cta-group {
  margin-bottom: 0;
}

.hero-simple .hero-subtext {
  max-width: 48rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem !important;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-600) !important;
  margin-bottom: 18px !important;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.capability-grid article {
  padding-top: 24px;
  border-top: 2px solid var(--line);
}

.capability-grid h3 {
  margin-top: 12px;
}

.capability-grid p {
  color: var(--body);
  line-height: 1.65;
}

.text-link {
  display: inline-block;
  font-weight: 600;
  margin-top: 6px;
}

.request-response {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.example-panel {
  min-width: 0;
}

.example-label {
  margin-bottom: 18px;
}

.example-label h3 {
  margin: 10px 0 0;
}

.request-response pre {
  font-size: 0.85rem;
}

.response-summary {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 26px;
}

.response-summary dl {
  margin: 0;
}

.response-summary dt {
  margin-bottom: 6px;
}

.response-summary dd {
  margin: 0 0 20px;
  color: var(--body);
}

.response-summary dd:last-child {
  margin-bottom: 0;
}

.selected-comparisons {
  min-width: 760px;
}

table.selected-comparisons tbody th {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--line-subtle);
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.02rem;
  width: 38%;
}

.selected-comparisons thead .sub {
  text-transform: none;
  letter-spacing: normal;
  margin-top: 6px;
}

.selected-comparisons th:last-child {
  text-align: right;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .capability-grid,
  .request-response {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-simple {
    padding: 64px 0;
  }
}

/* Customer and enterprise evaluation pages. */
.customer-kicker {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-600);
  margin-bottom: 20px;
}

.customer-hero {
  padding: 72px 0 80px;
}

.customer-hero .customer-kicker {
  color: #7dd3fc;
}

.customer-hero h1 {
  max-width: 100%;
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
}

.customer-hero .hero-subtext {
  max-width: 48rem;
}

.benchmark-spotlight {
  padding: 56px 0;
  background: #f1f6fc;
  border-bottom: 1px solid var(--line-subtle);
}

.benchmark-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
}

.benchmark-message h2 {
  font-size: 1.65rem;
  margin-bottom: 16px;
}

.benchmark-gain {
  display: block;
  font-size: clamp(3.7rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 8px;
  color: var(--navy-850);
}

.benchmark-message > p:not(.customer-kicker) {
  color: var(--body);
  max-width: 28rem;
}

.benchmark-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.benchmark-times > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.benchmark-times span {
  font-size: 0.9rem;
  color: var(--muted);
}

.benchmark-times strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  line-height: 1.1;
  white-space: nowrap;
}

.benchmark-times small {
  font-size: 0.45em;
}

.benchmark-scope {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-top: 20px;
  color: var(--muted);
}

.customer-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.customer-cards article {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.customer-cards h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 14px;
}

.customer-cards p {
  color: var(--body);
  font-size: 1rem;
  line-height: 1.7;
}

.customer-cards .text-link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.95rem;
}

.section-link {
  margin-top: 32px;
}

.customer-story {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  align-items: start;
  gap: 72px;
}

.customer-callout {
  padding: 32px;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.customer-callout h3 {
  line-height: 1.3;
}

.customer-callout p,
.side > p {
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.7;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.resource-grid article {
  padding: 32px;
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
}

.resource-grid h2 {
  font-size: 1.6rem;
}

.resource-grid p {
  color: var(--body);
}

.resource-grid .text-link {
  display: block;
}

.customer-details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.customer-details summary {
  cursor: pointer;
  padding: 22px 0;
  font-weight: 600;
  color: var(--navy-850);
}

.customer-details summary:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 2px;
}

.customer-details[open] {
  padding-bottom: 24px;
}

.customer-details .table-scroll {
  margin-top: 24px;
}

.command-details {
  margin-top: 24px;
}

.install-details {
  margin-top: 32px;
  max-width: 48rem;
}

.install-details summary {
  font-size: 1rem;
}

.customer-footer .footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 64px;
  margin-bottom: 48px;
}

.customer-footer .foot-grid {
  max-width: 100%;
  margin-bottom: 0;
  gap: 24px;
}

.customer-footer .foot-summary {
  max-width: 18rem;
  font-size: 1rem;
}

.customer-footer .foot-col-title {
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
}

.site-header .header-login {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="pricing"] #editions {
  padding-top: 36px;
}

body[data-page="pricing"] .hero {
  padding-bottom: 24px;
}

.customer-faq {
  max-width: 52rem;
}

.customer-faq .customer-details {
  border-bottom: 0;
}

.customer-faq .customer-details:last-child {
  border-bottom: 1px solid var(--line);
}

@media (max-width: 1080px) {
  .customer-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-cards article {
    padding: 24px;
  }
}

@media (max-width: 860px) {
  .benchmark-layout,
  .customer-story,
  .resource-grid,
  .customer-footer .footer-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .customer-hero {
    padding: 56px 0 64px;
  }

  .customer-callout {
    padding: 24px;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

body[data-auth-state="guest"] .portal-hero {
  display: none;
}

body[data-auth-state="guest"] .portal-content {
  padding: 56px 0 72px;
  background: #f6f8fb;
}

body[data-auth-state="member"] .portal-content {
  padding-top: 32px;
}

.auth-heading {
  margin-bottom: 28px;
}

.auth-heading h1 {
  font-size: 1.9rem;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.auth-heading p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.auth-status {
  padding: 12px 14px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-wash);
  color: var(--body);
  font-size: 0.84rem;
  line-height: 1.6;
}

.auth-status.is-error {
  border-color: #fecaca;
  background: #fff7f7;
  color: #991b1b;
}

.auth-status[hidden],
.verify-banner[hidden],
.auth-back[hidden] {
  display: none;
}

.auth-submit:disabled {
  cursor: default;
  opacity: 0.55;
}

.field-optional {
  color: var(--muted);
  font-weight: 400;
}

.account-summary {
  max-width: 48rem;
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.mfa-enrollment {
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-wash);
  font-size: 0.9rem;
  line-height: 1.6;
}

.mfa-enrollment[hidden] {
  display: none;
}

.mfa-enrollment code {
  display: block;
  overflow-wrap: anywhere;
  margin: 8px 0 12px;
  background: #ffffff;
  padding: 10px;
}

.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.auth-form .auth-label-row label {
  margin-bottom: 0;
}

.auth-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--navy-600);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-underline-offset: 3px;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-password {
  position: relative;
}

.auth-password input {
  padding-right: 64px;
}

.auth-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  padding: 5px;
  background: transparent;
  color: var(--navy-600);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
}

.auth-submit {
  display: flex;
  width: 100%;
  min-height: 48px;
  white-space: normal;
  text-align: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.84rem;
  margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line-subtle);
  flex: 1;
}

.auth-extra {
  margin: 8px 0 24px;
}

.auth-extra summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-extra summary span {
  font-weight: 400;
}

.auth-extra[open] > .form-group:first-of-type {
  margin-top: 20px;
}

.auth-extra summary:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
}

.field-hint {
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 6px;
  color: var(--muted);
}

.auth-form .auth-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}

.auth-form .auth-checkbox input {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--navy-850);
}

.auth-terms {
  font-size: 0.8rem;
  line-height: 1.6;
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
}

.auth-back {
  display: block;
  margin: 20px auto 0;
}

.auth-preview-note,
.auth-contact {
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 26rem;
}

.auth-contact {
  margin-top: 12px;
}

.auth-checkout {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

.auth-checkout > p {
  color: var(--muted) !important;
  margin-top: 6px !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 1080px) {
  .mobile-header-tools {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }

  .header-login-mobile {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.45);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.15s ease;
  }

  .header-login-mobile:hover,
  .header-login-mobile[aria-current="page"] {
    background: rgba(0, 212, 255, 0.22);
    border-color: var(--electric);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: 0;
  }

  .site-header .nav-menu,
  .site-header .header-actions {
    display: none;
  }

  .site-header.open .bar {
    flex-wrap: wrap;
    padding-bottom: 20px;
  }

  .site-header.open .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 3;
    margin: 12px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-header.open .nav-link-portal-mobile {
    display: flex;
    color: var(--electric);
    font-weight: 700;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 6px;
    padding-top: 14px;
  }

  .site-header.open .nav-menu .nav-link {
    padding: 12px 14px;
    font-size: 1.05rem;
  }

  .site-header.open .header-actions {
    display: flex;
    width: 100%;
    order: 4;
    margin-top: 12px;
  }

  .site-header.open .header-actions .btn,
  .site-header.open .header-actions .link-quiet,
  .site-header.open .header-actions .header-login {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .editions-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .editions-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 860px) {
  .hero-flagship h1 {
    font-size: clamp(2.2rem, 6.8vw, 3.2rem);
    max-width: none;
  }

  .duel,
  .split,
  .cta .wrap,
  .qa,
  .form .two,
  .stats,
  .stats.four-col {
    grid-template-columns: 1fr;
  }

  .editions-3,
  .editions-4 {
    grid-template-columns: 1fr;
  }

  .foot-top {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lines article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .platforms {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .intro.row {
    display: block;
  }

  .intro.row .actions {
    margin-top: 24px;
  }

  section.block {
    padding: 68px 0;
  }

  .hero {
    padding: 56px 0 44px;
  }

  .cta {
    padding: 68px 0;
  }
}

@media (max-width: 560px) {
  html, body {
    font-size: 16px;
  }

  .site-header .bar {
    gap: 8px;
  }

  .site-header .brand {
    font-size: 1rem;
    gap: 6px;
  }

  .site-header .brand-bolt {
    width: 24px;
    height: 24px;
  }

  .mobile-header-tools {
    gap: 6px;
  }

  .header-login-mobile,
  .nav-toggle {
    padding: 7px 8px;
    font-size: 0.8rem;
  }

  .cadence-toggle-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .cadence-pills {
    flex-wrap: wrap;
  }

  .portal-auth-card {
    padding: 24px 18px;
  }

  .auth-tab {
    padding: 10px;
    font-size: 0.9rem;
  }

  .actions .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero-brand-anchor {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-brand-kicker {
    border-left: 0;
    padding-left: 0;
    width: 100%;
  }

  .hero-num {
    font-size: 4rem;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }

  .form {
    padding: 24px 18px;
  }

  .hero-flagship .hero-cta-group {
    flex-direction: column;
  }

  .hero-flagship .hero-cta-group .btn {
    width: 100%;
  }

  .steps li {
    padding-left: 2.75rem;
  }

  .steps li::before {
    font-size: 1.4rem;
    top: 32px;
  }
}
.auth-challenge { margin: 0 0 18px; min-width: 0; max-width: 100%; }
.account-security { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.account-security h3 { margin-bottom: 12px; }
.account-security .auth-form { margin-top: 20px; max-width: 420px; }
.account-security [hidden] { display: none !important; }
.recovery-codes-panel { margin-top: 24px; padding: 24px; background: var(--bg-soft, #f5f7fb); border-radius: 12px; }
.recovery-codes-panel ol { padding-left: 22px; font: 0.8rem/2.1 'JetBrains Mono', monospace; overflow-wrap: anywhere; }
.customer-footer .legal > span { color: #94a3b8; }
