/* =============================================================
   PANGISA MARKETING SITE CSS
   Design system derived from the Nyumba editorial reference.
   Covers: shared tokens, nav, all three marketing pages,
   footer, responsive — plus backward-compat auth/form styles
   for login.html, signup.html, and verify_receipt.html.
============================================================= */

/* ======== Tokens ======== */
:root {
  --bone:       #f6f1e8;
  --paper:      #fbf7ef;
  --cream:      #efe7d4;
  --ink:        #1a1714;
  --ink-soft:   #3a342d;
  --ink-muted:  #8a8275;
  --rule:       #e3dccc;
  --rule-soft:  #ece4d2;
  --terracotta: #b8543a;
  --clay:       #c97851;
  --moss:       #5a6b3f;
  --ochre:      #c79544;
  --card:       #ffffff;
  --sand:       #efe7d4;   /* alias — existing templates use --sand */
  --nav-h:      64px;
  --max-w:      1180px;
  --shadow:     0 1px 0 rgba(26,23,20,.04), 0 12px 32px -16px rgba(26,23,20,.12);
  --shadow-md:  0 2px 4px rgba(26,23,20,.06), 0 16px 40px -20px rgba(26,23,20,.16);
}

/* ======== Reset & base ======== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bone);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; color: var(--terracotta); }

/* ======== Nav ======== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 4px rgba(26,23,20,.05);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Newsreader', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 30px; height: 30px;
  background: var(--terracotta);
  border-radius: 4px;
  display: grid; place-items: center;
  color: var(--paper);
  font-weight: 700;
  font-size: 17px;
}
.nav-links {
  display: flex; gap: 4px; flex: 1;
}
.nav-link {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 130ms, color 130ms;
  white-space: nowrap;
}
.nav-link:hover { background: var(--cream); color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 500; background: var(--cream); }
.nav-cta { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-shrink: 0; }

/* ======== Buttons (new design) ======== */
.btn {
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 150ms, background 150ms, border-color 150ms;
  background: var(--ink); color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; }
.btn.primary { background: var(--terracotta); border-color: transparent; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { background: var(--paper); opacity: 1; }
.btn.lg { padding: 12px 22px; font-size: 15px; border-radius: 8px; }
.btn svg { width: 14px; height: 14px; stroke-width: 2; flex-shrink: 0; }

/* ======== Sections / layout ======== */
.section { padding: 80px 32px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin-bottom: 18px;
}
.section-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.section-lede { font-size: 17px; color: var(--ink-soft); margin-top: 18px; max-width: 640px; }

/* ======== Hero ======== */
.hero {
  padding: max(100px, 12vh) 32px max(80px, 8vh);
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hero-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(52px, 7vw, 84px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-trust {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-trust strong {
  color: var(--ink); font-weight: 600;
  font-family: 'Newsreader', serif; font-size: 22px;
  display: block; margin-bottom: 2px;
}
.hero-bg-orn {
  position: absolute;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 220px;
  color: var(--rule-soft);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}
.hero-bg-orn.left  { top: -20px; left: -30px; }
.hero-bg-orn.right { bottom: 10px; right: 55%; font-size: 160px; opacity: 0.5; }
.hero-inner { position: relative; z-index: 1; }

/* Hero visual — stylised app card */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 30px 80px -30px rgba(26,23,20,.25);
  transform: rotate(0.5deg);
}
.hv-row { display: flex; align-items: center; justify-content: space-between; }
.hv-eyebrow { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); }
.hv-title { font-family: 'Newsreader', serif; font-size: 26px; font-weight: 400; line-height: 1.05; }
.hv-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.hv-kpi { background: var(--paper); padding: 14px; }
.hv-kpi-label { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.hv-kpi-value { font-family: 'Newsreader', serif; font-size: 24px; font-weight: 400; line-height: 1; }
.hv-kpi-value .u { font-size: 12px; color: var(--ink-muted); }
.hv-spark { height: 22px; margin-top: 8px; }
.hv-chart { flex: 1; min-height: 90px; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 14px; display: flex; flex-direction: column; }
.hv-chart-title { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.hv-chart-svg { flex: 1; width: 100%; }

/* ======== Logo strip ======== */
.logo-strip {
  padding: 36px 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.logo-strip-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 40px;
  flex-wrap: wrap; justify-content: space-between;
}
.logo-label { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); flex-shrink: 0; }
.logo-item { font-family: 'Newsreader', serif; font-size: 20px; font-weight: 500; color: var(--ink-muted); letter-spacing: -0.01em; }
.logo-item.italic { font-style: italic; }
.logo-item.allcaps { font-family: 'Geist', sans-serif; font-weight: 600; letter-spacing: 0.18em; font-size: 12px; }

/* ======== Feature grid ======== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 56px;
}
.feature {
  background: var(--paper);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  transition: background 140ms;
}
.feature:hover { background: var(--card); }
.feature-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--terracotta); letter-spacing: 0.1em; }
.feature-title { font-family: 'Newsreader', serif; font-size: 26px; font-weight: 400; line-height: 1.15; letter-spacing: -0.015em; }
.feature-body { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.feature-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--cream);
  border-radius: 6px;
  color: var(--terracotta);
  flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; stroke-width: 1.6; }

/* ======== Showcase (dark section) ======== */
.showcase {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 32px;
}
.showcase-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center;
}
.showcase-eyebrow { color: var(--ochre); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; }
.showcase-title { font-family: 'Newsreader', serif; font-size: clamp(36px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 400; }
.showcase-title em { color: var(--ochre); }
.showcase-body { font-size: 16px; color: rgba(244,237,224,.7); line-height: 1.6; margin-top: 20px; max-width: 480px; }
.showcase-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.showcase-list-item { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: rgba(244,237,224,.85); }
.showcase-check { width: 18px; height: 18px; border: 1px solid var(--ochre); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.showcase-check svg { width: 10px; height: 10px; stroke: var(--ochre); }
.showcase-img {
  background: var(--paper);
  border-radius: 10px;
  aspect-ratio: 16/11;
  padding: 20px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.5);
}
.showcase-sb { background: var(--bone); border-radius: 6px; padding: 12px 8px; display: flex; flex-direction: column; gap: 5px; }
.showcase-sb-item { padding: 5px 8px; font-size: 10px; color: var(--ink-soft); border-radius: 4px; }
.showcase-sb-item.active { background: var(--ink); color: var(--paper); }
.showcase-main { display: flex; flex-direction: column; gap: 10px; }
.showcase-main-h { font-family: 'Newsreader', serif; font-size: 20px; }
.showcase-main-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.showcase-tile { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 8px; }
.showcase-tile-l { font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.showcase-tile-v { font-family: 'Newsreader', serif; font-size: 17px; line-height: 1; margin-top: 4px; }
.showcase-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: 1; }
.showcase-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.showcase-card-img {
  aspect-ratio: 4/3;
  background: var(--cream);
  background-image: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(26,23,20,.06) 4px, rgba(26,23,20,.06) 5px);
}
.showcase-card-pad { padding: 6px 8px; }
.showcase-card-name { font-family: 'Newsreader', serif; font-size: 11px; line-height: 1.1; }
.showcase-card-meta { font-size: 8px; color: var(--ink-muted); margin-top: 1px; }

/* ======== Quote ======== */
.quote-section { padding: 100px 32px; }
.quote-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.quote-mark {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 140px;
  color: var(--terracotta);
  line-height: 0.6;
  margin-bottom: -20px;
}
.quote-text {
  font-family: 'Newsreader', serif;
  font-size: clamp(22px, 3.5vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 400;
  font-style: italic;
}
.quote-attr {
  margin-top: 36px;
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
}
.quote-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clay), var(--ochre));
  color: var(--paper);
  display: grid; place-items: center;
  font-weight: 600; font-size: 14px;
  flex-shrink: 0;
}
.quote-attr strong { color: var(--ink); font-weight: 600; }

/* ======== How it works ======== */
.how {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.step { padding: 24px 0; border-top: 1px solid var(--ink); }
.step-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-muted); margin-bottom: 16px; }
.step-title { font-family: 'Newsreader', serif; font-size: 30px; line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 12px; font-weight: 400; }
.step-body { font-size: 14.5px; color: var(--ink-soft); }

/* ======== Closing CTA ======== */
.cta {
  padding: 100px 32px;
  text-align: center;
  background: var(--bone);
  position: relative;
  overflow: hidden;
}
.cta-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.cta-sub { font-size: 17px; color: var(--ink-soft); margin: 20px auto 36px; max-width: 540px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-foot { margin-top: 24px; font-size: 12px; color: var(--ink-muted); }

/* ======== Footer ======== */
footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 60px 32px 32px;
}
.foot-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 40px;
}
.foot-brand { font-family: 'Newsreader', serif; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.foot-tag { font-size: 13px; color: var(--ink-muted); margin-top: 8px; max-width: 240px; line-height: 1.5; }
.foot-col h4 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; margin-bottom: 16px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 13.5px; color: var(--ink-soft); }
.foot-col a:hover { color: var(--terracotta); }
.foot-bottom {
  max-width: var(--max-w); margin: 60px auto 0;
  padding-top: 24px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ink-muted);
  flex-wrap: wrap; gap: 12px;
}

/* ======== Legal pages (Terms / Privacy) ======== */
.legal-hero {
  padding: max(80px, 10vh) 32px 48px;
  border-bottom: 1px solid var(--rule);
}
.legal-hero-inner { max-width: 720px; margin: 0 auto; }
.legal-hero .eyebrow { margin-bottom: 12px; }
.legal-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.1;
}
.legal-meta { font-size: 13px; color: var(--ink-muted); margin-top: 14px; }
.legal-body {
  max-width: 720px; margin: 64px auto 100px;
  padding: 0 32px;
}
.legal-body h2 {
  font-family: 'Newsreader', serif;
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.2;
  margin: 48px 0 14px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-body p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 16px; }
.legal-body ul, .legal-body ol {
  margin: 0 0 16px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.legal-body li { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 2px; }
.legal-toc {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 8px; padding: 24px 28px; margin-bottom: 48px;
}
.legal-toc p { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 500; margin-bottom: 12px; }
.legal-toc ol { margin: 0; gap: 6px; }
.legal-toc li { font-size: 13.5px; }
.legal-toc a { color: var(--ink-soft); text-decoration: none; }
.legal-toc a:hover { color: var(--terracotta); }

/* ======== About page ======== */
.about-hero {
  padding: max(100px, 12vh) 32px max(72px, 8vh);
}
.about-hero-inner { max-width: 980px; margin: 0 auto; }
.about-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(48px, 7.5vw, 92px);
  line-height: 0.98; letter-spacing: -0.03em; font-weight: 400;
  max-width: 900px;
}
.about-lede { font-size: 19px; color: var(--ink-soft); line-height: 1.65; max-width: 680px; margin-top: 32px; }
.drop-cap::first-letter {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 80px;
  float: left;
  line-height: 0.85;
  padding: 6px 12px 0 0;
  color: var(--terracotta);
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px;
  padding: 80px 32px; max-width: var(--max-w); margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.about-grid h3 { font-family: 'Newsreader', serif; font-size: 38px; font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
.about-grid p { font-size: 16px; color: var(--ink-soft); line-height: 1.75; margin-top: 20px; }
.about-grid p + p { margin-top: 16px; }

.principles {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 80px 32px;
}
.principles-inner { max-width: var(--max-w); margin: 0 auto; }
.principles-list { display: grid; grid-template-columns: 1fr 1fr; gap: 60px 80px; margin-top: 56px; }
.principle { display: flex; gap: 24px; }
.principle-num {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--terracotta); letter-spacing: 0.1em;
  padding-top: 6px; flex-shrink: 0; width: 32px;
}
.principle-title { font-family: 'Newsreader', serif; font-size: 28px; font-weight: 400; line-height: 1.15; letter-spacing: -0.015em; }
.principle-body { font-size: 14.5px; color: var(--ink-soft); margin-top: 10px; line-height: 1.6; }

.team-section { padding: 80px 32px; max-width: var(--max-w); margin: 0 auto; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.team-solo { max-width: 320px; margin-top: 48px; }
.team-photo {
  aspect-ratio: 4/5;
  background: var(--cream);
  background-image: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(26,23,20,.05) 8px, rgba(26,23,20,.05) 9px);
  border-radius: 6px;
  margin-bottom: 14px;
  position: relative;
}
.team-photo .corner {
  position: absolute; bottom: 8px; left: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--ink-muted);
}
.team-name { font-family: 'Newsreader', serif; font-size: 22px; font-weight: 500; line-height: 1.15; }
.team-role { font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }
.team-bio { font-size: 13px; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; }

.numbers { padding: 80px 32px; background: var(--ink); color: var(--paper); }
.numbers-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,.06);
}
.number { background: var(--ink); padding: 32px; }
.number-value { font-family: 'Newsreader', serif; font-size: 64px; line-height: 1; letter-spacing: -0.025em; font-weight: 400; }
.number-value .u { color: var(--ochre); }
.number-label { font-size: 12px; color: rgba(244,237,224,.55); margin-top: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ======== Pricing page ======== */
.pricing-hero { padding: max(100px, 12vh) 32px 48px; text-align: center; }
.pricing-hero-inner { max-width: 880px; margin: 0 auto; }
.pricing-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1; letter-spacing: -0.03em; font-weight: 400;
}
.pricing-sub { font-size: 18px; color: var(--ink-soft); margin-top: 24px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.billing-toggle {
  display: inline-flex;
  margin-top: 40px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px;
  background: var(--paper);
}
.billing-toggle button {
  padding: 8px 20px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background 150ms, color 150ms;
}
.billing-toggle button.active { background: var(--ink); color: var(--paper); }
.save-badge {
  display: inline-block; margin-left: 8px;
  background: var(--moss); color: var(--paper);
  font-size: 10px; padding: 2px 6px; border-radius: 999px;
  font-weight: 600; letter-spacing: 0.05em;
}

/* Tier grid — 4 columns for our 4 tiers */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: var(--max-w);
  margin: 56px auto 0;
  padding: 0 32px;
}
.tier {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
}
.tier.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  position: relative;
}
.tier-flag {
  position: absolute;
  top: -10px; left: 28px;
  background: var(--terracotta); color: var(--paper);
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px; font-weight: 600;
}
.tier-name { font-family: 'Newsreader', serif; font-size: 28px; font-weight: 500; letter-spacing: -0.015em; }
.tier-tag { font-size: 13px; color: var(--ink-muted); margin-top: 6px; min-height: 40px; line-height: 1.4; }
.tier.featured .tier-tag { color: rgba(244,237,224,.6); }
.tier-price {
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex; align-items: baseline; gap: 4px;
  min-height: 80px; overflow: hidden;
}
.tier.featured .tier-price { border-top-color: rgba(244,237,224,.15); }
.tier-amount { font-family: 'Newsreader', serif; font-size: 32px; line-height: 1; letter-spacing: -0.025em; font-weight: 400; }
.tier-currency { font-size: 13px; color: var(--ink-muted); }
.tier.featured .tier-currency { color: rgba(244,237,224,.6); }
.tier-period { font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.tier.featured .tier-period { color: rgba(244,237,224,.6); }
.tier-free { font-family: 'Newsreader', serif; font-size: 40px; line-height: 1; letter-spacing: -0.025em; color: var(--moss); }
.tier-cta { margin-top: 22px; }
.tier-cta .btn { width: 100%; justify-content: center; padding: 12px; }
.tier.featured .btn.primary { background: var(--terracotta); }
.tier-features {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 12px; flex: 1;
}
.tier.featured .tier-features { border-top-color: rgba(244,237,224,.15); }
.tier-feat-label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 4px;
}
.tier.featured .tier-feat-label { color: rgba(244,237,224,.5); }
.tier-feat { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.tier-feat svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; color: var(--terracotta); stroke-width: 2.5; }
.tier.featured .tier-feat svg { color: var(--ochre); }

/* Compare table */
.compare-section { padding: 80px 32px; }
.compare-section-inner { max-width: var(--max-w); margin: 0 auto; }
.compare-table {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 8px; overflow: hidden; margin-top: 40px;
}
.compare-table table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 14px 20px; text-align: left;
  border-bottom: 1px solid var(--rule-soft); font-size: 13.5px;
}
.compare-table thead th {
  background: var(--cream); font-size: 12px;
  letter-spacing: 0.06em; color: var(--ink); font-weight: 600;
}
.compare-table thead th:not(:first-child) { text-align: center; }
.compare-table tbody td:not(:first-child) { text-align: center; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .group-row td {
  background: var(--bone);
  font-family: 'Newsreader', serif; font-style: italic; font-weight: 500;
  color: var(--ink); font-size: 14.5px; padding: 16px 20px;
}
.compare-table .check { color: var(--moss); font-size: 16px; }
.compare-table .dash { color: var(--ink-muted); }

/* FAQ */
.faq-section {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 80px 32px;
}
.faq-inner { max-width: 880px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--rule); padding: 24px 0; cursor: pointer; }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Newsreader', serif; font-size: 22px; line-height: 1.3; font-weight: 400;
}
.faq-a {
  font-size: 14.5px; color: var(--ink-soft); margin-top: 14px;
  line-height: 1.65; max-width: 720px; display: none;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-toggle {
  font-family: 'Newsreader', serif; font-size: 28px; color: var(--terracotta);
  transition: transform 200ms; line-height: 1; flex-shrink: 0; margin-left: 20px;
}

/* ======== Responsive ======== */
@media (max-width: 960px) {
  .hero-grid, .showcase-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .numbers-inner { grid-template-columns: repeat(2, 1fr); }
  .foot-inner { grid-template-columns: 1fr 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .section { padding: 56px 20px; }
  .hero { padding: 80px 20px 56px; }
  .showcase { padding: 56px 20px; }
  .about-hero { padding: 80px 20px 56px; }
  .pricing-hero { padding: 80px 20px 40px; }
  .hero-title, .cta-title, .about-title, .pricing-title { font-size: clamp(40px, 10vw, 64px); }
  .feature-grid, .steps, .tiers, .principles-list, .team-grid { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .compare-section-inner { overflow-x: auto; }
}

/* =============================================================
   AUTH / FORM STYLES
   Preserved so login.html, signup.html, verify_receipt.html
   continue to work with the new base_marketing.html.
============================================================= */

/* Backward-compat button aliases */
.btn-solid {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 6px;
  font-size: 13.5px; font-weight: 500; color: #fff;
  background: var(--terracotta); text-decoration: none;
  border: 1px solid transparent; transition: opacity 120ms;
  font-family: inherit; cursor: pointer; white-space: nowrap;
}
.btn-solid:hover { opacity: .88; color: #fff; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 6px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  background: transparent; border: 1px solid var(--rule);
  text-decoration: none; transition: background 120ms, border-color 120ms, color 120ms;
  font-family: inherit; cursor: pointer; white-space: nowrap;
}
.btn-outline:hover { background: var(--rule-soft); border-color: var(--ink-muted); color: var(--ink); }
.btn-ghost-compat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 6px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; border: 1px solid transparent;
  transition: background 120ms, border-color 120ms, color 120ms;
  font-family: inherit; cursor: pointer; background: none; white-space: nowrap;
}
.btn-ghost-compat:hover { background: var(--rule-soft); border-color: var(--rule); color: var(--ink); }
.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: 8px; }
.btn-full { width: 100%; justify-content: center; }

/* Auth page layout */
.auth-wrap {
  flex: 1; display: flex;
  align-items: center; justify-content: center;
  padding: 56px 20px 72px;
}
.auth-card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 12px; box-shadow: var(--shadow-md);
  width: 100%; padding: 36px 32px;
}
.auth-card-sm { max-width: 420px; }
.auth-card-md { max-width: 560px; }
.auth-card-lg { max-width: 680px; }
.auth-brand-header {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; margin-bottom: 28px;
}
.auth-brand-mark {
  width: 36px; height: 36px; background: var(--terracotta);
  border-radius: 7px; display: grid; place-items: center;
  color: var(--paper); font-family: 'Newsreader', serif;
  font-weight: 600; font-size: 20px;
}
.auth-title {
  font-family: 'Newsreader', serif; font-size: 26px; font-weight: 400;
  letter-spacing: -.015em; color: var(--ink); text-align: center; margin: 0;
}
.auth-subtitle { font-size: 13.5px; color: var(--ink-muted); text-align: center; margin-top: 4px; }
.auth-divider { border: none; border-top: 1px solid var(--rule-soft); margin: 24px 0; }
.form-section-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-muted); margin: 20px 0 12px;
}
.auth-footer-note { text-align: center; font-size: 13px; color: var(--ink-muted); margin-top: 20px; }
.auth-footer-note a { color: var(--terracotta); font-weight: 500; }
.auth-footer-note a:hover { text-decoration: underline; }

/* Form controls */
.form-label, label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--ink); margin-bottom: 5px;
}
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="url"],
input[type="search"], select, textarea, .form-control {
  display: block; width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--rule); border-radius: 7px;
  background: var(--card); color: var(--ink);
  font-family: inherit; font-size: 14px; line-height: 1.5;
  outline: none; transition: border-color 150ms, box-shadow 150ms;
  appearance: none; -webkit-appearance: none;
}
input[type="text"]:focus, input[type="email"]:focus,
input[type="password"]:focus, input[type="tel"]:focus,
input[type="number"]:focus, input[type="url"]:focus,
input[type="search"]:focus, select:focus, textarea:focus,
.form-control:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(184,84,58,.10);
}
input.is-invalid, .form-control.is-invalid { border-color: var(--terracotta); }
input[type="checkbox"], input[type="radio"] {
  width: auto; accent-color: var(--terracotta); cursor: pointer;
}
textarea { resize: vertical; min-height: 80px; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8275' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 32px; cursor: pointer;
}
.form-text { display: block; font-size: 12px; color: var(--ink-muted); margin-top: 4px; line-height: 1.45; }
.field-error, .text-danger, .errorlist li, .invalid-feedback {
  display: block; font-size: 12px; color: var(--terracotta); margin-top: 4px;
}
.errorlist { list-style: none; padding: 0; margin: 4px 0 0; }
.form-check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.form-check input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.form-check-label { font-size: 13px; color: var(--ink-soft); cursor: pointer; font-weight: 400; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .input-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--ink-muted); font-size: 13px; pointer-events: none;
}
.input-icon-wrap input { padding-left: 34px; }

/* Alerts */
.alert {
  padding: 12px 16px; border-radius: 8px; font-size: 13.5px;
  border: 1px solid transparent; margin-bottom: 16px; line-height: 1.5;
}
.alert-danger, .alert-error {
  background: rgba(184,84,58,.07); color: var(--terracotta);
  border-color: rgba(184,84,58,.22);
}
.alert-success { background: rgba(90,107,63,.08); color: var(--moss); border-color: rgba(90,107,63,.22); }
.alert-warning { background: rgba(199,149,68,.10); color: #8a651e; border-color: rgba(199,149,68,.25); }
.alert-info { background: rgba(90,107,63,.06); color: var(--moss); border-color: rgba(90,107,63,.18); }
.alert-heading { font-family: 'Newsreader', serif; font-size: 17px; font-weight: 500; margin-bottom: 6px; }

/* Grid helpers */
.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.row.g-3 { margin: -6px; }
.row.g-3 > [class*="col"] { padding: 6px; }
[class*="col"] { padding: 0 8px; min-width: 0; }
.col-12 { width: 100%; }
.col-6  { width: 50%; }
@media (min-width: 520px) { .col-sm-6 { width: 50%; } }
@media (max-width: 519px) { .col-sm-6, .col-6 { width: 100%; } }

/* Utility classes */
.text-center   { text-align: center; }
.text-muted    { color: var(--ink-muted); }
.text-danger   { color: var(--terracotta); }
.text-success  { color: var(--moss); }
.text-terra    { color: var(--terracotta); }
.small, .fs-sm { font-size: 12.5px; }
.fw-normal     { font-weight: 400; }
.fw-medium     { font-weight: 500; }
.fw-bold       { font-weight: 600; }
.fst-italic    { font-style: italic; }
.d-none        { display: none; }
.d-block       { display: block; }
.d-flex        { display: flex; }
.align-items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }
.ms-auto { margin-left: auto; }
.me-1 { margin-right: 4px; }
.me-2 { margin-right: 8px; }
.p-0 { padding: 0; }

/* mkt-page shim — used by verify_receipt and any inline overrides */
.mkt-page { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 4px 6px; color: var(--ink); font-size: 17px; margin-left: auto;
}
@media (max-width: 680px) {
  .nav-toggle { display: flex; align-items: center; }
  .nav { height: auto; min-height: var(--nav-h); }
  .nav-inner { flex-wrap: wrap; padding: 0 20px; gap: 0; align-items: center; min-height: var(--nav-h); }
  .brand { flex: 1; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start;
    width: 100%; padding: 8px 0 4px; gap: 2px;
    border-top: 1px solid var(--rule-soft);
  }
  .nav-links.open { display: flex; }
  .nav-cta {
    display: none; flex-direction: column; width: 100%;
    gap: 8px; padding: 8px 0 12px; border-top: 1px solid var(--rule-soft);
    margin-left: 0;
  }
  .nav-cta.open { display: flex; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-link { width: 100%; }
}
