/* ==========================================================================
   RealGifts site.css
   Built to /workspace/DESIGN.md (The Commission Ledger). Single stylesheet
   for the whole site. Token values are canonical; do not invent new ones.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Self-hosted fonts (subset files mirrored from Google Fonts)
   -------------------------------------------------------------------------- */

/* Bricolage Grotesque variable, latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/BricolageGrotesque-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Bricolage Grotesque variable, latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/BricolageGrotesque-variable-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bricolage Grotesque variable, vietnamese */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/BricolageGrotesque-variable-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* JetBrains Mono variable (one file covers weights 400-700), latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/JetBrainsMono-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono variable, latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/JetBrainsMono-variable-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono variable, vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/JetBrainsMono-variable-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* JetBrains Mono variable, greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/JetBrainsMono-variable-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* JetBrains Mono variable, cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/JetBrainsMono-variable-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* JetBrains Mono variable, cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/JetBrainsMono-variable-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Dark canvas */
  --navy-950: #0A0A1A;
  --navy-900: #12102E;
  --navy-850: #1A1040;
  --navy-800: #0D1B3E;
  --navy-code: #0F0F23;
  --dark-gradient: linear-gradient(135deg, #0A0A1A 0%, #12102E 40%, #1A1040 70%, #0D1B3E 100%);

  /* Brand gradient (the money color) */
  --brand-pink: #EE0979;
  --brand-orange: #FF6A00;
  --gradient-brand: linear-gradient(to right, #EE0979 0%, #FF6A00 51%, #EE0979 100%);
  --gradient-cta: linear-gradient(to right, #D8086C 0%, #E85C00 51%, #D8086C 100%);
  --brand-pink-deep: #D8086C;

  /* Accents */
  --indigo-600: #3D5BD9;
  --indigo-300: #93A5FD;
  --teal-money: #2DD4BF;
  --teal-money-deep: #0B7A6B;

  /* Neutrals (indigo tinted) */
  --ink-900: #14142B;
  --ink-600: #4A4A68;
  --ink-500: #6B6B8A;
  --surface-0: #FFFFFF;
  --surface-1: #F6F6FB;
  --border-light: #E4E4F0;
  --border-input: #D6D6E7;
  --white-92: rgba(255, 255, 255, 0.92);
  --white-78: #C9C9DE;
  --white-muted: #9595B8;
  --white-border: rgba(255, 255, 255, 0.10);
  --white-surface: rgba(255, 255, 255, 0.04);

  /* Semantic */
  --success-text: #15803D;
  --success-bg: #ECFDF5;
  --success-border: #BBF7D0;
  --success-dark: #34D399;
  --warning-text: #92400E;
  --warning-bg: #FEF3C7;
  --warning-dark: #FBBF24;
  --error-text: #B91C1C;
  --error-bg: #FEF2F2;
  --error-border: #FECACA;
  --error-field: #DC2626;
  --error-dark: #FF8A8A;
  --info-text: #0369A1;
  --info-bg: #F0F9FF;
  --info-dark: #93A5FD;

  /* Typography */
  --font-sans: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radius ladder (exactly five values) */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-card: 0 1px 4px rgba(10, 10, 26, 0.04), 0 8px 32px rgba(10, 10, 26, 0.05);
  --shadow-card-hover: 0 12px 40px rgba(10, 10, 26, 0.09);
  --shadow-cta-glow: 0 8px 24px rgba(238, 9, 121, 0.32);
  --shadow-dark-elev: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-nav: 0 1px 12px rgba(10, 10, 26, 0.08);

  /* Z-index (semantic scale, never arbitrary) */
  --z-dropdown: 100;
  --z-nav: 200;
  --z-modal-backdrop: 300;
  --z-modal: 310;
  --z-toast: 400;
  --z-tooltip: 500;

  /* Breakpoints (reference values; media queries use the literals)
     sm 480px, md 768px, lg 1024px, xl 1280px */

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 120ms;
  --dur-std: 200ms;
  --dur-entrance: 320ms;

  /* Contextual band properties (light defaults; .band-dark overrides) */
  --rule: var(--border-light);
  --money: var(--teal-money-deep);
  --meta: var(--ink-500);
  --text-1: var(--ink-900);
  --text-2: var(--ink-600);
  --link: var(--indigo-600);
  --focus-ring: var(--indigo-600);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul[class],
ol[class] {
  list-style: none;
}

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

/* --------------------------------------------------------------------------
   3. Base elements
   -------------------------------------------------------------------------- */

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-1);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.display {
  font-size: clamp(2.5rem, 1.5rem + 4.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.7vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

p {
  max-width: 70ch;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--dur-micro) var(--ease-out);
}

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 700;
}

pre,
code,
kbd,
samp {
  font-family: var(--font-mono);
}

code {
  font-size: 0.9375rem;
  line-height: 1.7;
}

ul,
ol {
  padding-left: 1.25em;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
}

::selection {
  background: var(--indigo-600);
  color: #FFFFFF;
}

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

/* Type utilities matching the DESIGN.md scale */

.body-lg {
  font-size: 1.1875rem;
  line-height: 1.65;
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
}

.caption {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
}

.label {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data {
  font-family: var(--font-mono);
  font-weight: 500;
  line-height: 1.4;
}

.text-2 {
  color: var(--text-2);
}

.text-meta {
  color: var(--meta);
}

/* --------------------------------------------------------------------------
   4. Layout utilities
   -------------------------------------------------------------------------- */

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-narrow {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-to-content {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: var(--z-toast);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-0);
  color: var(--ink-900);
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(calc(-100% - 16px));
}

.skip-to-content:focus-visible {
  transform: none;
}

/* --------------------------------------------------------------------------
   5. Reduced motion (mandatory)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  /* Ticker: render a static statement (hide the wrap duplicate, kill the mask) */
  .ledger-ticker {
    -webkit-mask-image: none;
    mask-image: none;
    height: auto;
  }

  .ledger-ticker .ledger-ticker-group + .ledger-ticker-group {
    display: none;
  }

  /* Shimmer: static gradient */
  .btn-primary {
    animation: none;
  }

  /* Ambient hero orbs off */
  .hero-orb {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: var(--z-nav);
  transition:
    background-color var(--dur-std) var(--ease-out),
    box-shadow var(--dur-std) var(--ease-out);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  height: 100%;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--dur-micro) var(--ease-out);
}

.nav-link:hover {
  text-decoration: none;
}

.nav-cluster {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

/* State: at top of a dark hero */
.nav-at-top {
  background: transparent;
}

.nav-at-top .nav-link {
  color: var(--white-78);
}

.nav-at-top .nav-link:hover {
  color: var(--white-92);
}

.nav-at-top .nav-logo-light {
  display: none;
}

.nav-at-top {
  --focus-ring: var(--indigo-300);
}

/* State: scrolled (and open mobile panel) */
.nav-scrolled,
.nav-open {
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-nav);
  --focus-ring: var(--indigo-600);
}

.nav-scrolled .nav-link,
.nav-open .nav-link {
  color: var(--ink-600);
}

.nav-scrolled .nav-link:hover,
.nav-open .nav-link:hover {
  color: var(--ink-900);
}

.nav-scrolled .nav-logo-dark,
.nav-open .nav-logo-dark {
  display: none;
}

.nav-scrolled .nav-logo-light,
.nav-open .nav-logo-light {
  display: block;
}

/* Dropdown */
.nav-item {
  position: relative;
}

.nav-caret {
  width: 12px;
  height: 12px;
  transition: transform var(--dur-std) var(--ease-out);
}

.nav-item.open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: var(--space-2);
  z-index: var(--z-dropdown);
  min-width: 230px;
  padding: var(--space-2);
  background: var(--surface-0);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  list-style: none;
  display: none;
}

.nav-item.open .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-600);
  border-radius: var(--radius-sm);
}

.nav-dropdown a:hover {
  color: var(--ink-900);
  background: var(--surface-1);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-toggle-bar {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--white-92);
  transition: transform var(--dur-std) var(--ease-out), opacity var(--dur-std) var(--ease-out);
}

.nav-scrolled .nav-toggle-bar,
.nav-open .nav-toggle-bar {
  background: var(--ink-900);
}

.nav-toggle-bar:nth-child(1) { top: 15px; }
.nav-toggle-bar:nth-child(2) { top: 21px; }
.nav-toggle-bar:nth-child(3) { top: 27px; }

.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile panel */
.nav-panel {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-dropdown);
  display: none;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--surface-0);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--dur-entrance) var(--ease-out);
}

.nav-panel.open {
  transform: none;
}

.nav-panel-links {
  list-style: none;
  padding: 0;
}

.nav-panel-links a {
  display: block;
  padding: var(--space-4) 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink-900);
  border-bottom: 1px solid var(--border-light);
}

.nav-panel-links a:hover {
  text-decoration: none;
  color: var(--indigo-600);
}

.nav-panel-group {
  padding: var(--space-4) 0 var(--space-2);
  border-bottom: 1px solid var(--border-light);
}

.nav-panel-group-head {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: var(--space-2);
}

.nav-panel-group a {
  border-bottom: 0;
  padding: var(--space-3) 0;
}

.nav-panel-cta {
  margin-top: auto;
  padding-top: var(--space-6);
  display: grid;
  gap: var(--space-3);
}

@media (max-width: 767px) {
  .nav-links,
  .nav-cluster {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-panel {
    display: flex;
  }

  .nav-logo img {
    height: 32px;
  }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark-gradient);
  color: var(--white-92);
  padding: 140px 0 80px;
  /* The hero is always a dark band: carry the dark-band token overrides even
     when the section does not also have .band-dark (subpage heroes), so
     headings, links, rules, and focus rings stay legible on the gradient. */
  --rule: var(--white-border);
  --money: var(--teal-money);
  --meta: var(--white-muted);
  --text-1: #FFFFFF;
  --text-2: var(--white-78);
  --link: var(--indigo-300);
  --focus-ring: var(--indigo-300);
}

.hero-subpage {
  padding: 96px 0 64px;
}

/* Breadcrumb link in subpage heroes: 44px hit area without shifting layout */
.hero .caption a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: calc(-1 * var(--space-3)) 0;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
  align-items: center;
}

.hero-copy {
  grid-column: 1 / span 7;
}

.hero-media {
  grid-column: 8 / span 5;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border: 1px solid var(--white-border);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: var(--space-6);
}

.hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
  background-size: 200% auto;
}

.hero-title {
  color: #FFFFFF;
  margin-bottom: var(--space-6);
}

.hero-sub {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--white-78);
  max-width: 54ch;
  margin-bottom: var(--space-8);
}

.hero-form {
  display: flex;
  gap: var(--space-3);
  max-width: 560px;
  margin-bottom: var(--space-3);
}

.hero-form-field {
  flex: 1;
}

.hero-form .field {
  min-height: 56px;
}

.hero-form .btn-primary {
  min-height: 56px;
  flex-shrink: 0;
  align-self: flex-end;
}

@media (max-width: 479px) {
  .hero-form .btn-primary {
    align-self: stretch;
  }
}

.hero-reassure {
  font-size: 0.875rem;
  color: var(--white-muted);
  margin-bottom: var(--space-6);
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Ambient orbs (max two, decorative, static) */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  pointer-events: none;
}

.hero-orb-1 {
  width: 480px;
  height: 480px;
  top: -160px;
  right: 4%;
  background: radial-gradient(circle, rgba(238, 9, 121, 0.55) 0%, transparent 70%);
}

.hero-orb-2 {
  width: 420px;
  height: 420px;
  bottom: -180px;
  left: -6%;
  background: radial-gradient(circle, rgba(61, 91, 217, 0.5) 0%, transparent 70%);
}

@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-media {
    grid-column: 1 / -1;
  }

  .hero-media {
    margin-top: var(--space-8);
  }
}

@media (max-width: 479px) {
  .hero {
    padding: 116px 0 56px;
  }

  .hero-form {
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */

.btn-primary,
.btn-primary-compact,
.btn-secondary,
.btn-ghost,
.btn-destructive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition:
    transform var(--dur-std) var(--ease-out),
    box-shadow var(--dur-std) var(--ease-out),
    background-color var(--dur-std) var(--ease-out),
    border-color var(--dur-std) var(--ease-out),
    color var(--dur-std) var(--ease-out);
}

.btn-primary:hover,
.btn-primary-compact:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.btn-destructive:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background-image: var(--gradient-cta);
  background-size: 200% auto;
  color: #FFFFFF;
  font-size: 1.1875rem;
  font-weight: 700;
  padding: 14px 32px;
  min-height: 48px;
  animation: btn-shimmer 3s linear infinite;
}

@keyframes btn-shimmer {
  to {
    background-position: 200% center;
  }
}

.btn-primary:hover {
  box-shadow: var(--shadow-cta-glow);
}

.btn-primary-compact {
  background: var(--brand-pink-deep);
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 10px 22px;
  min-height: 44px;
}

.btn-primary-compact:hover {
  box-shadow: var(--shadow-cta-glow);
}

.btn-secondary {
  background: var(--ink-900);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  min-height: 48px;
}

.btn-secondary:hover {
  box-shadow: var(--shadow-card-hover);
}

.band-dark .btn-secondary {
  background: var(--white-surface);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--indigo-600);
  color: var(--indigo-600);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  min-height: 48px;
}

.btn-ghost:hover {
  background: rgba(61, 91, 217, 0.08);
}

.band-dark .btn-ghost,
.nav-at-top .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white-92);
}

.band-dark .btn-ghost:hover,
.nav-at-top .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav .btn-ghost {
  font-size: 0.9375rem;
  padding: 9px 20px;
  min-height: 44px;
}

.btn-destructive {
  background: #B91C1C;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  min-height: 48px;
}

.btn-primary:disabled,
.btn-primary-compact:disabled,
.btn-secondary:disabled,
.btn-ghost:disabled,
.btn-destructive:disabled,
.btn-primary[aria-disabled="true"],
.btn-secondary[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface-0);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-8) 28px;
}

a.card,
.card-interactive {
  transition:
    transform var(--dur-std) var(--ease-out),
    box-shadow var(--dur-std) var(--ease-out);
}

a.card:hover,
.card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  text-decoration: none;
}

.card-dark {
  background: var(--white-surface);
  border: 1px solid var(--white-border);
  border-radius: var(--radius-md);
  padding: var(--space-8) 28px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--indigo-600);
}

.card-link svg {
  width: 14px;
  height: 14px;
}

/* Vertical accent marks (small marks on neutral surfaces, never pastel fills) */
.vertical-mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-4);
}

.mark-dating { background: var(--brand-pink); }
.mark-gaming { background: var(--brand-orange); }
.mark-enterprise { background: var(--indigo-600); }
.mark-community { background: var(--teal-money-deep); }

.band-dark .mark-enterprise { background: var(--indigo-300); }
.band-dark .mark-community { background: var(--teal-money); }

/* --------------------------------------------------------------------------
   10. The Ledger (signature component)
   -------------------------------------------------------------------------- */

.ledger {
  width: 100%;
}

.ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
}

.ledger-fact {
  font-size: 1rem;
  font-weight: 500;
}

.ledger-fig {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--meta);
  text-align: right;
  white-space: nowrap;
}

.ledger-money {
  color: var(--money);
  font-weight: 700;
}

/* Heritage strip: visually continuous with the hero stage above it */
.heritage-strip {
  padding-top: 0;
}

.heritage-strip .ledger {
  max-width: 880px;
  margin-inline: auto;
}

/* Heritage strip variant: date mono left, fact sans right */
.ledger-strip .ledger-date {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--meta);
  white-space: nowrap;
}

.ledger-strip .ledger-fact {
  text-align: right;
}

/* Ticker variant: 14s vertical scroll, duplicated rows, masked edges */
.ledger-ticker {
  position: relative;
  overflow: hidden;
  height: 250px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.ledger-ticker-track {
  animation: ledger-scroll 14s linear infinite;
}

@keyframes ledger-scroll {
  to {
    transform: translateY(-50%);
  }
}

.ledger-ticker:hover .ledger-ticker-track,
.is-paused .ledger-ticker-track {
  animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   11. Code block
   -------------------------------------------------------------------------- */

.code-block {
  background: var(--navy-code);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-block-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--white-border);
}

.code-block-lang {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white-muted);
}

.code-copy {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 32px;
  padding: 4px 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-xs);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white-92);
  transition: background-color var(--dur-std) var(--ease-out);
}

.code-copy:hover {
  background: rgba(255, 255, 255, 0.08);
}

.code-block pre {
  padding: var(--space-6);
  overflow-x: auto;
  counter-reset: line;
}

.code-block code {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #C9C9DE;
  white-space: pre;
}

.code-line {
  display: block;
  counter-increment: line;
}

.code-line::before {
  content: counter(line);
  display: inline-block;
  width: 2ch;
  margin-right: var(--space-4);
  text-align: right;
  /* 4.6:1 on navy-code; quietest value that passes AA for 15px text */
  color: #7A7AA0;
  -webkit-user-select: none;
  user-select: none;
}

/* Syntax tokens on navy-code */
.tok-tag { color: #E06C75; }
.tok-attr { color: #D19A66; }
.tok-str { color: #98C379; }
.tok-fn { color: #61AFEF; }
.tok-kw { color: #C678DD; }
.tok-com { color: #8A93B2; }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.band-dark .form-label {
  color: var(--white-92);
}

.field {
  width: 100%;
  background: var(--surface-0);
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: 1rem;
  color: var(--ink-900);
  transition:
    border-color var(--dur-std) var(--ease-out),
    box-shadow var(--dur-std) var(--ease-out);
}

.field::placeholder {
  color: var(--ink-500);
}

.field:focus-visible {
  outline: none;
  border-color: var(--indigo-600);
  box-shadow: 0 0 0 3px rgba(61, 91, 217, 0.18);
}

.band-dark .field,
.field-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.band-dark .field::placeholder,
.field-dark::placeholder {
  color: var(--white-muted);
}

.band-dark .field:focus-visible,
.field-dark:focus-visible {
  border-color: var(--indigo-300);
  box-shadow: 0 0 0 3px rgba(147, 165, 253, 0.22);
}

.field-error,
.band-dark .field-error {
  border-color: #DC2626;
}

.form-error {
  font-size: 0.875rem;
  color: #B91C1C;
  margin-top: 6px;
}

.band-dark .form-error {
  color: var(--error-dark);
}

.form-banner-error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  color: #B91C1C;
  font-size: 0.875rem;
  margin-bottom: var(--space-4);
}

/* Billing toggle: 52x28 track, sliding knob */
.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.toggle-track {
  width: 52px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--border-input);
  position: relative;
  transition: background-color var(--dur-std) var(--ease-out);
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-0);
  box-shadow: 0 1px 3px rgba(10, 10, 26, 0.25);
  transition: transform 200ms var(--ease-out);
}

.toggle input:checked + .toggle-track {
  background: var(--brand-pink-deep);
}

.toggle input:checked + .toggle-track::after {
  transform: translateX(24px);
}

.toggle input:focus-visible + .toggle-track {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   13. Section bands
   -------------------------------------------------------------------------- */

.band-dark,
.band-light,
.band-tinted {
  padding: var(--space-24) 0;
}

.band-dark {
  background: var(--navy-950);
  color: var(--white-92);
  --rule: var(--white-border);
  --money: var(--teal-money);
  --meta: var(--white-muted);
  --text-1: #FFFFFF;
  --text-2: var(--white-78);
  --link: var(--indigo-300);
  --focus-ring: var(--indigo-300);
}

.band-gradient {
  background: var(--dark-gradient);
}

.band-dark p {
  line-height: 1.7;
}

.band-light {
  background: var(--surface-0);
}

.band-tinted {
  background: var(--surface-1);
}

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

.section-head .section-lede {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 60ch;
  margin-top: var(--space-4);
}

.section-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-8);
}

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

@media (max-width: 767px) {
  .band-dark,
  .band-light,
  .band-tinted {
    padding: var(--space-16) 0;
  }

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

/* --------------------------------------------------------------------------
   14. Product loop carousel
   -------------------------------------------------------------------------- */

.product-loop {
  max-width: 400px;
  margin-inline: auto;
}

.product-loop-frame {
  position: relative;
  aspect-ratio: 87 / 128;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-code);
  box-shadow: var(--shadow-dark-elev);
}

.product-loop-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-entrance) var(--ease-out);
}

.product-loop-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.product-loop-slide-media {
  padding: 0;
}

.loop-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loop-step {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white-muted);
  margin-bottom: var(--space-4);
}

.product-loop-slide-media .loop-step {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: rgba(15, 15, 35, 0.78);
  color: var(--white-78);
}

.loop-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: var(--space-4);
}

.loop-rows {
  display: flex;
  flex-direction: column;
}

.loop-note {
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white-muted);
}

.product-loop-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.product-loop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.product-loop-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--white-border);
  border-radius: var(--radius-pill);
  background: var(--white-surface);
  color: var(--white-78);
  font-size: 0.8125rem;
  font-weight: 600;
  transition:
    background-color var(--dur-std) var(--ease-out),
    color var(--dur-std) var(--ease-out),
    box-shadow var(--dur-std) var(--ease-out);
}

.product-loop-tab .loop-tab-num {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--white-muted);
}

.product-loop-tab:hover {
  color: var(--white-92);
  background: rgba(255, 255, 255, 0.08);
}

.product-loop-tab[aria-selected="true"] {
  background: var(--brand-pink-deep);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(238, 9, 121, 0.32);
}

.product-loop-tab[aria-selected="true"] .loop-tab-num {
  color: rgba(255, 255, 255, 0.8);
}

.product-loop-pause {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-left: auto;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--white-92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur-std) var(--ease-out);
}

.product-loop-pause:hover {
  background: rgba(255, 255, 255, 0.08);
}

.product-loop-pause svg {
  width: 14px;
  height: 14px;
}

.product-loop-pause .icon-play,
.product-loop.is-paused .product-loop-pause .icon-pause {
  display: none;
}

.product-loop.is-paused .product-loop-pause .icon-play {
  display: block;
}

.product-loop-caption {
  margin-top: var(--space-3);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white-muted);
  text-align: center;
}

/* In-slide mock rows (product UI excerpts, flat inset surfaces) */
.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--white-border);
  font-size: 0.875rem;
}

.mock-key {
  color: var(--white-muted);
  font-weight: 500;
}

.mock-val {
  font-family: var(--font-mono);
  color: var(--white-78);
  text-align: right;
}

.mock-money {
  color: var(--teal-money);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   15. Pricing cards
   -------------------------------------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--space-6);
  align-items: stretch;
}

.pricing-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-0);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 36px var(--space-8);
}

.pricing-featured {
  transform: scale(1.03);
  border-color: var(--indigo-600);
  box-shadow: 0 8px 40px rgba(61, 91, 217, 0.15);
  z-index: 1;
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background-image: var(--gradient-cta);
  background-size: 200% auto;
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.pricing-price {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.2;
}

.pricing-per {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-500);
}

.pricing-tier .ledger {
  margin: var(--space-6) 0;
}

.pricing-tier .ledger-row {
  font-size: 0.9375rem;
}

.pricing-cta {
  margin-top: auto;
}

@media (max-width: 767px) {
  .pricing-featured {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   16. Bento grid (asymmetric 2x2: one wide cell, one tall cell)
   -------------------------------------------------------------------------- */

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

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

.bento-tall {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.bento-tall .artifact {
  margin-top: auto;
}

.artifact {
  background: var(--surface-1);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin: var(--space-4) 0;
}

.artifact .mock-row {
  border-bottom-color: var(--border-light);
}

.artifact .mock-key {
  color: var(--ink-500);
}

.artifact .mock-val {
  color: var(--ink-600);
}

.artifact .mock-money {
  color: var(--teal-money-deep);
}

.artifact-bubble {
  display: inline-block;
  max-width: 85%;
  background: var(--surface-0);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-xs);
  padding: var(--space-3) var(--space-4);
  font-size: 0.875rem;
  color: var(--ink-600);
}

.artifact-bubble + .artifact-bubble {
  margin-top: var(--space-2);
}

.artifact-bubble-sent {
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-xs);
  margin-left: 15%;
  background: var(--surface-1);
}

.artifact-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin-top: var(--space-1);
}

@media (max-width: 1023px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .bento-tall {
    grid-row: auto;
  }
}

@media (max-width: 767px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-wide {
    grid-column: auto;
  }
}

/* --------------------------------------------------------------------------
   17. Demo browser mock
   -------------------------------------------------------------------------- */

.demo-browser {
  /* Cap at the poster's natural width (696px source): full-container width
     upscaled the screenshot 1.65x and rendered it soft. */
  max-width: 720px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-code);
  box-shadow: var(--shadow-dark-elev);
}

.demo-browser-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--white-border);
}

.demo-dots {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.demo-dot-red { background: #FF5F57; }
.demo-dot-yellow { background: #FFBD2E; }
.demo-dot-green { background: #28C840; }

.demo-url {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--white-muted);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xs);
  padding: 6px 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-browser-body {
  background: var(--surface-0);
}

.demo-browser-body img {
  width: 100%;
}

/* --------------------------------------------------------------------------
   18. Accordion (single implementation site-wide: FAQ, pricing categories)
   -------------------------------------------------------------------------- */

.accordion {
  border-bottom: 1px solid var(--rule);
}

.accordion-heading {
  margin: 0;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  min-height: 44px;
  padding: var(--space-4) 0;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-1);
}

.accordion-trigger svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--meta);
  transition: transform var(--dur-entrance) var(--ease-out);
}

.accordion-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-entrance) var(--ease-out);
}

.accordion-panel.open {
  grid-template-rows: 1fr;
}

.accordion-panel-inner {
  min-height: 0;
  overflow: hidden;
  color: var(--text-2);
}

.accordion-panel-inner p {
  padding-bottom: var(--space-4);
}

/* --------------------------------------------------------------------------
   19. Conversion triad end-cap
   -------------------------------------------------------------------------- */

.triad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  align-items: stretch;
}

.triad-grid .card-dark {
  display: flex;
  flex-direction: column;
}

.triad-grid h3 {
  margin-bottom: var(--space-3);
}

.triad-grid p {
  color: var(--white-78);
  margin-bottom: var(--space-6);
}

.triad-grid .triad-action {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

/* Featured triad card: decorative gradient border (no text sits on it) */
.triad-featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--navy-900), var(--navy-900)) padding-box,
    var(--gradient-brand) border-box;
}

.triad-reassure {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white-muted);
}

/* --------------------------------------------------------------------------
   20. Gift.me consumer redirect bar
   -------------------------------------------------------------------------- */

.gift-redirect-bar {
  background: var(--navy-950);
  border-bottom: 1px solid var(--white-border);
}

.gift-redirect-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-4) 0;
  font-size: 0.9375rem;
  color: var(--white-78);
}

.gift-redirect-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  font-weight: 700;
  color: var(--indigo-300);
}

.gift-redirect-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-std) var(--ease-out);
}

.gift-redirect-link:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--navy-950);
  color: var(--white-78);
  padding: var(--space-16) 0 var(--space-8);
  --rule: var(--white-border);
  --meta: var(--white-muted);
  --text-1: #FFFFFF;
  --text-2: var(--white-78);
  --link: var(--indigo-300);
  --focus-ring: var(--indigo-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-8);
}

.footer-brand img {
  height: 34px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--white-muted);
  max-width: 28ch;
}

.footer-head {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: var(--space-3);
}

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

.footer-col a {
  display: inline-block;
  padding: var(--space-3) 0;
  font-size: 0.9375rem;
  color: var(--white-78);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--white-border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white-muted);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-4);
}

.footer-legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-1);
  color: var(--white-muted);
}

.footer-legal-links a:hover {
  color: var(--white-78);
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   22. Prose (blog, legal, long-form)
   -------------------------------------------------------------------------- */

.prose {
  max-width: 760px;
  margin-inline: auto;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
  text-wrap: pretty;
}

.prose > * + * {
  margin-top: var(--space-4);
}

.prose > h2 {
  margin-top: var(--space-12);
}

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

.prose a {
  text-decoration: underline;
}

.prose blockquote {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: var(--space-4) 0;
  color: var(--text-2);
  font-size: 1.1875rem;
}

.prose blockquote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--meta);
  margin-top: var(--space-2);
}

.prose code:not(pre code) {
  background: var(--surface-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 1px 6px;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   23. Steps (3-step launch: earned numbered sequence, mono numerals)
   -------------------------------------------------------------------------- */

.steps {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--rule);
}

.step:first-child {
  padding-top: 0;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-500);
  line-height: 1.2;
}

.step h3 {
  margin-bottom: var(--space-2);
}

.step p {
  color: var(--text-2);
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 1023px) {
  .split-2 {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* --------------------------------------------------------------------------
   24. Responsive type and spacing overrides
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .step {
    grid-template-columns: 48px 1fr;
  }

  .ledger-row {
    gap: var(--space-4);
  }
}

@media (max-width: 479px) {
  .container,
  .container-narrow {
    padding-inline: var(--space-4);
  }

  h3 {
    font-size: 1.375rem;
  }

  .ledger-row {
    flex-wrap: wrap;
  }

  .ledger-strip .ledger-fact {
    text-align: left;
  }

  .product-loop {
    max-width: 100%;
  }

  .btn-primary {
    width: 100%;
  }

  .hero-actions .btn-ghost {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Comparison table (compare/ pages)
   -------------------------------------------------------------------------- */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
}

.comparison-table th {
  background: var(--surface-1, #f0f2f5);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-600);
}

.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light, #e5e7eb);
  vertical-align: top;
}

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

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--ink-900);
  width: 25%;
}

.comparison-table td:nth-child(2) {
  color: var(--ink-900);
  width: 37.5%;
}

.comparison-table td:nth-child(3) {
  color: var(--ink-600);
  width: 37.5%;
}

@media (max-width: 768px) {
  .comparison-table td,
  .comparison-table th {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* --------------------------------------------------------------------------
   Pillar landing page (/white-label-gift-shop)
   -------------------------------------------------------------------------- */

/* Subpage hero breadcrumb (mono caption, DESIGN.md 4.5) */
.hero-crumb {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--meta);
  margin-bottom: var(--space-4);
}

/* Reassurance line directly after a hero action row */
.hero-actions + .hero-reassure {
  margin-top: var(--space-3);
  margin-bottom: 0;
}

/* Three-column definition split: bold head + bullet list per column */
.def-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.def-grid h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-3);
}

.def-grid ul {
  margin: 0;
  padding-left: 1.1em;
}

.def-grid li {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-2);
}

.def-grid li + li {
  margin-top: var(--space-2);
}

.def-grid li::marker {
  color: var(--ink-500);
}

@media (max-width: 767px) {
  .def-grid {
    grid-template-columns: 1fr;
  }
}

/* Even two-column bento variant (use-case cards) */
.bento-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 767px) {
  .bento-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* SDK grid: mono cells, system-output voice */
.sdk-grid-label {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.sdk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.sdk-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-600);
  text-align: center;
}

/* Pull quote on dark proof bands (mirrors .prose blockquote) */
.hero-quote {
  max-width: 60ch;
  margin: var(--space-12) auto 0;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text-2);
  text-wrap: pretty;
}

.hero-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--meta);
  margin-top: var(--space-3);
}

/* Long ledger figures may wrap on narrow viewports */
.ledger-fig-wrap {
  white-space: normal;
}

/* Internal links row with dot separators */
.link-row-label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--ink-900);
  margin-bottom: var(--space-2);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-row li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
}

.link-row li + li::before {
  content: "\00B7";
  color: var(--ink-500);
}

.link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* Final CTA band */
.cta-band {
  text-align: center;
}

.cta-band .section-head {
  margin-bottom: var(--space-4);
}

.cta-band .cta-lede {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 60ch;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Blog index grid and cards
   -------------------------------------------------------------------------- */

.blog-grid {
  display: grid;
  /* Breakpoint-free flow matching the established pricing-grid pattern.
     min(100%, 300px) prevents overflow on narrow viewports; rows stretch
     so cards in a row share a height and the CTA row aligns. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-6);
}

/* Blog card: extends .card, zeroes its padding so the cover image runs
   full bleed; text padding lives on .blog-card-body */
.blog-card {
  background: var(--surface-0);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden; /* keeps image flush to rounded corners */
  transition:
    transform var(--dur-std) var(--ease-out),
    box-shadow var(--dur-std) var(--ease-out);
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.blog-card .blog-card-image-link {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-card .blog-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-card .blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-6);
  gap: var(--space-3);
}

.blog-card .blog-card-date {
  /* caption-size mono ledger date; --ink-500 is the minimum on white */
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0;
}

.blog-card h3 {
  /* h4 token: keeps long and short titles balanced in a 300px column */
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

.blog-card h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: var(--indigo-600);
}

.blog-card .blog-card-desc {
  /* body-sm token */
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
  flex: 1; /* pushes the CTA to the card bottom */
}

.blog-card .card-link {
  margin-top: var(--space-4);
  align-self: flex-start;
  font-size: 0.9375rem;
}

.blog-card .card-link svg {
  transition: transform var(--dur-micro) var(--ease-out);
}

.blog-card .card-link:hover svg,
.blog-card .card-link:focus-visible svg {
  transform: translateX(2px);
}

/* Pagination row: sits inside the light band, tied to the grid above it */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-12);
}

.blog-page-info {
  /* page count is system data: mono, per the ledger convention */
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-500);
  min-width: 12ch; /* stable width, no shift when the number changes */
  text-align: center;
}
