/* LexiMeld marketing web
   Design language mirrors the desktop app: src/WF.App/UI/DarkTheme.cs
   (layered opaque surfaces, hairline edges, recessed wells, electric blue accent).
   Self-hosted fonts only - no @import, so a blocked CDN can never break the sheet. */

/* ---------------------------------------------------------------- fonts */

/* Outfit - SIL OFL 1.1, see fonts/OFL-Outfit.txt */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Sans - SIL OFL 1.1, see fonts/OFL-DMSans.txt */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/dmsans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/dmsans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------- tokens */

:root {
  /* Surfaces, bottom-up (DarkTheme.cs) */
  --bg: #1a1a20;
  --surface: #202027;
  --surface-elevated: #2a2a33;
  --surface-hover: #363641;
  --surface-top: #26262e;
  --surface-bottom: #15151a;
  --surface-mid: #1e1e25;
  --recessed: #111116;

  /* Edges */
  --border: #3a3a44;
  --hairline: #464654;
  --top-highlight: rgba(255, 255, 255, 0.12);

  /* Accent */
  --accent: #468cff;
  --accent-hover: #60a0ff;
  --accent-pressed: #3474e0;
  --accent-soft: rgba(70, 140, 255, 0.14);
  --selection: #303e60;

  /* Text */
  --text: #f2f2f8;
  --text-muted: #a8a8b4;

  /* Status */
  --recording: #ff5252;
  --recording-soft: #ff7676;
  --processing: #5694ff;
  --success: #50be78;
  --warning: #f0ac38;
  --danger: #eb4646;

  /* Spacing scale - DarkTheme 4 / 8 / 12 / 16 / 20 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;

  /* Shape */
  --radius: 12px;
  --radius-well: 8px;
  --radius-pill: 999px;

  /* Layout */
  --max-marketing: 1120px;
  --max-reading: 760px;
  --page-pad: clamp(1.1rem, 4vw, 2rem);
  --header-h: 4rem;

  --font-display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Reusable surface recipes */
  --capsule-face: linear-gradient(180deg, var(--surface-top) 0%, var(--surface-bottom) 100%);
  --edge-top: inset 0 1px 0 var(--top-highlight);
}

/* ----------------------------------------------------------------- base */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--selection);
  color: var(--text);
}

/* Zero-specificity base link styling: any component class wins without !important. */
:where(a) {
  color: var(--accent-hover);
  text-decoration: none;
}

:where(a:hover) {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
  border-radius: var(--space-xs);
}

/* --------------------------------------------------------------- layout */

.site-shell {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.site-main {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.wrap {
  display: block;
  width: 100%;
  max-width: var(--max-marketing);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  min-width: 0;
}

/* Interior (legal / subscribe) reading column */
.page {
  width: 100%;
  max-width: var(--max-reading);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--page-pad) 3rem;
}

/* --------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  /* Opaque on purpose: no backdrop blur, so the bar never smears the hero. */
  background: linear-gradient(180deg, var(--surface-bottom) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--hairline);
  box-shadow: var(--edge-top);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.site-header.is-scrolled {
  background: var(--surface-bottom);
  box-shadow: var(--edge-top), 0 12px 28px rgba(0, 0, 0, 0.36);
}

/* Interior pages: quieter, non-sticky header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex-shrink: 1;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 9px;
  background: linear-gradient(145deg, #5a9aff 0%, var(--accent) 55%, #2f6fe0 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.brand-mark svg {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  flex-shrink: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.88rem;
}

.lang-btn {
  padding: 0.4rem 0.6rem;
  min-height: 2.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-well);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.lang-btn:hover {
  color: var(--text);
  background: var(--surface-elevated);
}

.lang-btn[aria-pressed="true"] {
  color: var(--accent-hover);
  background: var(--accent-soft);
  border-color: rgba(70, 140, 255, 0.35);
}

.lang-sep {
  color: var(--border);
  user-select: none;
}

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.78rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--surface-elevated);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.15s var(--ease), box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--edge-top);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-primary:active {
  background: var(--accent-pressed);
  border-color: var(--accent-pressed);
  transform: none;
}

.btn-secondary {
  background: var(--surface-elevated);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--hairline);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ----------------------------------------------------------------- hero */

.hero-band {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.75rem, 6vw, 4.5rem);
  /* Lit at the top, sinking into SurfaceBottom - the band reads as a stage, not a rectangle. */
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-mid) 42%, var(--surface-bottom) 100%);
  border-bottom: 1px solid var(--border);
}

/* Waveform field: a tiled bar pattern in SurfaceElevated, faded out at every edge.
   Replaces the old blue radial glow - no colour, just quiet depth. */
.hero-band::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: min(62%, 22rem);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='120' viewBox='0 0 200 120'%3E%3Cg fill='%232a2a33'%3E%3Crect x='3' y='51' width='4' height='18' rx='2'/%3E%3Crect x='13' y='43' width='4' height='34' rx='2'/%3E%3Crect x='23' y='34' width='4' height='52' rx='2'/%3E%3Crect x='33' y='46' width='4' height='28' rx='2'/%3E%3Crect x='43' y='27' width='4' height='66' rx='2'/%3E%3Crect x='53' y='38' width='4' height='44' rx='2'/%3E%3Crect x='63' y='19' width='4' height='82' rx='2'/%3E%3Crect x='73' y='41' width='4' height='38' rx='2'/%3E%3Crect x='83' y='48' width='4' height='24' rx='2'/%3E%3Crect x='93' y='31' width='4' height='58' rx='2'/%3E%3Crect x='103' y='12' width='4' height='96' rx='2'/%3E%3Crect x='113' y='37' width='4' height='46' rx='2'/%3E%3Crect x='123' y='45' width='4' height='30' rx='2'/%3E%3Crect x='133' y='25' width='4' height='70' rx='2'/%3E%3Crect x='143' y='40' width='4' height='40' rx='2'/%3E%3Crect x='153' y='49' width='4' height='22' rx='2'/%3E%3Crect x='163' y='33' width='4' height='54' rx='2'/%3E%3Crect x='173' y='16' width='4' height='88' rx='2'/%3E%3Crect x='183' y='42' width='4' height='36' rx='2'/%3E%3Crect x='193' y='47' width='4' height='26' rx='2'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 100%;
  opacity: 0.55;
  /* Single-layer mask: no mask-composite needed, so it degrades cleanly. */
  -webkit-mask-image: radial-gradient(ellipse 78% 120% at 50% 118%, #000 18%,
    rgba(0, 0, 0, 0.45) 52%, transparent 82%);
  mask-image: radial-gradient(ellipse 78% 120% at 50% 118%, #000 18%,
    rgba(0, 0, 0, 0.45) 52%, transparent 82%);
  pointer-events: none;
}

.hero-band > .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .hero-band > .wrap {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 3.5rem;
  }
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text);
  overflow-wrap: anywhere;
}

.hero-band h1 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text);
  overflow-wrap: anywhere;
  max-width: 22ch;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 3.4vw, 1.12rem);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.trial-assurance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.25rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.4;
}

.trial-assurance li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.trial-assurance li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(80, 190, 120, 0.16);
  flex-shrink: 0;
}

.trial-assurance--panel {
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* ------------------------------------------------------ overlay capsule */

.demo-stage {
  min-width: 0;
  max-width: 100%;
  scroll-margin-top: 5.5rem;
}

.overlay-capsule {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--capsule-face);
  box-shadow: var(--edge-top), 0 24px 60px rgba(0, 0, 0, 0.45);
}

.capsule-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 0;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--surface-elevated) 0%, var(--surface-mid) 100%);
  box-shadow: var(--edge-top);
}

.capsule-led {
  position: relative;
  flex-shrink: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--recording);
  box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.18), 0 0 10px rgba(255, 82, 82, 0.55);
  animation: capsule-led-pulse 1.8s ease-in-out infinite;
}

@keyframes capsule-led-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.18), 0 0 10px rgba(255, 82, 82, 0.55);
  }
  50% {
    opacity: 0.65;
    box-shadow: 0 0 0 5px rgba(255, 82, 82, 0.09), 0 0 14px rgba(255, 82, 82, 0.3);
  }
}

.capsule-status {
  flex-shrink: 0;
  color: var(--recording-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Recessed "display" well - the overlay's mid pill. */
.capsule-well {
  flex: 1;
  min-width: 0;
  height: 2.25rem;
  padding: 0 var(--space-md);
  border-radius: var(--radius-well);
  background: var(--recessed);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.capsule-wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  width: 100%;
  height: 100%;
}

.capsule-wave span {
  flex: 1;
  min-width: 2px;
  max-width: 3px;
  border-radius: var(--radius-pill);
  background: var(--processing);
  opacity: 0.85;
  transform-origin: center;
  animation: capsule-wave-pulse 1.25s var(--ease) infinite alternate;
}

.capsule-wave span:nth-child(7n + 1) { height: 26%; animation-delay: 0ms; }
.capsule-wave span:nth-child(7n + 2) { height: 62%; animation-delay: 90ms; }
.capsule-wave span:nth-child(7n + 3) { height: 40%; animation-delay: 180ms; }
.capsule-wave span:nth-child(7n + 4) { height: 88%; animation-delay: 60ms; }
.capsule-wave span:nth-child(7n + 5) { height: 34%; animation-delay: 150ms; }
.capsule-wave span:nth-child(7n + 6) { height: 70%; animation-delay: 30ms; }
.capsule-wave span:nth-child(7n + 7) { height: 48%; animation-delay: 120ms; }

@keyframes capsule-wave-pulse {
  from {
    transform: scaleY(0.4);
    opacity: 0.55;
  }
  to {
    transform: scaleY(1);
    opacity: 0.95;
  }
}

.capsule-timer {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.capsule-transcript {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--recessed);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55);
}

.capsule-label {
  margin: 0 0 var(--space-sm);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.capsule-text {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

.capsule-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--accent-hover);
  animation: capsule-caret 1.1s steps(1) infinite;
}

@keyframes capsule-caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.capsule-target {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: var(--space-md) 0 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--surface-elevated);
  color: var(--text-muted);
  font-size: 0.86rem;
}

.capsule-target::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--processing);
  flex-shrink: 0;
}

.demo-caption {
  margin: var(--space-md) 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  text-align: center;
}

/* ------------------------------------------------------- section shells */

.section {
  width: 100%;
  padding: clamp(3.25rem, 8vw, 5.5rem) 0;
}

/* Named surface bands */
.band-base {
  background: var(--bg);
}

.band-raised,
.section--muted {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.25rem);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-kicker::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
}

.section-title {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
}

.section-lead {
  margin: 0;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.06rem;
}

/* ----------------------------------------------- outcomes (editorial) */

.outcome-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

@media (min-width: 800px) {
  .outcome-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

/* No cards here on purpose: a hairline rule + air, so #outcomes reads as an
   editorial column set and #how reads as a stepped progression. */
.outcome {
  display: block;
  min-width: 0;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--hairline);
}

.outcome-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.15rem;
  color: var(--accent);
}

.outcome-icon svg {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
}

.outcome h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
  color: var(--text);
}

.outcome p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.99rem;
  line-height: 1.6;
}

/* ------------------------------------------- how it works (progression) */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-xl);
  }
}

.step {
  position: relative;
  display: block;
  min-width: 0;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-top) 0%, var(--surface-mid) 100%);
  box-shadow: var(--edge-top);
  counter-increment: step;
}

/* Big quiet numeral: the progression cue, no coloured chips. */
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}

/* Connector between the steps on wide screens. */
@media (min-width: 800px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.55rem;
    left: 100%;
    width: var(--space-xl);
    height: 1px;
    background: var(--border);
  }
}

.step h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* -------------------------------------------------------------- pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 42rem;
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 1.7rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

/* Featured = one hairline shade brighter. No glow, no lift. */
.price-card--featured {
  border-color: var(--hairline);
  background: linear-gradient(180deg, var(--surface-top) 0%, var(--surface) 100%);
  box-shadow: var(--edge-top);
}

.price-badge {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.26rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-elevated);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price-card--featured .price-badge {
  border-color: rgba(70, 140, 255, 0.35);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.price-badge--placeholder {
  visibility: hidden;
}

.price-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.price-amount {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text);
}

.price-note {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* ------------------------------------------------------------- download */

.download-band {
  width: 100%;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.download-panel {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--capsule-face);
  box-shadow: var(--edge-top), 0 24px 60px rgba(0, 0, 0, 0.4);
}

.download-panel h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.download-panel p {
  margin: 0 0 1.6rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.04rem;
}

/* ------------------------------------------------------ Windows install note */

.install-tip {
  margin: 1.4rem 0 0;
  max-width: 38rem;
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-left: 2px solid var(--warning);
  border-radius: var(--radius-well);
  background: var(--surface-mid);
  scroll-margin-top: 5.5rem;
}

.install-tip-title {
  margin: 0 0 0.4rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.35;
}

.install-tip .install-note {
  margin: 0;
  max-width: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.install-tip .install-note strong {
  color: var(--text);
  font-weight: 700;
}

.install-tip .install-why-body {
  margin: 0.6rem 0 0;
  max-width: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.install-tip:target {
  border-color: var(--warning);
  box-shadow: 0 0 0 3px rgba(240, 172, 56, 0.16);
}

.download-panel .install-tip {
  margin-top: 1.4rem;
  background: var(--recessed);
}

/* --------------------------------------------------------------- footer */

.site-footer,
.footer {
  margin-top: auto;
  width: 100%;
  padding: 2.25rem var(--page-pad) 2.75rem;
  border-top: 1px solid var(--border);
  background: var(--surface-bottom);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer .wrap {
  max-width: var(--max-marketing);
}

body:not(.page-landing) .footer {
  max-width: var(--max-reading);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ------------------------------------------------- interior: shared bits */

.hero {
  margin-bottom: 2rem;
}

h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-elevated);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge--success {
  border-color: rgba(80, 190, 120, 0.4);
  background: rgba(80, 190, 120, 0.12);
  color: var(--success);
}

.badge--neutral {
  border-color: var(--border);
  background: var(--surface-elevated);
  color: var(--text-muted);
}

.badge--warning {
  border-color: rgba(240, 172, 56, 0.4);
  background: rgba(240, 172, 56, 0.12);
  color: var(--warning);
}

.status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 0 1.25rem;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.status-icon--success {
  border: 1px solid rgba(80, 190, 120, 0.4);
  background: rgba(80, 190, 120, 0.14);
  color: var(--success);
}

.status-icon--neutral {
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-muted);
}

.status-icon--warning {
  border: 1px solid rgba(240, 172, 56, 0.4);
  background: rgba(240, 172, 56, 0.14);
  color: var(--warning);
}

.card {
  margin-bottom: var(--space-lg);
  padding: clamp(1.25rem, 3vw, 1.6rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-top) 0%, var(--surface-mid) 100%);
  box-shadow: var(--edge-top);
}

.card h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card p {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.card-note {
  margin: 0;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-well);
  background: var(--recessed);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.steps-list {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
  color: var(--text);
}

.steps-list li + li {
  margin-top: 0.55rem;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.home-link:hover {
  color: var(--text);
  text-decoration: none;
}

/* ------------------------------------------------------ interior: legal */

.legal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.5rem;
  margin-bottom: 1.75rem;
  font-size: 0.86rem;
}

.legal-toolbar a {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}

.legal-toolbar a:hover {
  border-color: var(--hairline);
  background: var(--surface-elevated);
  color: var(--text);
  text-decoration: none;
}

.legal-doc {
  margin-bottom: 1.5rem;
  padding: clamp(1.25rem, 3.5vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal-doc > h1 {
  margin: 0 0 0.4rem;
}

.legal-prose {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-prose .legal-meta {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* Quiet hierarchy instead of the broadsheet border-top on every h2. */
.legal-prose h2 {
  margin: 2.4rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text);
}

.legal-prose h2:first-of-type {
  margin-top: 0.5rem;
}

.legal-prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
}

.legal-prose p {
  margin: 0 0 0.9rem;
}

.legal-prose ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  list-style: none;
}

.legal-prose li {
  position: relative;
  padding-left: 0.35rem;
}

.legal-prose li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: -0.75rem;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--border);
}

.legal-prose li + li {
  margin-top: 0.45rem;
}

.legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-well);
  background: var(--surface-mid);
}

.legal-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.legal-table th,
.legal-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  color: var(--text-muted);
}

.legal-table th {
  background: var(--surface-elevated);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

/* -------------------------------------------------- interior: impressum */

.impressum-quiet h2 {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.impressum-quiet p {
  margin: 0 0 0.3rem;
  line-height: 1.5;
}

.impressum-quiet .impressum-entity {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.impressum-doc .legal-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.impressum-dl {
  margin: 1.75rem 0 0;
  padding: 0;
}

.impressum-dl > div {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: 0.35rem 1.25rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
}

.impressum-dl > div:last-child {
  border-bottom: 1px solid var(--border);
}

.impressum-dl dt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.impressum-dl dd {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
}

/* ----------------------------------------------------------- responsive */

@media (max-width: 800px) {
  .install-tip {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  :root {
    --page-pad: 1rem;
    --header-h: 3.5rem;
  }

  body {
    font-size: 16px;
  }

  .site-header .wrap {
    gap: 0.45rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .header-nav {
    gap: 0.35rem 0.55rem;
  }

  .site-nav {
    gap: 0.45rem 0.65rem;
    font-size: 0.86rem;
  }

  .lang-btn {
    padding: 0.3rem 0.45rem;
    min-height: 1.9rem;
  }

  .hero-band {
    padding: 2.25rem 0 2.25rem;
  }

  .hero-band h1 {
    max-width: none;
  }

  .trial-assurance {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .section-title,
  .section-lead,
  .download-panel h2,
  .download-panel p {
    overflow-wrap: anywhere;
    max-width: 100%;
  }

  .cta-row .btn {
    width: 100%;
  }

  .overlay-capsule {
    padding: var(--space-md);
    gap: var(--space-md);
  }

  .capsule-bar {
    gap: var(--space-sm);
    padding: var(--space-sm);
  }

  .capsule-status {
    display: none;
  }

  .capsule-transcript {
    padding: var(--space-md);
  }

  .impressum-dl > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
