/* ==========================================================================
   Chatmend — marketing site
   Aesthetic: warm "annotated paper". The product's own coaching marks
   (green-highlight correction, friendly strikethrough, colored underline)
   are the site's signature device. Palette + feedback states lifted from
   the app mockups. No build step; system-portable.
   ========================================================================== */

:root {
  /* paper + ink */
  --paper:      #f6f3ea;
  --paper-2:    #fffdf7;
  --paper-3:    #efeadd;
  --ink:        #211f1a;
  --ink-soft:   #57534a;
  --ink-faint:  #8c877b;

  /* brand + feedback states (from the app) */
  --blue:       #1f5fb6;
  --blue-deep:  #173f7d;
  --blue-wash:  #e3ecf9;
  --green:      #3c8b4d;
  --green-deep: #2c6b3a;
  --green-wash: #d2ead1;
  --amber:      #b1781d;
  --amber-wash: #f3e5cb;
  --red:        #bf3b30;
  --red-wash:   #f6dcd8;

  --line:       rgba(33, 31, 26, 0.10);
  --line-soft:  rgba(33, 31, 26, 0.06);
  --shadow-sm:  0 1px 2px rgba(33,31,26,.05), 0 2px 8px rgba(33,31,26,.04);
  --shadow-md:  0 6px 24px rgba(33,31,26,.08), 0 2px 6px rgba(33,31,26,.05);
  --shadow-lg:  0 20px 60px rgba(33,31,26,.16), 0 6px 18px rgba(33,31,26,.08);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius:    18px;
  --radius-lg: 28px;
  --maxw:      1140px;
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-size: 17px;
}

/* paper grain + a faint warm gradient wash for atmosphere */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 700px at 82% -8%, rgba(31,95,182,.07), transparent 60%),
    radial-gradient(900px 600px at -5% 18%,  rgba(60,139,77,.06),  transparent 55%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  opacity: .035; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* --- layout helpers ------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
section { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex; align-items: center; gap: .55em;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--ink-faint); opacity: .6;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 540; line-height: 1.06; letter-spacing: -0.018em; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; }
p  { color: var(--ink-soft); }

.lead { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--ink-soft); line-height: 1.62; }

/* ==========================================================================
   The annotation device — reused everywhere
   ========================================================================== */
.mono { font-family: var(--font-mono); font-size: .92em; }

/* error: red underline that draws in */
.fix {
  position: relative; white-space: nowrap;
  text-decoration: none;
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size .6s cubic-bezier(.5,.1,.2,1);
  padding-bottom: 1px;
}
.in-view .fix { background-size: 100% 2px; }

/* strike: gentle strikethrough that wipes across */
.strike { position: relative; color: var(--ink-faint); white-space: nowrap; }
.strike::after {
  content: ""; position: absolute; left: -1px; right: -1px; top: 52%;
  height: 2px; background: var(--ink-faint); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; opacity: .8;
  transition: transform .5s cubic-bezier(.5,.1,.2,1);
}
.in-view .strike::after { transform: scaleX(1); }

/* mend: the corrected word, green highlight sweeps in (the brand move) */
.mend {
  position: relative; white-space: nowrap; color: var(--green-deep); font-weight: 600;
  padding: 0 .14em; border-radius: 4px;
}
.mend::before {
  content: ""; position: absolute; inset: 0; background: var(--green-wash);
  border-radius: 4px; z-index: -1; transform: scaleX(0); transform-origin: left;
  transition: transform .55s cubic-bezier(.5,.1,.2,1) .18s;
}
.in-view .mend::before { transform: scaleX(1); }

/* nudge: amber dotted underline */
.nudge {
  border-bottom: 2px dotted var(--amber); color: var(--amber); white-space: nowrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .82em 1.4em; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1.5px solid transparent; transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(31,95,182,.28); }
.btn-primary:hover { background: var(--blue-deep); box-shadow: 0 10px 26px rgba(31,95,182,.34); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-faint); background: var(--paper-2); }
.btn svg { width: 1.05em; height: 1.05em; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px) saturate(1.2);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; letter-spacing: -.02em; }
.brand .mark { width: 30px; height: 30px; }
.brand b { font-weight: 600; }
/* the "mend" underline echo in the wordmark */
.brand .accent { position: relative; }
.brand .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: 2px;
  background: var(--green); border-radius: 2px; opacity: .9;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .95rem; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: .9rem; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
/* let grid/flex tracks shrink below their content's intrinsic width (phones have a fixed px width) */
.hero-grid > *, .split > *, .band-grid > *, .footer-grid > * { min-width: 0; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 3rem; } }

.hero h1 { font-size: clamp(2.1rem, 6vw, 4.3rem); margin: 1.1rem 0 0; overflow-wrap: break-word; }
@media (min-width: 601px) { .hero h1 .l1 { display: block; } }
@media (max-width: 420px) { .hero h1 { font-size: 2rem; letter-spacing: -0.022em; } }
.hero h1 .em { color: var(--blue); font-style: italic; }
.hero .lead { margin-top: 1.4rem; max-width: 33ch; }
.hero-cta { margin-top: 2.1rem; display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 1.2rem; font-size: .86rem; color: var(--ink-faint); display: flex; gap: 1.1rem; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: .4em; }
.hero-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* the corrected manifesto line inside hero */
.manifesto {
  font-family: var(--font-display); font-size: clamp(1.05rem,2vw,1.32rem);
  line-height: 1.5; color: var(--ink); margin-top: 1.9rem; padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--green); background: var(--paper-2);
  border-radius: 0 14px 14px 0; box-shadow: var(--shadow-sm); max-width: 40ch;
}

/* ==========================================================================
   Phone frame + reusable screen components
   ========================================================================== */
.phone-stage { display: flex; justify-content: center; perspective: 1600px; }
.phone {
  width: 340px; max-width: 100%; background: var(--paper-2);
  border-radius: 42px; padding: 12px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(33,31,26,.08);
  position: relative;
}
.phone::before { /* notch */
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 116px; height: 26px; background: var(--ink); border-radius: 0 0 16px 16px; opacity: .9; z-index: 3;
}
.phone-screen {
  background: var(--paper); border-radius: 32px; overflow: hidden;
  height: 660px; overflow-y: auto; scrollbar-width: none; position: relative;
}
.phone-screen::-webkit-scrollbar { display: none; }
.hero .phone { transform: rotate(1.4deg); }

/* generic screen header */
.scr-head { display: flex; align-items: center; gap: 12px; padding: 42px 18px 14px; border-bottom: 1px solid var(--line); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-wash); color: var(--blue-deep); display: grid; place-items: center; font-weight: 700; font-size: .95rem; flex: none; }
.scr-head .who { font-weight: 700; font-size: 1.02rem; line-height: 1.15; }
.scr-head .sub { font-size: .82rem; color: var(--ink-faint); display: flex; align-items: center; gap: .3em; }
.scr-head .cap { margin-left: auto; color: var(--ink-faint); }

/* chat bubbles */
.chat { padding: 16px 16px 22px; display: flex; flex-direction: column; gap: 6px; }
.bubble {
  max-width: 84%; padding: 11px 14px; border-radius: 18px; font-size: .96rem; line-height: 1.45;
  box-shadow: var(--shadow-sm);
}
.bubble.them { align-self: flex-start; background: var(--paper-2); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--blue-wash); color: var(--blue-deep); border-bottom-right-radius: 6px; }
.meta { font-size: .8rem; align-self: flex-end; margin: 2px 2px 8px; display: inline-flex; align-items: center; gap: .35em; }
.meta.them { align-self: flex-start; }
.meta.err { color: var(--red); }
.meta.clean { color: var(--green); }
.meta.nudge { color: var(--amber); }

/* correction card inside chat */
.corr-card {
  align-self: stretch; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px; margin: 2px 0 10px; box-shadow: var(--shadow-md);
}
.corr-card .label { font-size: .76rem; color: var(--ink-faint); text-transform: lowercase; letter-spacing: .02em; margin-bottom: 8px; }
.corr-card .corrected { font-size: .98rem; line-height: 1.5; margin-bottom: 12px; }
.corr-card hr { border: none; border-top: 1px solid var(--line); margin: 12px 0; }
.corr-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.corr-list li { font-size: .88rem; line-height: 1.42; color: var(--ink-soft); }
.corr-list .change { color: var(--ink); }
.corr-list .reason { display: block; color: var(--ink-faint); margin-top: 2px; }
.teach {
  margin-top: 13px; width: 100%; text-align: center; padding: 11px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: .9rem; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  transition: border-color .2s, background .2s;
}
.teach:hover { border-color: var(--blue); color: var(--blue); }

/* composer */
.composer {
  position: sticky; bottom: 0; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px); padding: 12px 16px 16px; display: flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--line);
}
.composer .field { flex: 1; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; color: var(--ink-faint); font-size: .9rem; }
.composer .chip { font-size: .76rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
.composer .send { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-wash); color: var(--blue); display: grid; place-items: center; flex: none; }

/* progress screen pieces */
.prog { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); }
.stat .k { font-size: .82rem; color: var(--ink-faint); }
.stat .v { font-family: var(--font-display); font-size: 2rem; line-height: 1; margin: 6px 0; }
.stat .v small { font-size: .9rem; color: var(--ink-faint); font-family: var(--font-body); }
.stat .delta { font-size: .8rem; color: var(--green); display: inline-flex; gap: .3em; align-items: center; }
.stat .delta.amber { color: var(--amber); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 8px; }
.bars .bar { flex: 1; background: var(--blue-wash); border-radius: 6px 6px 0 0; position: relative; transition: height .7s cubic-bezier(.4,.1,.2,1); }
.bars .bar.hot { background: var(--blue); }
.bars .bar span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: .72rem; color: var(--ink-faint); }
.bars-wrap { padding-bottom: 22px; }
.section-mini { font-weight: 700; font-size: .82rem; color: var(--ink-soft); margin: 4px 2px -2px; }
.slip .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.slip h4 { font-size: .98rem; font-weight: 700; }
.tag { font-size: .72rem; padding: 3px 8px; border-radius: 999px; background: var(--red-wash); color: var(--red); white-space: nowrap; }
.tag.improving { background: var(--amber-wash); color: var(--amber); }
.slip p { font-size: .84rem; margin-top: 4px; }
.slip .practise { margin-top: 10px; width: 100%; text-align: center; padding: 9px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: .84rem; }
.vocab { background: var(--blue-wash); border: none; }
.vocab .v-head { color: var(--blue-deep); font-weight: 700; font-size: .92rem; display: flex; align-items: center; gap: .4em; margin-bottom: 10px; }
.vocab .words { display: flex; flex-wrap: wrap; gap: 7px; }
.vocab .word { background: var(--paper-2); color: var(--blue-deep); border-radius: 999px; padding: 5px 11px; font-size: .82rem; font-weight: 500; }

/* ==========================================================================
   Generic sections
   ========================================================================== */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 56ch; }
.section-head h2 { margin: .9rem 0 0; }
.section-head .lead { margin-top: 1.1rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* divider rule with a tiny mark */
.rule { height: 1px; background: var(--line); border: none; margin: 0; }

/* problem section — editorial three-up */
.problem { background: var(--paper-3); }
.prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
@media (max-width: 820px) { .prob-grid { grid-template-columns: 1fr; gap: 1.2rem; } }
.prob {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
}
.prob:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.prob .num { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-faint); }
.prob h3 { margin: .7rem 0 .5rem; }
.prob p { font-size: .96rem; }

/* how it works — three states */
.states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
@media (max-width: 820px) { .states { grid-template-columns: 1fr; } }
.state-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.state-card .pill { display: inline-flex; align-items: center; gap: .45em; font-size: .78rem; font-weight: 600; padding: .35em .8em; border-radius: 999px; font-family: var(--font-mono); letter-spacing: .02em; }
.pill.clean { background: var(--green-wash); color: var(--green-deep); }
.pill.nudge-p { background: var(--amber-wash); color: var(--amber); }
.pill.err  { background: var(--red-wash); color: var(--red); }
.state-card .demo { font-size: 1.02rem; line-height: 1.5; margin: 1.1rem 0 .9rem; padding: .9rem 1rem; background: var(--paper); border-radius: 12px; border: 1px solid var(--line-soft); }
.state-card p { font-size: .92rem; }

/* split feature: text + phone */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split.reverse .split-media { order: -1; }
@media (max-width: 940px) { .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; } }
.feat-list { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-direction: column; gap: 1.1rem; }
.feat-list li { display: flex; gap: .85rem; }
.feat-list .ic { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--green-wash); color: var(--green-deep); display: grid; place-items: center; margin-top: 2px; }
.feat-list .ic.blue { background: var(--blue-wash); color: var(--blue); }
.feat-list b { color: var(--ink); font-weight: 650; display: block; }
.feat-list span.t { font-size: .94rem; color: var(--ink-soft); }

/* native speakers / mixed rooms band */
.band { background: var(--blue-deep); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem,5vw,3.6rem); position: relative; overflow: hidden; }
.band::before { content:""; position:absolute; inset:0; background: radial-gradient(700px 400px at 90% -20%, rgba(255,255,255,.10), transparent 60%); }
.band h2 { color: #fff; max-width: 22ch; }
.band p { color: rgba(255,255,255,.82); max-width: 52ch; margin-top: 1.1rem; }
.band .eyebrow { color: rgba(255,255,255,.7); } .band .eyebrow::before { background: rgba(255,255,255,.6); }
.band-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 820px){ .band-grid { grid-template-columns: 1fr; } }
.room { display: flex; flex-direction: column; gap: 8px; }
.room .rb { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 10px 13px; font-size: .92rem; }
.room .rb .nm { font-size: .74rem; color: rgba(255,255,255,.7); margin-bottom: 3px; display:flex; gap:.4em; align-items:center; }
.room .rb .badge { font-size: .66rem; font-family: var(--font-mono); padding: 1px 6px; border-radius: 999px; }
.room .rb .badge.native { background: rgba(255,255,255,.16); color:#fff; }
.room .rb .badge.learner { background: var(--green-wash); color: var(--green-deep); }

/* privacy */
.priv-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:1.4rem; margin-top:3rem; }
@media (max-width:820px){ .priv-grid{ grid-template-columns:1fr; } }
.priv { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper-2); box-shadow: var(--shadow-sm); }
.priv .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--paper-3); display: grid; place-items: center; color: var(--ink); margin-bottom: 1rem; }
.priv h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.priv p { font-size: .92rem; }

/* pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 3rem; max-width: 760px; margin-left: auto; margin-right: auto; }
@media (max-width: 720px){ .price-grid{ grid-template-columns:1fr; } }
.plan { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.plan.feature { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: var(--shadow-md); position: relative; }
.plan .pname { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.plan.feature .pname { color: rgba(255,255,255,.6); }
.plan .pprice { font-family: var(--font-display); font-size: 2rem; margin: .7rem 0 .2rem; }
.plan .psub { font-size: .88rem; color: var(--ink-faint); }
.plan.feature .psub { color: rgba(255,255,255,.6); }
.plan ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: .8rem; }
.plan li { font-size: .94rem; display: flex; gap: .6em; align-items: flex-start; color: var(--ink-soft); }
.plan.feature li { color: rgba(255,255,255,.85); }
.plan li svg { flex: none; margin-top: 3px; color: var(--green); }
.plan.feature li svg { color: #7ed391; }
.plan .tagline { font-size: .82rem; color: var(--ink-faint); margin-top: .6rem; }

/* final CTA / waitlist */
.cta-final { text-align: center; }
.cta-final h2 { max-width: 18ch; margin: 1rem auto 0; }
.cta-final .lead { max-width: 48ch; margin: 1.2rem auto 0; }
.waitlist { margin: 2.4rem auto 0; max-width: 480px; display: flex; gap: .6rem; }
.waitlist input {
  flex: 1; padding: .9em 1.2em; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper-2); font: inherit; font-size: 1rem; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.waitlist input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,95,182,.12); }
.waitlist input::placeholder { color: var(--ink-faint); }
@media (max-width: 520px){ .waitlist{ flex-direction:column; } .waitlist .btn{ justify-content:center; } }
.wl-ok { margin: 2.4rem auto 0; max-width: 480px; padding: 1.1rem 1.4rem; border-radius: var(--radius); background: var(--green-wash); color: var(--green-deep); font-weight: 600; display: none; align-items: center; gap: .6em; justify-content: center; }
.wl-ok.show { display: flex; }
.store-row { display: flex; gap: .8rem; justify-content: center; margin-top: 1.4rem; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: .6em; padding: .7em 1.2em; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--paper-2); font-size: .9rem; color: var(--ink-soft);
}
.store small { display: block; font-size: .68rem; color: var(--ink-faint); }
.store b { font-size: .98rem; color: var(--ink); font-weight: 600; }
.store svg { width: 22px; height: 22px; }

/* footer */
.footer { padding: 3.5rem 0 3rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer .brand { font-size: 1.15rem; }
.footer .tag { background: none; color: var(--ink-faint); font-size: .88rem; padding: 0; margin-top: .6rem; max-width: 34ch; display: block; }
.foot-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.foot-col h5 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .9rem; }
.foot-col a { display: block; font-size: .92rem; color: var(--ink-soft); padding: .25em 0; transition: color .2s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--ink-faint); }
.foot-bottom .note { font-style: italic; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fix, .strike::after, .mend::before, .bars .bar { transition: none; }
}
