/* ============================================================
   SENDABLE — Design Tokens
   ============================================================ */

:root,
[data-theme='light'] {
  /* Surfaces — warm parchment, ink accents */
  --color-bg: #faf7f1;
  --color-surface: #ffffff;
  --color-surface-2: #fbf8f2;
  --color-surface-offset: #f2ecdf;
  --color-surface-offset-2: #eae2d0;
  --color-surface-dynamic: #e3d9c3;
  --color-divider: #e7e0d0;
  --color-border: #ddd3bd;

  /* Text — warm ink */
  --color-text: #1d1a14;
  --color-text-muted: #6d6656;
  --color-text-faint: #a89f8a;
  --color-text-inverse: #faf7f1;

  /* Primary accent — ember amber */
  --color-primary: #a85a1f;
  --color-primary-hover: #8a4715;
  --color-primary-active: #6e380f;
  --color-primary-highlight: #f0dcc0;
  --color-primary-text-on: #fff8ec;

  /* Success — signal green (delivery states only) */
  --color-success: #3f7a4a;
  --color-success-hover: #2f5f38;
  --color-success-highlight: #d9e6d5;

  /* Error */
  --color-error: #a13636;
  --color-error-highlight: #ecd6d2;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 1px 2px oklch(0.3 0.03 60 / 0.08);
  --shadow-md: 0 6px 16px oklch(0.3 0.03 60 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.3 0.03 60 / 0.14);

  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1240px;
  --content-full: 100%;

  --font-display: 'General Sans', 'Segoe UI', sans-serif;
  --font-body: 'Satoshi', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

[data-theme='dark'] {
  --color-bg: #16130f;
  --color-surface: #1c1813;
  --color-surface-2: #201c16;
  --color-surface-offset: #262019;
  --color-surface-offset-2: #2c251d;
  --color-surface-dynamic: #362d22;
  --color-divider: #2a241c;
  --color-border: #3a3226;

  --color-text: #f0ebe0;
  --color-text-muted: #a89d89;
  --color-text-faint: #6b6252;
  --color-text-inverse: #1d1a14;

  --color-primary: #e5a85a;
  --color-primary-hover: #eeba7c;
  --color-primary-active: #f5cc9a;
  --color-primary-highlight: #40331f;
  --color-primary-text-on: #211505;

  --color-success: #7fb589;
  --color-success-hover: #9bc8a3;
  --color-success-highlight: #253426;

  --color-error: #d98a8a;
  --color-error-highlight: #3a2624;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 16px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 20px 44px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #16130f;
    --color-surface: #1c1813;
    --color-surface-2: #201c16;
    --color-surface-offset: #262019;
    --color-surface-offset-2: #2c251d;
    --color-surface-dynamic: #362d22;
    --color-divider: #2a241c;
    --color-border: #3a3226;
    --color-text: #f0ebe0;
    --color-text-muted: #a89d89;
    --color-text-faint: #6b6252;
    --color-text-inverse: #1d1a14;
    --color-primary: #e5a85a;
    --color-primary-hover: #eeba7c;
    --color-primary-active: #f5cc9a;
    --color-primary-highlight: #40331f;
    --color-primary-text-on: #211505;
    --color-success: #7fb589;
    --color-success-highlight: #253426;
    --color-error: #d98a8a;
    --color-error-highlight: #3a2624;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 6px 16px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 20px 44px oklch(0 0 0 / 0.5);
  }
}

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  --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;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--default {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  display: inline-block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.section-title {
  font-size: var(--text-xl);
  font-weight: 600;
  max-width: 34ch;
}
.section-lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-top: var(--space-4);
  font-family: var(--font-body);
  font-weight: 400;
}

.section-head {
  margin-bottom: var(--space-12);
}

/* Reveal-on-scroll (opacity/clip-path only, no CLS) */
.reveal {
  opacity: 1;
}
@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
}
@keyframes reveal-fade {
  to {
    opacity: 1;
  }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  min-height: 44px;
  white-space: nowrap;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-text-on);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-text-faint);
  background: var(--color-surface-offset);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}
.btn-ghost:hover {
  color: var(--color-text);
}

/* ============================================================
   Header
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

section[id] {
  scroll-margin-top: 84px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
}
.logo svg {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-8);
}
.nav-desktop a:not(.btn) {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  text-decoration: none;
}
.nav-desktop a:not(.btn):hover {
  color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}

[data-desktop-only] {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding-block: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.mobile-menu.is-open {
  display: flex;
}
.mobile-menu a:not(.btn) {
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
}
.mobile-menu a:not(.btn):hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}
.mobile-menu .btn {
  margin-top: var(--space-3);
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
  [data-desktop-only] {
    display: inline-flex;
  }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding-block: clamp(var(--space-16), 10vw, var(--space-24)) clamp(var(--space-12), 8vw, var(--space-20));
  position: relative;
  overflow: hidden;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero-inner {
  display: grid;
  gap: var(--space-16);
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 640px;
}

.hero h1 {
  font-size: var(--text-3xl);
  font-weight: 650;
  margin-bottom: var(--space-6);
}
.hero h1 em {
  font-style: normal;
  color: var(--color-primary);
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero-note {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hero-note svg {
  width: 15px;
  height: 15px;
  color: var(--color-success);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
}

/* Code window */
.code-window {
  background: #201a12;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid oklch(0.3 0.02 60 / 0.5);
  max-width: 560px;
}
[data-theme='dark'] .code-window {
  background: #100d09;
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid oklch(1 0 0 / 0.06);
}
.code-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: oklch(1 0 0 / 0.15);
}
.code-titlebar span {
  margin-left: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.4);
}

.code-body {
  padding: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.7;
  overflow-x: auto;
  color: #d9cfba;
}
.code-body .c-key {
  color: #e5a85a;
}
.code-body .c-str {
  color: #9bc47a;
}
.code-body .c-fn {
  color: #7fb0d6;
}
.code-body .c-cm {
  color: #6b6252;
}
.code-body .c-punc {
  color: #8f8570;
}

.code-result {
  margin-top: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px dashed oklch(1 0 0 / 0.1);
}
.message-preview {
  background: oklch(1 0 0 / 0.04);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-family: var(--font-body);
}
.message-preview .mp-to {
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.4);
  margin-bottom: var(--space-2);
}
.message-preview .mp-subject {
  font-weight: 600;
  color: #f0ebe0;
  margin-bottom: var(--space-1);
  font-size: var(--text-sm);
}
.message-preview .mp-body {
  color: oklch(1 0 0 / 0.65);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.message-preview .mp-locked {
  color: #e5a85a;
  font-weight: 600;
}

@media (min-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-12);
  }
  .hero-visual {
    justify-self: end;
  }
}

/* ============================================================
   Logo strip / stat bar
   ============================================================ */

.stat-bar {
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  padding-block: var(--space-10);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}
.stat-item {
  text-align: left;
}
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 650;
  color: var(--color-text);
  display: block;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
@media (min-width: 700px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   How it works
   ============================================================ */

.flow {
  display: grid;
  gap: var(--space-10);
}
.flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: start;
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.flow-step:first-child {
  border-top: none;
}
.flow-index {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  padding-top: var(--space-1);
}
.flow-content h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.flow-content p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 60ch;
}
.flow-mini-code {
  margin-top: var(--space-4);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  overflow-x: auto;
  white-space: pre;
}

@media (min-width: 700px) {
  .flow {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4) var(--space-12);
  }
  .flow-step {
    border-top: none;
    padding-block: var(--space-4);
  }
  .flow-step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-divider);
    padding-bottom: var(--space-8);
  }
}

/* ============================================================
   Trust / data-safety section (signature moment)
   ============================================================ */

.trust {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

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

.trust-copy .section-title {
  max-width: 30ch;
}

.trust-points {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-5);
}
.trust-point {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.trust-point svg {
  width: 20px;
  height: 20px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}
.trust-point p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.trust-point strong {
  color: var(--color-text);
}

.payload-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}
.payload-card h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.payload-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: var(--space-2);
  border-bottom: 1px dashed var(--color-divider);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
.payload-row:last-child {
  border-bottom: none;
}
.payload-key {
  color: var(--color-text-muted);
}
.payload-val {
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-primary-highlight);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
}
.payload-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--space-4);
  color: var(--color-text-faint);
}
.payload-arrow svg {
  width: 20px;
  height: 20px;
}
.payload-out {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.payload-out .val {
  color: var(--color-primary);
  font-weight: 700;
}

@media (min-width: 980px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Use cases
   ============================================================ */

.usecase-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
.usecase-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-6);
  transition:
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}
.usecase-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.usecase-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
  display: block;
}
.usecase-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.usecase-msg {
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}
.usecase-msg .val {
  color: var(--color-primary);
  font-weight: 600;
}

.usecase-grid .usecase-card:first-child {
  grid-column: 1 / -1;
}
@media (min-width: 700px) {
  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .usecase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .usecase-grid .usecase-card:first-child {
    grid-column: span 1;
  }
}

/* ============================================================
   Comparison
   ============================================================ */

.compare-scroll-hint {
  display: none;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.compare-table-wrap {
  position: relative;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

@media (max-width: 640px) {
  .compare-scroll-hint {
    display: block;
  }
}
table.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--color-surface);
}
table.compare th,
table.compare td {
  text-align: left;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-divider);
}
table.compare thead th {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  background: var(--color-surface-2);
}
table.compare thead th:first-child {
  background: transparent;
}
table.compare tbody th {
  color: var(--color-text-muted);
  font-weight: 500;
  font-family: var(--font-body);
}
table.compare td {
  color: var(--color-text-muted);
}
table.compare td.win {
  color: var(--color-text);
  font-weight: 600;
}
table.compare td.win svg,
table.compare .cell-yes svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
  display: inline;
  vertical-align: -2px;
  margin-right: var(--space-1);
}
table.compare tbody tr:last-child td,
table.compare tbody tr:last-child th {
  border-bottom: none;
}
table.compare .col-highlight {
  background: oklch(from var(--color-primary) l c h / 0.06);
}

/* ============================================================
   Reliability features (asymmetric list)
   ============================================================ */

.reliability {
  display: grid;
  gap: var(--space-10);
}
.reliability-lead {
  max-width: 640px;
}
.reliability-grid {
  display: grid;
  gap: var(--space-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.reliability-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding: var(--space-6);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}
.reliability-item:last-child {
  border-bottom: none;
}
.reliability-item h3 {
  font-size: var(--text-base);
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.reliability-item h3 svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}
.reliability-item p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
@media (min-width: 900px) {
  .reliability {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
  .reliability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reliability-item:nth-child(odd) {
    border-right: 1px solid var(--color-divider);
  }
  .reliability-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

/* ============================================================
   Pricing
   ============================================================ */

.pricing-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
.price-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
}
.price-card--highlight {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, oklch(from var(--color-primary) l c h / 0.06), var(--color-surface) 40%);
  box-shadow: var(--shadow-md);
  position: relative;
}
.price-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  background: oklch(from var(--color-primary) l c h / 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.price-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 650;
}
.price-tagline {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
  margin-bottom: var(--space-6);
}
.price-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 650;
  margin-bottom: var(--space-6);
}
.price-value span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-weight: 400;
}
.price-features {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex: 1;
}
.price-features li {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.price-features li svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 3px;
}
.price-card .btn {
  width: 100%;
}
@media (min-width: 750px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-list {
  border-top: 1px solid var(--color-divider);
}
.faq-item {
  border-bottom: 1px solid var(--color-divider);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-6);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}
.faq-q svg {
  width: 18px;
  height: 18px;
  color: var(--color-text-faint);
  flex-shrink: 0;
  transition: transform var(--transition-interactive);
}
.faq-item.is-open .faq-q svg {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-in-out);
}
.faq-a-inner {
  padding-bottom: var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 68ch;
}

/* ============================================================
   Final CTA
   ============================================================ */

.final-cta {
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: var(--radius-xl);
  margin-inline: var(--space-6);
  padding: clamp(var(--space-12), 8vw, var(--space-20)) clamp(var(--space-6), 6vw, var(--space-16));
  text-align: left;
  display: grid;
  gap: var(--space-8);
}
[data-theme='dark'] .final-cta {
  background: var(--color-surface-offset-2);
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-bg);
  max-width: 26ch;
}
[data-theme='dark'] .final-cta h2 {
  color: var(--color-text);
}
.final-cta p {
  color: oklch(from var(--color-bg) l c h / 0.65);
  font-size: var(--text-base);
  max-width: 48ch;
}
[data-theme='dark'] .final-cta p {
  color: var(--color-text-muted);
}
.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.final-cta .btn-primary {
  background: var(--color-primary);
}
.final-cta .btn-secondary {
  border-color: oklch(from var(--color-bg) l c h / 0.25);
  color: var(--color-bg);
}
[data-theme='dark'] .final-cta .btn-secondary {
  color: var(--color-text);
  border-color: var(--color-border);
}
@media (min-width: 800px) {
  .final-cta {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    text-align: left;
  }
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16) var(--space-10);
}
.footer-grid {
  display: grid;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer-brand {
  max-width: 280px;
}
.footer-brand .logo {
  margin-bottom: var(--space-4);
}
.footer-brand p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.footer-col ul {
  display: grid;
  gap: var(--space-3);
}
.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer-col a:hover {
  color: var(--color-text);
}
.footer-tagline {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.footer-legal a {
  color: var(--color-text-faint);
}

.footer-legal a:hover {
  color: var(--color-text);
}
@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1.4fr;
  }
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ============================================================
   Legal modals
   ============================================================ */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}
.legal-modal[hidden] {
  display: none;
}
.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: oklch(from var(--color-text) l c h / 0.45);
  backdrop-filter: blur(2px);
}
.legal-modal-panel {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  max-height: 84vh;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-lg);
}
.legal-modal-panel h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-1);
}
.legal-modal-panel h3 {
  font-size: var(--text-base);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}
.legal-modal-panel p {
  color: var(--color-text-muted);
  line-height: 1.6;
}
.legal-modal-panel a {
  color: var(--color-primary);
  text-decoration: underline;
}
.legal-updated {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.legal-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.legal-modal-close:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

/* ============================================================
   Misc utility
   ============================================================ */
.mono {
  font-family: var(--font-mono);
}
.text-center {
  text-align: center;
}
