/* =========================================================
   HEIMILISBÓKHALD — Premium dark redesign
   3 theme variations toggled via [data-theme]
   ========================================================= */

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

:root {
  /* Base tokens — Obsidian (default) */
  --bg: #08080a;
  --bg-2: #0d0d10;
  --bg-3: #131317;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.04);
  --surface-hi: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.1);
  --line-3: rgba(255, 255, 255, 0.16);

  --text: #f4f1ea;
  --text-2: #b8b3a7;
  --text-3: #6e6a62;
  --text-4: #3e3c38;

  --accent: #d9b26a;         /* warm gold */
  --accent-2: #f0d9a8;
  --accent-soft: rgba(217, 178, 106, 0.15);
  --accent-line: rgba(217, 178, 106, 0.35);

  --danger: #c57f73;
  --good: #7aab86;

  --font-sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --max: 1360px;
  --pad: clamp(20px, 4vw, 56px);

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --radius-xl: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ----- AURORA theme ----- */
[data-theme="aurora"] {
  --bg: #06080c;
  --bg-2: #090c12;
  --bg-3: #0e131a;
  --accent: #9effc9;         /* aurora green */
  --accent-2: #c6fff0;
  --accent-soft: rgba(158, 255, 201, 0.12);
  --accent-line: rgba(158, 255, 201, 0.32);
  --text: #eaf5f0;
  --text-2: #a5b6ad;
}

/* ----- MARBLE theme (warm dark, gold-forward) ----- */
[data-theme="marble"] {
  --bg: #120d08;
  --bg-2: #17110a;
  --bg-3: #1e160d;
  --surface: rgba(255, 240, 210, 0.03);
  --surface-2: rgba(255, 240, 210, 0.05);
  --surface-hi: rgba(255, 240, 210, 0.08);
  --line: rgba(255, 230, 190, 0.08);
  --line-2: rgba(255, 230, 190, 0.12);
  --line-3: rgba(255, 230, 190, 0.2);
  --text: #f8ecd4;
  --text-2: #c2b191;
  --text-3: #7a6b52;
  --accent: #e8c585;
  --accent-2: #f7e2b2;
  --accent-soft: rgba(232, 197, 133, 0.14);
  --accent-line: rgba(232, 197, 133, 0.4);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background: var(--bg); }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(255,255,255,0.02), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}

/* Subtle basalt grain texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--bg); }

/* =========================================================
   TYPOGRAPHY PRIMITIVES
   ========================================================= */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent-line);
}
.eyebrow.no-rule::before { display: none; }

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.display em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 80;
}

.lede {
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 58ch;
}

.num {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  letter-spacing: -0.04em;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.4s var(--ease);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: padding 0.4s var(--ease);
}
.nav.scrolled .nav-inner {
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav.scrolled::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(8, 8, 10, 0.7);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid var(--line);
  z-index: -1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-2), var(--accent) 50%, #6d5832 100%);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 4px 12px var(--accent-soft);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  padding: 10px 16px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-login { font-size: 13px; color: var(--text-2); padding: 10px 14px; }
.nav-login:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  position: relative;
  isolation: isolate;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-3);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--accent-line);
  color: var(--accent);
}
.btn-lg { padding: 15px 28px; font-size: 14px; }
.btn-arrow {
  width: 16px; height: 16px;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.nav-mobile { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(140px, 18vh, 200px) var(--pad) clamp(80px, 10vh, 120px);
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
}

/* Basalt column motif */
.hero-basalt {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse at 70% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, black 20%, transparent 70%);
}
.hero-basalt svg { width: 100%; height: 100%; }

.hero-glow {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-left { max-width: 900px; }
.hero-title { text-align: center; }
.hero-lede { margin-left: auto; margin-right: auto; text-align: center; }
.hero-cta { justify-content: center; }
.hero-meta { margin-left: auto; margin-right: auto; }

.hero-marker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 12px;
  color: var(--text-2);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}
.hero-marker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50% { box-shadow: 0 0 0 7px transparent; }
}

.hero-title {
  font-size: clamp(52px, 9vw, 128px);
  margin: 0 0 40px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > span {
  display: block;
  transform: translateY(100%);
  opacity: 0;
  animation: lineUp 1.1s var(--ease) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.1s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.2s; }

@keyframes lineUp {
  to { transform: translateY(0); opacity: 1; }
}

.hero-lede {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--text-2);
  max-width: 50ch;
  margin-bottom: 48px;
  line-height: 1.55;
  opacity: 0;
  animation: fadeIn 0.9s 0.45s var(--ease) forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 0.9s 0.6s var(--ease) forwards;
}

.hero-meta {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 720px;
  opacity: 0;
  animation: fadeIn 0.9s 0.75s var(--ease) forwards;
}
.hero-meta-item {
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.hero-meta-item .eyebrow { margin-bottom: 10px; }
.hero-meta-item .eyebrow::before { display: none; }
.hero-meta-item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.3;
}

/* ---- Hero right: product glass ---- */
.hero-right {
  position: relative;
  margin-top: 60px;
}

.hero-product {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 0 0 1px var(--line-2),
    0 40px 80px -20px rgba(0,0,0,0.6),
    0 20px 40px -10px var(--accent-soft);
  backdrop-filter: blur(30px);
  transform: perspective(1800px) rotateX(2deg) rotateY(-3deg);
  transition: transform 0.6s var(--ease);
}
.hero-product:hover { transform: perspective(1800px) rotateX(0) rotateY(0); }

.hero-product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.hero-product-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
}
.hero-product-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-product-kpi {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2px;
  background: var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-bottom: 24px;
}
.hero-product-kpi-cell {
  padding: 20px;
  background: var(--bg-2);
}
.hero-product-kpi-cell .eyebrow { margin-bottom: 10px; font-size: 10px; }
.hero-product-kpi-cell .eyebrow::before { display: none; }
.hero-product-kpi-cell .num {
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--text);
  display: block;
}
.hero-product-kpi-cell.primary .num { color: var(--accent); }
.hero-product-kpi-delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--good);
  margin-top: 6px;
  display: inline-block;
}

.hero-product-chart {
  position: relative;
  height: 200px;
  border-radius: var(--radius-m);
  background:
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  padding: 20px 20px 32px;
  overflow: hidden;
}
.hero-product-chart-grid {
  position: absolute;
  inset: 20px 20px 32px 20px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 100% 25%;
  opacity: 0.6;
}
.hero-product-chart svg {
  position: absolute;
  inset: 20px 20px 32px 20px;
  width: calc(100% - 40px);
  height: calc(100% - 52px);
  overflow: visible;
}
.hero-product-chart-axis {
  position: absolute;
  bottom: 10px;
  left: 20px; right: 20px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.1em;
}
.chart-line { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-line.primary { stroke: var(--accent); filter: drop-shadow(0 0 8px var(--accent-soft)); stroke-width: 2; }
.chart-line.secondary { stroke: var(--text-2); opacity: 0.6; stroke-dasharray: 3 3; }
.chart-area { fill: url(#chart-grad); opacity: 0.7; }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, transparent, var(--text-3), transparent);
  opacity: 0;
  animation: fadeIn 1s 1.2s var(--ease) forwards, scrollLine 2.2s 1.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-50%) scaleY(0); transform-origin: top; }
  50% { transform: translateX(-50%) scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: translateX(-50%) scaleY(0); transform-origin: bottom; }
}

/* =========================================================
   SECTION COMMON
   ========================================================= */
.section {
  position: relative;
  padding: clamp(80px, 12vh, 140px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.section-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}
.section-header-stack { grid-template-columns: 1fr; }
.section-title {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: 20px;
}

/* Divider — horizon line */
.horizon {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-3) 20%, var(--line-3) 80%, transparent);
  margin: 0 var(--pad);
}
.horizon::before,
.horizon::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}
.horizon::before { left: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 12px var(--accent); }

/* =========================================================
   MANIFESTO — large text editorial section
   ========================================================= */
.manifesto {
  padding: clamp(100px, 15vh, 180px) var(--pad);
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
.manifesto-body {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-2);
}
.manifesto-body .hl {
  color: var(--text);
}
.manifesto-body em {
  color: var(--accent);
  font-style: italic;
}
.manifesto-body .word {
  display: inline-block;
  opacity: 0.15;
  transition: opacity 0.6s var(--ease), color 0.6s var(--ease);
}
.manifesto-body .word.in { opacity: 1; }

/* =========================================================
   FEATURES — Asymmetric editorial grid
   ========================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.feature {
  position: relative;
  padding: 36px;
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: all 0.5s var(--ease);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.feature:hover::before { opacity: 1; }
.feature:hover {
  box-shadow: inset 0 0 0 1px var(--line-3);
  transform: translateY(-2px);
}
.feature-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}
.feature-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text);
}
.feature-title em { font-style: italic; color: var(--accent); }
.feature-desc {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: auto;
}
.feature-visual {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.feature.wide { grid-column: span 7; }
.feature.narrow { grid-column: span 5; }
.feature.third { grid-column: span 4; }
.feature.full { grid-column: span 12; }

/* Feature visualizations */
.fviz-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}
.fviz-bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), transparent);
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}
.feature:hover .fviz-bars span { opacity: 1; }

.fviz-ring {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 32%, var(--text-2) 32% 56%, var(--text-3) 56% 74%, var(--line-3) 74% 100%);
  position: relative;
  margin: 0 auto;
  mask: radial-gradient(circle, transparent 42%, black 43%);
  -webkit-mask: radial-gradient(circle, transparent 42%, black 43%);
}

.fviz-list { display: flex; flex-direction: column; gap: 10px; }
.fviz-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 13px;
}
.fviz-list-item span:first-child { color: var(--text-2); }
.fviz-list-item .num { font-size: 14px; color: var(--text); }
.fviz-list-item.hl { box-shadow: inset 0 0 0 1px var(--accent-line); }
.fviz-list-item.hl .num { color: var(--accent); }

/* =========================================================
   PRODUCT — Large app showcase
   ========================================================= */
.product {
  position: relative;
  padding: clamp(80px, 10vh, 120px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.product-stage {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3vw, 40px);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 0 0 1px var(--line-2),
    0 60px 120px -30px rgba(0,0,0,0.8);
  overflow: hidden;
}
.product-stage::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--accent-line), transparent 30%, transparent 70%, var(--accent-line));
  border-radius: inherit;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

.product-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.product-chrome-dots { display: flex; gap: 6px; }
.product-chrome-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line-3);
}
.product-chrome-url {
  flex: 1;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  background: var(--bg);
  border-radius: 999px;
  text-align: center;
}

.product-app {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  min-height: 560px;
}

.product-side {
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-m);
  box-shadow: inset 0 0 0 1px var(--line);
}
.product-side-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-3);
  padding: 8px 12px;
  margin-top: 16px;
}
.product-side-label:first-child { margin-top: 0; }

.product-side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.product-side-item:hover { background: var(--surface-2); color: var(--text); }
.product-side-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.product-side-item svg { width: 15px; height: 15px; flex-shrink: 0; }

.product-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.product-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.product-head p {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}
.product-head-switch {
  display: flex;
  background: var(--bg);
  border-radius: 999px;
  padding: 3px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.product-head-switch button {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 999px;
  color: var(--text-3);
  transition: all 0.25s var(--ease);
}
.product-head-switch button.active {
  background: var(--text);
  color: var(--bg);
}

.product-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.product-kpi {
  padding: 18px 20px;
  background: var(--surface);
  border-radius: var(--radius-m);
  box-shadow: inset 0 0 0 1px var(--line);
}
.product-kpi .eyebrow { font-size: 10px; margin-bottom: 10px; }
.product-kpi .eyebrow::before { display: none; }
.product-kpi .num { font-size: 26px; color: var(--text); }
.product-kpi.hl .num { color: var(--accent); }
.product-kpi-delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--good);
  margin-top: 6px;
  display: inline-block;
}
.product-kpi-delta.neg { color: var(--danger); }

.product-panels {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

.product-panel {
  padding: 22px;
  background: var(--surface);
  border-radius: var(--radius-m);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
}
.product-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.product-panel-head h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.015em;
}
.product-panel-head span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.product-chart {
  position: relative;
  flex: 1;
  min-height: 220px;
}
.product-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.product-chart-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}
.product-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-chart-legend span::before {
  content: "";
  width: 10px; height: 2px;
  background: currentColor;
}
.product-chart-legend .a { color: var(--accent); }
.product-chart-legend .b { color: var(--text-2); }

.product-cat {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-cat-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.product-cat-row > span:first-child { color: var(--text-2); }
.product-cat-row .num { color: var(--text); font-size: 13px; }
.product-cat-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.product-cat-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 1.2s var(--ease);
}
.product-cat-row.over .product-cat-bar-fill { background: var(--danger); }
.product-cat-row.warn .product-cat-bar-fill { background: #d49f6d; }

/* =========================================================
   PROCESS / HOW IT WORKS
   ========================================================= */
.process-list {
  display: flex;
  flex-direction: column;
}
.process-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--line-2);
  transition: all 0.4s var(--ease);
  position: relative;
}
.process-row:last-child { border-bottom: 1px solid var(--line-2); }
.process-row::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.process-row:hover::before,
.process-row.in-view::before { transform: scaleX(1); }
.process-row:hover {
  padding-left: 20px;
}
.process-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.1em;
}
.process-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.process-title em { font-style: italic; color: var(--accent); }
.process-copy {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}
.process-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-align: right;
}

/* =========================================================
   TESTIMONIAL / QUOTE
   ========================================================= */
.quote {
  padding: clamp(100px, 15vh, 160px) var(--pad);
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--accent);
  line-height: 0.5;
  margin-bottom: 40px;
  font-style: italic;
}
.quote-body {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 40px;
}
.quote-author {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* =========================================================
   CTA / CLOSING
   ========================================================= */
.cta {
  position: relative;
  padding: clamp(100px, 15vh, 180px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  filter: blur(80px);
  z-index: -1;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.cta-title em { font-style: italic; color: var(--accent); }
.cta-lede {
  margin: 40px auto 56px;
  max-width: 50ch;
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--text-2);
}
.cta-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 999px;
  padding: 6px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.3s var(--ease);
}
.cta-form:focus-within { box-shadow: inset 0 0 0 1px var(--accent-line); }
.cta-form input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 12px 20px;
}
.cta-form input::placeholder { color: var(--text-3); }
.cta-form button {
  padding: 12px 22px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}
.cta-form button:hover { background: var(--accent); }

.cta-trust {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.cta-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-trust span::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px var(--pad) 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand-block { max-width: 340px; }
.footer-brand-block p {
  margin-top: 20px;
  color: var(--text-3);
  font-size: 14px;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-3);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--text-2);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.4s; }

/* =========================================================
   TWEAKS PANEL
   ========================================================= */
.tweaks {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  width: 320px;
  background: rgba(8, 8, 10, 0.88);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-radius: var(--radius-l);
  box-shadow:
    inset 0 0 0 1px var(--line-3),
    0 30px 60px -10px rgba(0,0,0,0.6);
  padding: 22px;
  display: none;
  font-family: var(--font-sans);
  color: var(--text);
}
.tweaks.active { display: block; animation: tweakIn 0.35s var(--ease); }
@keyframes tweakIn { from { opacity: 0; transform: translateY(10px); } }

.tweaks h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.tweaks > p {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 18px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.tweaks-section { margin-bottom: 16px; }
.tweaks-section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.tweaks-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.tweaks-opt {
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tweaks-opt:hover { color: var(--text); background: var(--surface-2); }
.tweaks-opt.active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.tweaks-swatches {
  display: flex;
  gap: 8px;
}
.tweaks-swatch {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.25s var(--ease);
}
.tweaks-swatch:hover { transform: translateY(-2px); }
.tweaks-swatch.active::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px var(--bg);
}

/* =========================================================
   SUBPAGE LAYOUT (Trust, Privacy, Beta terms, Support, Contact)
   ========================================================= */
.subpage-hero {
  position: relative;
  padding: clamp(140px, 22vh, 220px) var(--pad) clamp(60px, 8vh, 100px);
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
}
.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 400px at 85% 10%, var(--accent-soft), transparent 60%);
}
.subpage-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
.subpage-hero-left { max-width: 640px; }
.subpage-hero-title {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 28px 0 0;
}
.subpage-hero-lede {
  color: var(--text-2);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  max-width: 52ch;
}
.subpage-meta-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 12px;
}
.subpage-meta-list li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
}
.subpage-meta-list li strong {
  color: var(--text);
  font-weight: 500;
}

/* Content layout with sticky TOC */
.subpage-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) var(--pad);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 1px solid var(--accent-line);
}
.toc a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-2);
  border-radius: 8px;
  transition: all 0.25s var(--ease);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.toc a:hover { color: var(--text); background: var(--surface); }
.toc a.active {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.prose { max-width: 70ch; }
.prose .sect { padding-bottom: 64px; scroll-margin-top: 100px; }
.prose .sect + .sect { border-top: 1px solid var(--line-2); padding-top: 56px; }

.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  color: var(--text);
}
.prose h2 em { font-style: italic; color: var(--accent); }
.prose .sect-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
  display: block;
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 32px 0 8px;
  color: var(--text);
}
.prose p, .prose li {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.prose p + p { margin-top: -4px; }
.prose strong { color: var(--text); font-weight: 500; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 22px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 10px; height: 1px;
  background: var(--accent);
}

.callout {
  margin: 24px 0;
  padding: 22px 24px;
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  border-left: 2px solid var(--accent);
}
.callout .eyebrow { margin-bottom: 8px; }
.callout strong { display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.015em; }
.callout p { margin: 0; font-size: 15px; }

/* Trust cards grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.trust-card {
  padding: 28px;
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: all 0.4s var(--ease);
}
.trust-card:hover {
  box-shadow: inset 0 0 0 1px var(--accent-line);
  transform: translateY(-2px);
}
.trust-card-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.trust-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--text);
}
.trust-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* FAQ accordion */
.faq { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--line-2);
  transition: all 0.3s var(--ease);
}
.faq-item:last-child { border-bottom: 1px solid var(--line-2); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.015em;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
}
.faq-q .plus {
  width: 20px; height: 20px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s var(--ease);
}
.faq-q .plus::before,
.faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--text-2);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-q .plus::before { width: 12px; height: 1px; }
.faq-q .plus::after { width: 1px; height: 12px; transition: transform 0.3s var(--ease); }
.faq-item.open .faq-q .plus { color: var(--accent); }
.faq-item.open .faq-q .plus::before,
.faq-item.open .faq-q .plus::after { background: var(--accent); }
.faq-item.open .faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner {
  padding: 0 0 28px 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 62ch;
}

/* Contact card */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 20px;
}
.contact-form {
  padding: 36px;
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-field { display: flex; flex-direction: column; gap: 8px; }
.contact-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}
.contact-field input,
.contact-field textarea,
.contact-field select {
  background: var(--bg);
  color: var(--text);
  border: none;
  outline: none;
  padding: 14px 16px;
  border-radius: var(--radius-m);
  font-family: inherit;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.25s var(--ease);
}
.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus { box-shadow: inset 0 0 0 1px var(--accent-line); }
.contact-field textarea { min-height: 140px; resize: vertical; }
.contact-form .btn { align-self: flex-start; margin-top: 8px; }
.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  padding: 24px;
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: all 0.3s var(--ease);
}
.contact-item:hover { box-shadow: inset 0 0 0 1px var(--accent-line); }
.contact-item .eyebrow { margin-bottom: 8px; }
.contact-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
  color: var(--text);
}
.contact-item a { color: var(--accent); font-size: 14px; }
.contact-item p { color: var(--text-3); font-size: 13px; margin: 6px 0 0; font-family: var(--font-mono); letter-spacing: 0.05em; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { margin-top: 40px; }
  .section-header { grid-template-columns: 1fr; gap: 24px; }
  .feature.wide, .feature.narrow, .feature.third { grid-column: span 12; }
  .product-app { grid-template-columns: 1fr; }
  .product-side { display: none; }
  .product-panels { grid-template-columns: 1fr; }
  .product-kpis { grid-template-columns: repeat(2, 1fr); }
  .process-row { grid-template-columns: 60px 1fr; gap: 20px; }
  .process-row > :nth-child(3),
  .process-row > :nth-child(4) { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links, .nav-login { display: none; }
  .hero { padding-top: 110px; }
  .hero-meta { grid-template-columns: 1fr; gap: 14px; }
  .hero-product-kpi { grid-template-columns: 1fr; }
  .product-kpis { grid-template-columns: 1fr 1fr; }
  .cta-trust { gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .tweaks { width: calc(100% - 40px); bottom: 10px; right: 10px; }
}

@media (max-width: 900px) {
  .subpage-hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .subpage-content { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: relative; top: 0; flex-direction: row; flex-wrap: wrap; }
  .trust-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
}

/* =========================================================
   LOGIN / AUTH
   ========================================================= */
.auth-page {
  background: #060608;
}
.auth-page .nav.scrolled::before {
  background: rgba(7, 7, 9, 0.96);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.auth-page .nav-inner {
  max-width: none;
  padding: 18px 28px;
}
.auth-page .brand {
  gap: 12px;
  font-size: 18px;
}
.auth-page .brand-mark {
  width: 30px;
  height: 30px;
}
.auth-page .nav-links a,
.auth-page .nav-login {
  font-size: 12px;
  padding: 8px 10px;
}
.auth {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  position: relative;
  padding-top: 67px;
  overflow: hidden;
}
.auth-left {
  position: relative;
  padding: 34px 34px 18px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17,17,19,0.96), rgba(7,7,9,0.98)),
    linear-gradient(135deg, rgba(217,178,106,0.05), transparent 38%);
  border-right: 1px solid rgba(255,255,255,0.06);
}
.auth-left::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 30% 20%, var(--accent-soft), transparent 60%),
    radial-gradient(500px 400px at 80% 90%, rgba(255,255,255,0.02), transparent 60%);
}
.auth-basalt {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}
.auth-left-top, .auth-left-bottom, .auth-left-mid { position: relative; z-index: 1; }
.auth-left-mid {
  max-width: 560px;
  margin: 14px 0 auto 26px;
}
.auth-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(52px, 5.4vw, 74px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
  color: var(--text);
  max-width: 9ch;
}
.auth-headline em { font-style: italic; color: var(--accent); }
.auth-sub {
  color: rgba(244,241,234,0.72);
  font-size: 15px;
  line-height: 1.55;
  max-width: 36ch;
  margin-bottom: 28px;
}
.auth-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 520px;
}
.auth-stat {
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.auth-stat .eyebrow { margin-bottom: 6px; }
.auth-stat .eyebrow::before { display: none; }
.auth-stat strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.auth-left-bottom {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.42);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0 26px 0 26px;
}

.auth-right {
  padding: 36px 44px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  position: relative;
  background: #060608;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  margin-top: 0;
  justify-content: flex-start;
}
.auth-back {
  position: absolute;
  top: 32px; right: 32px;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: all 0.25s var(--ease);
}
.auth-back:hover { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }

.auth-tabs {
  display: flex;
  padding: 4px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  margin-bottom: 32px;
}
.auth-tab {
  flex: 1;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-3);
  transition: all 0.3s var(--ease);
  font-family: var(--font-sans);
}
.auth-tab.active {
  background: var(--text);
  color: var(--bg);
}

.auth-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 3vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 10px;
}
.auth-title em { font-style: italic; color: var(--accent); }
.auth-lede {
  color: rgba(244,241,234,0.4);
  font-size: 13px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  line-height: 1.65;
  max-width: 34ch;
}

.auth-sso {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.auth-sso-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  font-size: 14px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  margin-top: 6px;
}
.auth-sso-btn:hover {
  box-shadow: inset 0 0 0 1px var(--accent-line);
  background: rgba(255,255,255,0.04);
}
.auth-sso-btn strong { font-weight: 500; }
.auth-sso-btn .chip {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  color: var(--accent);
  background: rgba(217,178,106,0.12);
  border-radius: 999px;
  text-transform: uppercase;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-2);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.42);
}
.auth-field input {
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border: none;
  outline: none;
  padding: 13px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  transition: box-shadow 0.25s var(--ease);
}
.auth-field input:focus { box-shadow: inset 0 0 0 1px var(--accent-line); }
.auth-field input::placeholder { color: rgba(244,241,234,0.16); }

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-top: -2px;
  margin-bottom: 8px;
}
.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(244,241,234,0.68);
  cursor: pointer;
}
.auth-remember input {
  appearance: none;
  width: 17px; height: 17px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(217,178,106,0.9);
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-remember input:checked {
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(217,178,106,0.9);
}
.auth-remember input:checked::after {
  content: "";
  position: absolute;
  top: 2px; left: 5px;
  width: 4px; height: 8px;
  border: solid var(--bg);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.auth-link {
  color: rgba(244,241,234,0.52);
  font-size: 12px;
  transition: color 0.2s;
}
.auth-link:hover { color: var(--accent); }

.auth-submit {
  margin-top: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  background: #efe9df;
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s var(--ease);
}
.auth-submit:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.auth-submit .btn-arrow { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.auth-submit:hover .btn-arrow { transform: translateX(4px); }

.auth-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 12px;
  color: rgba(244,241,234,0.42);
}
.auth-footer a { color: var(--accent); }

.auth-story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.auth-link-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.auth-story-card,
.auth-link-card {
  min-height: auto;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.025));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.auth-left .feature:hover {
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.09);
}
.auth-story-card {
  padding: 18px 18px 16px;
  border-radius: 22px;
  min-height: 222px;
  grid-column: span 1;
}
.auth-story-title {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.15;
}
.auth-story-copy {
  font-size: 13px;
  line-height: 1.55;
}
.auth-link-card {
  padding: 14px 16px;
  border-radius: 18px;
  min-height: 82px;
  grid-column: span 1;
}
.auth-link-kicker {
  margin-bottom: 6px;
}
.auth-link-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.015em;
  color: var(--text);
  display: block;
  line-height: 1.2;
}
.auth-callout {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  border-left: 2px solid var(--accent);
}
.auth-callout p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}
.auth-callout strong {
  display: inline;
  color: var(--accent);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 56px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Login KPI mini preview on left */
.auth-preview {
  margin-top: 48px;
  padding: 24px;
  border-radius: var(--radius-l);
  background: rgba(255,255,255,0.025);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 0 0 1px var(--line-2);
  max-width: 520px;
  backdrop-filter: blur(12px);
}
.auth-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.auth-preview-head span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.auth-preview-head .hero-product-chip { font-size: 10px; padding: 3px 8px; }
.auth-preview-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.auth-preview-kpi-item .eyebrow { font-size: 10px; margin-bottom: 6px; }
.auth-preview-kpi-item .eyebrow::before { display: none; }
.auth-preview-kpi-item strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  display: block;
}
.auth-preview-kpi-item.primary strong { color: var(--accent); }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-page .nav-inner { padding: 16px 18px; }
  .auth-left { min-height: auto; padding: 88px 20px 24px; border-right: none; border-bottom: 1px solid var(--line); }
  .auth-right { padding: 28px 20px 24px; }
  .auth-left-mid { margin: 10px 0 0; max-width: none; }
  .auth-story-grid { grid-template-columns: 1fr; }
  .auth-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-card { min-height: auto; }
  .auth-stats { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .auth-preview { display: none; }
  .auth-back { top: 20px; right: 20px; }
}

/* =========================================================
   SUBPAGE LAYOUT (Trust, Privacy, Beta terms, Support, Contact)
   ========================================================= */
.subpage-hero {
  position: relative;
  padding: clamp(140px, 22vh, 220px) var(--pad) clamp(60px, 8vh, 100px);
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
}
.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 400px at 85% 10%, var(--accent-soft), transparent 60%);
}
.subpage-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
.subpage-hero-left { max-width: 640px; }
.subpage-hero-title {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 28px 0 0;
}
.subpage-hero-lede {
  color: var(--text-2);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  max-width: 52ch;
}
.subpage-meta-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 12px;
}
.subpage-meta-list li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
}
.subpage-meta-list li strong {
  color: var(--text);
  font-weight: 500;
}

/* Content layout with sticky TOC */
.subpage-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) var(--pad);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 1px solid var(--accent-line);
}
.toc a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-2);
  border-radius: 8px;
  transition: all 0.25s var(--ease);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.toc a:hover { color: var(--text); background: var(--surface); }
.toc a.active {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.prose { max-width: 70ch; }
.prose .sect { padding-bottom: 64px; scroll-margin-top: 100px; }
.prose .sect + .sect { border-top: 1px solid var(--line-2); padding-top: 56px; }

.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  color: var(--text);
}
.prose h2 em { font-style: italic; color: var(--accent); }
.prose .sect-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
  display: block;
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 32px 0 8px;
  color: var(--text);
}
.prose p, .prose li {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.prose p + p { margin-top: -4px; }
.prose strong { color: var(--text); font-weight: 500; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 22px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 10px; height: 1px;
  background: var(--accent);
}

.callout {
  margin: 24px 0;
  padding: 22px 24px;
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  border-left: 2px solid var(--accent);
}
.callout .eyebrow { margin-bottom: 8px; }
.callout strong { display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.015em; }
.callout p { margin: 0; font-size: 15px; }

/* Trust cards grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.trust-card {
  padding: 28px;
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: all 0.4s var(--ease);
}
.trust-card:hover {
  box-shadow: inset 0 0 0 1px var(--accent-line);
  transform: translateY(-2px);
}
.trust-card-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.trust-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--text);
}
.trust-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* FAQ accordion */
.faq { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--line-2);
  transition: all 0.3s var(--ease);
}
.faq-item:last-child { border-bottom: 1px solid var(--line-2); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.015em;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
}
.faq-q .plus {
  width: 20px; height: 20px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s var(--ease);
}
.faq-q .plus::before,
.faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--text-2);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-q .plus::before { width: 12px; height: 1px; }
.faq-q .plus::after { width: 1px; height: 12px; transition: transform 0.3s var(--ease); }
.faq-item.open .faq-q .plus { color: var(--accent); }
.faq-item.open .faq-q .plus::before,
.faq-item.open .faq-q .plus::after { background: var(--accent); }
.faq-item.open .faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner {
  padding: 0 0 28px 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 62ch;
}

/* Contact card */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 20px;
}
.contact-form {
  padding: 36px;
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-field { display: flex; flex-direction: column; gap: 8px; }
.contact-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}
.contact-field input,
.contact-field textarea,
.contact-field select {
  background: var(--bg);
  color: var(--text);
  border: none;
  outline: none;
  padding: 14px 16px;
  border-radius: var(--radius-m);
  font-family: inherit;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.25s var(--ease);
}
.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus { box-shadow: inset 0 0 0 1px var(--accent-line); }
.contact-field textarea { min-height: 140px; resize: vertical; }
.contact-form .btn { align-self: flex-start; margin-top: 8px; }
.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  padding: 24px;
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: all 0.3s var(--ease);
}
.contact-item:hover { box-shadow: inset 0 0 0 1px var(--accent-line); }
.contact-item .eyebrow { margin-bottom: 8px; }
.contact-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
  color: var(--text);
}
.contact-item a { color: var(--accent); font-size: 14px; }
.contact-item p { color: var(--text-3); font-size: 13px; margin: 6px 0 0; font-family: var(--font-mono); letter-spacing: 0.05em; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { margin-top: 40px; }
  .section-header { grid-template-columns: 1fr; gap: 24px; }
  .feature.wide, .feature.narrow, .feature.third { grid-column: span 12; }
  .product-app { grid-template-columns: 1fr; }
  .product-side { display: none; }
  .product-panels { grid-template-columns: 1fr; }
  .product-kpis { grid-template-columns: repeat(2, 1fr); }
  .process-row { grid-template-columns: 60px 1fr; gap: 20px; }
  .process-row > :nth-child(3),
  .process-row > :nth-child(4) { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links, .nav-login { display: none; }
  .hero { padding-top: 110px; }
  .hero-meta { grid-template-columns: 1fr; gap: 14px; }
  .hero-product-kpi { grid-template-columns: 1fr; }
  .product-kpis { grid-template-columns: 1fr 1fr; }
  .cta-trust { gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .tweaks { width: calc(100% - 40px); bottom: 10px; right: 10px; }
}

@media (max-width: 900px) {
  .subpage-hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .subpage-content { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: relative; top: 0; flex-direction: row; flex-wrap: wrap; }
  .trust-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
