/* ──────────────────────────────────────────────────────────
   Invisible — Landing Page Design System
   Anchored to the app design system (brand tokens, fonts)
   with a dot-matrix visual language echoing the logo.
   ────────────────────────────────────────────────────────── */

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

:root {
  /* All values in OKLCH for perceptual uniformity.
     --hue is the sage anchor; neutrals are tinted toward it
     with very low chroma so cohesion compounds subconsciously. */
  --hue:            175;

  /* Neutrals — sage-tinted */
  --white:          oklch(99%   0.002 var(--hue));
  --surface:        oklch(98.5% 0.003 var(--hue));
  --wash:           oklch(94%   0.005 var(--hue));
  --surface-warm:   oklch(94%   0.008 var(--hue));
  --line:           oklch(88%   0.006 var(--hue));
  --faint:          oklch(70%   0.010 var(--hue));
  --subtle:         oklch(58%   0.010 var(--hue));
  --muted:          oklch(48%   0.010 var(--hue));
  --body-color:     oklch(35%   0.012 var(--hue));
  --ink:            oklch(18%   0.008 var(--hue));   /* near-black, faint sage tint */

  /* Off-white tuned for legibility on sage (#8ba19e) without jumping
     the contrast so hard it looks grafted on. Used for body text in
     sage sections; headings stay on solid --white for presence. */
  --on-sage:        oklch(97%   0.012 var(--hue));

  /* Accents — brand palette */
  --primary:        #eb342e;                         /* Celsius red — rare accent */
  --primary-bg:     rgb(235 52 46 / 0.08);
  --secondary:      #8ba19e;                         /* Static sage — working accent */
  --secondary-bg:   rgb(139 161 158 / 0.18);

  /* Focus ring — sage with a halo for keyboard nav */
  --focus-ring:     0 0 0 2px var(--white), 0 0 0 4px var(--secondary);

  /* Page chrome — warm sage-tinted backdrop */
  --page-bg:        oklch(91%   0.014 var(--hue));
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--page-bg);
  color: var(--body-color);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ────── TYPOGRAPHY ────── */
h1, h2, h3, h4, h5 {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.overline {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.overline::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

.overline--subtle { color: var(--subtle); }
.overline--subtle::before { background: var(--subtle); }

/* On sage surfaces, the section-header overline flips to white.
   Card overlines (nested inside white cards) stay on the red default. */
.use-cases .section-header .overline,
.capabilities .section-header .overline,
.how-section--sage .section-header .overline,
.overline--inverse { color: var(--white); }

.use-cases .section-header .overline::before,
.capabilities .section-header .overline::before,
.how-section--sage .section-header .overline::before,
.overline--inverse::before { background: var(--white); }

/* ────── FRAME ────── */
.frame {
  max-width: 1200px;
  margin: 32px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

/* ────── NAV ────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.nav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.nav-logo-icon { height: 28px; width: auto; }
.nav-logo-wordmark { height: 18px; width: auto; }
/* Backward-compat: any remaining bare <img> inside .nav-logo */
.nav-logo img:not(.nav-logo-icon):not(.nav-logo-wordmark) { height: 28px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  border: none;
  background: transparent;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
}

.nav-link:hover { color: var(--ink); background: var(--wash); }

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

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 6px;
  padding: 0 16px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: transparent;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
  user-select: none;
}

.nav-dropdown-toggle:hover { color: var(--ink); background: var(--wash); }

.nav-dropdown-toggle svg {
  width: 9px;
  height: 9px;
  opacity: 0.5;
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
  opacity: 0.9;
}

.nav-dropdown:hover .nav-dropdown-toggle {
  color: var(--ink);
  background: var(--wash);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }
.nav-dropdown.is-open .nav-dropdown-toggle svg { transform: rotate(180deg); opacity: 0.9; }

/* Hamburger toggle — injected by nav.js, visible only on mobile */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.15s ease;
}
.nav-hamburger:hover { background: var(--wash); }
.nav-hamburger:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
.nav.is-menu-open .nav-hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-menu-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav.is-menu-open .nav-hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer — full-width below the nav bar */
@media (max-width: 720px) {
  .nav-hamburger { display: flex; }
  .nav { position: relative; }

  /* Hide the inline link list by default; reveal as drawer when open */
  .nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px -16px rgba(18, 28, 26, 0.18);
    z-index: 99;
  }
  .nav.is-menu-open .nav-links { display: flex; }

  /* Stack each entry full-width with comfortable tap height */
  .nav .nav-link,
  .nav .nav-dropdown,
  .nav .nav-dropdown-toggle,
  .nav .nav-cta {
    width: 100%;
    margin-left: 0;
    padding: 14px 14px;
    text-align: left;
    justify-content: flex-start;
  }
  .nav .nav-cta {
    text-align: center;
    justify-content: center;
    margin-top: 4px;
  }

  /* Dropdown opens inline within the drawer */
  .nav-dropdown.is-open .nav-dropdown-menu,
  .nav-dropdown:hover .nav-dropdown-menu {
    position: static;
    border: none;
    padding: 4px 0 4px 12px;
    box-shadow: none;
    background: transparent;
    min-width: 0;
  }
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: var(--wash);
  color: var(--ink);
}

/* CTA button in nav */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
  border: none;
  border-radius: 6px;
  transition: background 0.15s;
  margin-left: 12px;
  text-decoration: none;
}

.nav-cta:hover { background: #595959; }

/* ────── BUTTONS ────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  background: var(--ink);
  color: var(--white);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-primary:hover { background: #595959; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  background: transparent;
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.btn-secondary:hover { background: var(--wash); border-color: var(--ink); }

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ────── HERO ────── */
.hero {
  padding: clamp(72px, 9vw, 128px) clamp(24px, 5vw, 64px) clamp(64px, 7vw, 96px);
  text-align: center;
  position: relative;
  background: var(--white);
}

.hero-wordmark { margin-bottom: 44px; }
.hero-wordmark img { height: 40px; width: auto; }

.hero-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-label::before,
.hero-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--secondary) 0, var(--secondary) 3px, transparent 3px, transparent 6px);
}

.hero-tagline {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin: 0 auto 28px;
  color: var(--ink);
  text-wrap: balance;
}

.hero-tagline em {
  font-style: italic;
  color: var(--primary);
  font-weight: 400;
}

.hero-sub {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  max-width: 62ch;
  margin: 0 auto 40px;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-email {
  margin-top: 24px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.04em;
}

/* ────── PROBLEM / CALLOUT BLOCK ────── */
/* Deep sage block — the one dark surface on the page. Subtle light dot texture. */
.problem {
  background: var(--secondary);
  padding: clamp(64px, 8vw, 104px) clamp(24px, 5vw, 64px);
  position: relative;
}

.problem::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
}

.problem > * { position: relative; }

.problem-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.2vw, 28px);
}

.problem-inner > h2 {
  font-family: 'Newsreader', serif;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 22ch;
  margin: 0 auto;
  text-wrap: balance;
}

.problem-inner > h2 em {
  font-style: italic;
  color: var(--ink);
  font-weight: 400;
}

.problem-inner > p {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.6;
  color: oklch(96% 0.006 175);
  max-width: 58ch;
  margin: 0 auto;
  text-wrap: pretty;
}

.problem-inner > p em {
  font-style: italic;
  color: var(--white);
  font-weight: 400;
}

/* ── Problem kicker: single-line closer in DM Mono with a static red bullet. ── */
.problem-kicker {
  font-family: 'DM Mono', monospace !important;
  font-style: normal !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--white) !important;
  line-height: 1.6 !important;
  max-width: none !important;
  margin: clamp(18px, 2.2vw, 32px) auto 0 !important;
  text-align: center;
}

.problem-kicker span::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
  vertical-align: 0.12em;
  margin-right: 10px;
}

/* ────── SECTION HEADER ────── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .overline { margin-bottom: 16px; }

.section-header h2 {
  font-family: 'Newsreader', serif;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto;
  text-wrap: balance;
}

.section-header h2 em {
  font-style: italic;
  color: var(--secondary);
}

/* ────── HOW IT WORKS (shared across pages) ────── */
.how-section {
  padding: clamp(80px, 10vw, 144px) clamp(24px, 5vw, 64px);
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
}

/* ──────────────────────────────────────────────────────────
   Dot-digit system — one dot vocabulary for numbers AND icons.
   Every dot on the site is 3px diameter on an 8px grid, same colour
   within a glyph. Digits are 3 cells wide × 5 cells tall; ∞ is 5×3.
   Each digit is drawn with a single transparent seed dot whose
   box-shadow paints the rest, so there is no text rendering involved.
   ────────────────────────────────────────────────────────────── */

.dot-num {
  display: inline-flex;
  gap: 5px;                    /* one empty cell between digits */
  align-items: flex-end;
  line-height: 1;
  color: var(--secondary);
  vertical-align: middle;
}

.dot-digit {
  position: relative;
  display: inline-block;
  width: 22px;                 /* 4 × 5 + 2 dot  (5 dots wide, tight spacing) */
  height: 32px;                /* 6 × 5 + 2 dot  (7 dots tall) */
  flex-shrink: 0;
}

.dot-digit--inf { width: 42px; height: 22px; margin-bottom: 5px; }

.dot-digit::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: transparent;     /* seed is invisible; shadows do the work */
  box-shadow: var(--dots);
}

/* ── 5×7 glyphs on an 8px grid. c() shorthand = <x> <y> 0 0 currentColor ── */

/* ── 5×7 glyphs on a tight 5px grid, 2px dots ── */

/* 0 ─ .111. / 1...1 / 1...1 / 1...1 / 1...1 / 1...1 / .111. */
.dot-digit[data-d="0"]::before { --dots:
  5px 0 0 0 currentColor, 10px 0 0 0 currentColor, 15px 0 0 0 currentColor,
  0 5px 0 0 currentColor, 20px 5px 0 0 currentColor,
  0 10px 0 0 currentColor, 20px 10px 0 0 currentColor,
  0 15px 0 0 currentColor, 20px 15px 0 0 currentColor,
  0 20px 0 0 currentColor, 20px 20px 0 0 currentColor,
  0 25px 0 0 currentColor, 20px 25px 0 0 currentColor,
  5px 30px 0 0 currentColor, 10px 30px 0 0 currentColor, 15px 30px 0 0 currentColor; }

/* 1 ─ ..1.. / .11.. / ..1.. / ..1.. / ..1.. / ..1.. / .111. */
.dot-digit[data-d="1"]::before { --dots:
  10px 0 0 0 currentColor,
  5px 5px 0 0 currentColor, 10px 5px 0 0 currentColor,
  10px 10px 0 0 currentColor,
  10px 15px 0 0 currentColor,
  10px 20px 0 0 currentColor,
  10px 25px 0 0 currentColor,
  5px 30px 0 0 currentColor, 10px 30px 0 0 currentColor, 15px 30px 0 0 currentColor; }

/* 2 ─ .111. / 1...1 / ....1 / ...1. / ..1.. / .1... / 11111 */
.dot-digit[data-d="2"]::before { --dots:
  5px 0 0 0 currentColor, 10px 0 0 0 currentColor, 15px 0 0 0 currentColor,
  0 5px 0 0 currentColor, 20px 5px 0 0 currentColor,
  20px 10px 0 0 currentColor,
  15px 15px 0 0 currentColor,
  10px 20px 0 0 currentColor,
  5px 25px 0 0 currentColor,
  0 30px 0 0 currentColor, 5px 30px 0 0 currentColor, 10px 30px 0 0 currentColor, 15px 30px 0 0 currentColor, 20px 30px 0 0 currentColor; }

/* 3 ─ .111. / 1...1 / ....1 / .111. / ....1 / 1...1 / .111. */
.dot-digit[data-d="3"]::before { --dots:
  5px 0 0 0 currentColor, 10px 0 0 0 currentColor, 15px 0 0 0 currentColor,
  0 5px 0 0 currentColor, 20px 5px 0 0 currentColor,
  20px 10px 0 0 currentColor,
  5px 15px 0 0 currentColor, 10px 15px 0 0 currentColor, 15px 15px 0 0 currentColor,
  20px 20px 0 0 currentColor,
  0 25px 0 0 currentColor, 20px 25px 0 0 currentColor,
  5px 30px 0 0 currentColor, 10px 30px 0 0 currentColor, 15px 30px 0 0 currentColor; }

/* 4 ─ ...1. / ..11. / .1.1. / 1..1. / 11111 / ...1. / ...1. */
.dot-digit[data-d="4"]::before { --dots:
  15px 0 0 0 currentColor,
  10px 5px 0 0 currentColor, 15px 5px 0 0 currentColor,
  5px 10px 0 0 currentColor, 15px 10px 0 0 currentColor,
  0 15px 0 0 currentColor, 15px 15px 0 0 currentColor,
  0 20px 0 0 currentColor, 5px 20px 0 0 currentColor, 10px 20px 0 0 currentColor, 15px 20px 0 0 currentColor, 20px 20px 0 0 currentColor,
  15px 25px 0 0 currentColor,
  15px 30px 0 0 currentColor; }

/* 5 ─ 11111 / 1.... / 1.... / 1111. / ....1 / 1...1 / .111. */
.dot-digit[data-d="5"]::before { --dots:
  0 0 0 0 currentColor, 5px 0 0 0 currentColor, 10px 0 0 0 currentColor, 15px 0 0 0 currentColor, 20px 0 0 0 currentColor,
  0 5px 0 0 currentColor,
  0 10px 0 0 currentColor,
  0 15px 0 0 currentColor, 5px 15px 0 0 currentColor, 10px 15px 0 0 currentColor, 15px 15px 0 0 currentColor,
  20px 20px 0 0 currentColor,
  0 25px 0 0 currentColor, 20px 25px 0 0 currentColor,
  5px 30px 0 0 currentColor, 10px 30px 0 0 currentColor, 15px 30px 0 0 currentColor; }

/* 6 ─ ..11. / .1... / 1.... / 1111. / 1...1 / 1...1 / .111. */
.dot-digit[data-d="6"]::before { --dots:
  10px 0 0 0 currentColor, 15px 0 0 0 currentColor,
  5px 5px 0 0 currentColor,
  0 10px 0 0 currentColor,
  0 15px 0 0 currentColor, 5px 15px 0 0 currentColor, 10px 15px 0 0 currentColor, 15px 15px 0 0 currentColor,
  0 20px 0 0 currentColor, 20px 20px 0 0 currentColor,
  0 25px 0 0 currentColor, 20px 25px 0 0 currentColor,
  5px 30px 0 0 currentColor, 10px 30px 0 0 currentColor, 15px 30px 0 0 currentColor; }

/* 7 ─ 11111 / ....1 / ...1. / ..1.. / .1... / .1... / .1... */
.dot-digit[data-d="7"]::before { --dots:
  0 0 0 0 currentColor, 5px 0 0 0 currentColor, 10px 0 0 0 currentColor, 15px 0 0 0 currentColor, 20px 0 0 0 currentColor,
  20px 5px 0 0 currentColor,
  15px 10px 0 0 currentColor,
  10px 15px 0 0 currentColor,
  5px 20px 0 0 currentColor,
  5px 25px 0 0 currentColor,
  5px 30px 0 0 currentColor; }

/* 8 ─ .111. / 1...1 / 1...1 / .111. / 1...1 / 1...1 / .111. */
.dot-digit[data-d="8"]::before { --dots:
  5px 0 0 0 currentColor, 10px 0 0 0 currentColor, 15px 0 0 0 currentColor,
  0 5px 0 0 currentColor, 20px 5px 0 0 currentColor,
  0 10px 0 0 currentColor, 20px 10px 0 0 currentColor,
  5px 15px 0 0 currentColor, 10px 15px 0 0 currentColor, 15px 15px 0 0 currentColor,
  0 20px 0 0 currentColor, 20px 20px 0 0 currentColor,
  0 25px 0 0 currentColor, 20px 25px 0 0 currentColor,
  5px 30px 0 0 currentColor, 10px 30px 0 0 currentColor, 15px 30px 0 0 currentColor; }

/* 9 ─ .111. / 1...1 / 1...1 / .1111 / ....1 / ....1 / .111. */
.dot-digit[data-d="9"]::before { --dots:
  5px 0 0 0 currentColor, 10px 0 0 0 currentColor, 15px 0 0 0 currentColor,
  0 5px 0 0 currentColor, 20px 5px 0 0 currentColor,
  0 10px 0 0 currentColor, 20px 10px 0 0 currentColor,
  5px 15px 0 0 currentColor, 10px 15px 0 0 currentColor, 15px 15px 0 0 currentColor, 20px 15px 0 0 currentColor,
  20px 20px 0 0 currentColor,
  20px 25px 0 0 currentColor,
  5px 30px 0 0 currentColor, 10px 30px 0 0 currentColor, 15px 30px 0 0 currentColor; }

/* ∞ ─ 9×5 double lemniscate */
.dot-digit[data-d="inf"]::before { --dots:
  5px 0 0 0 currentColor, 10px 0 0 0 currentColor, 30px 0 0 0 currentColor, 35px 0 0 0 currentColor,
  0 5px 0 0 currentColor, 15px 5px 0 0 currentColor, 25px 5px 0 0 currentColor, 40px 5px 0 0 currentColor,
  0 10px 0 0 currentColor, 20px 10px 0 0 currentColor, 40px 10px 0 0 currentColor,
  0 15px 0 0 currentColor, 15px 15px 0 0 currentColor, 25px 15px 0 0 currentColor, 40px 15px 0 0 currentColor,
  5px 20px 0 0 currentColor, 10px 20px 0 0 currentColor, 30px 20px 0 0 currentColor, 35px 20px 0 0 currentColor; }


/* ──────────────────────────────────────────────────────────
   Dot-matrix ICONS — same visual language as dot-digit, but
   for pictograms. White dots on a coral chip. Used as visual
   anchors on cards (Invisible Aspects, Delivery Modes, etc).
   ────────────────────────────────────────────────────────── */

/* The chip — solid coral square that holds an icon.
   Bigger than typical so the white-dot icon reads from a quick scan.
   No shadow / glow / filter — flat block, clean Apple-product feel. */
.dot-icon-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 0 auto;
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: none;
  filter: none;
}

/* The icon itself — 7×7 dot grid, white dots */
.dot-icon {
  position: relative;
  display: inline-block;
  width: 33px;
  height: 33px;
  color: var(--white);
  flex-shrink: 0;
}

.dot-icon::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: transparent;     /* shadows do the work */
  box-shadow: var(--icon-dots);
}

/* Envelope — for multi-channel / messaging */
.dot-icon[data-icon="envelope"] { --icon-dots:
  5px 5px 0 0 currentColor, 10px 5px 0 0 currentColor, 15px 5px 0 0 currentColor, 20px 5px 0 0 currentColor, 25px 5px 0 0 currentColor,
  5px 10px 0 0 currentColor, 25px 10px 0 0 currentColor,
  5px 15px 0 0 currentColor, 10px 15px 0 0 currentColor, 20px 15px 0 0 currentColor, 25px 15px 0 0 currentColor,
  5px 20px 0 0 currentColor, 15px 20px 0 0 currentColor, 25px 20px 0 0 currentColor,
  5px 25px 0 0 currentColor, 10px 25px 0 0 currentColor, 15px 25px 0 0 currentColor, 20px 25px 0 0 currentColor, 25px 25px 0 0 currentColor; }

/* Profile — head + shoulders silhouette, for smart profiles */
.dot-icon[data-icon="profile"] { --icon-dots:
  10px 0 0 0 currentColor, 15px 0 0 0 currentColor, 20px 0 0 0 currentColor,
  5px 5px 0 0 currentColor, 25px 5px 0 0 currentColor,
  5px 10px 0 0 currentColor, 25px 10px 0 0 currentColor,
  10px 15px 0 0 currentColor, 15px 15px 0 0 currentColor, 20px 15px 0 0 currentColor,
  5px 25px 0 0 currentColor, 10px 25px 0 0 currentColor, 15px 25px 0 0 currentColor, 20px 25px 0 0 currentColor, 25px 25px 0 0 currentColor,
  0 30px 0 0 currentColor, 30px 30px 0 0 currentColor; }

/* Speech bubble with tail — for AI-tool / chat-native */
.dot-icon[data-icon="bubble"] { --icon-dots:
  5px 5px 0 0 currentColor, 10px 5px 0 0 currentColor, 15px 5px 0 0 currentColor, 20px 5px 0 0 currentColor, 25px 5px 0 0 currentColor,
  5px 10px 0 0 currentColor, 25px 10px 0 0 currentColor,
  5px 15px 0 0 currentColor, 25px 15px 0 0 currentColor,
  5px 20px 0 0 currentColor, 10px 20px 0 0 currentColor, 15px 20px 0 0 currentColor, 20px 20px 0 0 currentColor, 25px 20px 0 0 currentColor,
  10px 25px 0 0 currentColor,
  5px 30px 0 0 currentColor; }

/* List — three rows of bullet + line, for sequential programs */
.dot-icon[data-icon="list"] { --icon-dots:
  5px 5px 0 0 currentColor, 15px 5px 0 0 currentColor, 20px 5px 0 0 currentColor, 25px 5px 0 0 currentColor,
  5px 15px 0 0 currentColor, 15px 15px 0 0 currentColor, 20px 15px 0 0 currentColor, 25px 15px 0 0 currentColor,
  5px 25px 0 0 currentColor, 15px 25px 0 0 currentColor, 20px 25px 0 0 currentColor, 25px 25px 0 0 currentColor; }

/* Sparkle — 4-point star, for autopilot / AI / continuous */
.dot-icon[data-icon="sparkle"] { --icon-dots:
  15px 0 0 0 currentColor,
  15px 5px 0 0 currentColor,
  15px 10px 0 0 currentColor,
  0 15px 0 0 currentColor, 5px 15px 0 0 currentColor, 10px 15px 0 0 currentColor, 15px 15px 0 0 currentColor, 20px 15px 0 0 currentColor, 25px 15px 0 0 currentColor, 30px 15px 0 0 currentColor,
  15px 20px 0 0 currentColor,
  15px 25px 0 0 currentColor,
  15px 30px 0 0 currentColor; }

/* Loop — circular ring, for autopilot/continuous */
.dot-icon[data-icon="loop"] { --icon-dots:
  10px 0 0 0 currentColor, 15px 0 0 0 currentColor, 20px 0 0 0 currentColor,
  5px 5px 0 0 currentColor, 25px 5px 0 0 currentColor,
  0 10px 0 0 currentColor, 30px 10px 0 0 currentColor,
  0 15px 0 0 currentColor, 30px 15px 0 0 currentColor,
  0 20px 0 0 currentColor, 30px 20px 0 0 currentColor,
  5px 25px 0 0 currentColor, 25px 25px 0 0 currentColor,
  10px 30px 0 0 currentColor, 15px 30px 0 0 currentColor, 20px 30px 0 0 currentColor; }


/* ──────────────────────────────────────────────────────────
   Why-it-works section pattern (shared across pages)
   3 cards each with: dot-icon chip → eyebrow label → headline → body.
   Used on the main page (Invisible Aspects) and each sub-page.
   ────────────────────────────────────────────────────────── */

.invisible-aspects {
  padding: clamp(96px, 11vw, 144px) clamp(24px, 5vw, 64px);
  background: var(--white);
}

/* Warm variant — used on sub-pages so the section breaks up the
   white-on-white adjacency with the How It Works section below. */
.invisible-aspects--warm {
  background: var(--surface-warm);
}

/* Sub-page background overrides — ensure no adjacent same-color
   sections. The default product-showcase is sage and bottom-cta
   is cream; on sub-pages those would clash with neighboring
   problem (sage) and pricing (cream) sections.

   Doubled-class selectors give these higher specificity than
   the base .product-showcase / .bottom-cta rules, regardless of
   source order. The product-showcase variant also recolors all
   the inverse-on-sage text so it reads correctly on white. */
.product-showcase.product-showcase--white {
  background: var(--white);
}

.product-showcase.product-showcase--white .section-header h2,
.product-showcase.product-showcase--white .section-header h2 em {
  color: var(--ink);
  opacity: 1;
}

.product-showcase.product-showcase--white .section-header .overline {
  color: var(--primary);
}
.product-showcase.product-showcase--white .section-header .overline::before {
  background: var(--primary);
}

.product-showcase.product-showcase--white .product-subtitle {
  color: var(--body-color);
}

.product-showcase.product-showcase--white .product-tabs {
  border-bottom-color: var(--line);
}

.product-showcase.product-showcase--white .product-tab {
  color: var(--muted);
}

.product-showcase.product-showcase--white .product-tab:hover,
.product-showcase.product-showcase--white .product-tab:focus-visible,
.product-showcase.product-showcase--white .product-tab[aria-selected="true"] {
  color: var(--ink);
}

.product-showcase.product-showcase--white .product-tab:focus-visible {
  outline-color: var(--ink);
}

.bottom-cta.bottom-cta--white {
  background: var(--white);
}

.invisible-aspects .section-header {
  margin-bottom: clamp(48px, 6vw, 72px);
  text-align: center;
}

.aspect-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.aspect-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(28px, 3.4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  box-shadow:
    0 1px 0 rgba(18, 28, 26, 0.04),
    0 14px 28px -12px rgba(18, 28, 26, 0.14);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.aspect-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(18, 28, 26, 0.04),
    0 24px 40px -14px rgba(18, 28, 26, 0.22);
  /* Border stays grey at all states — no color shift on hover */
}

.aspect-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink);
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.aspect-num::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.aspect-card h3 {
  font-family: 'Newsreader', serif;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}

.aspect-card > p {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  line-height: 1.65;
  color: var(--body-color);
}

@media (max-width: 900px) {
  .aspect-cards { grid-template-columns: 1fr; max-width: 480px; }
}

/* Step-number container — colour comes from parent, spacing from flex */
.step-number {
  display: inline-flex;
  gap: 5px;
  align-items: flex-end;
  margin-bottom: 24px;
  color: var(--secondary);
  line-height: 1;
}

.step h3 {
  font-family: 'Newsreader', serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.25;
  color: var(--ink);
}

.step p {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* Warm paper variant (was previously dark) — for pages that want a subtle
   color break between how and the next section. Red accent on the em. */
.how-section--dark { position: relative; }
.how-section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, oklch(18% 0.008 var(--hue) / 0.04) 1px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
}
.how-section--dark > * { position: relative; }
.how-section--dark .section-header h2 em { color: var(--primary); font-style: italic; }
.how-section--dark .step {
  background: var(--white);
  border-color: var(--line);
}

/* Variation for sage bg — step cards remain white, so keep secondary color */
.how-section--sage { background: var(--secondary); }
.how-section--sage .section-header h2 { color: var(--white); }
.how-section--sage .section-header h2 em { color: rgba(255,255,255,0.65); font-style: italic; }
/* Step cards on sage stay white; step numbers stay sage but darker for contrast */
.how-section--sage .step-number {
  color: var(--secondary);
}

/* ────── BOTTOM CTA ────── */
.bottom-cta {
  padding: clamp(80px, 9vw, 128px) clamp(24px, 5vw, 64px);
  text-align: center;
  background: var(--surface-warm);
}

.bottom-cta h2 {
  font-family: 'Newsreader', serif;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--ink);
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.bottom-cta h2 em {
  font-style: italic;
  color: var(--secondary);
}

.bottom-cta p {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  color: var(--muted);
  max-width: 62ch;
  margin: 16px auto 36px;
  line-height: 1.7;
  text-wrap: pretty;
}

.bottom-cta .cta-row { margin-bottom: 20px; }

/* ────── FOOTER ────── */
.footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  border-top: 1px solid var(--line);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.footer-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.footer > *:not(.footer-bg) { position: relative; z-index: 1; }

.footer-logo { display: flex; align-items: center; text-decoration: none; }
.footer-logo img { height: 22px; width: auto; }
.footer a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.footer a:hover { color: var(--secondary); }

/* ────── FORM FIELDS (shared) ────── */
.field { display: grid; gap: 6px; }
.field label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  min-height: 44px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.field textarea { min-height: 88px; }
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: var(--muted); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(139, 161, 158, 0.22);
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.5; font-family: 'Inter', system-ui, sans-serif; }

/* ────── MODAL ────── */
.modal-root { display: none; }
.modal-root.is-open { display: block; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: oklch(20% 0.01 var(--hue) / 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-root.is-open .modal-backdrop { opacity: 1; }

.modal-dialog {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 1001;
  overflow-y: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 36px 28px;
  box-shadow:
    0 1px 2px rgba(20, 30, 30, 0.04),
    0 20px 56px rgba(20, 30, 30, 0.16);
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
}
.modal-root.is-open .modal-card { transform: translateY(0) scale(1); opacity: 1; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.modal-close:hover { background: var(--surface); color: var(--ink); }
.modal-close:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.modal-close svg { width: 16px; height: 16px; display: block; }

.modal-overline {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.modal-card h2 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.modal-card h2 em { font-style: italic; color: var(--primary); }

.modal-sub {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 24px;
}

.modal-form { display: grid; gap: 14px; }
.modal-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) {
  .modal-form .field-row { grid-template-columns: 1fr; }
  .modal-card { padding: 28px 22px 22px; }
}

.modal-submit {
  width: 100%;
  min-height: 48px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  margin-top: 6px;
}
.modal-submit:hover { background: #595959; }
.modal-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.modal-submit:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

.modal-success {
  display: none;
  text-align: center;
  padding: 8px 0 4px;
}
.modal-root.is-success .modal-form,
.modal-root.is-success .modal-overline,
.modal-root.is-success h2,
.modal-root.is-success .modal-sub { display: none; }
.modal-root.is-success .modal-success { display: block; }

.modal-success-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--secondary-bg);
  color: var(--secondary);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.modal-success-mark svg { width: 26px; height: 26px; }

.modal-success h3 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 8px;
}
.modal-success p {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-card { transition: none; }
}

/* ────── UTILITIES ────── */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 28px;
}

.card h3 {
  font-family: 'Newsreader', serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.25;
  color: var(--ink);
}

.card .overline { margin-bottom: 14px; }

.card p {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* Dot bullet list */
.dot-list { list-style: none; }

.dot-list li {
  padding: 12px 0;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--body-color);
}

.dot-list li:last-child { border-bottom: none; }

.dot-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
  margin-top: 7px;
}

.dot-list--inverse li {
  color: rgba(255,255,255,0.85);
  border-bottom-color: rgba(255,255,255,0.1);
}

.dot-list--muted li::before { background: var(--faint); }

/* ────── HERO VISUAL (product screenshot mockup) ────── */
/* Invisible's product is email, so the "screenshot" is a stylized
   email thread — the real UI surface the user interacts with. */
.hero-visual {
  max-width: 720px;
  margin: clamp(48px, 6vw, 80px) auto 0;
  padding: 0 clamp(24px, 5vw, 64px);
}

/* Same chrome treatment as .product-mock — 1.5px ink border, strong
   drop shadow, vibrant macOS traffic-light dots, white interior. */
.hero-mock {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 32px 64px -18px rgba(18, 28, 26, 0.32);
  overflow: hidden;
  text-align: left;
}

.hero-mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--ink);
  background: color-mix(in oklab, var(--surface-warm) 35%, var(--white));
}

.hero-mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wash);
}
.hero-mock-bar span:nth-of-type(1) { background: #ff5f57; }
.hero-mock-bar span:nth-of-type(2) { background: #ffbd2e; }
.hero-mock-bar span:nth-of-type(3) { background: #28c840; }

.hero-mock-bar .hero-mock-url {
  margin-left: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.06em;
  background: transparent;
  width: auto;
  height: auto;
  border-radius: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Narrow-viewport tightening for the hero email mock — keeps the
   visual readable on phones without forcing a fixed phone-shaped layout */
@media (max-width: 600px) {
  .hero-mock-bar { padding: 9px 12px; }
  .hero-mock-bar .hero-mock-url { font-size: 10px; margin-left: 8px; }
  .hero-mock-body { padding: 16px 18px; font-size: 11.5px; line-height: 1.65; }
  .hero-mock-head dt { font-size: 9px; }
  .hero-mock-head dd { font-size: 11.5px; }
}

.hero-mock-body {
  padding: clamp(20px, 3vw, 32px);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  line-height: 1.75;
  color: var(--body-color);
}

.hero-mock-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  row-gap: 6px;
  column-gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.hero-mock-head dt {
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  padding-top: 3px;
}

.hero-mock-head dd {
  color: var(--ink);
}

.hero-mock-head dd em {
  font-style: normal;
  color: var(--primary);
}

.hero-mock-msg p {
  color: var(--body-color);
  margin-bottom: 12px;
}

.hero-mock-msg p:last-child { margin-bottom: 0; }

.hero-mock-sig {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ────── SOCIAL PROOF BAR ────── */
.social-proof {
  padding: clamp(40px, 5vw, 56px) clamp(24px, 5vw, 64px);
  background: var(--surface-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.social-proof-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.social-proof-label strong {
  color: var(--ink);
  font-weight: 600;
}

.social-proof-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5vw, 64px);
  flex-wrap: wrap;
}

.social-proof-logo {
  font-family: 'Newsreader', serif;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--subtle);
  opacity: 0.85;
  white-space: nowrap;
}

.social-proof-logo--mono {
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* ────── TESTIMONIAL ────── */
.testimonial {
  padding: clamp(80px, 10vw, 128px) clamp(24px, 5vw, 64px);
  background: var(--surface-warm);
  text-align: center;
  position: relative;
}

.testimonial::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, oklch(18% 0.008 var(--hue) / 0.05) 1px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
}

.testimonial > * { position: relative; }

.testimonial-quote {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 28ch;
  margin: 0 auto 36px;
  text-wrap: balance;
}

.testimonial-quote em {
  font-style: italic;
  color: var(--primary);
}

.testimonial-attr {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.testimonial-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.25) 1px, transparent 1.5px);
  background-size: 6px 6px;
}

.testimonial-meta strong {
  display: block;
  font-family: 'Newsreader', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.testimonial-meta span {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ────── PRICING ────── */
.pricing {
  padding: clamp(80px, 10vw, 128px) clamp(24px, 5vw, 64px);
  background: var(--surface-warm);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border-color: var(--ink);
  position: relative;
}

.pricing-card--featured::before {
  content: 'Available now';
  position: absolute;
  top: -11px;
  left: 24px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  padding: 5px 10px;
  border-radius: 4px;
}

.pricing-card .overline { margin-bottom: 14px; }

.pricing-tier-name {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.pricing-price {
  font-family: 'Newsreader', serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 18px 0 4px;
}

.pricing-price span {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-left: 4px;
}

.pricing-desc {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--body-color);
  line-height: 1.7;
}

.pricing-features li {
  padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary);
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
  margin-top: auto;
  text-align: center;
}

/* ────── FOUNDERS / TEAM ────── */
.founders {
  padding: clamp(80px, 10vw, 128px) clamp(24px, 5vw, 64px);
  background: var(--white);
  text-align: center;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.founder-card {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}

.founder-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--secondary);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.founder-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.25) 1px, transparent 1.5px);
  background-size: 8px 8px;
}

.founder-name {
  font-family: 'Newsreader', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.founder-role {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.founder-bio {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* ────── PRODUCT SHOWCASE ────── */
.product-showcase {
  padding: clamp(80px, 10vw, 128px) clamp(24px, 5vw, 64px);
  background: var(--secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, oklch(18% 0.008 var(--hue) / 0.05) 1px, transparent 1.5px);
  background-size: 20px 20px;
  pointer-events: none;
}

.product-showcase > * { position: relative; }

.product-showcase .section-header {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.product-showcase .section-header h2 { color: var(--white); }
.product-showcase .section-header h2 em { color: var(--white); font-style: italic; opacity: 0.8; }
.product-showcase .section-header .overline { color: var(--white); }
.product-showcase .section-header .overline::before { background: var(--white); }

.product-subtitle {
  max-width: 60ch;
  margin: 0 auto clamp(32px, 4vw, 48px);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6;
}

.product-tabs {
  display: flex;
  justify-content: center;
  gap: 2px;
  max-width: 960px;
  margin: 0 auto clamp(28px, 3.5vw, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  flex-wrap: wrap;
}

/* Below 600px the tab strip becomes a horizontal scroller with
   snap-on-start behavior. Avoids the wrapped-rows-with-broken-
   bottom-border issue and matches native iOS / Android tab feel. */
@media (max-width: 600px) {
  .product-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 16px;
    margin-left: -16px;
    margin-right: -16px;
    max-width: none;
  }
  .product-tabs::-webkit-scrollbar { display: none; }
  .product-tab {
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

.product-tab {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: none;
  min-height: 44px;
  padding: 14px 18px;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.product-tab:hover { color: var(--white); }

.product-tab:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
  border-radius: 4px;
  color: var(--white);
}

.product-tab[aria-selected="true"] {
  color: var(--white);
}

.product-tab[aria-selected="true"]::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
}

.product-panels {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.product-panel {
  display: none;
}

.product-panel[aria-hidden="false"] {
  display: block;
}

.product-mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(18, 28, 26, 0.02),
    0 18px 48px -24px rgba(18, 28, 26, 0.22);
  overflow: hidden;
  text-align: left;
}

.product-mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.product-mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wash);
}

.product-mock-bar .product-mock-url {
  flex: 1;
  height: 22px;
  margin-left: 8px;
  border-radius: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.product-mock-body {
  background: var(--white);
  padding: clamp(28px, 4vw, 44px);
  min-height: clamp(320px, 38vw, 440px);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 20px);
}

.product-mock-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, oklch(18% 0.008 var(--hue) / 0.035) 1px, transparent 1.5px);
  background-size: 14px 14px;
  pointer-events: none;
}

.product-mock-body > * { position: relative; }

.product-mock-caption {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.product-mock-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.product-mock-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.product-mock-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.product-mock-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.product-mock-row-dot.is-muted { background: var(--faint); }

.product-mock-row-text {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--body-color);
  line-height: 1.5;
}

.product-mock-row-meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.product-mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.product-mock-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 16px;
}

.product-mock-stat-num {
  font-family: 'Newsreader', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}

.product-mock-stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-mock-chart {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  flex: 1;
  min-height: 180px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 10px;
}

.product-mock-bar-vis {
  background: var(--secondary);
  border-radius: 4px 4px 0 0;
  min-height: 8px;
  opacity: 0.35;
}

.product-mock-bar-vis.is-active { background: var(--primary); opacity: 1; }

.product-mock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.product-mock-tile {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: 'Newsreader', serif;
  font-size: 18px;
  color: var(--muted);
}

.product-mock-tile.is-accent {
  background: color-mix(in oklab, var(--primary) 8%, var(--white));
  border-color: color-mix(in oklab, var(--primary) 20%, var(--line));
  color: var(--primary);
}

/* ────── RESPONSIVE ────── */
@media (max-width: 900px) {
  .frame { margin: 0; border-radius: 0; border-left: none; border-right: none; }
  .nav { padding: 0 24px; height: 64px; }
  .nav-links { gap: 2px; }
  .nav-link, .nav-dropdown-toggle { padding: 8px 10px; }
  .hero { padding: 48px 24px 40px; }
  .hero-tagline { font-size: 36px; }
  .problem, .how-section, .bottom-cta { padding: 56px 24px; }
  .problem-inner > h2 { font-size: 30px; max-width: 18ch; }
  .problem-inner > p { font-size: 17px; max-width: none; }
  .section-header h2, .bottom-cta h2 { font-size: 30px; }
  .steps { grid-template-columns: 1fr; }
  .footer { padding: 20px 24px; flex-wrap: wrap; gap: 8px; }
  .pricing, .founders, .testimonial { padding: 56px 24px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .founders-grid { grid-template-columns: 1fr; max-width: 480px; }
  .social-proof-logos { gap: 24px; }
}

@media (max-width: 520px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { text-align: center; }
}

@media (max-width: 480px) {
  .hero-tagline { font-size: 30px; }
  .problem h2, .section-header h2, .bottom-cta h2 { font-size: 26px; }
}

/* ──────────────────────────────────────────────────────────
   DELIGHT
   Restrained motion that reinforces the dot/braille motif.
   All effects respect prefers-reduced-motion.
   ────────────────────────────────────────────────────────── */

/* Dropdown item hover — a leading sage dot slides in,
   echoing the overline pattern. Quiet, discovered. */
.nav-dropdown-item {
  position: relative;
  padding-left: 26px;
}
.nav-dropdown-item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translate(-6px, -50%) scale(0.4);
  opacity: 0;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms;
}
.nav-dropdown-item:hover::before {
  transform: translate(0, -50%) scale(1);
  opacity: 1;
}

/* Cursor spotlight — a faint warm halo follows the pointer
   across dark/sage sections, brightening their dot grids.
   Falls back gracefully without JS (stays at 0 opacity). */
.problem,
.manifesto,
.how-section--dark,
.how-section--sage,
.channels,
.use-cases,
.capabilities,
.contrast-before {
  position: relative;
  overflow: hidden;
}

/* Cursor spotlight removed — quieter, flatter section surfaces. */

/* Ensure section content paints above the spotlight */
.problem > *,
.manifesto > *,
.how-section--dark > *,
.how-section--sage > *,
.channels > *,
.use-cases > *,
.capabilities > *,
.contrast-before > * {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: no-preference) {

  /* Hero entrance — staggered rise + fade.
     The wordmark sets the tone; tagline, sub, CTAs follow. */
  .hero-wordmark,
  .hero > .overline,
  .hero-tagline,
  .hero-sub,
  .hero .cta-row,
  .hero-email {
    animation: dl-rise 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .hero > .overline { animation-delay: 60ms; }
  .hero-wordmark    { animation-delay: 100ms; }
  .hero-tagline     { animation-delay: 240ms; }
  .hero-sub         { animation-delay: 420ms; }
  .hero .cta-row    { animation-delay: 580ms; }
  .hero-email       { animation-delay: 720ms; }

  @keyframes dl-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Card scroll-reveal — applied via .reveal/.in classes by JS.
     Cards begin offset, then settle when in view. Stagger handled
     in JS by transitionDelay on neighbors. */
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 620ms cubic-bezier(0.2, 0.8, 0.2, 1),
      transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
  }
  .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion — keep state correct without animating */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
