/* ============================================================
   Rally shared styles
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --green-50:  #ecfdf3;
  --green-100: #d1fadf;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;

  --ink-900: #0b1220;
  --ink-800: #111827;
  --ink-700: #1f2937;
  --ink-500: #4b5563;
  --ink-400: #6b7280;
  --ink-300: #9ca3af;

  --bg:       #ffffff;
  --bg-soft:  #fafafa;
  --bg-tint:  #f5f7f6;
  --line:     #eceff3;

  --radius-sm: 12px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --shadow:    0 8px 24px rgba(16,24,40,.06), 0 2px 4px rgba(16,24,40,.04);
  --shadow-lg: 0 24px 60px rgba(16,24,40,.12), 0 8px 24px rgba(16,24,40,.06);

  --container: 1200px;
  --section-y: clamp(64px, 9vw, 120px);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-800);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}
section { padding-block: var(--section-y); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  will-change: transform;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-dark {
  background: var(--ink-900);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11,18,32,.18);
}
.btn-dark:hover { background: #000; box-shadow: 0 10px 22px rgba(11,18,32,.22); }
.btn-light {
  background: #fff;
  color: var(--ink-900);
  border: 1px solid var(--line);
}
.btn-light:hover { border-color: #d8dde3; }
.btn-ghost {
  background: transparent;
  color: var(--ink-800);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-tint); }
.btn-green {
  background: var(--green-600);
  color: #fff;
  box-shadow: 0 6px 16px rgba(34,197,94,.28);
}
.btn-green:hover { background: var(--green-700); box-shadow: 0 10px 22px rgba(34,197,94,.32); }
.btn-disabled {
  background: #f1f3f5;
  color: var(--ink-400);
  cursor: not-allowed;
  border: 1px solid var(--line);
}
.btn-disabled:hover { transform: none; }

.btn .icon { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(180deg, #28c768 0%, #15a34c 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.08), 0 4px 10px rgba(34,197,94,.25);
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  color: var(--ink-500);
  font-weight: 500;
  font-size: 15px;
  transition: color .15s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink-900); }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  align-items: center; justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink-800);
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink-800);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after  { top:  6px; }

.nav-mobile {
  display: none;
  padding: 16px 0 24px;
  border-top: 1px solid var(--line);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 12px 0;
  color: var(--ink-700);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile .btn { width: 100%; margin-top: 16px; padding: 14px 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px) clamp(64px, 9vw, 120px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(34,197,94,.10), transparent 60%),
    radial-gradient(700px 400px at 10% 80%, rgba(34,197,94,.06), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink-900);
}
.hero h1 .accent { color: var(--green-600); }
.hero p.lead {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-500);
  max-width: 520px;
  margin: 0 0 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  margin-top: 48px;
  max-width: 560px;
}
.stat {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .value {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.stat .label { color: var(--ink-400); font-size: 13px; margin-top: 2px; line-height: 1.35; }

/* ---------- Phone mockup ---------- */
.phone-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
  aspect-ratio: 380 / 760;
}
.phone {
  position: absolute;
  inset: 0;
  background: #0e1f17;
  border-radius: 48px;
  padding: 14px;
  box-shadow:
    0 50px 80px -20px rgba(8, 30, 18, .35),
    0 20px 40px -12px rgba(8, 30, 18, .25),
    inset 0 0 0 2px rgba(255,255,255,.04);
}
.phone::before {
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 4;
}
.screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 50% -10%, #2bb866 0%, transparent 60%),
    linear-gradient(180deg, #1a8f4f 0%, #0f6b3a 100%);
  color: #fff;
  padding: 56px 22px 18px;
  display: flex; flex-direction: column;
}
.screen .greeting { font-size: 13px; opacity: .85; }
.screen .name {
  font-size: 26px; font-weight: 800; letter-spacing: -0.01em; margin-top: 2px;
}
.screen .avatar {
  position: absolute; top: 56px; right: 22px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  display: grid; place-items: center;
  color: rgba(255,255,255,.9);
}
.screen .avatar svg { width: 20px; height: 20px; }

.screen .card {
  margin-top: 22px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(6px);
}
.screen .card .title-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; opacity: .85;
}
.screen .card .time {
  font-size: 22px; font-weight: 700; margin-top: 6px;
}
.screen .card .meta {
  font-size: 13px; opacity: .8; margin-top: 4px;
}
.screen .players {
  margin-top: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 16px;
}
.screen .players .title { font-size: 13px; opacity: .85; }
.avatars { display: flex; margin-top: 12px; }
.avatars .a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.32);
  border: 2px solid #1a8f4f;
  margin-left: -10px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
.avatars .a:first-child { margin-left: 0; }
.avatars .more { background: rgba(255,255,255,.22); }

.tabbar {
  margin-top: auto;
  display: grid; grid-template-columns: repeat(4,1fr);
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  font-size: 11px;
  opacity: .9;
}
.tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tabbar .tab .ico {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: grid; place-items: center;
  color: rgba(255,255,255,.95);
}
.tabbar .tab .ico svg { width: 14px; height: 14px; }
.tabbar .tab.active .ico { background: rgba(255,255,255,.32); }

/* Floating notifications */
.notif {
  position: absolute;
  background: #fff;
  color: var(--ink-800);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  display: flex; align-items: flex-start; gap: 10px;
  z-index: 5;
  max-width: 230px;
}
.notif strong { display: block; font-size: 13px; }
.notif span { color: var(--ink-400); font-size: 12px; }
.notif .emoji { font-size: 16px; line-height: 1; padding-top: 1px; }
.notif-1 { top: 28%; left: -28px; animation: float 6s ease-in-out infinite; }
.notif-2 { top: 60%; right: -28px; animation: float 7s ease-in-out infinite reverse; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ---------- Section heads ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink-900);
  margin: 0 0 16px;
}
.section-head h2 .accent { color: var(--green-600); }
.section-head p {
  color: var(--ink-500);
  font-size: clamp(15px, 1.2vw, 17px);
  margin: 0;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 14px;
}

/* ---------- Features ---------- */
.features { background: var(--bg-soft); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: #dde6df;
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-50);
  color: var(--green-600);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 {
  font-size: 19px; font-weight: 700;
  margin: 0 0 8px; letter-spacing: -0.01em;
  color: var(--ink-900);
}
.feature-card p {
  margin: 0; color: var(--ink-500); font-size: 15px;
}

/* ---------- How it works ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
}
.steps::before {
  content: "";
  position: absolute;
  top: 44px; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #c6f0d4 12%, #c6f0d4 88%, transparent 100%);
  z-index: 0;
}
.step {
  position: relative;
  text-align: center;
  z-index: 1;
}
.step-num {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green-500);
  color: var(--green-600);
  font-weight: 800;
  font-size: 24px;
  display: grid; place-items: center;
  margin: 0 auto 20px;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 6px rgba(34,197,94,.06);
}
.step h3 {
  font-size: 20px; font-weight: 700;
  margin: 0 0 10px; letter-spacing: -0.01em;
  color: var(--ink-900);
}
.step p {
  margin: 0 auto;
  color: var(--ink-500);
  font-size: 15px;
  max-width: 280px;
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-soft); }
.testi-note {
  text-align: center;
  margin: -32px auto 40px;
  font-size: 13px;
  color: var(--ink-400);
  max-width: 600px;
}
.testi-note .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  color: var(--ink-700);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}
.testi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 18px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.testi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.testi-head { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px;
}
.testi-name { font-weight: 700; color: var(--ink-900); }
.testi-role { color: var(--ink-400); font-size: 14px; }
.testi-quote { color: var(--ink-700); font-style: italic; margin: 0; font-size: 15px; }
.stars { color: #f5b400; letter-spacing: 4px; font-size: 14px; }

/* ---------- CTA ---------- */
.cta-band {
  background:
    radial-gradient(900px 400px at 80% 20%, rgba(34,197,94,.18), transparent 60%),
    radial-gradient(700px 350px at 10% 90%, rgba(34,197,94,.10), transparent 60%),
    var(--ink-900);
  color: #fff;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 18px;
}
.cta-band h2 .accent { color: #4ade80; }
.cta-band p { color: #cbd5e1; max-width: 560px; margin: 0 auto 32px; font-size: 17px; }
.cta-band .cta-buttons {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.cta-fineprint { margin-top: 18px; color: #94a3b8; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 64px 32px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--ink-400);
  font-size: 14px;
  max-width: 280px;
  margin: 14px 0 0;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a { color: var(--ink-400); font-size: 14px; transition: color .15s ease; }
.footer-col a:hover { color: var(--ink-900); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-400);
  font-size: 14px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-social { display: flex; gap: 24px; }
.footer-social a:hover { color: var(--ink-900); }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 110px) clamp(40px, 6vw, 72px);
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(34,197,94,.10), transparent 60%);
  pointer-events: none;
}
.page-hero h1 {
  position: relative;
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink-900);
  margin: 0 0 18px;
}
.page-hero h1 .accent { color: var(--green-600); }
.page-hero p {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  color: var(--ink-500);
  font-size: clamp(16px, 1.3vw, 18px);
}

/* ---------- Form ---------- */
.form-section { padding-block: clamp(40px, 6vw, 80px) var(--section-y); }
.form-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.form-row { display: grid; gap: 16px; margin-bottom: 16px; }
.form-row.two-col { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}
.field .hint { font-size: 12px; color: var(--ink-400); }
.form-card .btn { width: 100%; padding: 16px 22px; font-size: 16px; margin-top: 8px; }
.form-success {
  display: none;
  text-align: center;
  padding: 32px 24px;
}
.form-success.show { display: block; }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-50); color: var(--green-600);
  display: grid; place-items: center;
  margin: 0 auto 20px;
}
.form-success h3 {
  font-size: 24px; font-weight: 800; margin: 0 0 8px;
  color: var(--ink-900); letter-spacing: -0.01em;
}
.form-success p { color: var(--ink-500); margin: 0; }

/* Why join list */
.why-list {
  max-width: 560px;
  margin: 40px auto 0;
  display: grid; gap: 14px;
}
.why-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.why-item .check {
  width: 28px; height: 28px; flex: none;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: grid; place-items: center;
}
.why-item .check svg { width: 16px; height: 16px; }
.why-item .body strong { display: block; color: var(--ink-900); margin-bottom: 2px; }
.why-item .body span { color: var(--ink-500); font-size: 14px; }

/* ---------- About / Story ---------- */
.story {
  max-width: 720px;
  margin: 0 auto;
}
.story-intro {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-700);
  text-align: center;
  margin: 0 0 56px;
  line-height: 1.5;
}
.dialog { display: grid; gap: 28px; }
.dialog-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: flex-start;
}
.dialog-row .who {
  position: sticky; top: 96px;
  text-align: right;
  font-weight: 700;
  color: var(--green-700);
  font-size: 15px;
  padding-top: 4px;
}
.dialog-row .said {
  color: var(--ink-700);
  font-size: 17px;
  line-height: 1.65;
  padding-left: 20px;
  border-left: 2px solid var(--green-100);
}
.dialog-row .said em { font-style: normal; color: var(--ink-900); font-weight: 600; }

.founders-band {
  background: var(--bg-soft);
}
.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.founder-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.founder-avatar {
  width: 128px; height: 128px;
  border-radius: 50%;
  background: var(--green-50);
  margin: 0 auto 20px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--green-100);
  overflow: hidden;
}
.founder-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}
.founder-card h3 { margin: 0 0 4px; font-size: 22px; color: var(--ink-900); }
.founder-card .role { color: var(--ink-400); font-size: 14px; margin: 0 0 14px; }
.founder-card p.bio { color: var(--ink-500); font-size: 15px; margin: 0; }

/* ---------- Long-form (privacy/terms) ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink-700);
  font-size: 16px;
  line-height: 1.7;
}
.prose h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 28px 0 10px;
}
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose ul li { margin-bottom: 8px; }
.prose a { color: var(--green-700); border-bottom: 1px solid currentColor; }
.prose .meta {
  color: var(--ink-400);
  font-size: 14px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- About page ---------- */
.narrative {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.7;
  color: var(--ink-700);
  text-align: center;
}
.narrative p { margin: 0 0 16px; }
.narrative p:last-child { margin: 0; }
.narrative .lead-line {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 24px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}
.about-stat {
  text-align: center;
  padding: 36px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
}
.about-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #dde6df;
}
.about-stat .num {
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--green-600);
  line-height: 1;
  margin-bottom: 10px;
}
.about-stat .label {
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.4;
}

.connection-note {
  max-width: 640px;
  margin: 48px auto 0;
  text-align: center;
  padding: 24px 28px;
  background: var(--green-50);
  border: 1px solid #c6f0d4;
  border-radius: var(--radius-lg);
  color: var(--ink-700);
  font-size: 16px;
  line-height: 1.6;
}
.connection-note strong { color: var(--ink-900); }

.alt-band { background: var(--bg-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .feature-grid, .testi-grid, .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .founders-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .phone-wrap { width: min(86%, 320px); margin-top: 20px; }
  .stats { gap: 16px; }
  .stat { padding-left: 14px; }

  .feature-grid, .testi-grid, .steps { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }

  .form-row.two-col { grid-template-columns: 1fr; }
  .dialog-row { grid-template-columns: 1fr; gap: 8px; }
  .dialog-row .who { position: static; text-align: left; }
  .dialog-row .said { padding-left: 16px; }

  .about-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
