/* Clariora landing page.
   Every colour, size, radius and duration on this page is a token defined
   in section 1. Component rules below never carry a raw colour value.
   tools/test_landing.js enforces this. */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ============================================================
   1. Tokens
   ============================================================ */

:root {
  color-scheme: dark;

  /* Ground: cinematic charcoal, never pure black */
  --surface-0: #0B0B0F;
  --surface-1: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.10);

  /* Glass surfaces */
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-bg-strong: rgba(255, 255, 255, 0.11);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: 12px;

  /* Lines */
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text: slightly heavier feel via weight rules below */
  --text-1: #F5F5F7;
  --text-2: #B4BCCE;
  --text-3: #8E97AB;

  /* Brand */
  --gold: #D4AF37;
  --gold-hover: #E4C558;
  --gold-active: #A98A25;
  --gold-text: #D4AF37;
  --on-gold: #0B0B0F;
  --gold-tint: rgba(212, 175, 55, 0.12);

  /* Semantic: one colour per meaning, plus a soft fill */
  --ok: #58A177;
  --ok-bg: rgba(88, 161, 119, 0.14);
  --warn: #D4AF37;
  --warn-bg: rgba(212, 175, 55, 0.14);
  --danger: #CB6E63;
  --danger-bg: rgba(203, 110, 99, 0.14);
  --info: #A3ADC2;
  --info-bg: rgba(163, 173, 194, 0.12);

  /* Mesh hues (8-15% opacity range) */
  --wash-gold: rgba(212, 175, 55, 0.13);
  --wash-cool: rgba(56, 189, 248, 0.11);
  --wash-teal: rgba(45, 212, 191, 0.10);
  --wash-violet: rgba(184, 134, 11, 0.08);
  --wash-emerald: rgba(52, 211, 153, 0.07);
  --wash-ink: rgba(7, 9, 14, 0.72);
  --hero-veil: linear-gradient(105deg, rgba(11, 11, 15, 0.94) 0%, rgba(11, 11, 15, 0.78) 42%, rgba(11, 11, 15, 0.28) 68%, rgba(11, 11, 15, 0.55) 100%),
    linear-gradient(180deg, rgba(11, 11, 15, 0.35) 0%, transparent 28%, rgba(11, 11, 15, 0.72) 100%);
  --glow: radial-gradient(ellipse 80% 55% at 50% -8%, rgba(212, 175, 55, 0.14), transparent 68%);
  --hero-mesh-mask: radial-gradient(ellipse 95% 80% at 50% 30%, black 40%, transparent 95%);
  --final-card-glow: radial-gradient(125% 125% at 50% 10%, rgba(212, 175, 55, 0.14) 0%, transparent 70%), var(--glass-bg-strong);
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);

  /* Type: fluid scale, one formula per step */
  --font: "Sora", system-ui, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2rem, 1.1rem + 3.4vw, 3.75rem);
  --fs-h2: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
  --fs-h3: 1.125rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;
  --lh-tight: 1.1;
  --lh-body: 1.55;

  /* Space: 8px grid */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 56px;
  --sp-7: 80px;

  /* Shape */
  --r-control: 6px;
  --r-card: 12px;
  --r-pill: 999px;
  --hit: 44px;
  --measure: 62ch;
  --container: 1120px;

  /* Motion */
  --dur-fast: 150ms;
  --dur-base: 200ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --nav-h: 64px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --surface-0: #FAFAF9;
    --surface-1: rgba(255, 255, 255, 0.62);
    --surface-2: rgba(255, 255, 255, 0.78);
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-bg-strong: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(15, 23, 42, 0.10);
    --line: rgba(15, 23, 42, 0.10);
    --line-strong: rgba(15, 23, 42, 0.16);
    --text-1: #14181F;
    --text-2: #3F4858;
    --text-3: #5A6476;
    --gold: #B8901E;
    --gold-hover: #D1A72E;
    --gold-active: #8F6F14;
    --gold-text: #856611;
    --on-gold: #15120A;
    --gold-tint: rgba(184, 144, 30, 0.10);
    --ok: #2F6B4B;
    --ok-bg: rgba(47, 107, 75, 0.12);
    --warn: #856611;
    --warn-bg: rgba(133, 102, 17, 0.12);
    --danger: #A23A2E;
    --danger-bg: rgba(162, 58, 46, 0.12);
    --info: #4A546A;
    --info-bg: rgba(74, 84, 106, 0.10);
    --wash-gold: rgba(184, 144, 30, 0.09);
    --wash-cool: rgba(14, 165, 233, 0.08);
    --wash-teal: rgba(13, 148, 136, 0.07);
    --wash-violet: rgba(184, 144, 30, 0.07);
    --wash-emerald: rgba(5, 150, 105, 0.06);
    --wash-ink: rgba(250, 250, 249, 0.78);
    --hero-veil: linear-gradient(105deg, rgba(250, 250, 249, 0.96) 0%, rgba(250, 250, 249, 0.82) 42%, rgba(250, 250, 249, 0.35) 68%, rgba(250, 250, 249, 0.62) 100%),
      linear-gradient(180deg, rgba(250, 250, 249, 0.4) 0%, transparent 28%, rgba(250, 250, 249, 0.78) 100%);
    --glow: radial-gradient(ellipse 75% 50% at 50% -10%, rgba(184, 144, 30, 0.10), transparent 70%);
    --hero-mesh-mask: radial-gradient(ellipse 95% 80% at 50% 30%, black 35%, transparent 95%);
    --final-card-glow: radial-gradient(125% 125% at 50% 10%, rgba(184, 144, 30, 0.08) 0%, transparent 70%), var(--glass-bg-strong);
    --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
}

/* ============================================================
   2. Base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--nav-h) + var(--sp-2));
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: var(--lh-body);
  color: var(--text-1);
  background-color: var(--surface-0);
  background-image: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  isolation: isolate;
}

/* ============================================================
   2b. Ambient background system (base + mesh + orbs)
   No repeating engineering grid. CSS gradients only.
   ============================================================ */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--surface-0);
}

.ambient__mesh {
  position: absolute;
  inset: -18%;
  background-image:
    var(--glow),
    radial-gradient(ellipse 42% 38% at 18% 22%, var(--wash-cool), transparent 58%),
    radial-gradient(ellipse 38% 34% at 82% 12%, var(--wash-gold), transparent 55%),
    radial-gradient(ellipse 44% 40% at 72% 78%, var(--wash-teal), transparent 58%),
    radial-gradient(ellipse 36% 32% at 22% 84%, var(--wash-violet), transparent 55%),
    radial-gradient(ellipse 48% 36% at 48% 48%, var(--wash-emerald), transparent 60%);
  background-repeat: no-repeat;
  transform-origin: 50% 40%;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.55;
  will-change: transform;
}

.ambient__orb--gold {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  top: -8%;
  right: 8%;
  background: var(--wash-gold);
}

.ambient__orb--teal {
  width: min(44vw, 360px);
  height: min(44vw, 360px);
  bottom: 6%;
  left: -4%;
  background: var(--wash-teal);
}

.ambient__orb--violet {
  width: min(36vw, 300px);
  height: min(36vw, 300px);
  top: 42%;
  right: -6%;
  background: var(--wash-violet);
}

body.ambient-calm .ambient__orb--violet {
  opacity: 0.28;
}

body.ambient-calm .ambient__mesh {
  opacity: 0.72;
}

@media (prefers-reduced-motion: no-preference) {
  .ambient__mesh {
    animation: ambient-drift 26s ease-in-out infinite alternate;
  }
  .ambient__orb--gold {
    animation: orb-float-a 22s ease-in-out infinite alternate;
  }
  .ambient__orb--teal {
    animation: orb-float-b 28s ease-in-out infinite alternate;
  }
  .ambient__orb--violet {
    animation: orb-float-c 24s ease-in-out infinite alternate;
  }
}

@keyframes ambient-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2.5%, 1.5%, 0) scale(1.04); }
}

@keyframes orb-float-a {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-6%, 8%, 0); }
}

@keyframes orb-float-b {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(8%, -5%, 0); }
}

@keyframes orb-float-c {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-5%, -7%, 0); }
}

@media (max-width: 699px) {
  .ambient__mesh {
    inset: -8%;
    animation: none;
    background-image:
      var(--glow),
      radial-gradient(ellipse 55% 40% at 20% 18%, var(--wash-cool), transparent 60%),
      radial-gradient(ellipse 50% 38% at 85% 12%, var(--wash-gold), transparent 58%),
      radial-gradient(ellipse 50% 42% at 60% 88%, var(--wash-teal), transparent 60%);
  }
  .ambient__orb--violet {
    display: none;
  }
  .ambient__orb {
    filter: blur(48px);
    opacity: 0.4;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient__mesh,
  .ambient__orb {
    animation: none !important;
  }
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: var(--lh-tight);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-display);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 0;
}

p + p {
  margin-top: var(--sp-2);
}

a {
  color: var(--gold-text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color var(--dur-fast) var(--ease);
}

a:hover {
  color: var(--gold-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2 * var(--sp-3), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--sp-7);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: var(--sp-5);
}

.section-head h2 {
  margin-top: var(--sp-1);
}

.section-head p {
  margin-top: var(--sp-2);
  color: var(--text-2);
  font-size: var(--fs-lead);
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.muted {
  color: var(--text-2);
}

.small {
  font-size: var(--fs-small);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   3. Buttons: every state is distinct
   normal, hover, active, focus, selected, disabled, busy
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  min-height: var(--hit);
  padding: 0 var(--sp-3);
  border-radius: var(--r-control);
  border: 1px solid transparent;
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold);
}

.btn-primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--on-gold);
}

.btn-primary:active {
  background: var(--gold-active);
  border-color: var(--gold-active);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-1);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-text);
}

.btn-secondary:active {
  background: var(--gold-tint);
  border-color: var(--gold-active);
  color: var(--gold-text);
}

.btn-lg {
  min-height: 52px;
  font-size: var(--fs-body);
  padding: 0 var(--sp-4);
}

.btn[aria-pressed="true"],
.btn.is-selected {
  background: var(--gold-tint);
  border-color: var(--gold);
  color: var(--gold-text);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.is-busy {
  color: transparent;
  pointer-events: none;
}

.btn.is-busy::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: var(--r-pill);
  border: 2px solid var(--on-gold);
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}

.btn-secondary.is-busy::after {
  border-color: var(--text-1);
  border-right-color: transparent;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn.is-busy::after {
    animation: none;
    border-right-color: var(--on-gold);
    opacity: 0.5;
  }
}

/* ============================================================
   4. Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--surface-0) 55%, transparent);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  border-bottom: 1px solid var(--glass-border);
}

.nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-1);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark:hover {
  color: var(--text-1);
}

.wordmark-mark {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--r-control);
}

.nav-links {
  display: flex;
  gap: var(--sp-1);
  margin-left: var(--sp-2);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
  padding: 0 var(--sp-2);
  border-radius: var(--r-control);
  color: var(--text-2);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--text-1);
  background: var(--surface-2);
}

.nav-links a:active {
  background: var(--gold-tint);
  color: var(--gold-text);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  gap: var(--sp-1);
}

.nav-menu {
  display: none;
  margin-left: auto;
}

.nav-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--hit);
  height: var(--hit);
  border-radius: var(--r-control);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  color: var(--text-1);
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary:hover {
  border-color: var(--gold);
  color: var(--gold-text);
}

.nav-menu[open] summary {
  background: var(--gold-tint);
  border-color: var(--gold);
  color: var(--gold-text);
}

.nav-menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--nav-h);
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  display: grid;
  gap: var(--sp-1);
}

.nav-menu-panel a {
  display: flex;
  align-items: center;
  min-height: var(--hit);
  padding: 0 var(--sp-2);
  border-radius: var(--r-control);
  color: var(--text-1);
  text-decoration: none;
  font-weight: 600;
}

.nav-menu-panel a:hover {
  background: var(--surface-2);
}

@media (max-width: 899px) {
  .nav-links,
  .nav-actions .btn-secondary {
    display: none;
  }
  .nav-menu {
    display: block;
  }
  .nav-actions {
    margin-left: 0;
  }
}

/* ============================================================
   5. Hero (full-bleed product stage)
   First viewport: brand, one headline, one lead, one CTA group,
   one dominant product image. No inset media cards in the hero.
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-6) var(--sp-7);
}

.hero-stage {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-block: var(--sp-5) var(--sp-6);
}

.hero-stage__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--surface-0);
}

.hero-stage__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
  transform: scale(1.04);
}

.hero-stage__veil {
  position: absolute;
  inset: 0;
  background: var(--hero-veil);
  pointer-events: none;
}

.hero-mesh-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.28;
  mask-image: var(--hero-mesh-mask);
  -webkit-mask-image: var(--hero-mesh-mask);
  mix-blend-mode: soft-light;
}

.hero .container,
.hero-stage__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-brand {
  margin: 0;
  font-size: clamp(1.375rem, 1.05rem + 1.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold-text);
  line-height: 1.15;
}

.hero h1 {
  margin-top: var(--sp-2);
  max-width: 14ch;
}

.hero-stage h1 {
  max-width: 15ch;
}

.hero .lead {
  margin-top: var(--sp-3);
  max-width: 42ch;
  font-size: var(--fs-lead);
  color: var(--text-2);
}

.hero-actions {
  margin-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.hero-note {
  margin-top: var(--sp-2);
  color: var(--text-3);
  font-size: var(--fs-small);
  max-width: 42ch;
}

.shot {
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--glass-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.shot img {
  width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-stage__img {
    animation: hero-ken 28s ease-in-out infinite alternate;
  }
  .hero-brand {
    animation: hero-rise 700ms var(--ease) both;
  }
  .hero-stage h1 {
    animation: hero-rise 700ms var(--ease) 80ms both;
  }
  .hero-stage .lead {
    animation: hero-rise 700ms var(--ease) 140ms both;
  }
  .hero-stage .hero-actions {
    animation: hero-rise 700ms var(--ease) 200ms both;
  }
}

@keyframes hero-ken {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, 1%, 0); }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage__img,
  .hero-brand,
  .hero-stage h1,
  .hero-stage .lead,
  .hero-stage .hero-actions {
    animation: none !important;
  }
}

/* Narrow screens: a flex item's minimum width is its unwrapped content, so
   a nowrap label wider than the screen would push the whole column out.
   Let the label wrap and drop the minimum. */
@media (max-width: 599px) {
  .hero-stage {
    min-height: calc(100svh - var(--nav-h));
    align-items: flex-end;
    padding-bottom: var(--sp-5);
  }
  .hero-stage__img {
    object-position: 62% 30%;
  }
  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
    line-height: 1.25;
    padding-block: var(--sp-2);
    padding-inline: var(--sp-2);
  }
}

/* ============================================================
   6. Proof strip
   ============================================================ */

.proof {
  border-block: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding-block: var(--sp-4);
}

.proof ul {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.proof li strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-1);
}

.proof li span {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-small);
  color: var(--text-2);
}

/* ============================================================
   7. Cards and grids
   ============================================================ */

.grid {
  display: grid;
  gap: var(--sp-2);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.card {
  padding: var(--sp-3);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  background: var(--glass-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.card h3 {
  margin-bottom: var(--sp-1);
}

.card p {
  color: var(--text-2);
}

.card-accent {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--glass-border));
  background: linear-gradient(var(--gold-tint), var(--gold-tint)), var(--glass-bg-strong);
}

.pain {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border-left: 3px solid var(--danger);
  border-radius: var(--r-control);
  background: var(--surface-1);
}

.pain blockquote {
  margin: 0;
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.35;
}

.pain p {
  color: var(--text-2);
}

.pain p::before {
  content: "Fix: ";
  color: var(--ok);
  font-weight: 600;
}

/* ============================================================
   8. Tabs (use cases)
   ============================================================ */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  padding: 4px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-control);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  width: fit-content;
  max-width: 100%;
  margin-bottom: var(--sp-3);
}

.tab {
  min-height: 40px;
  padding: 0 var(--sp-2);
  border: 1px solid transparent;
  border-radius: var(--r-control);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.tab:hover {
  color: var(--text-1);
  background: var(--surface-2);
}

.tab:active {
  background: var(--gold-tint);
}

.tab[aria-selected="true"] {
  background: var(--gold);
  color: var(--on-gold);
}

.tabpanel {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  background: var(--glass-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

@media (min-width: 800px) {
  .tabpanel {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }
}

.tabpanel h3 {
  font-size: 1.375rem;
  font-weight: 700;
}

.tabpanel p {
  margin-top: var(--sp-2);
  color: var(--text-2);
}

.tabpanel ul {
  margin-top: var(--sp-2);
  display: grid;
  gap: var(--sp-1);
}

.tabpanel li {
  display: flex;
  gap: var(--sp-1);
  align-items: flex-start;
  color: var(--text-2);
}

/* The hidden attribute must win over the panel's display: grid. */
.tabpanel[hidden] {
  display: none;
}

html:not(.js) .tabpanel[hidden] {
  display: grid;
  margin-top: var(--sp-2);
}

html:not(.js) .tabs {
  display: none;
}

/* Icons carry a semantic colour, never a decorative one */
.ic {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.ic-ok {
  color: var(--ok);
}

.ic-danger {
  color: var(--danger);
}

.ic-info {
  color: var(--info);
}

/* ============================================================
   9. Steps
   ============================================================ */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: var(--sp-2);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.step {
  counter-increment: step;
  padding: var(--sp-3);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  background: var(--glass-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
}

.step p {
  margin-top: var(--sp-1);
  color: var(--text-2);
}

/* ============================================================
   10. Comparison table
   ============================================================ */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

th,
td {
  padding: var(--sp-2) var(--sp-3);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
  color: var(--text-2);
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

th.col-us {
  color: var(--gold-text);
}

td.col-us {
  background: var(--gold-tint);
  color: var(--text-1);
  font-weight: 600;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td .cell {
  display: flex;
  gap: var(--sp-1);
  align-items: flex-start;
}

/* ============================================================
   11. Walkthrough
   ============================================================ */

.walk {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.walk figure {
  margin: 0;
}

.walk figcaption {
  margin-top: var(--sp-2);
  color: var(--text-2);
  font-size: var(--fs-small);
}

.walk figcaption strong {
  display: block;
  color: var(--text-1);
  font-size: var(--fs-body);
  margin-bottom: 2px;
}

/* ============================================================
   12. Pricing
   ============================================================ */

.plans {
  display: grid;
  gap: var(--sp-2);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  background: var(--glass-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.plan-featured {
  border-color: var(--gold);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-1);
}

.plan .price {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.plan .price small {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-3);
  margin-left: 4px;
}

.plan p {
  color: var(--text-2);
}

.plan ul {
  display: grid;
  gap: var(--sp-1);
  margin-block: var(--sp-1) auto;
}

.plan li {
  display: flex;
  gap: var(--sp-1);
  align-items: flex-start;
  color: var(--text-2);
  font-size: var(--fs-small);
}

.plan .btn {
  width: 100%;
}

/* Status badges use semantic colours only */
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 var(--sp-1);
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.badge-warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ============================================================
   13. Trust (zero-user proof) and quotes (ready when real quotes exist)
   ============================================================ */

.trust-grid .card h3 {
  margin-bottom: var(--sp-1);
}

.trust-actions {
  margin-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.quotes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(100%, 360px);
  gap: var(--sp-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-1);
}

.quote {
  scroll-snap-align: start;
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.quote blockquote {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

.quote cite {
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--text-2);
}

/* ============================================================
   14. FAQ
   ============================================================ */

.faq {
  display: grid;
  gap: var(--sp-1);
  max-width: 820px;
}

.faq details {
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: border-color var(--dur-fast) var(--ease);
}

.faq details:hover {
  border-color: var(--line-strong);
}

.faq details[open] {
  border-color: var(--gold);
}

.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: var(--hit);
  padding: var(--sp-2) var(--sp-3);
  cursor: pointer;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform var(--dur-fast) var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--gold);
}

.faq details > div {
  padding: 0 var(--sp-3) var(--sp-3);
  color: var(--text-2);
  max-width: var(--measure);
}

/* ============================================================
   15. Final call and footer
   ============================================================ */

.final {
  padding-block: var(--sp-7);
}

.final .card {
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  border-color: var(--gold);
  background: var(--final-card-glow);
}

.final h2 {
  max-width: 22ch;
  margin-inline: auto;
}

.final p {
  margin: var(--sp-2) auto 0;
  max-width: var(--measure);
}

.final .hero-actions {
  justify-content: center;
}

.footer {
  border-top: 1px solid var(--line);
  padding-block: var(--sp-4);
  font-size: var(--fs-small);
  color: var(--text-3);
}

.footer .container {
  display: grid;
  gap: var(--sp-2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
}

.footer-links a {
  color: var(--text-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-text);
  text-decoration: underline;
}

@media (min-width: 700px) {
  .footer .container {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}


/* ============================================================
   Multi-page chrome and competitor compare
   ============================================================ */

.nav-links a.is-active,
.nav-menu-panel a.is-active {
  color: var(--gold-text);
}

.page-hero {
  padding: calc(var(--nav-h) + var(--sp-6)) 0 var(--sp-5);
}

.page-hero .lead {
  max-width: var(--measure);
  color: var(--text-2);
  font-size: var(--fs-lead);
}

.page-hero .eyebrow {
  display: inline-block;
  margin-bottom: var(--sp-2);
}

.compare-note {
  margin: var(--sp-2) 0 var(--sp-4);
  color: var(--text-3);
  font-size: var(--fs-small);
  max-width: var(--measure);
}

.table-wrap.table-compare {
  overflow-x: auto;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  background: var(--glass-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.table-compare table {
  min-width: 720px;
}

.table-compare th.col-us,
.table-compare td.col-us {
  background: var(--gold-tint);
}

.share-card {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  background: var(--final-card-glow);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.share-card h3 {
  margin-bottom: var(--sp-1);
}

.page-cta {
  margin-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

@media (max-width: 699px) {
  :root {
    --glass-blur: 8px;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav,
  .card,
  .tabpanel,
  .tabs,
  .plan,
  .step,
  .shot,
  .faq details,
  .table-wrap,
  .share-card,
  .quote,
  .nav-menu-panel {
    background: color-mix(in srgb, var(--surface-0) 88%, var(--text-1));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.walk-spaced{margin-top:var(--sp-5);}
