/* VelocityLift website — hand-written, no build step.
   Palette matches the app icon (tools/generate_store_icons.py):
   emerald #10B981 on dark #0F1115, white #F8FAFC. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --card: #f1f4f7;
  --fg: #0f1115;
  --muted: #5b6672;
  --accent: #047857;
  --accent-strong: #065f46;
  --accent-bright: #10b981;
  --accent-soft: #e6f7f1;
  --border: #e4e9ed;
  --shadow: 0 18px 40px -18px rgb(15 17 21 / 0.18);
  --max-width: 1060px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-soft: #131920;
    --card: #1a212a;
    --fg: #f8fafc;
    --muted: #97a3b0;
    --accent: #34d399;
    --accent-strong: #6ee7b7;
    --accent-bright: #10b981;
    --accent-soft: #12261f;
    --border: #26303b;
    --shadow: 0 22px 50px -20px rgb(0 0 0 / 0.55);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  overflow-x: hidden;
  max-width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-bright); color: #0f1115; }

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

h1, h2, h3 { line-height: 1.18; margin: 0 0 0.5em; letter-spacing: -0.018em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.08rem; }

p { margin: 0 0 1em; }
a { color: var(--accent); }
.grad {
  background: linear-gradient(92deg, var(--accent), var(--accent-bright));
  -webkit-background-clip: text; background-clip: text;
  color: var(--accent); /* fallback when background-clip: text is unsupported */
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .grad { color: transparent; }
}

.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 60px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px;
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.06rem; color: var(--fg); text-decoration: none;
}
.wordmark svg { display: block; border-radius: 7px; box-shadow: 0 2px 8px rgb(16 185 129 / 0.25); }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 0.94rem;
  padding: 7px 11px; border-radius: 8px;
}
.site-nav a:hover { color: var(--fg); background: var(--card); }
.site-nav .nav-cta {
  color: #0f1115; background: var(--accent-bright); font-weight: 700;
  box-shadow: 0 4px 14px -4px rgb(16 185 129 / 0.5);
}
.site-nav .nav-cta:hover { background: var(--accent); color: #0f1115; }

/* Sections */

section { padding: 68px 0; }
section + section { border-top: 1px solid var(--border); }
.section-soft { background: var(--bg-soft); }
.kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--accent); margin-bottom: 10px;
}

/* Hero */

.hero { position: relative; padding: 76px 0 72px; border-top: none; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 130%;
  background: radial-gradient(46% 52% at 72% 38%, rgb(16 185 129 / 0.13), transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { font-size: 1.13rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; padding: 0; list-style: none; }
.chips li {
  font-size: 0.88rem; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: 6px 13px; border-radius: 999px;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 11px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
}
.btn-primary {
  background: var(--accent-bright); color: #0f1115;
  box-shadow: 0 10px 28px -10px rgb(16 185 129 / 0.65);
}
.btn-primary:hover { background: var(--accent); color: #0f1115; }
.btn-ghost { color: var(--fg); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--card); }
.btn-disabled {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 11px;
  font-weight: 700; font-size: 1rem;
  color: var(--muted); border: 1px dashed var(--border); cursor: default;
}
.cta-note { font-size: 0.88rem; color: var(--muted); margin: 14px 0 0; }

/* Hero demo: an onboarding-style 3D gym scene. A fixed inspection camera
   (CSS perspective on .demo) looks at floor grid, rack, lifter and barbell;
   a phone on a stand orbits the lift on the dashed ring, and the viewfinder
   inset (.demo-frame) shows what that phone films — rep trace, tracking box,
   velocity HUD. One rAF clock in index.html drives the rep, the orbit tween
   and the feature dots; everything adapts via the --demo-* variables. */
.demo {
  perspective: 1200px;
  --demo-frame-bg: #e9efeb;
  --demo-frame-grid: rgb(5 150 105 / 0.09);
  --demo-frame-border: #d7e0da;
  --demo-frame-text: #5b6672;
  --demo-vignette: inset 0 0 70px rgb(15 17 21 / 0.08);
  --demo-box: rgb(15 23 21 / 0.5);
  --demo-trace: #17352b;
  --demo-trace-glow: rgb(5 150 105 / 0.45);
  --demo-hud-bg: rgb(255 255 255 / 0.82);
  --demo-hud-border: #d7e0da;
  --demo-hud-muted: #5b6672;
  --demo-hud-value: #047857;
  --demo-plate-shadow: 0 14px 26px -14px rgb(15 17 21 / 0.35);
  --stage-panel: linear-gradient(180deg, #f0f5f1, #dfe9e2);
  --stage-floor: #e2ebe5;
  --stage-grid: rgb(5 150 105 / 0.16);
  --stage-ring: rgb(5 150 105 / 0.65);
  --stage-rack: #b5c6ba;
  --stage-bar: #7f939f;
  --stage-sil: #37454f;
  --stage-stand: #86988d;
  --stage-plate-bg: #17242e;
  --stage-bench-pad: linear-gradient(180deg, #2a3746, #1a2532);
  --stage-bench-side: #151e28;
  --stage-bench-frame: linear-gradient(180deg, #64748b, #475569);
  --stage-lifter-torso: linear-gradient(180deg, #475a6f 0%, #334456 70%, #243344 100%);
  --stage-lifter-head: radial-gradient(circle, #546a82 40%, #394b5e 100%);
  --stage-lifter-legs: #2a3746;
  --stage-scale: 1;
}
@media (prefers-color-scheme: dark) {
  .demo {
    --demo-frame-bg: #0c1c16;
    --demo-frame-grid: rgb(16 185 129 / 0.05);
    --demo-frame-border: #1e3a2f;
    --demo-frame-text: #b8c4bf;
    --demo-vignette: inset 0 0 90px rgb(0 0 0 / 0.5);
    --demo-box: rgb(248 250 252 / 0.75);
    --demo-trace: #f8fafc;
    --demo-trace-glow: rgb(52 211 153 / 0.8);
    --demo-hud-bg: rgb(15 17 21 / 0.78);
    --demo-hud-border: #26303b;
    --demo-hud-muted: #97a3b0;
    --demo-hud-value: #34d399;
    --demo-plate-shadow: 0 18px 34px -12px rgb(0 0 0 / 0.65);
      --stage-panel: linear-gradient(180deg, #1a2b22, #101b15);
    --stage-floor: #1e3327;
    --stage-grid: rgb(52 211 153 / 0.2);
    --stage-ring: rgb(52 211 153 / 0.6);
    --stage-rack: #43625a;
    --stage-bar: #9fb2bf;
    --stage-sil: #8ba3b4;
    --stage-stand: #7d948a;
    --stage-plate-bg: #1b2833;
    --stage-bench-pad: linear-gradient(180deg, #1e293b, #0f172a);
    --stage-bench-side: #0f172a;
    --stage-bench-frame: linear-gradient(180deg, #334155, #1e293b);
    --stage-lifter-torso: linear-gradient(180deg, #384b5e 0%, #243342 70%, #1c2834 100%);
    --stage-lifter-head: radial-gradient(circle, #475a6f 40%, #2d3b4b 100%);
    --stage-lifter-legs: #1a2430;
  }
.stage-wrap {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: default;
}
.stage-wrap * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.stage3d {
  position: relative; aspect-ratio: 4 / 3;
  border: 1px solid var(--border); border-radius: 20px;
  background: radial-gradient(circle at 50% 40%, #13241b 0%, #0a130e 100%);
  overflow: hidden;
  box-shadow: 0 16px 36px -12px rgb(0 0 0 / 0.5);
}
#stage-canvas {
  width: 100%; height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
#stage-canvas:active { cursor: grabbing; }

.stage-hint {
  position: absolute; bottom: 12px; left: 14px; z-index: 4;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  color: rgb(52 211 153 / 0.85); pointer-events: none;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgb(15 23 42 / 0.82); padding: 4px 10px; border-radius: 6px;
  border: 1px solid rgb(52 211 153 / 0.25);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.35);
}

/* The viewfinder inset: what the orbiting phone films.
   Styled as a modern, compact smartphone camera display floating in the corner. */
.demo-frame {
  position: absolute; top: 14px; right: 14px; z-index: 6;
  width: 142px; aspect-ratio: 9 / 15.5; border-radius: 14px;
  background:
    linear-gradient(var(--demo-frame-grid) 1px, transparent 1px) 0 0 / 100% 20px,
    linear-gradient(90deg, var(--demo-frame-grid) 1px, transparent 1px) 0 0 / 20px 100%,
    var(--demo-frame-bg);
  border: 1.5px solid rgb(52 211 153 / 0.5);
  box-shadow: 0 16px 36px -8px rgb(0 0 0 / 0.65), 0 0 16px rgb(16 185 129 / 0.2);
  overflow: hidden;
}
.demo-frame::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: var(--demo-vignette); pointer-events: none;
}
.demo-frame-top {
  position: absolute; top: 6px; left: 10px; right: 10px; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--demo-frame-text);
}
.demo-rec { display: inline-flex; align-items: center; gap: 5px; color: var(--demo-frame-text); }
.demo-rec i.rec-dot, .demo-rec i {
  width: 6px; height: 6px; border-radius: 50%; background: #ef4444;
  animation: demo-blink 1.4s ease-in-out infinite;
}
@keyframes demo-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Viewfinder corner brackets */
.vf-bracket {
  position: absolute; width: 10px; height: 10px; z-index: 3; pointer-events: none;
  border: 2px solid rgb(16 185 129 / 0.45);
}
.vf-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; border-top-left-radius: 4px; }
.vf-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; border-top-right-radius: 4px; }
.vf-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; border-bottom-left-radius: 4px; }
.vf-br { bottom: 8px; right: 8px; border-left: none; border-top: none; border-bottom-right-radius: 4px; }

/* Plate + tracking box inside the viewfinder:
   Positioned at the velocity track start coordinates and centered with translate(-50%, -50%).
   Follows the exact 2D trajectory of the velocity track during the lift. */
.demo-lift {
  position: absolute; left: 33.91%; top: 70%; z-index: 2;
  width: 26%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  will-change: left, top;
}
.demo-bar-shaft {
  position: absolute; left: 50%; top: calc(50% - 3px);
  width: 140px; height: 6px;
  background: linear-gradient(180deg, #94a3b8, #475569 70%, #1e293b);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.35);
  pointer-events: none;
  z-index: 1;
}
.demo-bar-shaft.front {
  position: absolute; left: 50%; top: calc(50% - 3px);
  width: 180px; height: 6px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #94a3b8, #475569 70%, #1e293b);
  border-radius: 3px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.35);
  pointer-events: none;
  z-index: 1;
}
/* The same plate filmed from the front: edge-on slab with the bar end visible,
   following the lateral tilt and sway of the front velocity track. */
.demo-front {
  position: absolute; left: 38.26%; top: 69%; z-index: 2;
  width: 15%; aspect-ratio: 0.62;
  transform: translate(-50%, -50%);
  will-change: left, top;
}
.demo-slab {
  position: absolute; inset: 0; border-radius: 34% / 15%;
  background:
    radial-gradient(circle at 50% 28%, rgb(255 255 255 / 0.16), transparent 55%),
    #0f1115;
  border: 6px solid #10b981;
  box-shadow: var(--demo-plate-shadow);
  z-index: 2;
}
.demo-slab::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 44%; aspect-ratio: 1; border-radius: 50%;
  background: #0f1115; border: 4px solid #0d6b51;
}
.vf-chip {
  position: absolute; z-index: 5;
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.05em;
  padding: 3px 8px; border-radius: 6px;
}
.vf-rep { left: 10px; bottom: 10px; color: #0f1115; background: #34d399; box-shadow: 0 2px 6px rgb(0 0 0 / 0.3); }
.vf-export { left: 10px; top: 28px; color: #34d399; border: 1px solid #34d399; background: rgb(15 17 21 / 0.75); }
.demo-frame.vf-export-on { outline: 2px solid #34d399; outline-offset: -2px; }

/* Prominent Feature Card under the demo stage */
.demo-feature-card {
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 24px -6px rgb(0 0 0 / 0.25);
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}
.demo-feature-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}
.demo-feature-badge-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.demo-badge {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em;
  color: var(--accent); text-transform: uppercase;
  transition: opacity 0.2s ease;
}
.demo-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-bright);
  animation: demo-blink 1.4s ease-in-out infinite;
}
.demo-feature-title {
  margin: 0 0 6px;
  font-size: 1.18rem; font-weight: 800;
  color: var(--fg); letter-spacing: -0.01em;
  line-height: 1.3;
  transition: opacity 0.2s ease;
}
.demo-feature-desc {
  margin: 0;
  font-size: 0.96rem; line-height: 1.48;
  color: var(--fg); opacity: 0.88;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.demo-badge.fade, .demo-feature-title.fade, .demo-feature-desc.fade { opacity: 0; }

/* Interactive Feature Tabs */
.demo-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.demo-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  font-size: 0.82rem; font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.demo-tab:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  color: var(--fg);
}
.demo-tab.active {
  background: color-mix(in srgb, var(--accent-bright) 14%, var(--card));
  border-color: var(--accent);
  color: var(--fg);
  box-shadow: 0 0 14px rgb(16 185 129 / 0.18);
}
.demo-tab-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border);
  transition: background 0.2s ease, transform 0.2s ease;
}
.demo-tab.active .demo-tab-dot {
  background: var(--accent-bright);
  transform: scale(1.25);
  box-shadow: 0 0 6px var(--accent-bright);
}
.demo-tab .badge-pro {
  font-size: 0.55rem; padding: 0 5px; line-height: 1.3;
}
.demo-plate {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgb(255 255 255 / 0.22), transparent 45%),
    radial-gradient(circle, #0f1115 50%, transparent 51%),
    #10b981;
  border: 9px solid #10b981;
  box-shadow: 0 8px 18px -4px rgb(0 0 0 / 0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.demo-plate::after {
  content: ""; position: absolute; inset: 22%;
  border-radius: 50%; border: 5px solid #0d6b51;
}
.plate-label {
  position: relative; z-index: 3;
  font-size: 0.65rem; font-weight: 900; color: #34d399;
  letter-spacing: -0.02em; pointer-events: none;
}
.demo-box { position: absolute; inset: -10px; z-index: 3; }
.demo-box::before {
  content: ""; position: absolute; inset: 0;
  border: 1.5px dashed var(--demo-box); border-radius: 10px;
}
.demo-box span {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em;
  color: #0f1115; background: #34d399; padding: 2px 6px; border-radius: 5px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.3);
}
.demo-path {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  pointer-events: none;
}
.demo-path polyline {
  fill: none; stroke: var(--demo-trace); stroke-width: 4.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 600; stroke-dashoffset: 600; opacity: 0;
  filter: drop-shadow(0 0 6px var(--demo-trace-glow));
  transition: opacity 0.35s ease;
}
.tr-front {
  transform-box: fill-box;
  transform-origin: center;
}
/* Velocity HUD: compact, firmly anchored at bottom-right with zero overlap on the plate */
.demo-hud {
  position: absolute; right: 10px; bottom: 10px; z-index: 5;
  background: var(--demo-hud-bg); backdrop-filter: blur(6px);
  border: 1px solid var(--demo-hud-border); border-radius: 11px; padding: 7px 11px;
  text-align: right; color: var(--demo-hud-muted); font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  box-shadow: 0 6px 16px -3px rgb(0 0 0 / 0.35);
  min-width: 84px;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}
.demo-hud b {
  display: block; font-size: 1.3rem; font-weight: 800; color: var(--demo-hud-value);
  font-variant-numeric: tabular-nums; letter-spacing: 0; line-height: 1.1; margin-top: 1px;
}
.demo-hud small { font-size: 0.65rem; text-transform: none; letter-spacing: 0.02em; }

.demo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.demo-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 4px 16px -4px rgb(0 0 0 / 0.25); padding: 12px 14px;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}
.demo-card b {
  display: block; font-size: 0.65rem; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px;
}
.demo-card span { font-size: 1.12rem; font-weight: 800; color: var(--fg); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .demo-dots button { transition: none; }
}

/* Steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
}
.step svg { display: block; margin-bottom: 14px; }
.step-num {
  display: inline-block; font-size: 0.76rem; font-weight: 800; color: var(--accent);
  letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 4px;
}
.step p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* Metrics */

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.metric { border: 1px solid var(--border); border-radius: 16px; padding: 19px 20px; background: var(--bg); }
.metric b { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.metric span { color: var(--muted); font-size: 0.94rem; }

/* Feature grid */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.feature {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 21px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent-bright) 45%, var(--border));
  box-shadow: var(--shadow);
}
@media (prefers-reduced-motion: reduce) {
  .feature { transition: none; }
  .feature:hover { transform: none; }
}
.feature h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feature p { color: var(--muted); margin: 0; font-size: 0.96rem; }
.badge-pro {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.05em;
  color: var(--accent); border: 1px solid var(--accent);
  padding: 1px 7px; border-radius: 999px; text-transform: uppercase;
}

/* Privacy */

.privacy-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; margin-top: 10px; }
.privacy-points { margin: 0; padding: 0; list-style: none; }
.privacy-points li {
  padding: 12px 0 12px 34px; position: relative;
  border-bottom: 1px solid var(--border); color: var(--muted);
}
.privacy-points li:last-child { border-bottom: none; }
.privacy-points b { color: var(--fg); display: block; }
.privacy-points li::before {
  content: "✓"; position: absolute; left: 4px; top: 12px;
  color: var(--accent); font-weight: 800;
}

/* Comparison table */

.table-hint {
  display: none;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin-top: 30px;
  max-width: 100%;
  border: 1px solid var(--border); border-radius: 16px; background: var(--bg);
}
.compare { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.compare th, .compare td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare thead th {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); border-bottom: 2px solid var(--border);
}
.compare td:first-child { color: var(--muted); }
.compare th:nth-child(3), .compare td:nth-child(3) {
  background: color-mix(in srgb, var(--accent-bright) 7%, transparent);
}
.compare .yes { color: var(--accent); font-weight: 700; }
.compare .no { color: var(--muted); opacity: 0.5; }
.table-note { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }

/* FAQ */

.faq { max-width: 46em; margin-top: 26px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 15px 34px 15px 0; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%); font-size: 1.3rem; color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* Footer */

.site-footer { border-top: 1px solid var(--border); padding: 34px 0 44px; color: var(--muted); font-size: 0.9rem; }
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }

/* Legal pages (imprint, privacy, terms) */

.legal { max-width: 48em; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; margin-bottom: 0.6em; }
.legal table {
  width: 100%; border-collapse: collapse; margin: 1.5em 0;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.legal th, .legal td {
  border: 1px solid var(--border); padding: 10px 14px; text-align: left; vertical-align: top;
  font-size: 0.94rem;
}
.legal th { background: var(--card); font-weight: 700; color: var(--fg); }
.legal tr:nth-child(even) td { background: color-mix(in srgb, var(--card) 45%, transparent); }
.legal ul { padding-left: 1.4em; margin: 0 0 1.2em; }
.legal li { margin-bottom: 0.5em; }


/* Hero Claims (replacing the cramped animation on top) */
.hero-claims {
  display: flex;
  flex-direction: column;
  gap: 16px;
  user-select: none;
  -webkit-user-select: none;
}
.hero-claim-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 18px -4px rgb(0 0 0 / 0.15);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-claim-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: 0 8px 24px -6px rgb(0 0 0 / 0.25);
}
.hero-claim-highlight {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 40%, var(--card)), var(--card));
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 25px rgb(16 185 129 / 0.12), 0 8px 28px -6px rgb(0 0 0 / 0.3);
  position: relative;
  overflow: hidden;
}
.hero-claim-highlight::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--accent-bright);
}
.claim-badge-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.claim-badge {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em;
  color: var(--accent); text-transform: uppercase;
  background: var(--accent-soft); padding: 3px 8px; border-radius: 6px;
}
.claim-badge-primary {
  background: var(--accent-bright); color: #0f1115; font-weight: 900;
  box-shadow: 0 0 10px rgb(16 185 129 / 0.4);
}
.claim-tag {
  font-size: 0.74rem; font-weight: 700; color: var(--muted);
}
.hero-claim-highlight h3 {
  margin: 0 0 8px;
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--fg); line-height: 1.28;
}
.hero-claim-highlight p {
  margin: 0; font-size: 0.94rem; line-height: 1.48; color: var(--muted);
}
.hero-claims-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-claims-grid .claim-card-wide {
  grid-column: 1 / -1;
}
.hero-claims-grid h4 {
  margin: 0 0 6px;
  font-size: 0.98rem; font-weight: 800; color: var(--fg);
}
.hero-claims-grid p {
  margin: 0; font-size: 0.88rem; line-height: 1.44; color: var(--muted);
}

/* Dedicated Horizontal Demo Section */
.section-demo {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding: 80px 0 84px;
}
.demo-section-header {
  max-width: 680px;
  margin-bottom: 34px;
}
.demo-section-header h2 {
  margin: 0 0 10px;
  font-size: 2.1rem;
  letter-spacing: -0.02em;
}
.demo-horizontal {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.demo-controls-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-controls-col .demo-tabs {
  margin-top: 0;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.demo-controls-col .demo-feature-card {
  margin-top: 0;
}

/* Responsive */

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .demo-horizontal { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 820px) {
  .steps, .metrics, .features { grid-template-columns: 1fr 1fr; }
  .hero-claims-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .table-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin: 20px 0 -16px;
  }
  .compare {
    min-width: 520px;
    font-size: 0.88rem;
  }
  .compare th, .compare td {
    padding: 10px 12px;
  }
  .compare thead th {
    font-size: 0.76rem;
    padding: 10px 12px;
  }
}

@media (max-width: 640px) {
  .demo { --stage-scale: 0.9; }
  .stage-wrap { max-width: 100%; }
  .stage3d {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }
  .demo-frame {
    width: 116px;
    top: 8px;
    right: 8px;
    border-radius: 12px;
  }
  .demo-frame-top {
    top: 5px;
    left: 7px;
    right: 7px;
    font-size: 0.5rem;
  }
  .demo-frame-top [data-demo-file] {
    max-width: 54px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .demo-plate {
    width: 62px;
    height: 62px;
  }
  .demo-plate .plate-label {
    font-size: 0.7rem;
  }
  .demo-box {
    width: 70px;
    height: 70px;
    border-radius: 7px;
  }
  .demo-box span {
    font-size: 0.44rem;
    padding: 2px 4px;
  }
  .demo-slab {
    width: 58px;
    height: 15px;
  }
  .demo-bar-shaft {
    width: 82px;
    height: 5px;
  }
  .demo-bar-shaft.front {
    width: 96px;
    height: 5px;
  }
  .demo-hud {
    min-width: 54px;
    padding: 3px 6px;
    font-size: 0.48rem;
    right: 6px;
    bottom: 6px;
    border-radius: 6px;
  }
  .demo-hud b {
    font-size: 0.8rem;
  }
  .demo-hud b small {
    font-size: 0.5rem;
  }
  .vf-chip {
    font-size: 0.48rem;
    padding: 2px 5px;
  }
  .vf-rep {
    left: 7px;
    bottom: 7px;
  }
  .vf-export {
    left: 7px;
    top: 22px;
  }

  .demo-cards {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 10px;
  }
  .demo-card {
    position: static;
    padding: 8px 6px;
    min-width: 0;
    border-radius: 12px;
    text-align: center;
  }
  .demo-card b {
    font-size: 0.6rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-bottom: 2px;
  }
  .demo-card span {
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
    display: block;
  }

  .demo-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
  }
  .demo-tab {
    padding: 10px 8px;
    font-size: 0.82rem;
    min-height: 44px;
    border-radius: 10px;
  }
  .demo-feature-card {
    padding: 14px 16px;
    margin-top: 14px;
    border-radius: 14px;
  }
  .demo-feature-title {
    font-size: 1.05rem;
    margin: 0 0 4px;
  }
  .demo-feature-desc {
    font-size: 0.88rem;
    line-height: 1.45;
  }
}

@media (max-width: 520px) {
  .container { padding: 0 16px; }
  section { padding: 42px 0; }
  .hero { padding: 34px 0 42px; }

  /* Header */
  .site-header .container {
    min-height: 54px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .wordmark { font-size: 0.98rem; }
  .site-nav a:not(.nav-cta) { display: none; }
  .site-nav .nav-cta {
    padding: 7px 13px;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  /* Hero Headings & Lead */
  h1 {
    font-size: clamp(1.75rem, 6.8vw, 2.25rem);
    line-height: 1.15;
    margin-bottom: 0.35em;
  }
  .hero .lead {
    font-size: 0.96rem;
    line-height: 1.5;
    margin-bottom: 0.8em;
  }
  .chips {
    margin: 16px 0 22px;
    gap: 6px;
  }
  .chips li {
    font-size: 0.78rem;
    padding: 5px 11px;
  }

  /* Hero CTA buttons - stacked full width, clean, thumb-friendly */
  .cta-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .cta-row .btn,
  .cta-row .btn-disabled {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 13px 18px;
    font-size: 0.95rem;
    border-radius: 11px;
    box-sizing: border-box;
  }
  .cta-note {
    font-size: 0.82rem;
    text-align: center;
    margin-top: 6px;
  }

  /* Hero Claims */
  .hero-claims { gap: 12px; }
  .hero-claim-card {
    padding: 15px 16px;
    border-radius: 14px;
  }
  .claim-badge-row {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
  }
  .claim-badge { font-size: 0.65rem; }
  .claim-tag { font-size: 0.72rem; }
  .hero-claim-highlight h3 {
    font-size: 1.1rem;
    line-height: 1.25;
    margin-bottom: 6px;
  }
  .hero-claim-highlight p,
  .hero-claims-grid p {
    font-size: 0.85rem;
    line-height: 1.42;
  }
  .hero-claims-grid h4 {
    font-size: 0.94rem;
    margin-bottom: 4px;
  }

  /* 3D Demo Section */
  .section-demo { padding: 42px 0 46px; }
  .demo-section-header { margin-bottom: 20px; }
  .demo-section-header h2 { font-size: 1.55rem; }
  .demo-section-header .lead { font-size: 0.92rem; }
  .stage3d { border-radius: 14px; }
  .stage-hint { font-size: 0.62rem; padding: 3px 8px; bottom: 8px; left: 10px; }

  .demo-frame {
    width: 104px;
    top: 7px;
    right: 7px;
    border-radius: 10px;
  }
  .demo-frame-top {
    font-size: 0.46rem;
    top: 4px;
    left: 5px;
    right: 5px;
  }
  .demo-frame-top [data-demo-file] { max-width: 48px; }
  .demo-plate { width: 54px; height: 54px; }
  .demo-plate .plate-label { font-size: 0.65rem; }
  .demo-box { width: 62px; height: 62px; }
  .demo-box span { font-size: 0.4rem; padding: 1px 3px; }
  .demo-slab { width: 52px; height: 14px; }
  .demo-bar-shaft { width: 72px; }
  .demo-bar-shaft.front { width: 84px; }
  .demo-hud {
    min-width: 48px;
    padding: 3px 5px;
    font-size: 0.44rem;
    right: 5px;
    bottom: 5px;
  }
  .demo-hud b { font-size: 0.74rem; }
  .demo-hud b small { font-size: 0.46rem; }

  .demo-cards { gap: 5px; margin-top: 8px; }
  .demo-card { padding: 7px 4px; border-radius: 10px; }
  .demo-card b { font-size: 0.55rem; }
  .demo-card span { font-size: 0.86rem; }

  /* Steps, Metrics, Features grids */
  .steps, .metrics, .features {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }
  .step, .metric, .feature {
    padding: 16px;
    border-radius: 14px;
  }
  .step svg { width: 44px; height: 44px; }
  .step h3, .metric b, .feature h3 { font-size: 1.02rem; }
  .step p, .metric span, .feature p { font-size: 0.86rem; line-height: 1.42; }

  /* FAQ */
  .faq { margin-top: 18px; }
  .faq summary {
    padding: 14px 0;
    font-size: 0.94rem;
    gap: 10px;
  }
  .faq p { font-size: 0.86rem; line-height: 1.45; }

  /* Footer */
  .site-footer {
    padding: 26px 0 34px;
    font-size: 0.82rem;
  }
  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
}

@media (max-width: 380px) {
  .demo-frame { width: 94px; }
  .demo-plate { width: 48px; height: 48px; }
  .demo-plate .plate-label { font-size: 0.58rem; }
  .demo-box { width: 56px; height: 56px; }
  .demo-bar-shaft { width: 64px; }
  .demo-bar-shaft.front { width: 76px; }
  .demo-cards { gap: 4px; }
  .demo-card { padding: 6px 3px; }
  .demo-card b { font-size: 0.5rem; }
  .demo-card span { font-size: 0.8rem; }
  .demo-tab { padding: 9px 5px; font-size: 0.74rem; }
}
