:root {
  --font-sans:
    "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Liberation Mono", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.8rem, 3vw, 2.65rem);
  --text-financial: clamp(1.8rem, 2.4vw, 2.6rem);

  --font-weight-label: 650;
  --font-weight-emphasis: 700;
  --font-weight-strong: 750;
  --tracking-brand: -0.02em;
  --tracking-mark: -0.08em;
  --tracking-display: -0.045em;
  --tracking-heading: -0.025em;
  --tracking-eyebrow: 0.11em;
  --transform-eyebrow: uppercase;
  --line-body: 1.5;
  --line-label: 1.25;
  --line-display: 1.08;
  --line-heading: 1.2;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-pill: 999px;

  --border-width: 1px;
  --sidebar-width: 17rem;
  --content-max-width: 76rem;
  --mobile-navigation-height: 6.75rem;
  --z-skip-link: 100;
  --z-mobile-navigation: 40;
  --z-navigation-panel: 50;
  --transition-fast: 150ms ease;
  --transition-normal: 220ms ease;

  --color-ink-950: #172126;
  --color-ink-800: #2c3a40;
  --color-ink-600: #5b6b72;
  --color-ink-400: #8c9aa0;
  --color-paper-25: #fbfcfc;
  --color-paper-100: #f2f5f5;
  --color-paper-200: #e6ecec;
  --color-paper-300: #d2dcdc;
  --color-teal-700: #0d5c63;
  --color-teal-300: #75c8c4;
  --color-teal-500: #16848a;
  --color-teal-100: #dff3f1;
  --color-amber-100: #fff1cc;
  --color-amber-700: #805d00;
  --color-red-100: #ffe5e2;
  --color-red-700: #a33b35;
  --color-night-950: #11191d;
  --color-night-900: #172328;
  --color-night-800: #213238;
  --color-night-700: #30454c;
  --color-mist-100: #e8f0f0;
  --color-mist-300: #b6c8ca;
  --color-mist-500: #8da5a8;
  --color-white: #ffffff;

  --shadow-card: 0 1rem 2.5rem rgb(31 55 60 / 0.08);
  --shadow-focus: 0 0 0 0.25rem rgb(22 132 138 / 0.22);
}

/* Tokens of the redesign (`--c-*`); legacy roles alias them so older surfaces follow. */
:root,
[data-theme="system"],
[data-theme="light"] {
  color-scheme: light;
  --c-canvas: #f3f5f5;
  --c-rail: #fbfcfc;
  --c-card: #ffffff;
  --c-muted: #e9eeee;
  --c-ink: #172126;
  --c-ink2: #5b6b72;
  --c-ink3: #7f8d93;
  --c-line: #d8e0e0;
  --c-line2: #c3cfcf;
  --c-accent: #0d5c63;
  --c-accent-soft: #dff3f1;
  --c-on-accent: #ffffff;
  --c-pos: #0f7a73;
  --c-neg: #a33b35;
  --c-neg-soft: #ffe5e2;
  --c-warn: #805d00;
  --c-warn-soft: #fff1cc;
  /* High impact of an economic announcement: burnt orange, never a loss. */
  --c-hi: #b4501e;
  --c-shadow: 0 1px 2px rgb(23 33 38 / 0.06), 0 8px 24px rgb(23 33 38 / 0.05);
  --c-shadow-pop: 0 12px 32px rgb(0 0 0 / 0.14);
  --c-scrim: rgb(23 33 38 / 0.45);
}

[data-theme="dark"] {
  color-scheme: dark;
  --c-canvas: #0f1619;
  --c-rail: #141d21;
  --c-card: #172328;
  --c-muted: #213238;
  --c-ink: #e8f0f0;
  --c-ink2: #b6c8ca;
  --c-ink3: #8da5a8;
  --c-line: #2a3b41;
  --c-line2: #3a4f56;
  --c-accent: #75c8c4;
  --c-accent-soft: #1e3338;
  --c-on-accent: #0f1619;
  --c-pos: #7fd3cd;
  --c-neg: #f0a59e;
  --c-neg-soft: #3a2426;
  --c-warn: #e6c76a;
  --c-warn-soft: #3a3320;
  --c-hi: #f0a067;
  --c-shadow: 0 1px 2px rgb(0 0 0 / 0.4);
  --c-shadow-pop: 0 12px 32px rgb(0 0 0 / 0.5);
  --c-scrim: rgb(0 0 0 / 0.6);
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    color-scheme: dark;
    --c-canvas: #0f1619;
    --c-rail: #141d21;
    --c-card: #172328;
    --c-muted: #213238;
    --c-ink: #e8f0f0;
    --c-ink2: #b6c8ca;
    --c-ink3: #8da5a8;
    --c-line: #2a3b41;
    --c-line2: #3a4f56;
    --c-accent: #75c8c4;
    --c-accent-soft: #1e3338;
    --c-on-accent: #0f1619;
    --c-pos: #7fd3cd;
    --c-neg: #f0a59e;
    --c-neg-soft: #3a2426;
    --c-warn: #e6c76a;
    --c-warn-soft: #3a3320;
    --c-hi: #f0a067;
    --c-shadow: 0 1px 2px rgb(0 0 0 / 0.4);
    --c-shadow-pop: 0 12px 32px rgb(0 0 0 / 0.5);
    --c-scrim: rgb(0 0 0 / 0.6);
  }
}

:root,
[data-theme] {
  --surface-canvas: var(--c-canvas);
  --surface-rail: var(--c-rail);
  --surface-card: var(--c-card);
  --surface-muted: var(--c-muted);
  --text-primary: var(--c-ink);
  --text-secondary: var(--c-ink2);
  --text-informative: var(--c-ink2);
  --text-muted: var(--c-ink3);
  --border-subtle: var(--c-line);
  --border-strong: var(--c-ink3);
  --accent-primary: var(--c-accent);
  --accent-soft: var(--c-accent-soft);
  --auth-action-bg: var(--c-accent);
  --auth-action-text: var(--c-on-accent);
  --auth-link: var(--c-accent);
  --status-ready: var(--c-pos);
  --status-ready-surface: var(--c-accent-soft);
  --status-neutral: var(--c-ink2);
  --status-neutral-surface: var(--c-muted);
  --status-error: var(--c-neg);
  --status-error-surface: var(--c-neg-soft);
  --status-warning: var(--c-warn);
  --status-warning-surface: var(--c-warn-soft);
  --status-info: var(--c-accent);
  --status-info-surface: var(--c-accent-soft);
  --focus-ring: var(--color-teal-500);
  --shadow-card: var(--c-shadow);
}

/* Brand site layout; colours and type come from src/styles/tokens.css and theme.css.
   One page: hero, trust, pillars, proof, captures, features, pricing, FAQ, blog, closing.
   No script: the reveals and the header shadow are scroll-driven CSS animations, kept
   behind @supports and prefers-reduced-motion so every browser shows the full page. */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
}

/* Site-only roles: a marketing display size and the glows derived from the accent. */
:root {
  --site-display: clamp(2.5rem, 1.5rem + 4.2vw, 4.6rem);
  --site-title: clamp(1.85rem, 1.25rem + 2.1vw, 2.9rem);
  --site-subtitle: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem);
  --site-header-height: 4.25rem;
  --site-section: clamp(4rem, 9vw, 7.5rem);
  --site-radius-xl: 1.5rem;
  --site-glow: color-mix(in oklab, var(--c-accent) 22%, transparent);
  --site-glow-soft: color-mix(in oklab, var(--c-accent) 10%, transparent);
  --site-shadow-frame:
    0 1px 2px rgb(23 33 38 / 0.06), 0 24px 60px -24px rgb(23 33 38 / 0.35);
  --site-band-start: #0f6a72;
  --site-band-end: #0a454b;
  --site-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* Anchors land under the sticky header (scroll-padding only: a scroll-margin on the target would add up). */
html {
  scroll-padding-top: calc(var(--site-header-height) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--line-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-primary);
  text-underline-offset: 0.15em;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: var(--line-heading);
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}

p,
li,
figcaption,
summary {
  text-wrap: pretty;
}

h1 {
  font-size: var(--site-title);
  line-height: var(--line-display);
  letter-spacing: var(--tracking-display);
  margin: 0 0 var(--space-4);
}

h2 {
  font-size: var(--site-title);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

h3 {
  font-size: var(--text-lg);
  margin: 0;
}

.display {
  font-size: var(--site-display);
  font-weight: var(--font-weight-emphasis);
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 17ch;
  margin: 0 auto;
}

.wrap {
  width: min(100% - 2 * var(--space-5), var(--content-max-width));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -4rem;
  z-index: var(--z-skip-link);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  background: var(--surface-card);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-4);
}

main:focus {
  outline: none;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-navigation-panel);
  background: color-mix(in srgb, var(--c-canvas) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: var(--border-width) solid transparent;
}

@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-scrolled linear both;
    animation-timeline: scroll(root);
    animation-range: 0 6rem;
  }
}

@keyframes header-scrolled {
  to {
    border-bottom-color: var(--c-line);
    box-shadow: 0 8px 24px -12px rgb(23 33 38 / 0.18);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2) var(--space-6);
  min-height: var(--site-header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--text-primary);
  font-weight: var(--font-weight-emphasis);
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-brand);
  text-decoration: none;
}

.brand img {
  border-radius: 0.5rem;
}

.site-nav {
  display: flex;
  gap: var(--space-1);
  margin-inline: auto;
}

.site-nav a,
.site-languages a,
.site-header__signin {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-3);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-label);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.site-nav a:hover,
.site-languages a:hover,
.site-header__signin:hover,
.site-nav a[aria-current],
.site-languages a[aria-current] {
  background: var(--surface-muted);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.site-languages {
  display: flex;
  gap: 0;
  margin-right: var(--space-2);
  padding: 2px;
  border: var(--border-width) solid var(--c-line);
  border-radius: var(--radius-pill);
}

.site-languages a {
  min-height: 44px;
  padding-inline: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.site-languages a[aria-current] {
  color: var(--text-primary);
  background: var(--surface-card);
  box-shadow: var(--c-shadow);
}

/* Small screens: brand, languages and the call to action on one line, the sections on a
   second, scrollable line. Nothing to open, nothing to script. */
@media (max-width: 55.99rem) {
  :root {
    --site-header-height: 7.5rem;
  }

  .site-header__inner {
    flex-wrap: wrap;
    gap: 0 var(--space-2);
    padding-block: var(--space-2) 0;
    min-height: 0;
  }

  .brand {
    margin-right: auto;
  }

  .site-header__actions {
    gap: 0;
  }

  .site-languages a,
  .site-header__signin {
    min-height: 44px;
    padding-inline: 0.375rem;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    margin: var(--space-1) calc(-1 * var(--space-5)) 0;
    padding: var(--space-1) var(--space-5) var(--space-2);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: none;
    font-size: var(--text-sm);
    background: var(--surface-muted);
  }

  .site-languages {
    margin-right: 0;
    padding: 1px;
  }
}

/* ---------- Text roles ---------- */

.eyebrow {
  color: var(--accent-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-label);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: var(--transform-eyebrow);
  margin: 0 0 var(--space-3);
}

.eyebrow--pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: var(--border-width) solid
    color-mix(in srgb, var(--c-accent) 25%, transparent);
  margin-bottom: var(--space-5);
}

.eyebrow--pill::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--c-pos);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-pos) 25%, transparent);
}

.lead {
  max-width: 60ch;
  color: var(--text-secondary);
  font-size: var(--site-subtitle);
  margin: 0;
}

.note {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin: var(--space-6) 0 0;
}

.note--center {
  text-align: center;
}

.section {
  padding-block: calc(var(--site-section) / 2);
}

.section + .section {
  padding-top: calc(var(--site-section) / 2);
}

.section__head {
  max-width: 46rem;
  margin: 0 auto var(--space-10);
  text-align: center;
}

.section__head .lead {
  margin: var(--space-4) auto 0;
}

.section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: none;
  text-align: left;
}

.section--band {
  background: var(--surface-rail);
  border-block: var(--border-width) solid var(--c-line);
  margin-block: calc(var(--site-section) / 2);
  padding-block: calc(var(--site-section) / 1.6);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-weight: var(--font-weight-label);
  text-decoration: none;
}

.link-arrow .icon {
  transition: transform var(--transition-fast);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-7, 1.75rem) 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  border: 2px solid var(--auth-action-bg);
  border-radius: var(--radius-pill);
  background: var(--auth-action-bg);
  color: var(--auth-action-text);
  font-weight: var(--font-weight-label);
  text-decoration: none;
  box-shadow: 0 10px 24px -14px var(--c-accent);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -14px var(--c-accent);
}

.button:active {
  transform: translateY(0);
  box-shadow: none;
}

.button--ghost {
  background: transparent;
  color: var(--accent-primary);
  box-shadow: none;
}

.button--ghost:hover {
  background: var(--accent-soft);
  box-shadow: none;
}

.button--large {
  min-height: 52px;
  padding-inline: var(--space-6);
  font-size: var(--text-md);
}

.button--small {
  min-height: 44px;
  padding-inline: var(--space-4);
  font-size: var(--text-sm);
  box-shadow: none;
}

/* Small screens keep the sign-in link; the hero already carries the call to action. */
@media (max-width: 55.99rem) {
  .site-header .button--small {
    display: none;
  }
}

.button--inverse {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--site-band-end);
  box-shadow: 0 12px 28px -12px rgb(0 0 0 / 0.45);
}

.button--inverse:hover {
  background: var(--color-paper-100);
  border-color: var(--color-paper-100);
  box-shadow: 0 16px 32px -12px rgb(0 0 0 / 0.5);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(3rem, 7vw, 6rem) 0;
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 46rem;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background: radial-gradient(
    60% 55% at 50% -5%,
    var(--site-glow),
    transparent 70%
  );
}

.hero::after {
  background-image:
    linear-gradient(var(--c-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
  background-size: 3rem 3rem;
  background-position: center top;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .lead {
  margin-top: var(--space-5);
  max-width: 54ch;
}

.hero .actions {
  justify-content: center;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.facts li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--c-accent);
}

.hero__media {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  perspective: 1600px;
}

.hero__frame {
  box-shadow:
    0 40px 100px -40px color-mix(in srgb, var(--c-accent) 55%, transparent),
    var(--site-shadow-frame);
}

.hero__video,
.hero__poster {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  /* The render's own dark canvas (dark-theme --c-canvas), in both site themes: no white frame
     before the poster loads. */
  background: #0f1619;
}

/* With reduced motion the video has no source: show the poster image instead of inert controls.
   Scoped to the frame so the generic `.frame img` rule below cannot show both at once. */
.hero__frame .hero__poster {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__frame .hero__video {
    display: none;
  }

  .hero__frame .hero__poster {
    display: block;
  }
}

/* Entrance of the hero, once, time-based. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * {
    animation: rise 0.8s var(--site-ease) both;
  }

  .hero__copy > :nth-child(2) {
    animation-delay: 0.08s;
  }

  .hero__copy > :nth-child(3) {
    animation-delay: 0.16s;
  }

  .hero__copy > :nth-child(4) {
    animation-delay: 0.24s;
  }

  .hero__copy > :nth-child(5) {
    animation-delay: 0.32s;
  }

  .hero__media {
    animation: rise-media 1s var(--site-ease) 0.3s both;
  }

  .trust {
    animation: rise 0.8s var(--site-ease) 0.5s both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise-media {
  from {
    opacity: 0;
    transform: translateY(40px) rotateX(6deg);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Trust ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.trust li {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: color-mix(in srgb, var(--c-card) 80%, transparent);
  border: var(--border-width) solid var(--c-line);
  border-radius: var(--radius-md);
}

.trust__icon,
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--accent-soft);
  color: var(--accent-primary);
}

.trust strong {
  display: block;
  font-weight: var(--font-weight-label);
}

.trust p {
  margin: var(--space-1) 0 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* ---------- Cards, pillars, features ---------- */

.card,
.plan,
.faq {
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
}

.card p {
  margin: 0;
  color: var(--text-secondary);
}

.card h3 {
  margin: 0 0 var(--space-2);
}

.pillars,
.features {
  display: grid;
  gap: var(--space-5);
  padding: 0;
  margin: 0;
  list-style: none;
}

.pillar {
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.pillar::after {
  content: "";
  position: absolute;
  inset: auto -30% -40% auto;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--site-glow-soft), transparent 70%);
  pointer-events: none;
}

.pillar .card__icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-5);
}

.pillar .icon {
  width: 1.5rem;
  height: 1.5rem;
}

@media (hover: hover) {
  .pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -24px rgb(23 33 38 / 0.35);
  }
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--space-4);
  row-gap: var(--space-1);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: var(--border-width) solid var(--c-line);
}

.feature .card__icon {
  grid-row: span 2;
}

.feature h3 {
  font-size: var(--text-md);
  margin: 0;
  align-self: center;
}

.feature p {
  grid-column: 2;
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

@media (min-width: 48rem) {
  .pillars,
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 40rem) and (max-width: 47.99rem) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Proof ---------- */

.proof {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 56rem) {
  .proof {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-12);
  }
}

.checks {
  display: grid;
  gap: var(--space-3);
  padding: 0;
  margin: var(--space-6) 0 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.icon--check {
  width: 1.375rem;
  height: 1.375rem;
  margin-top: 0.1rem;
  padding: 0.2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-primary);
  stroke-width: 2.5;
}

/* Feature a plan does not include: a dash on a neutral disc, quieter text. */
.icon--minus {
  background: var(--surface-muted);
  color: var(--text-muted);
}

.checks .is-off {
  color: var(--text-secondary);
}

.proof__figure {
  margin: 0;
  padding: var(--space-5);
  background: var(--surface-card);
  border: var(--border-width) solid var(--c-line);
  border-radius: var(--site-radius-xl);
  box-shadow: var(--site-shadow-frame);
}

.proof__chart {
  display: block;
  width: 100%;
  height: auto;
  color: var(--c-neg);
  font-family: var(--font-sans);
}

.proof__grid {
  stroke: var(--c-line);
  stroke-dasharray: 2 6;
}

.proof__band {
  fill: var(--c-neg-soft);
  opacity: 0.8;
}

.proof__area {
  fill: url("#proof-fill");
}

.proof__balance {
  fill: none;
  stroke: var(--c-ink3);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.proof__equity {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.proof__marker {
  fill: none;
  stroke: var(--c-neg);
  stroke-width: 1.75;
  stroke-dasharray: 4 5;
}

.proof__dot--peak {
  fill: var(--c-card);
  stroke: var(--c-ink3);
  stroke-width: 2.5;
}

.proof__dot--low {
  fill: var(--c-neg);
  stroke: var(--c-card);
  stroke-width: 3;
}

.proof__labels text {
  fill: var(--c-ink);
  font-size: 15px;
  font-weight: 650;
}

.draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .draw {
      stroke-dashoffset: 1;
      animation: draw linear both;
      animation-timeline: view();
      animation-range: entry 15% entry 85%;
    }

    .proof__band,
    .proof__marker,
    .proof__dot,
    .proof__labels,
    .proof__area {
      animation: appear linear both;
      animation-timeline: view();
      animation-range: entry 60% entry 100%;
    }
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes appear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.legend li::before {
  content: "";
  width: 1.25rem;
  height: 0;
  border-top: 3px solid var(--c-ink3);
  border-radius: 2px;
}

.legend__equity::before {
  border-top-color: var(--c-accent);
}

/* ---------- Device frames and captures ---------- */

.frame {
  position: relative;
  overflow: hidden;
  background: var(--surface-card);
  border: var(--border-width) solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--site-shadow-frame);
}

.frame__bar {
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  background: var(--surface-muted);
  border-bottom: var(--border-width) solid var(--c-line);
}

.frame__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-line2);
}

.frame img,
.frame video {
  display: block;
  width: 100%;
  height: auto;
}

.frame--phone {
  width: auto;
  height: 100%;
  aspect-ratio: 390 / 844;
  max-width: 100%;
  border: 6px solid color-mix(in srgb, var(--c-ink) 88%, var(--c-card));
  border-radius: 2rem;
  box-shadow:
    0 0 0 1px var(--c-line),
    var(--site-shadow-frame);
}

.frame--phone img {
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.bento {
  display: grid;
  gap: var(--space-5);
}

.bento__item {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: var(--space-3);
  margin: 0;
  min-width: 0;
}

.bento__item--tall {
  justify-items: center;
}

.bento__item figcaption {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  text-align: center;
}

@media (min-width: 56rem) {
  .bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bento__item--wide {
    grid-column: span 2;
  }

  .bento__item--tall .frame--phone {
    height: 100%;
  }
}

@media (max-width: 55.99rem) {
  .bento__item--tall .frame--phone {
    width: min(16rem, 70%);
    height: auto;
  }
}

/* ---------- Pricing ---------- */

.period {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0 0 var(--space-8);
}

/* The legend names the switch for assistive technology only (`visually-hidden` in the markup). */
.period__track {
  display: inline-flex;
  gap: var(--space-1);
  padding: var(--space-1);
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  border: var(--border-width) solid var(--c-line);
}

.period input {
  position: absolute;
  opacity: 0;
}

.period label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding-inline: var(--space-4);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-weight: var(--font-weight-label);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.period input:checked + label {
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
}

.period input:focus-visible + label {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.offer {
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-label);
  line-height: var(--line-heading);
}

.plans {
  display: grid;
  gap: var(--space-6) var(--space-5);
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Each card spans four shared rows (name, tagline, price and action, features):
   titles, prices, buttons and lists line up across the three plans. */
@media (min-width: 56rem) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .plan {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: var(--space-4);
  }
}

.plan {
  position: relative;
  padding-top: var(--space-8);
}

.plan h3 {
  font-size: var(--text-lg);
  margin: 0;
}

.plan > p {
  margin: 0;
  color: var(--text-secondary);
}

.plan .checks {
  margin: var(--space-5) 0 0;
  padding-top: var(--space-5);
  border-top: var(--border-width) solid var(--c-line);
  font-size: 0.9375rem;
}

.plan .button {
  width: 100%;
}

.plan--featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--c-card), var(--c-card)) padding-box,
    linear-gradient(135deg, var(--c-accent), var(--color-teal-300)) border-box;
  box-shadow: 0 30px 60px -30px
    color-mix(in srgb, var(--c-accent) 70%, transparent);
}

/* Out of the flow so every card keeps its title and price at the same height;
   `.plan .plan__badge` outranks the `.plan > p` colour of the tagline. */
.plan .plan__badge {
  position: absolute;
  top: 0;
  left: var(--space-6);
  transform: translateY(-50%);
  margin: 0;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: linear-gradient(
    135deg,
    var(--site-band-start),
    var(--site-band-end)
  );
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price {
  margin: var(--space-4) 0 var(--space-3);
}

/* Inside the shared rows, the grid gap spaces the card; only the action keeps its offset. */
@media (min-width: 56rem) {
  .plan > p,
  .plan .price {
    margin: 0;
  }

  .plan .price {
    margin-bottom: var(--space-3);
  }

  .plan .checks {
    margin-top: 0;
  }
}

.price strong {
  font-size: var(--text-financial);
  font-weight: var(--font-weight-emphasis);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.price span {
  color: var(--text-secondary);
}

/* Yearly by default; the monthly radio swaps the visible prices and calls to action. */
[data-period="month"],
.pricing:has(#period-month:checked) [data-period="year"] {
  display: none;
}

.pricing:has(#period-month:checked) [data-period="month"] {
  display: block;
}

/* ---------- FAQ ---------- */

.faq-section {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 56rem) {
  .faq-section {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--space-12);
    align-items: start;
  }

  .faq-section__head {
    position: sticky;
    top: calc(var(--site-header-height) + var(--space-8));
  }
}

.faq-list {
  display: grid;
  gap: var(--space-3);
}

.faq {
  padding: 0;
  transition: border-color var(--transition-fast);
}

.faq[open] {
  border-color: var(--c-line2);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 44px;
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  font-weight: var(--font-weight-label);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* Plus sign drawn in CSS, turned into a minus when open. */
.faq summary::after {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--accent-primary), var(--accent-primary)) center /
    0.75rem 2px no-repeat,
    linear-gradient(var(--accent-primary), var(--accent-primary)) center / 2px
    0.75rem no-repeat,
    var(--accent-soft);
  transition: transform var(--transition-normal);
}

.faq[open] summary::after {
  transform: rotate(135deg);
}

.faq summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-lg);
}

.faq p {
  margin: 0;
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-secondary);
}

/* ---------- Closing band ---------- */

.closing__band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--space-6);
  border-radius: var(--site-radius-xl);
  background:
    radial-gradient(50% 70% at 15% 0%, rgb(143 224 217 / 0.35), transparent 70%),
    radial-gradient(
      40% 60% at 90% 100%,
      rgb(143 224 217 / 0.18),
      transparent 70%
    ),
    linear-gradient(135deg, var(--site-band-start), var(--site-band-end));
  color: var(--color-white);
  text-align: center;
  box-shadow: 0 40px 80px -40px rgb(10 69 75 / 0.6);
}

/* Also inside an article, where `.prose p`/`.prose h2` would otherwise restyle the band. */
.closing__band h2,
.prose .closing__band h2 {
  margin: 0;
  color: inherit;
}

.closing__band p,
.prose .closing__band p {
  max-width: 48ch;
  margin: var(--space-4) auto 0;
  color: rgb(255 255 255 / 0.85);
  font-size: var(--site-subtitle);
}

.closing__band .actions {
  justify-content: center;
  margin-top: var(--space-6);
}

.closing__band--compact {
  margin-top: var(--space-10);
  padding: var(--space-8) var(--space-6);
}

.closing__band--compact h2,
.prose .closing__band--compact h2 {
  font-size: var(--text-lg);
}

.closing__band--compact p,
.prose .closing__band--compact p {
  font-size: var(--text-md);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: calc(var(--site-section) / 2);
  padding-top: var(--space-10);
  background: var(--surface-rail);
  border-top: var(--border-width) solid var(--border-subtle);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.site-footer__top {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: minmax(14rem, 1.2fr) 2fr;
  padding-bottom: var(--space-8);
}

.site-footer__brand p {
  max-width: 32ch;
  margin: var(--space-3) 0 0;
}

.site-footer__brand .brand {
  color: var(--text-primary);
}

.site-footer__disclaimer {
  font-size: var(--text-xs);
}

.site-footer__columns {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer h2 {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-label);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: var(--transform-eyebrow);
  color: var(--text-secondary);
  margin: 0 0 var(--space-1);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer a:hover,
.site-footer a:focus-visible,
.site-footer a[aria-current] {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  padding-block: var(--space-4);
  border-top: var(--border-width) solid var(--border-subtle);
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom ul {
  display: flex;
  gap: var(--space-4);
}

@media (max-width: 40rem) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .site-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Secondary pages: blog, articles, legal ---------- */

.page-head {
  padding-block: clamp(3rem, 7vw, 5rem) var(--space-8);
  max-width: 50rem;
}

.page-head h1 {
  margin: 0;
}

.page-head .lead {
  margin-top: var(--space-3);
}

.page-head .note {
  margin-top: var(--space-4);
}

.legal {
  padding-bottom: var(--space-12);
}

.legal section {
  max-width: 70ch;
}

.legal section + section {
  margin-top: var(--space-8);
}

.legal h2 {
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-heading);
  margin: 0 0 var(--space-2);
}

.legal p {
  overflow-wrap: anywhere;
}

.article-list {
  display: grid;
  gap: var(--space-5);
  padding: 0;
  margin: 0 0 var(--space-12);
  list-style: none;
}

.article-list h2,
.article-list h3 {
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-heading);
  margin: 0 0 var(--space-2);
}

.article-list a {
  color: var(--text-primary);
  text-decoration: none;
}

.article-list a:hover {
  text-decoration: underline;
}

.article-list--teaser {
  margin-bottom: 0;
}

@media (min-width: 48rem) {
  .article-list--teaser {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.article-meta {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin: 0 0 var(--space-3);
}

.prose {
  max-width: 70ch;
  padding-block: var(--space-10) var(--space-12);
}

.prose__back {
  margin: 0 0 var(--space-6);
}

.prose h1 {
  margin-top: var(--space-4);
}

.prose h2 {
  font-size: calc(var(--text-lg) * 1.2);
  letter-spacing: var(--tracking-heading);
  margin-top: var(--space-10);
}

.prose h3 {
  margin-top: var(--space-8);
}

.prose p,
.prose li {
  color: var(--text-primary);
}

.table-scroll {
  overflow-x: auto;
  margin-block: var(--space-5);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-md);
}

/* Row headers take a quarter; the other columns share the rest evenly, whatever their text. */
.table-scroll table {
  min-width: 36rem;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.table-scroll th,
.table-scroll td {
  padding: var(--space-3) var(--space-3);
  border-bottom: var(--border-width) solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
  font-size: 0.9375rem;
}

.table-scroll th[scope="row"] {
  width: 24%;
  font-weight: var(--font-weight-label);
}

.table-scroll thead th {
  background: var(--surface-muted);
  font-weight: var(--font-weight-label);
}

/* The product's column of a comparison, tinted and in full ink; the competitor stays secondary. */
.table-scroll .ours {
  background: var(--accent-soft);
  color: var(--text-primary);
}

.table-scroll thead th.ours {
  color: var(--accent-primary);
}

.table-scroll tbody tr:last-child th,
.table-scroll tbody tr:last-child td {
  border-bottom: 0;
}

.sources {
  overflow-wrap: anywhere;
}

/* ---------- Scroll-driven reveals (progressive) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Printed or paginated: nothing scrolls, so every reveal and every stroke is in its final state. */
@media print {
  .reveal,
  .hero__copy > *,
  .hero__media,
  .trust,
  .proof__band,
  .proof__marker,
  .proof__dot,
  .proof__labels,
  .proof__area {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .draw {
    animation: none;
    stroke-dashoffset: 0;
  }

  .site-header {
    position: static;
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 55.99rem) {
  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  .trust {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero .actions .button {
    width: 100%;
  }

  .display {
    max-width: none;
  }

  .section__head {
    margin-bottom: var(--space-8);
  }

  .proof__figure {
    padding: var(--space-3);
  }
}
