/* ═══════════════════════════════════════════════════════════════════════
   LANDING — editorial print aesthetic
   Ported near-verbatim from the app's vetted look (src/styles/landing.css,
   Kyle-approved). Adapted for the standalone marketing site:
   - hardcoded theme colors tokenized so dark mode works via OS preference
     AND the site's theme toggle (one [data-theme] resolver, no app shell)
   - beta-capture form styling added (pre-launch CTA; no buy buttons)
   - persona footer links added so /for/* pages are discoverable
   Fonts, spacing, and type scale are unchanged from the vetted design.
   Min font size here is 12px (labels); nothing smaller. No emojis.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --font-label: 'Roboto Mono', ui-monospace, monospace;

  /* editorial palette — light (warm cream stock) */
  --paper: #f2ece3;
  --ink: #111;
  --ink-body: #555;
  --ink-dek: #555;
  --ink-faint: #999;
  --ink-label: #aaa;
  --rule: rgba(17,17,17,.1);
  --rule-strong: #111;
  --hairline: rgba(17,17,17,.09);
  --hed-b: #666;
  --feat-title: #111;
  --feat-text: #666;
  --inv-bg: #111;
  --inv-ink: #f2ece3;
  --inv-ink-strong: rgba(242,236,227,.92);
  --inv-body: rgba(242,236,227,.55);
  --inv-body-strong: rgba(242,236,227,.88);
  --inv-rule: rgba(255,255,255,.06);
  --mustang: #2563eb;
  --signal: #3aa6fe;
  --quote-bg:
    linear-gradient(148deg, transparent 15%, rgba(60,100,155,.18) 28%, transparent 36%, rgba(50,90,140,.14) 52%, transparent 60%, rgba(55,95,148,.16) 74%, transparent 82%),
    linear-gradient(152deg, rgba(220,238,255,.28) 4%, transparent 20%, rgba(210,232,255,.22) 32%, transparent 48%, rgba(218,236,255,.2) 62%, transparent 76%),
    #93c5e8;
  --quote-ink: #0d2a4a;
  --input-bg: #fff;
  --input-border: #111;
  --chip-border: rgba(17,17,17,.28);
}

/* dark via explicit toggle */
:root[data-theme="dark"] {
  --paper: #111; --ink: #f2ece3; --ink-body: rgba(242,236,227,.55);
  --ink-dek: rgba(242,236,227,.55); --ink-faint: rgba(242,236,227,.35);
  --ink-label: rgba(242,236,227,.4); --rule: rgba(242,236,227,.1);
  --rule-strong: rgba(242,236,227,.15); --hairline: rgba(242,236,227,.08);
  --hed-b: rgba(242,236,227,.5); --feat-title: #f2ece3; --feat-text: rgba(242,236,227,.5);
  --inv-bg: #1a1a1a; --quote-bg: #1d4ed8; --quote-ink: #eaf1ff;
  --input-bg: #1a1a1a; --input-border: #f2ece3; --chip-border: rgba(242,236,227,.24);
}
/* dark via OS preference when the user hasn't toggled */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111; --ink: #f2ece3; --ink-body: rgba(242,236,227,.55);
    --ink-dek: rgba(242,236,227,.55); --ink-faint: rgba(242,236,227,.35);
    --ink-label: rgba(242,236,227,.4); --rule: rgba(242,236,227,.1);
    --rule-strong: rgba(242,236,227,.15); --hairline: rgba(242,236,227,.08);
    --hed-b: rgba(242,236,227,.5); --feat-title: #f2ece3; --feat-text: rgba(242,236,227,.5);
    --inv-bg: #1a1a1a; --quote-bg: #1d4ed8; --quote-ink: #eaf1ff;
    --input-bg: #1a1a1a; --input-border: #f2ece3; --chip-border: rgba(242,236,227,.24);
  }
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; overscroll-behavior-x: none; }
body { margin: 0; }

.lp-wrap {
  position: relative; z-index: 2;
  max-width: 640px; margin: 0 auto; padding: 0 28px; min-height: 100vh;
  background: var(--paper); color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Desktop layout lives at the END of this file so its rules win the cascade
   over the base component rules below (see the RICHER DESKTOP block). */

/* ─── NAV ─────────────────────────────────────────────────────────── */
.lp-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 20px 0 18px; border-bottom: 1.5px solid var(--rule-strong);
}
.lp-logo { display: flex; align-items: baseline; gap: 4px; text-decoration: none; }
.lp-logo-cx { font-family: 'Bitcount Single Ink', monospace; font-size: 22px; color: #2563eb; line-height: 1; }
.lp-logo-buddy { font-family: 'Beth Ellen', cursive; font-size: 16px; color: #3AA6FE; line-height: 1; }
.lp-nav-right { display: flex; align-items: center; gap: 12px; }

.lp-nav-btn {
  font-family: var(--font-label); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 7px 14px;
  background: transparent; border: 1.5px solid var(--ink); color: var(--ink);
  cursor: pointer; border-radius: 5px; transition: background .1s, color .1s;
  min-height: 44px; display: inline-flex; align-items: center; text-decoration: none;
  white-space: nowrap;
}
/* tighten the nav on small screens so the CTA never wraps */
@media (max-width: 430px) {
  .lp-nav-right { gap: 9px; }
  .lp-nav-btn { padding: 7px 11px; letter-spacing: .06em; }
  .lp-nav .lp-footer-link { display: none; }
}
.lp-nav-btn:hover { background: var(--ink); color: var(--paper); }

/* theme toggle — pill track + sliding thumb (no emoji) */
.lp-theme {
  appearance: none; border: 1.5px solid var(--ink); background: transparent;
  width: 44px; height: 26px; border-radius: 100px; position: relative;
  cursor: pointer; flex-shrink: 0; padding: 0;
}
.lp-theme::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--signal); transition: transform .2s cubic-bezier(.4,0,.2,1);
}
:root[data-theme="dark"] .lp-theme::after { transform: translateX(18px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lp-theme::after { transform: translateX(18px); }
}

/* ─── HERO ────────────────────────────────────────────────────────── */
.lp-hero {
  padding: 48px 0 60px; min-height: calc(100svh - 65px);
  display: flex; flex-direction: column; justify-content: center;
}
.lp-overline {
  font-family: var(--font-label); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-body); margin-bottom: 14px;
}
.lp-rule { height: 1.5px; background: var(--rule-strong); margin-bottom: 30px; }
.lp-hero-hed { font-family: 'Roboto Slab', serif; font-weight: 700; color: var(--ink); margin: 0 0 28px; line-height: 1; }
.lp-hed-a {
  display: block; text-transform: uppercase; font-size: clamp(3rem, 12.5vw, 8.5rem);
  letter-spacing: .02em; line-height: .92; overflow-wrap: break-word; word-break: break-word;
}
.lp-hed-a--full { font-size: clamp(2.5rem, 10.5vw, 6rem); letter-spacing: .015em; line-height: .95; }
.lp-hed-b {
  display: block; font-family: 'Fraunces', serif; font-style: italic; font-weight: 400;
  font-size: clamp(1.8rem, 7vw, 3.8rem); letter-spacing: .01em; line-height: 1.2;
  color: var(--hed-b); margin-top: 8px; text-transform: none;
}
.lp-hero-dek {
  font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.7;
  color: var(--ink-dek); margin-bottom: 36px; max-width: 400px;
}
/* Mobile: the foot wrapper is invisible to layout — dek + CTA flow exactly
   as if they were direct children of the hero (mobile stays byte-identical).
   Desktop turns it into a flex row (see the >=900px block). */
.lp-hero-foot { display: contents; }

/* ─── BUTTONS ─────────────────────────────────────────────────────── */
.lp-btn {
  font-family: var(--font-label); font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 14px 32px; background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: 6px; cursor: pointer;
  transition: background .1s, color .1s; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.lp-btn:hover { background: transparent; color: var(--ink); text-decoration: none; }
.lp-btn:active { opacity: .85; }
.lp-btn--outline { background: transparent; color: var(--ink); }
.lp-btn--outline:hover { background: var(--ink); color: var(--paper); }
.lp-btn--light { background: var(--inv-ink); color: #111; border-color: var(--inv-ink); }
.lp-btn--light:hover { background: transparent; color: var(--inv-ink); }
.lp-btn--full { width: 100%; padding: 14px; }

/* ─── INVERTED SECTIONS (full-bleed) ──────────────────────────────── */
.lp-inv { margin: 0 -28px; padding: 64px 28px; background: var(--inv-bg); }
.lp-inv-hed {
  font-family: 'Roboto Slab', serif; font-weight: 700; font-style: italic;
  font-size: clamp(2.2rem, 9vw, 4rem); letter-spacing: -.015em; line-height: 1.06;
  color: var(--inv-ink); margin-bottom: 24px;
}
.lp-inv-body {
  font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.72;
  color: var(--inv-body); margin-bottom: 14px;
}
.lp-inv-body--strong { color: var(--inv-body-strong); font-weight: 600; }
.lp-inv-body strong { font-weight: 700; color: var(--inv-ink-strong); }

.lp-dash-list { list-style: none; padding: 0; margin: 24px 0 0; }
.lp-dash-list li {
  font-family: 'Inter', system-ui, sans-serif; font-size: 14px; line-height: 1.65;
  color: var(--inv-body); padding: 12px 0 12px 28px; position: relative;
  border-bottom: 1px solid var(--inv-rule);
}
.lp-dash-list li:last-child { border-bottom: none; }
.lp-dash-list li::before {
  content: '\2014'; position: absolute; left: 0; top: 10px; color: #3AA6FE;
  font-family: var(--font-label); font-size: 18px; font-weight: 900; line-height: 1.65; letter-spacing: -.04em;
}

/* ─── SECTIONS (light) ────────────────────────────────────────────── */
.lp-section { padding: 68px 0; border-top: 1px solid var(--rule); }
.lp-section-hed {
  font-family: 'Roboto Slab', serif; font-weight: 600; font-size: clamp(1.45rem, 5.8vw, 2.3rem);
  letter-spacing: .01em; line-height: 1.18; color: var(--ink); margin-bottom: 20px;
}
.lp-body {
  font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.72;
  color: var(--ink-body); margin-bottom: 14px;
}
.lp-body strong, .lp-hero-dek strong { font-weight: 700; color: var(--ink); }

/* ─── PULL QUOTE — the one color moment ───────────────────────────── */
.lp-quote {
  display: block; margin: 48px -28px -52px; padding: 44px 36px; background: var(--quote-bg);
  font-family: 'Fraunces', serif; font-size: clamp(1.3rem, 5.2vw, 1.9rem); font-weight: 400;
  font-style: italic; line-height: 1.5; color: var(--quote-ink); text-align: center;
  border: none; position: relative; overflow: hidden;
}
.lp-quote::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.45); }

/* ─── FEATURES ────────────────────────────────────────────────────── */
.lp-label {
  font-family: var(--font-label); font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-label); margin-bottom: 10px;
}
.lp-feat-list { list-style: none; padding: 0; margin: 8px 0 0; }
@keyframes lp-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.lp-feat-item {
  display: flex; gap: 22px; align-items: flex-start; padding: 26px 0;
  border-bottom: 1px solid var(--hairline); animation: lp-up .38s ease both;
}
.lp-feat-item:first-child { border-top: 1px solid var(--hairline); }
.lp-feat-n {
  font-family: 'Bitcount Single Ink', monospace; font-size: 34px; font-weight: 400; color: #3AA6FE;
  letter-spacing: -.01em; line-height: 1; min-width: 58px; flex-shrink: 0; padding-top: 1px;
}
.lp-feat-body { flex: 1; min-width: 0; }
.lp-feat-title { font-family: 'Roboto Slab', serif; font-size: 15px; font-weight: 600; color: var(--feat-title); margin-bottom: 6px; line-height: 1.28; }
.lp-feat-text { font-family: 'Inter', system-ui, sans-serif; font-size: 13.5px; line-height: 1.64; color: var(--feat-text); }
.lp-feat-text strong { font-weight: 700; color: var(--feat-title); }

/* ─── TYPEWRITER ──────────────────────────────────────────────────── */
.lp-typer-section { padding: 60px 0 64px; border-top: 1px solid var(--rule); }
.lp-typer-static {
  font-family: 'Roboto Slab', serif; font-weight: 700; font-size: clamp(2.4rem, 10vw, 5.5rem);
  letter-spacing: .02em; line-height: .92; color: var(--ink); text-transform: uppercase; margin: 0 0 6px;
}
.lp-typer-line { display: block; height: calc(clamp(2.2rem, 9.5vw, 5rem) * 2.5); overflow: hidden; }
.lp-typer-phrase {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: clamp(2.2rem, 9.5vw, 5rem); color: #3AA6FE; line-height: 1.05; letter-spacing: -.01em;
}
.lp-typer-cursor {
  font-family: var(--font-label); font-size: clamp(2rem, 8.5vw, 4.5rem); font-weight: 300;
  color: #3AA6FE; line-height: 1.1; animation: lp-blink .75s step-end infinite; margin-left: 2px;
}
@keyframes lp-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ─── TRUST ───────────────────────────────────────────────────────── */
.lp-trust { border-top: 2.5px solid #2563eb; }
.lp-trust .lp-section-hed {
  font-family: 'Beth Ellen', cursive; font-size: clamp(1.6rem, 6.5vw, 2.6rem); font-weight: 400; letter-spacing: .01em;
}
.lp-check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.lp-check-list li {
  font-family: 'Inter', system-ui, sans-serif; font-size: 14px; line-height: 1.68; color: var(--ink-body);
  padding: 8px 0 8px 26px; position: relative;
}
.lp-check-list li::before {
  content: '\2713'; position: absolute; left: 0; color: #2563eb; font-size: 13px; font-weight: 700; line-height: 1.68;
}

/* ─── FLEXIBILITY BAND ("Your AI, your way") ──────────────────────── */
.lp-doors { list-style: none; padding: 0; margin: 24px 0 0; }
.lp-door { padding: 24px 0; border-top: 1px solid var(--hairline); }
.lp-door-k {
  display: block; font-family: var(--font-label); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #3AA6FE; margin-bottom: 8px;
}
.lp-door h3 { font-family: 'Roboto Slab', serif; font-size: 18px; font-weight: 600; color: var(--ink); margin: 0 0 6px; line-height: 1.24; }
.lp-door p { font-family: 'Inter', system-ui, sans-serif; font-size: 14px; line-height: 1.64; color: var(--ink-body); margin: 0; }

.lp-chips-label {
  font-family: var(--font-label); font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-label); margin: 30px 0 12px;
}
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chip {
  font-family: var(--font-label); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--chip-border); border-radius: 100px; padding: 7px 14px;
}
.lp-wire {
  margin: 22px 0 0; font-family: var(--font-label); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-body); line-height: 2;
}
.lp-wire b { color: var(--ink); font-weight: 700; }
.lp-wire .ar { color: #3AA6FE; }

/* ─── PRIVACY (three cards) ────────────────────────────────────────── */
.lp-priv-list { margin-top: 24px; }
.lp-priv { padding: 24px 0; border-top: 1px solid var(--hairline); }
.lp-priv-k {
  display: block; font-family: var(--font-label); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #2563eb; margin-bottom: 8px;
}
.lp-priv h3 { font-family: 'Roboto Slab', serif; font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 6px; line-height: 1.24; }
.lp-priv p { font-family: 'Inter', system-ui, sans-serif; font-size: 14px; line-height: 1.64; color: var(--ink-body); margin: 0; }

/* ─── PRICING ─────────────────────────────────────────────────────── */
.lp-pricing { padding-bottom: 72px; }

/* ─── BETA CAPTURE (pre-launch CTA) ───────────────────────────────── */
.lp-beta-form {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  max-width: 440px; margin: 0 auto;
}
.lp-beta-form input[type="email"] {
  flex: 1 1 220px; min-width: 0; font-family: 'Inter', system-ui, sans-serif; font-size: 16px;
  padding: 13px 16px; border-radius: 6px; border: 2px solid var(--inv-ink);
  background: transparent; color: var(--inv-ink);
}
.lp-beta-form input[type="email"]::placeholder { color: rgba(242,236,227,.45); }
.lp-beta-form input[type="email"]:focus { outline: none; border-color: #3AA6FE; }
.lp-beta-msg {
  margin: 16px auto 0; font-family: var(--font-label); font-size: 13px; letter-spacing: .04em;
  min-height: 18px; text-align: center; color: var(--inv-body);
}
.lp-beta-msg.ok { color: #7ee0a8; }
.lp-beta-msg.err { color: #ff9db0; }
.lp-beta-fine {
  margin-top: 14px; font-family: var(--font-label); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(242,236,227,.4); text-align: center;
}

/* ─── FINAL CTA ───────────────────────────────────────────────────── */
.lp-final { text-align: center; }
.lp-final-hed {
  font-family: 'Roboto Slab', serif; font-weight: 700; font-size: clamp(2.2rem, 9vw, 4rem);
  letter-spacing: -.02em; line-height: 1.06; color: var(--inv-ink); margin-bottom: 20px;
}

/* ─── UTILITIES ───────────────────────────────────────────────────── */
.lp-center { text-align: center; }
.lp-center-flex { justify-content: center; }
.lp-small { font-size: 13px; opacity: .65; }

/* ─── FOOTER ──────────────────────────────────────────────────────── */
.lp-footer { text-align: center; padding: 28px 0 52px; border-top: 1px solid var(--rule); }
.lp-footer-personas {
  display: flex; justify-content: center; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-bottom: 18px;
}
.lp-footer-personas a, .lp-footer-link {
  font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; background: none; border: none; color: var(--ink-faint);
  cursor: pointer; transition: color .12s; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}
.lp-footer-personas a:hover, .lp-footer-link:hover { color: var(--ink); text-decoration: none; }
.lp-footer-links { margin-top: 12px; display: flex; justify-content: center; gap: 8px; align-items: center; }
.lp-footer-sep { color: var(--ink-faint); font-size: 12px; }

/* ─── STICKY BOTTOM BAR ───────────────────────────────────────────── */
.lp-sticky {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 28px calc(12px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1.5px solid var(--rule-strong);
  transform: translateY(100%); transition: transform .28s cubic-bezier(.34,1.4,.64,1);
  pointer-events: none;
}
.lp-sticky-inner { max-width: 640px; margin: 0 auto; }
.lp-sticky.is-visible { transform: translateY(0); pointer-events: auto; }

/* ═══════════════════════════════════════════════════════════════════
   RICHER DESKTOP (>= 900px) — ADDITIVE ONLY, placed last so it wins the
   cascade. Every rule is scoped to the desktop breakpoint; below 900px the
   layout is untouched and pixel-identical to the vetted design. Layout only,
   no new copy.
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 900px) {
  .lp-wrap { max-width: 980px; }

  /* Hero: full-width headline (capped so long words never orphan their
     punctuation), then a supporting row with the dek left + CTA right. The
     .lp-hero-foot wrapper is display:contents on mobile (byte-identical) and
     a flex row here. */
  .lp-hed-a { font-size: clamp(3.5rem, 7vw, 6rem); }
  .lp-hero-foot {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 32px; width: 100%; margin-top: 8px;
  }
  .lp-hero-foot .lp-hero-dek { max-width: 52ch; margin: 0; }
  .lp-hero-foot .lp-btn { flex-shrink: 0; }

  /* Two-column feature grid. Top row keeps a top border; the rest rely on
     their bottom borders, so the grid reads as clean rows. */
  .lp-feat-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .lp-feat-item:first-child { border-top: none; }
  .lp-feat-item:nth-child(1), .lp-feat-item:nth-child(2) { border-top: 1px solid var(--hairline); }

  /* Two-column pain-point and trust lists. */
  .lp-dash-list, .lp-check-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }

  /* Three-up doors + privacy cards. */
  .lp-doors, .lp-priv-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
  .lp-door, .lp-priv { border-top: 1px solid var(--hairline); }

  /* Centered prose blocks (pricing teaser) get a comfortable measure. */
  .lp-section-hed.lp-center, .lp-body.lp-center { max-width: 680px; margin-left: auto; margin-right: auto; }

  .lp-sticky-inner { max-width: 980px; }
}
