/* ==========================================================================
   Sendpoa MAIL — MARKETING SITE DESIGN SYSTEM
   ==========================================================================
   Concept: "The Manifest" — East African wholesale trade runs on paperwork:
   cargo manifests, customs stamps, ledger books, bill-of-lading carbon
   copies. Sendpoa is the digital version of that paper trail for a
   business's inbox. The whole site borrows the vernacular of a shipping
   manifest: numbered line-items, ink stamps, tally ledgers, monospace
   reference codes — instead of generic SaaS gradients and rounded cards.

   Palette
     --ink       #14213D  deep indigo, "ledger ink" — primary text/dark fills
     --paper     #F6EFE3  warm parchment — page background
     --paper-2   #ECE1CB  deeper parchment — panels, alternating sections
     --gold      #E3A83B  marigold/spice-market gold — primary accent
     --lagoon    #14B8A6  Sendpoa brand teal — same accent as the product itself
     --stamp     #B23A2E  postal-stamp red — the one "loud" color, used only
                          for the waitlist stamp and urgent CTAs
     --line      #D8CBAE  hairline rule color on paper

   Type
     Display : "Newsreader" — editorial serif with real italics, used big
     Mono    : "IBM Plex Mono" — manifest numbers, reference codes, labels
     Body    : "Inter" — everything else
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?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&family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #14213D;
  --ink-70: rgba(20, 33, 61, 0.7);
  --ink-50: rgba(20, 33, 61, 0.5);
  --ink-30: rgba(20, 33, 61, 0.3);
  --paper: #F6EFE3;
  --paper-2: #ECE1CB;
  --paper-3: #FBF8F1;
  --gold: #E3A83B;
  --gold-ink: #7A5416;
  --lagoon: #14B8A6;
  --lagoon-dark: #0D9488;
  --stamp: #B23A2E;
  --line: #D8CBAE;

  --display: 'Newsreader', 'Georgia', serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --body: 'Inter', -apple-system, sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 3px; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lagoon);
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; margin: 0; color: var(--ink); }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: 19px; color: var(--ink-70); line-height: 1.55; max-width: 46ch; }

/* ── Manifest strip: the running header above nav ────────────────────── */
.manifest-strip {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 7px 0;
  overflow: hidden;
  white-space: nowrap;
}
.manifest-strip .wrap { display: flex; justify-content: space-between; gap: 16px; }
.manifest-strip span { opacity: 0.85; }
.manifest-strip .status { color: var(--gold); }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 239, 227, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 20px; font-weight: 500; text-decoration: none; color: var(--ink); }
.brand .mark {
  width: 28px; height: 28px; border-radius: 7px;
  display: block; object-fit: cover;
  box-shadow: 0 1px 2px rgba(20,33,61,0.15);
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-70); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 68px 0 0 0; background: var(--paper); flex-direction: column; padding: 28px 24px; gap: 22px; align-items: flex-start; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { font-size: 18px; }
  .nav-cta.desktop-only { display: none; }
  .nav-toggle { display: block; }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 14.5px;
  padding: 11px 20px; border-radius: 3px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper-3); }
.btn-primary:hover { background: #1c2c52; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper-3); }
.btn-lagoon { background: var(--lagoon); color: #fff; }
.btn-lagoon:hover { background: var(--lagoon-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ── The stamp: signature element ────────────────────────────────────── */
.stamp {
  --stamp-size: 128px;
  width: var(--stamp-size); height: var(--stamp-size);
  border: 2.5px solid var(--stamp);
  border-radius: 50%;
  color: var(--stamp);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  transform: rotate(-9deg);
  position: relative;
  mix-blend-mode: multiply;
  opacity: 0.92;
}
.stamp::before {
  content: ''; position: absolute; inset: 6px; border: 1px solid var(--stamp); border-radius: 50%; opacity: 0.55;
}
.stamp-line1 { font-size: 15px; }

/* ── Sections ─────────────────────────────────────────────────────────── */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink .eyebrow { color: var(--gold); }
.section-ink h2, .section-ink h3 { color: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 12px; display: block; }
.section-head h2 { margin-top: 10px; }

hr.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.hero-copy .eyebrow { margin-bottom: 18px; display: block; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lede { margin-bottom: 32px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-note { font-family: var(--mono); font-size: 12px; color: var(--ink-50); margin-top: 14px; }

.ledger-card {
  background: var(--paper-3); border: 1px solid var(--line); border-radius: 4px;
  padding: 26px 26px 22px;
  position: relative;
}
.ledger-card .stamp { position: absolute; top: -22px; right: -14px; }
.ledger-title { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-50); margin-bottom: 4px; }
.ledger-count { font-family: var(--display); font-size: 46px; line-height: 1; margin: 4px 0 2px; }
.ledger-count span { font-family: var(--mono); font-size: 15px; color: var(--ink-50); font-weight: 500; }
.ledger-sub { font-size: 13.5px; color: var(--ink-50); margin-bottom: 20px; }
.ledger-rows { border-top: 1px solid var(--line); }
.ledger-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ledger-row .k { color: var(--ink-70); }
.ledger-row .v { font-family: var(--mono); font-weight: 500; }

/* ── Manifest feature lines ──────────────────────────────────────────── */
.manifest-list { border-top: 1px solid var(--line); }
.manifest-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; align-items: start;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.manifest-item .num { font-family: var(--mono); font-size: 13px; color: var(--gold-ink); padding-top: 4px; }
.manifest-item h3 { margin-bottom: 8px; }
.manifest-item p { color: var(--ink-70); max-width: 58ch; }
.manifest-item .tag {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--lagoon); border: 1px solid var(--lagoon); border-radius: 100px; padding: 5px 11px; white-space: nowrap; align-self: start;
}
@media (max-width: 720px) {
  .manifest-item { grid-template-columns: 40px 1fr; }
  .manifest-item .tag { grid-column: 2; }
}

/* ── Cards / grids ────────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .hero-grid { grid-template-columns: 1fr; } }

.panel { background: var(--paper-3); border: 1px solid var(--line); border-radius: 4px; padding: 26px; }
.panel h3 { margin-bottom: 10px; }
.panel p { color: var(--ink-70); font-size: 14.5px; }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.price-card { background: var(--paper-3); border: 1px solid var(--line); border-radius: 4px; padding: 30px 26px; display: flex; flex-direction: column; gap: 18px; }
.price-card.featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.price-card .plan-name { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-50); }
.price-card .plan-price { font-family: var(--display); font-size: 34px; }
.price-card .plan-price small { font-family: var(--mono); font-size: 13px; color: var(--ink-50); font-weight: 400; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-70); }
.price-card li::before { content: '— '; color: var(--gold-ink); font-family: var(--mono); }
.price-badge { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--gold); color: var(--ink); padding: 3px 9px; border-radius: 100px; align-self: flex-start; }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form-panel { background: var(--paper-3); border: 1px solid var(--line); border-radius: 4px; padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--ink-50); margin-top: 5px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 15px; padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lagoon); outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.form-msg { padding: 13px 15px; border-radius: 3px; font-size: 14px; margin-top: 16px; display: none; }
.form-msg.success { display: block; background: rgba(20,184,166,0.1); border: 1px solid var(--lagoon); color: #0d5c53; }
.form-msg.error { display: block; background: rgba(178,58,46,0.08); border: 1px solid var(--stamp); color: var(--stamp); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--mono); font-size: 20px; color: var(--ink-50); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 12px; color: var(--ink-70); font-size: 14.5px; max-width: 62ch; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(246,239,227,0.75); padding: 56px 0 28px; font-size: 14px; }
.site-footer .brand { color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(246,239,227,0.5); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { text-decoration: none; color: rgba(246,239,227,0.75); }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(246,239,227,0.15); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 12px; color: rgba(246,239,227,0.45); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ── Misc ─────────────────────────────────────────────────────────────── */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-64 { margin-top: 64px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pill { font-family: var(--mono); font-size: 11.5px; border: 1px solid var(--line); border-radius: 100px; padding: 5px 12px; color: var(--ink-70); }

/* ==========================================================================
   MOTION
   ==========================================================================
   Kept deliberately in character with "the manifest" concept rather than
   generic SaaS fade-ups: the stamp actually stamps down, ledger rows tally
   in one at a time, and reveals use a slight upward settle (like paper
   landing on a desk) rather than a floaty opacity-only fade. Everything
   respects prefers-reduced-motion.
   ========================================================================== */

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

  /* Scroll reveal — applied via JS (data-reveal) to section content so nothing
     needs hand-editing per page; falls back to visible-by-default with JS off. */
  [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s cubic-bezier(.2,.7,.2,1), transform 0.6s cubic-bezier(.2,.7,.2,1);
  }
  [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
  [data-reveal-group] > * { transition-delay: calc(var(--reveal-i, 0) * 70ms); }

  /* The stamp "lands" — rotates in from a steeper angle to its resting tilt,
     like an actual rubber stamp coming down on paper. */
  .stamp {
    animation: stamp-land 0.5s cubic-bezier(.2,.9,.3,1.3) 0.15s both;
  }
  @keyframes stamp-land {
    0%   { opacity: 0; transform: rotate(-22deg) scale(1.35); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: rotate(-9deg) scale(1); }
  }

  /* Waitlist ledger count ticks in once the real number loads (see main.js) */
  [data-waitlist-count].is-counting { transition: opacity 0.25s ease; }

  /* Buttons: slight lift instead of just a color swap */
  .btn { transition: background-color 0.18s ease, color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease; }
  .btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(20,33,61,0.14); }
  .btn:active { transform: translateY(0); box-shadow: none; }

  /* Manifest line items: number ticks in slightly ahead of its copy */
  .manifest-item .num { transition: color 0.3s ease; }
  .manifest-item:hover .num { color: var(--lagoon); }

  /* Nav links: underline draws in from the left rather than just changing color */
  .nav-links a:not(.btn) { position: relative; }
  .nav-links a:not(.btn)::after {
    content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1.5px;
    background: var(--lagoon); transition: right 0.22s ease;
  }
  .nav-links a:not(.btn):hover::after, .nav-links a:not(.btn).active::after { right: 0; }

  /* Logo: a small settle-in on first paint, so the page doesn't feel static
     the instant it appears */
  .brand .mark { animation: mark-in 0.5s cubic-bezier(.2,.8,.3,1.2) both; }
  @keyframes mark-in { from { opacity: 0; transform: scale(0.6) rotate(-8deg); } to { opacity: 1; transform: none; } }

  /* Panels/cards: subtle lift on hover instead of a flat, static block */
  .panel, .plan-card, .manifest-item { transition: transform 0.22s ease, box-shadow 0.22s ease; }
  .panel:hover, .plan-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20,33,61,0.08); }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
