/* FONTS:BEGIN (generated by tools/fetch_fonts.py) */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/outfit-var-latin-ext.9e38b3f1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/outfit-var-latin.92684e4a.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* FONTS:END */

/* ===========================================================================
   AFRICAN LEVERAGE
   Palette sampled from the logo mark itself: terracotta #B43024, amber
   #E48424, olive #3C6018. The mark is drawn from round-capped curved strokes
   and spirals, so that is the drawing vocabulary used throughout -- the
   squiggles are the brand's own, not decoration borrowed from a stock library.
   Colour lives in the GRAPHICS; running text stays warm near-black.
   =========================================================================== */
:root {
  --clay:      #B43024;
  --amber:     #E48424;
  --olive:     #3C6018;
  --wa:        #25D366;   /* WhatsApp brand green, for WhatsApp actions only */
  --wa-deep:   #128C4A;
  --ink:       #241A14;
  --ink-soft:  #6E5C50;
  --ink-faint: #A2938A;
  --paper:     #FFFCF7;
  --sand:      #FAF4EB;
  --sand-deep: #F5ECDF;
  --rule:      #ECE2D4;
  --white:     #FFFFFF;
  --bubble-in:  #F6F0E6;
  --bubble-out: #E4F0DC;   /* soft, not saturated: easy on the eye in light */
  --bubble-out-ink: #33500F;
  /* The deepest surface. In light mode the statements already sit well on
     paper, so this is paper -- the token exists for dark mode, where a page
     built from two near-identical browns reads as one continuous slab. */
  --deep:      #FFFCF7;
  --shadow-sm: 0 1px 2px rgba(36,26,20,.04), 0 6px 18px -10px rgba(36,26,20,.14);
  --shadow-lg: 0 2px 6px rgba(36,26,20,.05), 0 30px 60px -32px rgba(36,26,20,.3);

  --display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 36rem;
  --wide: 72rem;
  --r: 999px;
  --pad: max(1.4rem, env(safe-area-inset-left));
}
@media (prefers-color-scheme: dark) {
  :root {
    --clay:      #E4685A;
    --amber:     #F0A047;
    --olive:     #8FBA58;
    --wa:        #25D366;
    --wa-deep:   #1EA855;
    --ink:       #F5EDE3;
    --ink-soft:  #BCAA9C;
    --ink-faint: #8A796C;
    --deep:      #0E0A07;
    --paper:     #16110D;
    --sand:      #241B14;
    --sand-deep: #2E231A;
    --rule:      #3B2D22;
    --white:     #2C2219;
    --bubble-in:  #241B14;
    --bubble-out: #26331B;
    --bubble-out-ink: #C4DDA4;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px -10px rgba(0,0,0,.7);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 30px 60px -32px rgba(0,0,0,.9);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.wrap {
  max-width: var(--wide); margin: 0 auto; position: relative;
  padding-left: var(--pad); padding-right: max(1.4rem, env(safe-area-inset-right));
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2.5px solid var(--clay); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.6vw, 4.5rem); line-height: 1.14; margin: 0 0 1.2rem; }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.1; margin: 0 0 1rem; }
h3 { font-size: 1.22rem; line-height: 1.25; margin: 0 0 .4rem; font-weight: 600; }
p { margin: 0 0 1.1rem; max-width: var(--measure); }
.lede { font-size: 1.14rem; color: var(--ink-soft); line-height: 1.62; }
.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: .76rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--clay);
  margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--amber); border-radius: 2px; flex: none; }

/* --- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1rem;
  padding: .85em 1.6em; border-radius: var(--r); border: 2px solid transparent;
  background: var(--clay); color: #FFF8F2; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 8px 20px -12px rgba(180,48,36,.9);
}
.btn:hover { transform: translateY(-2px); }
/* WhatsApp actions wear WhatsApp's own colour, so the destination is obvious
   before the tap. */
.btn.wa { background: var(--wa); color: #04361B; box-shadow: 0 8px 20px -12px rgba(37,211,102,.9); }
.btn.wa:hover { background: var(--wa-deep); color: #FFF; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink); }
.btn svg { flex: none; }
.btn .wa-glyph { padding: 1px; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.2rem; }
@media (max-width: 30rem) { .cta-row { flex-direction: column; align-items: flex-start; } }

/* --- squiggles ----------------------------------------------------------- */
.squiggle { display: block; overflow: visible; }
.squiggle path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* Clearance below the baseline so the stroke reads as a brush mark under the
   word, never touching the letterforms. */
.underline-wrap { position: relative; display: inline-block; padding-bottom: .16em; }
.underline-wrap .squiggle {
  position: absolute; left: -.02em; right: -.02em; bottom: -.1em; width: 104%; height: .3em;
}
.deco { position: absolute; pointer-events: none; z-index: 0;
  transform: translate3d(0, var(--py, 0px), 0); }

/* --- scroll reveal ------------------------------------------------------- */
/* Content is VISIBLE by default and the hidden-then-revealed state is opt-in,
   applied only once site.js has actually run and added .reveal-ready to <html>.
   The obvious way round -- hidden in CSS, revealed by JS -- means any failure
   to run that JS leaves the page blank: 21 of the 22 blocks on the home page,
   including the headline and every button. That is not a hypothetical. It is
   what a visitor sees with scripting turned off, behind a filtering proxy, or
   when one small file fails to arrive on a bad connection, which is a normal
   afternoon on a Ugandan mobile network. Failing to visible costs an
   animation; failing to hidden costs the whole page. */
.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal-ready .reveal { opacity: 0; transform: translateY(22px); }
.reveal-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .msg, .opt.picked { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* --- masthead ------------------------------------------------------------ */
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; position: sticky; top: 0; z-index: 40;
  background: var(--paper);                       /* fallback first */
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
}
.masthead.stuck { border-bottom-color: var(--rule); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 38px; }
/* Clay, because that is the colour the wordmark is actually printed in inside
   afrilev-logo.png (#B82C1C, within a point or two of --clay). Setting it here
   means the lock-up beside the mark matches the mark, in both themes -- the
   dark-mode --clay is the lightened counterpart of the same red. */
.brand span { font-family: var(--display); font-weight: 800; font-size: 1.02rem;
  letter-spacing: -.02em; line-height: 1.1; color: var(--clay); }
.menu { display: none; gap: 1.9rem; font-family: var(--display); font-weight: 500; font-size: .95rem; align-items: center; }
.menu a { color: var(--ink-soft); text-decoration: none; }
.menu a:hover { color: var(--clay); }
.menu-btn {
  background: none; border: 1.5px solid var(--rule); border-radius: var(--r);
  padding: .5rem .9rem; cursor: pointer; font-family: var(--display);
  font-weight: 600; font-size: .88rem; color: var(--ink);
  display: inline-flex; align-items: center; gap: .45rem;
}
/* AFTER the base rule, not before it: two rules of equal specificity are
   settled by order, so a media query placed first silently loses and the
   button appeared on desktop beside the menu it duplicates. */
@media (min-width: 56rem) {
  .menu { display: flex; }
  .menu-btn { display: none; }
}
.drawer { display: none; padding: .5rem 0 1.2rem; border-bottom: 1px solid var(--rule); }
.drawer.open { display: block; }
.drawer a {
  display: block; padding: .7rem .2rem; text-decoration: none; color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  border-bottom: 1px solid var(--rule);
}
.drawer a:last-of-type { border-bottom: 0; }
@media (min-width: 56rem) { .drawer { display: none !important; } }

/* --- hero ---------------------------------------------------------------- */
.hero { padding-block: 3rem 3.5rem; position: relative; }
@media (min-width: 54rem) { .hero { padding-block: 5rem 4.5rem; } }
.hero-inner { position: relative; z-index: 2; max-width: 46rem; }
.hero .lede { max-width: 33rem; }
.hero-deco { top: -1rem; right: -7rem; width: 27rem; opacity: .45; }
@media (max-width: 62rem) { .hero-deco { display: none; } }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem;
  padding-top: 2.2rem; border-top: 2px solid var(--rule); margin-top: 2.4rem; max-width: 44rem; }
@media (min-width: 46rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat .n { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.8vw, 2.4rem);
  line-height: 1; letter-spacing: -.04em; display: block; }
.stat:nth-child(1) .n { color: var(--clay); }
.stat:nth-child(2) .n { color: var(--amber); }
.stat:nth-child(3) .n { color: var(--olive); }
.stat:nth-child(4) .n { color: var(--clay); }
.stat p { font-size: .88rem; color: var(--ink-soft); margin: .4rem 0 0; max-width: 11rem; line-height: 1.45; }

/* --- statement bands: the page breathes here ----------------------------- */
.statement { padding-block: 5.5rem; text-align: center; position: relative;
  overflow: hidden; background: var(--deep); }
.statement .big {
  font-family: var(--display); font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(2.3rem, 7vw, 4.6rem); line-height: 1.06; margin: 0 auto 1.2rem;
  max-width: 20ch; text-wrap: balance;
}
.statement p { margin: 0 auto; max-width: 34rem; font-size: 1.1rem; color: var(--ink-soft); }
.statement.enclosed .wrap { max-width: 46rem; }
.statement .arc { width: 100%; height: clamp(2.6rem, 8vw, 4.4rem); opacity: .85;
  transform: translate3d(0, var(--py, 0px), 0); }
.statement .arc.top { margin-bottom: .5rem; }
/* the mirrored copy closes the shape, so the words sit inside it */
.statement .arc.bottom { transform: translate3d(0, var(--py, 0px), 0) scaleY(-1); margin-top: .5rem; }
.statement.enclosed .big { margin-block: 0; max-width: 18ch; }
.statement > * { position: relative; z-index: 1; }

.band { background: var(--sand); padding-block: 4.5rem; position: relative; overflow: hidden; }
section { padding-block: 4.5rem; position: relative; }
.head { max-width: 40rem; margin-bottom: 2.8rem; }

/* --- product demo -------------------------------------------------------- */
.demo { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 58rem) { .demo { grid-template-columns: 1fr 24rem; gap: 4rem; } }
.phone {
  background: var(--white); border: 1px solid var(--rule); border-radius: 26px;
  padding: 1rem .95rem 1.1rem; box-shadow: var(--shadow-lg); position: relative;
}
.phone-head { display: flex; align-items: center; gap: .6rem; padding: .1rem .3rem .8rem;
  border-bottom: 1px solid var(--rule); margin-bottom: .9rem; }
.phone-head img { width: 28px; }
.phone-head b { font-family: var(--display); font-size: .93rem; font-weight: 600; }
.phone-head i { font-style: normal; font-size: .72rem; color: var(--olive); display: block; line-height: 1.2; }
.thread { display: flex; flex-direction: column; gap: .45rem; min-height: 22rem; }
.msg { border-radius: 16px 16px 16px 4px; padding: .7rem .85rem; background: var(--bubble-in);
  font-size: .9rem; line-height: 1.5; max-width: 94%; opacity: 0; transform: translateY(8px);
  animation: rise .45s ease forwards; }
.msg.out { align-self: flex-end; border-radius: 16px 16px 4px 16px;
  background: var(--bubble-out); color: var(--bubble-out-ink); font-weight: 600; }
.msg p { margin: 0 0 .45rem; max-width: none; }
.msg p:last-child { margin: 0; }
.opts { display: flex; flex-direction: column; gap: .32rem; margin-top: .6rem; }
.opt { border: 1.5px solid var(--rule); border-radius: var(--r); background: var(--white);
  padding: .4rem .85rem; font-size: .85rem; font-weight: 600; color: var(--ink-soft); text-align: center; }
.opt.picked { animation: tap 1s ease forwards; }
.verdict { display: flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--olive); }
.verdict .ring { width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--olive);
  color: var(--paper); display: grid; place-items: center; font-size: .78rem; flex: none; }
.msg .why { color: var(--ink-soft); font-size: .85rem; }
.working-peek {
  margin-top: .6rem; width: 100%; text-align: left; cursor: pointer;
  border: 1.5px solid var(--rule); border-radius: 14px; background: var(--paper);
  padding: .6rem .7rem; display: flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-weight: 600; font-size: .84rem; color: var(--ink);
}
.working-peek:hover { border-color: var(--olive); }
.peek-thumb { width: 3.1rem; height: 2.3rem; border-radius: 8px; background: var(--sand-deep);
  display: grid; place-items: center; flex: none; overflow: hidden; }
.peek-thumb svg { width: 100%; height: 100%; }
.peek-thumb + span small { display: block; font-weight: 500; color: var(--ink-faint); font-size: .74rem; }
.nextq { display: block; width: 100%; margin-top: .5rem; background: none; border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: .82rem; color: var(--ink-faint);
  padding: .45rem; border-radius: var(--r); }
.nextq:hover { color: var(--clay); background: var(--sand); }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes tap {
  0%   { transform: scale(1);    border-color: var(--rule);  }
  35%  { transform: scale(.96);  border-color: var(--olive); background: var(--bubble-out); }
  100% { transform: scale(1);    border-color: var(--olive); background: var(--bubble-out); color: var(--bubble-out-ink); }
}
.thread .msg:nth-child(1) { animation-delay: .15s; }
.thread .msg:nth-child(1) .opt.picked { animation-delay: 2.1s; }
.thread .msg:nth-child(2) { animation-delay: 2.9s; }
.thread .msg:nth-child(3) { animation-delay: 3.7s; }

/* --- full working, expanded --------------------------------------------- */
.sheet { position: fixed; inset: 0; z-index: 90; display: none; }
.sheet.open { display: block; }
.sheet-bg { position: absolute; inset: 0; background: rgba(20,12,8,.55); backdrop-filter: blur(3px); }
.sheet-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(30rem, calc(100vw - 2rem)); max-height: calc(100vh - 2.5rem); overflow-y: auto;
  background: var(--paper); border-radius: 22px; padding: 1.4rem 1.3rem 1.2rem;
  box-shadow: var(--shadow-lg); border: 1px solid var(--rule);
}
.sheet-card h3 { font-family: var(--display); font-weight: 800; font-size: 1.05rem; margin: 0 0 .2rem; }
.sheet-card .sub { font-size: .84rem; color: var(--ink-faint); margin: 0 0 1rem; }
.step-line { display: grid; grid-template-columns: 1.5rem 1fr; gap: .7rem; padding: .55rem 0; border-top: 1px solid var(--rule); }
.step-line:first-of-type { border-top: 0; }
.step-line b { font-family: var(--display); color: var(--clay); font-size: .82rem; }
.step-line .maths { font-size: 1rem; }
.step-line .note { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: .15rem; }
.sheet-close { position: absolute; top: .7rem; right: .8rem; background: var(--sand); border: 0;
  width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--ink); }
sup { font-size: .68em; }
/* A real fraction: numerator over a rule over denominator. Reads as maths
   instead of the ambiguous inline slash. */
.frac { display: inline-flex; flex-direction: column; vertical-align: middle;
  text-align: center; margin: 0 .2em; line-height: 1.15; position: relative;
  top: -.05em; font-size: .96em; }
.frac .num { border-bottom: 1.4px solid currentColor; padding: 0 .35em .1em; }
.frac .den { padding: .1em .35em 0; }
/* The working sheet mixes fractions with ordinary symbols on one line, so
   the line has to be tall enough for a stacked fraction not to collide with
   the row above it. */
.step-line .maths { line-height: 2.1; display: block; }
.step-line { align-items: baseline; padding: .7rem 0; }
.maths { font-size: 1.02rem; }
/* Anywhere a stacked fraction sits inside running text -- an answer option, a
   line of working -- the line needs the same headroom the working sheet gets,
   or the numerator touches the row above. Marked with a class rather than
   :has(), which older Android WebViews do not understand. */
/* A stacked fraction is about 2.5 lines tall, so a line of working that
   contains one needs a line box taller than the fraction or the numerator
   touches the denominator of the line above. An option is a single line, so
   it needs far less. */
.why.tall { line-height: 2.8; }
.opts.tall .opt { line-height: 2.35; }

/* --- how it works: one connected journey ------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 2.6rem 4.2rem; }
.timeline li:last-child { padding-bottom: 0; }
/* the line runs from under one marker to the next, so the steps read as a
   single path rather than three separate bullets */
.timeline li:not(:last-child)::before {
  content: ""; position: absolute; left: 1.5rem; top: 3.4rem; bottom: .4rem; width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--from, var(--clay)), var(--to, var(--amber)));
  opacity: .5;
}
.timeline li:nth-child(1) { --from: var(--clay);  --to: var(--amber); }
.timeline li:nth-child(2) { --from: var(--amber); --to: var(--olive); }
.tl-num {
  position: absolute; left: 0; top: .1rem;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  width: 3.05rem; height: 3.05rem; border-radius: 50%;
  display: grid; place-items: center; color: #FFF8F2;
  box-shadow: 0 6px 16px -8px rgba(36,26,20,.5);
}
.timeline h3 { margin-top: .45rem; }
.timeline p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
@media (min-width: 58rem) {
  .timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .timeline li { padding: 4.6rem 0 0 0; }
  .timeline li:not(:last-child)::before {
    left: 3.6rem; right: -2.5rem; top: 1.5rem; bottom: auto; width: auto; height: 3px;
    background: linear-gradient(90deg, var(--from), var(--to));
  }
  .tl-num { top: 0; }
}

/* --- product cards ------------------------------------------------------- */
.cards { display: grid; gap: 1.4rem; }
@media (min-width: 54rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--rule); border-radius: 22px;
  padding: 1.8rem 1.5rem 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.icon { width: 3.4rem; height: 3.4rem; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.1rem; }
.icon svg { width: 1.9rem; height: 1.9rem; }
.icon.c1 { background: rgba(180,48,36,.12); }
.icon.c2 { background: rgba(228,132,36,.14); }
.icon.c3 { background: rgba(60,96,24,.13); }
.card p { color: var(--ink-soft); font-size: .95rem; flex: 1; margin-bottom: 1.1rem; }
.card .go { font-family: var(--display); font-weight: 700; font-size: .94rem; text-decoration: none; color: var(--clay); }
.card .go.wa-link { color: var(--wa-deep); }
.card .go:hover { text-decoration: underline; text-underline-offset: 4px; }
.tag { align-self: flex-start; font-family: var(--display); font-weight: 700; font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase; padding: .3em .8em; border-radius: var(--r); margin-bottom: .8rem; }
.tag.live { background: var(--olive); color: var(--paper); }
.tag.soon { background: var(--sand-deep); color: var(--ink-soft); }

/* --- contact ------------------------------------------------------------- */
.contact { display: grid; gap: 2.5rem; }
@media (min-width: 54rem) { .contact { grid-template-columns: 1fr 1fr; gap: 4rem; } }
form { display: flex; flex-direction: column; gap: .85rem; }
label { font-family: var(--display); font-weight: 600; font-size: .84rem; margin-bottom: .3rem; display: block; }
input, textarea { width: 100%; font: inherit; font-size: .96rem; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--rule); border-radius: 14px; padding: .72rem .9rem; }
textarea { min-height: 7rem; resize: vertical; border-radius: 18px; }
input:focus, textarea:focus { border-color: var(--clay); outline: none; }
.form-note { font-size: .8rem; color: var(--ink-faint); margin: .2rem 0 0; }

/* --- socials ------------------------------------------------------------- */
.socials { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.socials a { width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 1.5px solid var(--rule);
  display: grid; place-items: center; color: var(--ink-soft); transition: .18s ease; }
.socials a:hover { color: var(--clay); border-color: var(--clay); transform: translateY(-2px); }
.socials svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }

footer { background: var(--sand); padding: 3.2rem 0 2.2rem; border-top: 1px solid var(--rule); }
.foot-top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.2rem; font-family: var(--display); font-weight: 500; font-size: .94rem; }
.foot-links a { color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--clay); }
.foot-legal { margin-top: 2.2rem; display: flex; gap: 1.4rem; flex-wrap: wrap;
  font-family: var(--display); font-weight: 500; font-size: .9rem; }
.foot-legal a { color: var(--ink-soft); text-decoration: none; }
.foot-legal a:hover { color: var(--clay); }
.foot-base { margin-top: 1rem; padding-top: 1.4rem; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-size: .84rem; color: var(--ink-faint); }
.foot-base p { margin: 0; max-width: 34rem; }


/* --- long-form pages: legal, about, sales ------------------------------- */
/* The legal and about pages are long runs of prose. Opening them on their own
   surface, with a rule under it, gives the page a top and a body instead of
   one uninterrupted colour from the masthead to the footer -- which is what
   made them feel flat in dark mode, where shadow cannot do the job. */
.page-head { padding-block: 3rem 2.4rem; background: var(--sand);
  border-bottom: 1px solid var(--rule); margin-bottom: 2.6rem; }
.page-head h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
.prose { max-width: 40rem; margin-inline: auto; }
.prose h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 2.8rem 0 .7rem; }
.prose h3 { font-size: 1.08rem; margin: 1.8rem 0 .4rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p { max-width: none; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.prose li { margin: .4rem 0; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--clay); }
.updated { font-family: var(--display); font-weight: 500; font-size: .85rem;
  color: var(--ink-faint); margin-bottom: 2rem; }
.callout { background: var(--sand); border-radius: 18px; padding: 1.2rem 1.3rem;
  margin: 1.6rem 0; border-left: 4px solid var(--amber); }
.callout p:last-child { margin-bottom: 0; }
.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.toc a { font-family: var(--display); font-weight: 600; font-size: .82rem; text-decoration: none;
  color: var(--ink-soft); border: 1.5px solid var(--rule); border-radius: var(--r); padding: .35rem .85rem; display: block; }
.toc a:hover { border-color: var(--clay); color: var(--clay); }

/* feature rows on the sales page */
.feature { display: grid; gap: 1.4rem; align-items: start; padding-block: 2.2rem; border-top: 1px solid var(--rule); }
@media (min-width: 50rem) { .feature { grid-template-columns: 4.5rem 1fr; gap: 2rem; } }
.feature:first-of-type { border-top: 0; }
.feature .fi { width: 3.6rem; height: 3.6rem; border-radius: 18px; display: grid; place-items: center; }
.feature .fi svg { width: 1.9rem; height: 1.9rem; }
.feature p { margin-bottom: 0; }
.pricebox { background: var(--white); border: 2px solid var(--clay); border-radius: 24px;
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm); max-width: 24rem; }
.pricebox .amt { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -.04em; }
.pricebox .per { color: var(--ink-soft); font-size: .95rem; margin: .4rem 0 1.2rem; }
.pricebox ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.pricebox li { position: relative; padding-left: 1.6rem; margin: .5rem 0; font-size: .95rem; color: var(--ink-soft); }
.pricebox li::before { content: "✓"; position: absolute; left: 0; color: var(--olive); font-weight: 700; }
.faq { border-top: 1px solid var(--rule); padding-block: 1.3rem; }
.faq h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.faq p { margin: 0; color: var(--ink-soft); font-size: .97rem; max-width: 42rem; }

/* --- centring: buttons, footer rows, policy links ----------------------- */
.foot-legal, .foot-base { justify-content: center; text-align: center; }
.foot-base p { max-width: 40rem; }
@media (max-width: 54rem) {
  .foot-top { flex-direction: column; align-items: center; text-align: center; }
  .foot-links { justify-content: center; }
  .cta-row { justify-content: center; }
}
@media (max-width: 30rem) { .cta-row { align-items: center; } }
.cta-row.centred { justify-content: center; }

/* --- the walkthrough carousel: show, don't tell ------------------------- */
.walk { position: relative; margin-top: 1rem; }
.walk-track {
  display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .4rem .2rem 1.2rem; margin: 0 -.2rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.walk-track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; flex: 0 0 min(19.5rem, 82vw); }
@media (min-width: 50rem) { .slide { flex-basis: 19.5rem; } }
/* One height for every phone in the row: the threads are naturally different
   lengths, and without this the card jumps as you swipe. */
.slide .phone { padding: .85rem .8rem 1rem; border-radius: 24px; min-height: 27.7rem;
  display: flex; flex-direction: column; }
/* Every card is the same height so the row does not jump as you swipe, and
   the conversation sits at the BOTTOM of it -- which is where messages
   actually pile up in WhatsApp, so the spare room reads as chat history
   rather than as an empty card. */
.slide .thread { justify-content: flex-end; flex: 1; }
.slide .thread { min-height: 0; }
.slide .msg { opacity: 1; transform: none; animation: none; font-size: .86rem; }
/* A slide is a still, not a performance: a tapped option shows its tapped
   state at once instead of waiting out the live demo's animation delay. */
.slide .opt.picked { animation: none; border-color: var(--olive);
  background: var(--bubble-out); color: var(--bubble-out-ink); }
.slide-cap { margin-top: .9rem; padding: 0 .2rem; }
.slide-cap b { font-family: var(--display); font-weight: 700; font-size: .98rem; display: block; }
.slide-cap span { color: var(--ink-soft); font-size: .88rem; line-height: 1.5; display: block; margin-top: .15rem; }
.slide-step {
  font-family: var(--display); font-weight: 700; font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--clay); margin-bottom: .5rem; display: block;
}
.walk-nav { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: .4rem; }
.walk-nav button {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.5px solid var(--rule);
  background: var(--paper); color: var(--ink); cursor: pointer; font-size: 1.05rem; line-height: 1;
  display: grid; place-items: center;
}
.walk-nav button:hover:not(:disabled) { border-color: var(--clay); color: var(--clay); }
.walk-nav button:disabled { opacity: .35; cursor: default; }
.dots { display: flex; gap: .4rem; }
.dots button {
  width: .55rem; height: .55rem; border-radius: 50%; padding: 0; border: 0;
  background: var(--rule); cursor: pointer; transition: .2s ease;
}
.dots button[aria-current="true"] { background: var(--clay); width: 1.5rem; border-radius: var(--r); }
/* a list message, as WhatsApp renders it */
.wa-list { margin-top: .55rem; border-top: 1px solid var(--rule); padding-top: .5rem; }
.wa-list div {
  font-size: .82rem; padding: .38rem .1rem; border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: .5rem; color: var(--ink-soft);
}
.wa-list div:last-child { border-bottom: 0; }
.wa-list b { color: var(--ink); font-weight: 600; }
/* The count never wraps -- it is the short half of the row, and letting it
   break puts "6" and "topics" on separate lines beside a long construct
   name. */
.wa-list span { white-space: nowrap; padding-left: .6rem; }
.wa-list .more b { color: var(--ink-faint); font-weight: 500; }
.wa-btn {
  margin-top: .5rem; border: 1.5px solid var(--rule); border-radius: var(--r);
  padding: .38rem .8rem; font-size: .82rem; font-weight: 600; color: var(--olive);
  text-align: center; background: var(--white);
}
.pay-row { display: flex; justify-content: space-between; font-size: .84rem; padding: .25rem 0; }
.pay-row b { font-weight: 600; }

/* form states */
.form-msg { font-size: .9rem; margin: .6rem 0 0; padding: .7rem .9rem; border-radius: 12px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--live-soft, rgba(60,96,24,.12)); color: var(--olive); }
.form-msg.bad { background: rgba(180,48,36,.1); color: var(--clay); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* --- decorative mark closing a statement -------------------------------- */
.made-mark { display: block; width: clamp(4.4rem, 11vw, 6.4rem); margin: 2rem auto 0; opacity: .92; }
.statement .made-in { font-family: var(--display); font-weight: 600; font-size: .78rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-top: .8rem; }

/* --- founder ------------------------------------------------------------- */
/* A raised panel, so the founder reads as a moment on the page rather than
   more of the same column of text. */
.founder { display: grid; gap: 1.1rem; align-items: start; margin: .6rem 0 2.4rem;
  background: var(--sand); border: 1px solid var(--rule); border-radius: 22px;
  padding: 1.6rem; }
@media (min-width: 42rem) { .founder { grid-template-columns: 13rem 1fr; gap: 1.8rem; } }
.founder-mark {
  width: 5.5rem; height: 5.5rem; border-radius: 50%; background: var(--sand);
  border: 1px solid var(--rule); display: grid; place-items: center; flex: none;
}
.founder-mark img { width: 3.1rem; }
.founder h3 { font-family: var(--display); font-weight: 800; font-size: 1.15rem; margin: 0; }
.founder .role { color: var(--clay); font-weight: 600; font-size: .9rem; margin: .1rem 0 .9rem; }
.founder blockquote {
  margin: 1.1rem 0 0; padding: 0 0 0 1.1rem; border-left: 3px solid var(--amber);
  font-family: var(--display); font-size: 1.05rem; line-height: 1.55; color: var(--ink);
}

/* --- swipe hint ---------------------------------------------------------- */
/* Mobile only: on a phone the carousel shows one card and its neighbours are
   off-screen, which reads as a broken layout unless you are told to swipe.
   On a wide screen three cards are already visible and the arrows are there,
   so the hint would only be noise. */
.swipe-hint {
  display: none; align-items: center; justify-content: center; gap: .45rem;
  margin: 0 0 .9rem; font-family: var(--display); font-weight: 600;
  font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--clay);
}
.swipe-hint svg { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(4px); } }
@media (max-width: 50rem) { .swipe-hint { display: flex; } }
@media (prefers-reduced-motion: reduce) { .swipe-hint svg { animation: none; } }

/* --- founder portrait ---------------------------------------------------- */
.founder-photo { margin: 0; }
.founder-photo img {
  display: block; width: 100%; height: auto; border-radius: 18px;
  border: 1px solid var(--rule); box-shadow: var(--shadow-lg);
}

/* --- dark mode: separate the surfaces -----------------------------------
   Light mode gets its depth from shadow on near-white paper. In dark mode
   shadow does almost nothing -- black on near-black is invisible -- so depth
   has to come from the surfaces themselves. Hence the ladder (deep < paper <
   band < card) plus a hairline at every band edge, so the eye can see where
   one section ends and the next begins instead of reading the whole page as
   one continuous brown. */
@media (prefers-color-scheme: dark) {
  .band, footer { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  footer { border-bottom: 0; }
  .statement { border-block: 1px solid var(--rule); }
  /* A single warm light source, very low in the mix: enough that a band is
     not a flat rectangle, far too faint to read as a gradient. */
  .band::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 60% at 50% 0%,
      color-mix(in srgb, var(--amber) 7%, transparent), transparent 70%);
  }
  .band > * { position: relative; }
  /* Cards sit on top of the ladder, so they carry a rim light rather than a
     shadow -- the trick that makes a dark UI feel lit rather than flat. */
  .card, .phone, .pricebox, .sheet-card, .founder-photo img {
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 8%, transparent),
                0 24px 48px -30px rgba(0,0,0,.9);
  }
}

/* --- parallax ------------------------------------------------------------
   Only the decorative marks move, and only a little: the brand is friendly,
   not a theme park. Nothing that carries meaning -- text, cards, the phone
   mock -- shifts at all, so the page never feels like it is sliding away
   from under the reader. */
.parallax { will-change: transform; }
@media (prefers-reduced-motion: reduce) { .parallax { will-change: auto; transform: none !important; } }

/* --- long documents: a reading column with a contents rail ---------------
   The legal pages are the widest gap between "correct measure" and "uses the
   page". Below 62rem the rail sits above the text as the pill row it always
   was; above it, the rail moves alongside and sticks, so the leftover width
   does a job instead of sitting empty. */
.doc-rail .rail-title {
  font-family: var(--display); font-weight: 600; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
  margin: 0 0 .8rem; display: none;
}
@media (min-width: 62rem) {
  .doc {
    display: grid; grid-template-columns: 14rem minmax(0, 40rem);
    gap: 4rem; align-items: start; justify-content: center;
  }
  .doc .prose { margin-inline: 0; }
  .doc-rail { position: sticky; top: 6.5rem; }
  .doc-rail .rail-title { display: block; }
  .doc .toc { flex-direction: column; flex-wrap: nowrap; gap: 0; margin: 0; }
  .doc .toc a {
    display: block; border: 0; border-left: 2px solid var(--rule);
    border-radius: 0; padding: .42rem .9rem; font-size: .86rem;
    color: var(--ink-soft); line-height: 1.35;
  }
  .doc .toc a:hover { border-left-color: var(--clay); color: var(--clay); background: none; }
  .doc .toc a.here { border-left-color: var(--clay); color: var(--ink); font-weight: 700; }
}
