/* PitchPeek marketing + legal site — brand tokens mirror the Flutter app
   (lib/theme/colors.dart). Duolingo-ish: chunky rounded cards, soft shadows,
   cream canvas, friendly green. */

:root {
  --primary: #58CC02;
  --primary-dark: #46A302;
  --primary-deep: #367800;
  --primary-soft: #E8F8D6;
  --primary-soft-border: #C8E89F;
  --orange: #FF9051;
  --orange-dark: #E67637;
  --orange-soft: #FFE8D6;
  --orange-soft-border: #F5C9A0;
  --blue: #5BC0F8;
  --blue-soft: #DEF1FC;
  --yellow: #FFC845;
  --yellow-soft: #FFF1C2;
  --pink: #FF5A87;
  --pink-soft: #FFE0E8;
  --purple: #BBA6FF;
  --purple-soft: #EDE5FF;

  --cream: #FFF6E6;
  --cream-deep: #FFF8EC;
  --card: #FFFFFF;
  --ink: #2D3F2A;
  --ink-soft: #6E7B6B;
  --ink-muted: #9AAE96;
  --border: #E8E2D4;
  --border-shadow: #D9D2C2;

  --radius: 22px;
  --radius-lg: 30px;
  --shadow-card: 0 4px 0 var(--border-shadow);
  --shadow-soft: 0 10px 30px rgba(45, 63, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.4em;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1080px, 92vw); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 246, 230, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1.5px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid var(--border);
}
.brand-name {
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.3px;
}
.nav { display: flex; gap: 8px; align-items: center; }
.nav a {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 12px;
}
.nav a:hover { color: var(--ink); background: var(--cream-deep); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 13px 24px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 0 var(--primary-dark);
}
.btn-primary:hover { text-decoration: none; transform: translateY(1px); box-shadow: 0 3px 0 var(--primary-dark); }
.btn-primary:active { transform: translateY(4px); box-shadow: none; }
.btn-ghost {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--border-shadow);
}
.btn-ghost:hover { text-decoration: none; transform: translateY(1px); box-shadow: 0 3px 0 var(--border-shadow); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); }
.hero .lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 30ch;
  margin: 0 0 26px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-muted); }
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-art .blob {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle at 50% 40%, var(--primary-soft), transparent 70%);
  filter: blur(6px);
  z-index: 0;
}
.hero-art img {
  position: relative;
  z-index: 1;
  width: min(320px, 70vw);
  filter: drop-shadow(0 16px 24px rgba(45, 63, 42, 0.18));
}
.leaf {
  position: absolute;
  font-size: 26px;
  opacity: 0.9;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

/* ---------- Sections ---------- */
section.block { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); }
.section-head p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1.5px solid var(--primary-soft-border);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.feature .ico {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  font-size: 28px;
  border-radius: 16px;
  margin-bottom: 14px;
}
.feature h3 { font-size: 20px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.ico.green { background: var(--primary-soft); }
.ico.orange { background: var(--orange-soft); }
.ico.blue { background: var(--blue-soft); }
.ico.yellow { background: var(--yellow-soft); }
.ico.pink { background: var(--pink-soft); }
.ico.purple { background: var(--purple-soft); }

/* ---------- Vibe chips ---------- */
.vibes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.chip {
  font-weight: 800;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--card);
  box-shadow: 0 3px 0 var(--border-shadow);
}
.chip.green { background: var(--primary-soft); border-color: var(--primary-soft-border); color: var(--primary-deep); }
.chip.orange { background: var(--orange-soft); border-color: var(--orange-soft-border); color: var(--orange-dark); }
.chip.blue { background: var(--blue-soft); color: #2A88C0; }
.chip.yellow { background: var(--yellow-soft); color: #7A5810; }
.chip.pink { background: var(--pink-soft); color: #C13A66; }
.chip.purple { background: var(--purple-soft); color: #5C3D88; }

/* ---------- Steps ---------- */
.band { background: var(--cream-deep); border-top: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { text-align: center; }
.step .num {
  width: 46px; height: 46px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800; font-size: 20px;
  color: #fff; background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--primary-dark);
}
.step h3 { font-size: 19px; }
.step p { color: var(--ink-soft); margin: 0; font-size: 15px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #4FA844, #2E7F3E);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 46px 32px;
  text-align: center;
  box-shadow: 0 12px 0 #1F5A2E;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.9); margin: 0 auto 22px; max-width: 44ch; }
.cta-banner .btn-primary { background: #fff; color: var(--primary-deep); box-shadow: 0 4px 0 rgba(0,0,0,0.18); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 44px 0 56px;
  border-top: 1.5px solid var(--border);
  margin-top: 8px;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .brand-name { font-size: 19px; }
.site-footer .tag { color: var(--ink-soft); font-size: 14px; max-width: 30ch; margin-top: 6px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { color: var(--ink-soft); font-weight: 700; font-size: 15px; }
.copyright { color: var(--ink-muted); font-size: 13px; margin-top: 18px; width: 100%; }

/* ---------- Legal pages ---------- */
.legal {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 5vw, 56px);
  margin: 40px 0 56px;
}
.legal .updated { color: var(--ink-muted); font-size: 14px; margin-top: -8px; }
.legal h1 { font-size: clamp(30px, 4.5vw, 42px); }
.legal h2 { font-size: 22px; margin-top: 34px; }
.legal h3 { font-size: 18px; margin-top: 22px; }
.legal p, .legal li { color: #3c4a39; font-size: 16px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { font-weight: 700; }
.legal .toc {
  background: var(--cream-deep);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 22px 0 8px;
}
.legal .toc ol { margin: 8px 0 0; padding-left: 20px; }
.legal .pill-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px; color: var(--ink-soft);
  margin-bottom: 10px;
}
.callout {
  background: var(--primary-soft);
  border: 1.5px solid var(--primary-soft-border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero { padding: 40px 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { order: -1; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
}
