/* ============================================================
   Replr — Atelier stylesheet (landing + blog + legal/support).
   Mirrors DESIGN.md / Shared/ReplrTheme.swift tokens.
   Words-first, matte, no gradients. Ink & Paper surfaces,
   one claret accent. Newsreader (serif) + Hanken Grotesk (sans).
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500;1,6..72,600&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --ink: #17140E;
  --ink-raised: #1E1A13;
  --ink-deep: #100C08;
  --paper: #F2EDE3;
  --paper-raised: #FBF8F1;
  --paper-sunken: #E7DFD2;

  /* Accent */
  --claret: #7E2C3C;
  --claret-deep: #6A2432;
  --cream: #F7F1E8;
  --blush: #D99CA8;        /* accent on ink */
  --blush-tile: #ECDCD8;   /* icon tiles on paper */
  --sage: #7FA88C;         /* success ticks on ink */
  --sage-deep: #5E7359;
  --gilt: #B08D4F;

  /* Text on ink */
  --t-primary: #F4EFE5;
  --t-secondary: #A89E8E;
  --t-tertiary: #6E6557;
  --t-note: #9C9282;   /* small informative text on ink — keeps 4.5:1 */
  --t-link: #B3A992;
  --emph-text: #D9D1C2;  /* brighter body text: ticks, standfirst, pull quotes */
  --yes-text: #CBDCC9;   /* positive cells in the comparison table */
  --sage-ink: #A9C2A0;   /* sage accents: privacy emphasis, tick icons */

  /* Text on paper */
  --p-primary: #211C16;
  --p-secondary: #6B6358;
  --p-tertiary: #9A8C7C;

  /* Hairlines */
  --hairline: rgba(255, 255, 255, .08);
  --hairline-strong: rgba(255, 255, 255, .22);
  --hairline-ink: rgba(33, 28, 22, .1);
  --hairline-ink-strong: rgba(33, 28, 22, .22);

  /* Type */
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Chrome */
  --nav-bg: rgba(23, 20, 14, .82);
  --nav-bg-solid: rgba(23, 20, 14, .97);
  --strip-bg: #140F0A;

  /* Shape & layout */
  --r-md: 12px; --r-card: 16px; --r-xl: 20px; --r-phone: 46px; --r-full: 999px;
  --gutter: clamp(20px, 5vw, 40px);
  --measure: 66ch;
  --nav-h: 74px;
}

/* ---------- Light mode ----------
   The editorial ink sections resolve to warm paper; accent shifts from
   blush-pink to claret (per DESIGN.md: accent is adaptive). Phone mockups,
   the featured price card and the App Store badge intentionally stay dark. */
@media (prefers-color-scheme: light) {
  :root {
    --ink: #FBF8F1;
    --ink-raised: #FFFFFF;
    --ink-deep: #E7DFD2;
    --paper-raised: #FFFFFF;
    --t-primary: #211C16;
    --t-secondary: #6B6358;
    --t-tertiary: #8A7C6A;
    --t-note: #7A6D5C;
    --t-link: #6B6358;
    --emph-text: #3A332B;
    --yes-text: #44614B;
    --sage-ink: #4E6349;
    --blush: #7E2C3C;
    --gilt: #8F6D34;
    --hairline: rgba(33, 28, 22, .1);
    --hairline-strong: rgba(33, 28, 22, .25);
    --nav-bg: rgba(251, 248, 241, .85);
    --nav-bg-solid: rgba(251, 248, 241, .98);
    --strip-bg: #ECE5D7;
  }
  .glow { opacity: .45; }
  .compare { background: var(--ink-raised); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--t-secondary);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--claret); color: var(--cream); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(140, 120, 90, .3); border-radius: 6px; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blush); }

h1, h2, h3, h4, p, figure { margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 20px; background: var(--claret); color: var(--cream);
  font: 600 14px/1 var(--sans); border-radius: 0 0 var(--r-md) 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

:is(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gilt);
  outline-offset: 3px;
}

/* ---------- Shared primitives ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.eyebrow {
  font: 600 11px/1 var(--sans);
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--gilt);
}
.on-paper .eyebrow { color: var(--p-secondary); }

.display {
  font: 400 clamp(40px, 6.2vw, 72px)/1.04 var(--serif);
  letter-spacing: .004em; color: var(--t-primary);
}
.headline {
  font: 400 clamp(34px, 5.2vw, 52px)/1.08 var(--serif);
  letter-spacing: .004em; color: var(--t-primary);
}
.on-paper .display, .on-paper .headline { color: var(--p-primary); }
.display em, .headline em { font-style: italic; color: var(--blush); }
.on-paper .display em, .on-paper .headline em { color: inherit; }

.lede { font: 400 clamp(17px, 1.5vw, 19px)/1.6 var(--sans); color: var(--t-secondary); max-width: var(--measure); }
.on-paper .lede { color: var(--p-secondary); }

.section { position: relative; overflow: hidden; scroll-margin-top: var(--nav-h); }
.section > .wrap { position: relative; padding-top: clamp(64px, 9vw, 108px); padding-bottom: clamp(64px, 9vw, 108px); }
.on-paper { background: var(--paper); color: var(--p-secondary); }

/* Faint claret radial glow — the one sanctioned soft light on ink heroes */
.glow { position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(126, 44, 60, .34), transparent 62%); }

.section-head { max-width: 700px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .headline { margin-top: 18px; }
.section-head .lede { margin-top: 18px; }
.section-head.centered .lede { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn-appstore {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 0 18px; height: 56px; border-radius: 13px;
  background: #0A0A0A; border: 1px solid rgba(255, 255, 255, .32);
  text-decoration: none; color: #F7F4EF;
  transition: transform .18s ease, border-color .18s ease;
}
.btn-appstore:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .6); }
.btn-appstore .strap { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.btn-appstore .strap small { font: 400 11px/1.1 var(--sans); letter-spacing: .02em; opacity: .9; }
.btn-appstore .strap b { font: 600 20px/1.12 var(--sans); letter-spacing: .01em; margin-top: 2px; }
.btn-appstore.compact { height: 40px; padding: 0 14px; border-radius: 10px; }
.btn-appstore.compact svg { width: 16px; height: 21px; }
.btn-appstore.compact .strap small { font-size: 9.5px; }
.btn-appstore.compact .strap b { font-size: 15px; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 24px; height: 56px; border-radius: var(--r-full);
  border: 1px solid var(--hairline-strong); background: transparent;
  color: var(--t-primary); font: 600 16px/1 var(--sans); text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, .5); color: var(--t-primary); }

.btn-claret {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 28px; border-radius: var(--r-full);
  background: var(--claret); color: var(--cream);
  font: 600 15px/1 var(--sans); text-decoration: none;
  box-shadow: 0 16px 32px -16px rgba(126, 44, 60, .9);
  transition: transform .18s ease, background .18s ease;
}
.btn-claret:hover { transform: translateY(-2px); background: var(--claret-deep); }
/* The label is ALWAYS cream, whatever link-color rules any context defines
   (.nav-panel a, .article a, …) — the claret ground never changes per scheme,
   so this is the one sanctioned !important in the sheet. */
.btn-claret, .btn-claret:hover, .btn-claret:focus { color: var(--cream) !important; }

.btn-outline-ink {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: var(--r-full);
  border: 1px solid var(--hairline-ink-strong); color: var(--p-primary);
  font: 600 15px/1 var(--sans); text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.btn-outline-ink:hover { border-color: var(--claret); color: var(--claret); }

.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px/1.4 var(--sans); color: var(--blush); text-decoration: none;
}
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.on-paper .link-more { color: var(--claret); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-in {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter);
  min-height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand .coin {
  width: 34px; height: 34px; border-radius: 50%; background: var(--claret);
  display: flex; align-items: center; justify-content: center; flex: none;
  box-shadow: 0 0 0 1px rgba(176, 141, 79, .3);
}
.brand span { font: 500 25px/1 var(--serif); color: var(--t-primary); letter-spacing: .01em; }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.3vw, 34px); }
.nav-links a { font: 600 13.5px/1 var(--sans); color: var(--t-link); text-decoration: none; transition: color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--t-primary); }
.nav .home { font: 600 13.5px/1 var(--sans); color: var(--t-link); text-decoration: none; }
.nav .home:hover { color: var(--t-primary); }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -8px;
  align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--t-primary);
}
.nav-panel { display: none; }

@media (max-width: 860px) {
  .nav-links, .nav-in > .btn-appstore { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    display: none; border-top: 1px solid var(--hairline);
    background: var(--nav-bg-solid);
  }
  .nav-panel.open { display: block; }
  .nav-panel nav { display: flex; flex-direction: column; padding: 10px var(--gutter) 22px; }
  .nav-panel a {
    padding: 15px 0; font: 600 17px/1 var(--sans); color: var(--t-primary);
    text-decoration: none; border-bottom: 1px solid var(--hairline);
  }
  .nav-panel a.btn-claret {
    margin-top: 16px; border-bottom: 0; padding: 0 28px; font: 600 15px/1 var(--sans);
  }
}

/* ---------- Hero ---------- */
.hero-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: clamp(36px, 5vw, 54px); align-items: center;
}
.hero-copy .display { margin-top: 22px; }
.hero-copy .lede { margin-top: 24px; max-width: 452px; }
.hero-ctas { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font: 500 13px/1.5 var(--sans); color: var(--t-note); }

.proof-strip { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--strip-bg); }
.proof-strip .wrap {
  padding-top: 22px; padding-bottom: 22px;
  display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.proof-strip span { font: 600 12px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--t-note); text-align: center; }
.proof-strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--gilt); flex: none; }

/* ---------- Phone mockup ---------- */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes breathe { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

.phone-stage { position: relative; display: flex; justify-content: center; }
.phone-float { animation: floaty 7.5s ease-in-out infinite; }
.phone {
  width: min(372px, 88vw); background: #0B141A; border-radius: var(--r-phone);
  border: 1px solid rgba(255, 255, 255, .09); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .85), inset 0 0 0 6px #05090C;
}
.phone .statusbar {
  height: 48px; flex: none; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 28px 8px; position: relative; color: #E9EDEF; font: 600 15px/1 var(--sans);
}
.phone .island { position: absolute; left: 50%; top: 11px; transform: translateX(-50%); width: 104px; height: 28px; background: #000; border-radius: 16px; }
.phone .sb-right { display: flex; gap: 7px; align-items: center; font: 600 12px/1 var(--sans); }
.phone .battery { width: 24px; height: 12px; border: 1.5px solid #E9EDEF; border-radius: 3px; position: relative; opacity: .85; }
.phone .battery::after { content: ""; position: absolute; top: 2px; bottom: 2px; left: 2px; width: 14px; background: #E9EDEF; border-radius: 1px; }
.phone .chat-head {
  height: 48px; flex: none; display: flex; align-items: center; gap: 11px; padding: 0 14px;
  background: #11202B; border-bottom: 1px solid rgba(255, 255, 255, .05);
  font: 600 15px/1 var(--sans); color: #E9EDEF;
}
.phone .chat-head .pfp { width: 30px; height: 30px; border-radius: 50%; background: #3A4A54; display: flex; align-items: center; justify-content: center; }
.phone .chat-body { min-height: 118px; background: #0B141A; padding: 16px 14px; display: flex; flex-direction: column; gap: 9px; }
.phone .compose { height: 40px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: #11202B; }
.phone .compose .field { flex: 1; height: 28px; border-radius: 16px; background: #1C2B34; }

.msg-in {
  align-self: flex-start; max-width: 82%;
  background: #1F2C34; color: #D6DEE2; padding: 10px 14px;
  border-radius: 16px 16px 16px 5px; font: 400 14px/1.4 var(--sans);
}
.msg-out {
  align-self: flex-end; max-width: 82%;
  background: #134D37; color: #E4F2EA; padding: 10px 14px;
  border-radius: 16px 16px 5px 16px; font: 400 14px/1.4 var(--sans);
}

/* The Replr keyboard sheet */
.kb {
  flex: none; background: var(--paper); border-radius: 22px 22px 0 0;
  display: flex; flex-direction: column; padding: 11px 0 0;
  box-shadow: 0 -18px 44px -20px rgba(0, 0, 0, .6);
}
.kb .grab { width: 38px; height: 4px; border-radius: 2px; background: rgba(33, 28, 22, .2); align-self: center; margin-bottom: 13px; }
.kb-head { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }
.kb-help {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(33, 28, 22, .18);
  display: flex; align-items: center; justify-content: center;
  font: 500 14px/1 var(--serif); color: #8A7F70;
}
.kb-modes { display: flex; gap: 20px; align-items: center; }
.kb-modes .on {
  font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream); background: var(--claret); padding: 6px 13px; border-radius: var(--r-full);
}
.kb-modes .off { font: 500 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #A99A8A; }
.kb-coin { width: 30px; height: 30px; border-radius: 50%; background: var(--claret); display: flex; align-items: center; justify-content: center; }
.kb-tones { display: flex; gap: 8px; align-items: center; padding: 16px 18px 0; flex-wrap: wrap; }
.kb-tone-on { padding: 8px 15px; border-radius: var(--r-full); background: var(--p-primary); color: var(--paper); border: 1px solid var(--p-primary); font: 600 12.5px/1 var(--sans); }
.kb-tone-off { padding: 8px 15px; border-radius: var(--r-full); border: 1px solid rgba(33, 28, 22, .16); color: var(--p-secondary); font: 500 12.5px/1 var(--sans); }
.kb-replies { display: flex; flex-direction: column; gap: 10px; padding: 15px 18px 0; }
.kb-reply {
  padding: 13px 16px; border-radius: 14px; background: var(--paper-raised);
  border: 1px solid rgba(33, 28, 22, .08); display: flex; gap: 13px;
}
.kb-reply .n { font: 500 15px/.95 var(--serif); color: #C9BCA8; flex: none; }
.kb-reply p { flex: 1; font: 400 13.5px/1.45 var(--sans); color: var(--p-secondary); }
.kb-reply.pick { background: rgba(126, 44, 60, .07); border-color: rgba(126, 44, 60, .5); }
.kb-reply.pick .n { color: var(--claret); }
.kb-reply.pick p { color: #3A332B; }
.kb-actions { display: flex; align-items: center; gap: 10px; padding: 14px 18px 16px; }
.kb-insert {
  flex: 1; height: 46px; border-radius: var(--r-full); background: var(--claret); color: var(--cream);
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 15px/1 var(--sans); box-shadow: 0 7px 18px -9px rgba(126, 44, 60, .5);
}
.kb-new {
  flex: none; height: 46px; padding: 0 16px; border-radius: var(--r-full);
  border: 1px solid rgba(33, 28, 22, .2); color: #3A332B;
  display: flex; align-items: center; gap: 7px; font: 600 14px/1 var(--sans);
}
.kb-x {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(33, 28, 22, .2); display: flex; align-items: center; justify-content: center;
}
.kb-composing { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 17px 0 19px; }
.kb-composing .spark { animation: breathe 1.4s ease-in-out infinite; }
.kb-composing span { font: 400 14px/1 var(--serif); font-style: italic; color: #8A7F70; }
.kb-line { height: 9px; border-radius: 5px; background: rgba(33, 28, 22, .1); }
.kb-line.dim { background: rgba(33, 28, 22, .06); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 34px; margin-top: 60px; }
.step-mark { display: flex; align-items: center; gap: 14px; }
.step-mark .no { font: 400 30px/1 var(--serif); color: var(--claret); }
.step-mark .tile { width: 42px; height: 42px; border-radius: var(--r-md); background: var(--blush-tile); display: flex; align-items: center; justify-content: center; }
.step h3 { font: 600 20px/1.2 var(--sans); color: var(--p-primary); margin-top: 20px; }
.step p { font: 400 15.5px/1.6 var(--sans); color: var(--p-secondary); margin-top: 11px; max-width: 310px; }

/* ---------- Watch it work: thumbnails + video lightbox ---------- */
.watch { margin-top: 56px; }
.watch-scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 6px 0 10px; }
.watch-thumbs { display: flex; gap: 16px; width: fit-content; margin: 0 auto; padding: 0 2px; }
.watch-thumb {
  position: relative; width: 138px; flex: none; padding: 0; cursor: pointer;
  background: none; border: 0; font: inherit; text-align: center;
}
.watch-thumb .shot {
  position: relative; display: block; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--hairline-ink); background: var(--paper-raised);
  box-shadow: 0 18px 40px -24px rgba(40, 28, 20, .5);
  transition: transform .18s ease, box-shadow .18s ease;
}
.watch-thumb:hover .shot { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(40, 28, 20, .6); }
.watch-thumb img { width: 100%; height: auto; aspect-ratio: 600 / 1304; object-fit: cover; display: block; }
.watch-thumb .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: var(--claret);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -10px rgba(126, 44, 60, .9);
}
.watch-thumb .wt-label { display: block; margin-top: 10px; font: 600 12.5px/1.35 var(--sans); color: var(--p-primary); }
.how-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 44px; text-align: center; }
.how-cta .note { font: 500 13px/1.5 var(--sans); color: var(--p-secondary); }

/* Lightbox chrome sits on a dark scrim in BOTH schemes, so its colors are fixed. */
.lightbox { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
body.lb-open { overflow: hidden; }
.lb-scrim { position: absolute; inset: 0; background: rgba(10, 8, 5, .74); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.lb-panel { position: relative; max-width: 94vw; }
.lb-frame {
  position: relative; width: fit-content; margin: 0 auto; border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14); background: #000;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .8);
}
.lb-frame video { display: block; max-height: 72vh; max-width: min(86vw, 400px); width: auto; cursor: pointer; }
.lb-close {
  position: absolute; top: -14px; right: -14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: #1E1A13; color: #F4EFE5; border: 1px solid rgba(255, 255, 255, .28);
  display: flex; align-items: center; justify-content: center;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: #1E1A13; color: #F4EFE5; border: 1px solid rgba(255, 255, 255, .28);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s ease;
}
.lb-nav:hover, .lb-close:hover { border-color: rgba(255, 255, 255, .55); }
.lb-prev { left: -60px; }
.lb-next { right: -60px; }
.lb-meta { text-align: center; margin-top: 16px; }
.lb-caption { font: 400 15px/1.5 var(--sans); color: #EDE7DA; max-width: 340px; margin: 0 auto; }
.lb-dots { display: flex; gap: 9px; justify-content: center; margin-top: 12px; }
.lb-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(244, 239, 229, .35); border: 0; padding: 0; cursor: pointer; }
.lb-dot[aria-current="true"] { background: #D99CA8; }
@media (max-width: 640px) {
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-close { top: 8px; right: 8px; background: rgba(20, 16, 11, .65); }
  .lb-nav { background: rgba(20, 16, 11, .65); }
}

/* ---------- Split feature section ---------- */
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(40px, 5vw, 56px); align-items: center;
}
.split .headline { margin-top: 18px; }
.split .lede { margin-top: 22px; max-width: 440px; }
.ticks { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: center; gap: 12px; font: 400 16px/1.4 var(--sans); color: var(--emph-text); margin: 0; }
.ticks svg { flex: none; color: var(--sage-ink); }
.em-sage, .headline em.em-sage, .display em.em-sage { color: var(--sage-ink); }
.privacy-card > svg { color: var(--sage-ink); }

/* Keyboard-over-chat vignette */
.overlap { position: relative; width: 100%; max-width: 470px; margin: 0 auto; }
.overlap .chat-card {
  position: relative; margin-left: 40px; background: #0B141A;
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 26px; padding: 20px 20px 130px;
  opacity: .5; display: flex; flex-direction: column; gap: 9px;
}
.overlap .chat-card .who { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font: 600 13px/1 var(--sans); color: #CFD8DD; }
.overlap .chat-card .who i { width: 26px; height: 26px; border-radius: 50%; background: #3A4A54; }
.overlap .kb-card {
  position: relative; margin: -120px 40px 0 0; background: var(--paper);
  border-radius: 24px; box-shadow: 0 44px 100px -34px rgba(0, 0, 0, .78); padding: 14px 0 0;
}
.overlap .kb-card .grab { width: 38px; height: 4px; border-radius: 2px; background: rgba(33, 28, 22, .2); margin: 0 auto 13px; }
.overlap .kb-head, .overlap .kb-tones, .overlap .kb-replies { padding-left: 20px; padding-right: 20px; }

/* ---------- Modes ---------- */
.mode-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 54px; }
.mode-card {
  background: var(--paper-raised); border: 1px solid var(--hairline-ink);
  border-radius: var(--r-xl); padding: 30px 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.mode-card:hover { transform: translateY(-3px); box-shadow: 0 24px 54px -34px rgba(40, 28, 20, .45); }
.mode-card .tile { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--blush-tile); display: flex; align-items: center; justify-content: center; }
.mode-card h3 { font: 600 20px/1.25 var(--sans); color: var(--p-primary); margin-top: 20px; }
.mode-card .tag { font: 600 11px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--p-secondary); margin-top: 6px; }
.mode-card p { font: 400 15px/1.6 var(--sans); color: var(--p-secondary); margin-top: 12px; }

/* ---------- Why Replr (feature grid on ink) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 54px; }
.why-card {
  padding: 26px 24px; border-radius: 18px;
  border: 1px solid var(--hairline); background: var(--ink-raised);
  transition: border-color .18s ease;
}
.why-card:hover { border-color: rgba(176, 141, 79, .4); }
.why-card h3 { font: 600 17px/1.3 var(--sans); color: var(--t-primary); margin-top: 14px; }
.why-card p { font: 400 14.5px/1.6 var(--sans); color: var(--t-secondary); margin-top: 8px; }
.why-cta { display: flex; justify-content: center; margin-top: 44px; text-align: center; }

/* ---------- Tones playground ---------- */
.tone-stage {
  max-width: 680px; margin: 46px auto 0;
  background: var(--paper-raised); border: 1px solid rgba(33, 28, 22, .09);
  border-radius: 24px; padding: 30px clamp(18px, 4vw, 30px) 32px;
  box-shadow: 0 30px 70px -40px rgba(40, 28, 20, .5);
}
.tone-msg { display: flex; align-items: center; gap: 12px; }
.tone-msg .avatar {
  width: 40px; height: 40px; border-radius: 50%; background: #F0DCE2; flex: none;
  display: flex; align-items: center; justify-content: center;
  font: 500 17px/1 var(--serif); color: #A8456A;
}
.tone-msg .bubble {
  background: #ECE6DA; color: #3A332B; padding: 12px 16px;
  border-radius: 16px 16px 16px 5px; font: 400 15px/1.45 var(--sans); max-width: 78%;
}
.tone-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 22px; justify-content: center; }
.tone-chip {
  padding: 10px 18px; border-radius: var(--r-full);
  font: 600 14px/1 var(--sans); cursor: pointer; user-select: none;
  background: transparent; color: var(--p-secondary);
  border: 1px solid rgba(33, 28, 22, .18);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tone-chip:hover { border-color: var(--claret); color: var(--claret); }
.tone-chip[aria-pressed="true"] { background: var(--claret); color: var(--cream); border-color: var(--claret); }
.tone-chip[aria-pressed="true"]:hover { color: var(--cream); }
.tone-out { display: flex; justify-content: flex-end; }
.tone-out .col { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; max-width: 84%; }
.tone-out .reply {
  background: var(--claret); color: var(--cream); padding: 14px 18px;
  border-radius: 18px 18px 5px 18px; font: 500 16px/1.5 var(--sans);
  box-shadow: 0 16px 34px -18px rgba(126, 44, 60, .85);
}
.tone-out .insert {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border-radius: var(--r-full); border: 1px solid rgba(33, 28, 22, .2);
  color: #3A332B; font: 600 13px/1 var(--sans); background: none;
}
.tone-foot { text-align: center; margin: 26px auto 0; font: 400 14.5px/1.6 var(--sans); color: var(--p-secondary); max-width: 520px; }

/* ---------- Privacy ---------- */
.privacy-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 48px; text-align: left; }
.privacy-card { padding: 24px; border-radius: 18px; border: 1px solid var(--hairline); background: var(--ink-raised); }
.privacy-card h3 { font: 600 16px/1.3 var(--sans); color: var(--t-primary); margin-top: 14px; }
.privacy-card p { font: 400 13.5px/1.55 var(--sans); color: var(--t-secondary); margin-top: 7px; }

/* ---------- Pricing ---------- */
.price-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; margin: 54px auto 0; max-width: 760px; align-items: stretch;
}
.price-card { border-radius: 22px; padding: 30px 28px; display: flex; flex-direction: column; position: relative; }
.price-card .plan { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.price-card .amount { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; }
.price-card .amount b { font: 500 46px/1 var(--serif); }
.price-card .amount span { font: 400 14px/1 var(--sans); }
.price-card .terms { font: 400 14px/1.5 var(--sans); margin-top: 9px; }
.price-card .spacer { flex: 1; min-height: 18px; }

/* The featured card keeps its dark claret ground in BOTH schemes,
   so its text colors are fixed literals, not adaptive tokens. */
.price-card.featured { background: #221016; border: 1px solid rgba(126, 44, 60, .7); box-shadow: 0 30px 70px -34px rgba(126, 44, 60, .6); }
.price-card.featured .plan { color: #D99CA8; }
.price-card.featured .amount b { color: #F4EFE5; }
.price-card.featured .amount span { color: #B3A992; }
.price-card.featured .terms { color: #A89E8E; }
.price-card .flag {
  position: absolute; top: -12px; left: 28px; padding: 5px 12px; border-radius: var(--r-full);
  background: var(--claret); font: 600 9.5px/1 var(--sans); letter-spacing: .14em;
  text-transform: uppercase; color: var(--cream);
}
.price-card.plain { background: var(--paper-raised); border: 1px solid var(--hairline-ink); }
.price-card.plain .plan { color: var(--p-secondary); }
.price-card.plain .amount b { color: var(--p-primary); }
.price-card.plain .amount span { color: #8A7F70; }
.price-card.plain .terms { color: var(--p-secondary); }
.price-card .btn-claret, .price-card .btn-outline-ink { margin-top: 26px; height: 48px; font-size: 14.5px; }
.price-note { text-align: center; margin-top: 28px; font: 500 13px/1.6 var(--sans); color: var(--p-secondary); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 46px auto 0; }
.faq details { border-bottom: 1px solid var(--hairline-ink); }
.faq details:first-child { border-top: 1px solid var(--hairline-ink); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; font: 600 17px/1.4 var(--sans); color: var(--p-primary);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--serif); color: var(--claret); flex: none; transition: transform .18s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; font: 400 15.5px/1.65 var(--sans); color: var(--p-secondary); max-width: 640px; }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final .coin {
  width: 60px; height: 60px; border-radius: 50%; background: var(--claret);
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
  box-shadow: 0 0 0 1px rgba(176, 141, 79, .35), 0 20px 44px -18px rgba(126, 44, 60, .9);
}
.final .display { margin-top: 32px; font-size: clamp(40px, 6.4vw, 64px); }
.final .lede { margin: 22px auto 0; max-width: 460px; }
.final .ctas { display: flex; justify-content: center; margin-top: 36px; }
.final .note { margin-top: 20px; font: 500 13px/1.5 var(--sans); color: var(--t-note); }

/* ---------- Footer (landing + blog) ---------- */
.foot { background: var(--ink-deep); border-top: 1px solid var(--hairline); }
.foot-grid {
  max-width: 1200px; margin: 0 auto; padding: 56px var(--gutter) 40px;
  display: flex; justify-content: space-between; gap: clamp(28px, 5vw, 40px); flex-wrap: wrap;
}
.foot-brand { max-width: 300px; }
.foot-brand .brand .coin { width: 32px; height: 32px; }
.foot-brand .brand span { font-size: 23px; }
.foot-brand p { margin-top: 16px; font: 400 14px/1.6 var(--sans); color: var(--t-note); }
.foot-cols { display: flex; gap: clamp(30px, 5vw, 64px); flex-wrap: wrap; }
.foot-col h3 { font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--t-tertiary); margin-bottom: 16px; }
.foot-col nav { display: flex; flex-direction: column; gap: 11px; }
.foot-col a { font: 500 14px/1 var(--sans); color: var(--t-link); text-decoration: none; transition: color .15s ease; }
.foot-col a:hover { color: var(--t-primary); }
.foot-legal { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter) 40px; }
.foot-legal div { border-top: 1px solid var(--hairline); padding-top: 22px; font: 400 13px/1.6 var(--sans); color: var(--t-note); }

/* ---------- Legal/support pages (privacy.html, terms.html, support.html) ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) 24px; }
.legal .eyebrow { font: 600 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gilt); }
.legal h1 { font: 400 clamp(34px, 5vw, 48px)/1.08 var(--serif); color: var(--t-primary); margin: 16px 0 6px; letter-spacing: .004em; }
.legal h1 em { font-style: italic; color: var(--blush); }
.legal .updated { font: 400 13px/1 var(--sans); color: var(--t-tertiary); margin-bottom: 32px; }
.legal h2 { font: 600 19px/1.35 var(--sans); color: var(--t-primary); margin: 34px 0 8px; }
.legal p, .legal li { font: 400 16px/1.66 var(--sans); color: var(--t-secondary); }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 20px; margin: 0 0 14px; }
.legal li { margin-bottom: 7px; }
.legal strong { color: var(--t-primary); font-weight: 600; }
.foot-in {
  max-width: 860px; margin: 0 auto; padding: 30px 24px;
  display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; align-items: center;
  font: 400 13px/1.6 var(--sans); color: var(--t-tertiary);
}
.foot-in nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-in a { color: var(--t-link); text-decoration: none; }
.foot-in a:hover { color: var(--t-primary); }

/* ---------- Blog ---------- */
.blog-head { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) 24px 0; }
.blog-head h1 { font: 400 clamp(38px, 5.4vw, 56px)/1.06 var(--serif); color: var(--t-primary); margin-top: 18px; }
.blog-head h1 em { font-style: italic; color: var(--blush); }
.blog-head p { margin-top: 18px; font: 400 17px/1.65 var(--sans); color: var(--t-secondary); max-width: 560px; }

.post-list { max-width: 760px; margin: 0 auto; padding: 46px 24px clamp(64px, 9vw, 108px); display: grid; gap: 20px; }
.post-card {
  display: block; padding: 30px 28px; border-radius: var(--r-xl);
  background: var(--ink-raised); border: 1px solid var(--hairline);
  text-decoration: none; transition: border-color .18s ease, transform .18s ease;
}
.post-card:hover { border-color: rgba(176, 141, 79, .45); transform: translateY(-2px); }
.post-card .meta { font: 600 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gilt); }
.post-card h2 { font: 400 clamp(24px, 3.4vw, 32px)/1.2 var(--serif); color: var(--t-primary); margin-top: 14px; }
.post-card p { font: 400 15.5px/1.65 var(--sans); color: var(--t-secondary); margin-top: 12px; }
.post-card .read { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font: 600 14px/1 var(--sans); color: var(--blush); }

/* Article */
.article { max-width: 720px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) 24px clamp(64px, 9vw, 100px); }
.article .meta { font: 600 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gilt); }
.article h1 { font: 400 clamp(36px, 5vw, 52px)/1.08 var(--serif); color: var(--t-primary); margin: 18px 0 0; letter-spacing: .004em; }
.article h1 em { font-style: italic; color: var(--blush); }
.article .byline { display: flex; align-items: center; gap: 10px; margin-top: 22px; font: 400 14px/1.4 var(--sans); color: var(--t-note); flex-wrap: wrap; }
.article .byline i { width: 4px; height: 4px; border-radius: 50%; background: var(--gilt); }
.article .standfirst { margin-top: 30px; font: 400 20px/1.55 var(--serif); font-style: italic; color: var(--emph-text); }
.article h2 { font: 400 clamp(26px, 3.4vw, 32px)/1.22 var(--serif); color: var(--t-primary); margin: 52px 0 0; }
.article h3 { font: 600 18px/1.35 var(--sans); color: var(--t-primary); margin: 34px 0 0; }
.article p { font: 400 17px/1.7 var(--sans); color: var(--t-secondary); margin: 18px 0 0; }
.article ul { margin: 18px 0 0; padding-left: 22px; }
.article li { font: 400 16.5px/1.65 var(--sans); color: var(--t-secondary); margin-bottom: 9px; }
.article strong { color: var(--t-primary); font-weight: 600; }
.article a { color: var(--blush); text-underline-offset: 3px; }
.article .pull {
  margin: 36px 0 0; padding: 26px 28px; border-left: 3px solid var(--claret);
  background: var(--ink-raised); border-radius: 0 var(--r-card) var(--r-card) 0;
  font: 400 20px/1.5 var(--serif); font-style: italic; color: var(--emph-text);
}
.article .cta-block {
  margin-top: 56px; padding: 36px 32px; border-radius: var(--r-xl); text-align: center;
  background: var(--ink-raised); border: 1px solid rgba(126, 44, 60, .5);
}
.article .cta-block h2 { margin: 0; font-size: clamp(26px, 3.4vw, 32px); }
.article .cta-block p { max-width: 420px; margin: 14px auto 0; }
.article .cta-block .btn-claret { margin-top: 24px; }

/* Comparison table */
.compare-scroll { margin: 34px 0 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--hairline); border-radius: var(--r-card); }
.compare { width: 100%; min-width: 480px; border-collapse: collapse; background: var(--ink-raised); }
.compare th, .compare td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.compare tr:last-child :is(th, td) { border-bottom: 0; }
.compare thead th { font: 600 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gilt); border-bottom: 1px solid var(--hairline-strong); }
.compare tbody th { font: 600 14.5px/1.45 var(--sans); color: var(--t-primary); width: 28%; }
.compare td { font: 400 14.5px/1.55 var(--sans); color: var(--t-secondary); }
.compare td.yes { color: var(--yes-text); }
.compare td.yes::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); margin-right: 9px; }
.compare td.no::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .18); margin-right: 9px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Motion & small screens ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-appstore, .hero-ctas .btn-ghost { width: 100%; justify-content: center; }
  .proof-strip i { display: none; }
  .proof-strip .wrap { flex-direction: column; gap: 12px; }
  .overlap .chat-card { margin-left: 16px; }
  .overlap .kb-card { margin-right: 16px; }
}
