/* ==========================================================================
   Harvey — Design System
   Purple/pink brand, card UI, conic-gradient progress rings, no clutter.
   ========================================================================== */

:root {
  /* Brand */
  --harvey-purple: #6c4cff;
  --harvey-purple-dark: #5636d8;
  --harvey-pink: #ff5ca8;
  --harvey-gradient: linear-gradient(135deg, var(--harvey-purple) 0%, var(--harvey-pink) 100%);

  /* Neutrals */
  --ink: #1c1730;
  --ink-soft: #4a435f;
  --paper: #ffffff;
  --paper-tint: #faf9ff;
  --line: #ece9f7;
  --line-soft: #f2f0fa;

  /* Accents (kid-friendly point colors) */
  --accent-green: #2ecc8f;
  --accent-yellow: #ffb94d;
  --accent-blue: #4d9bff;

  /* Layout */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 8px 24px rgba(108, 76, 255, 0.08);
  --shadow-card-hover: 0 14px 32px rgba(108, 76, 255, 0.14);
  --max-width: 1160px;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body.harvey {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #f6f4fc; /* soft lavender, matches the app's own background */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--harvey-purple); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; color: var(--ink-soft); }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--harvey-purple);
  background: var(--line-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--harvey-gradient);
  color: #fff;
  box-shadow: 0 10px 24px rgba(108, 76, 255, 0.28);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(108, 76, 255, 0.36); }
.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--line);
}
.btn-secondary:hover { border-color: var(--harvey-purple); color: var(--harvey-purple); }
.btn-lg { padding: 16px 34px; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,244,252,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Logo mark — a round emoji chip, same icon language as the app itself
   (Points 🏆, Wallet 💰, Days Until ⏳ are all native emoji in-app; the
   hedgehog mark follows the same approach instead of a drawn icon). */
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--harvey-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 16px rgba(108, 76, 255, 0.28);
  flex-shrink: 0;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
}
.site-logo img { height: 36px; width: auto; }

/* ---------- Nav: clean icon pills, no dropdowns ---------- */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a .nav-icon { font-size: 1.05rem; line-height: 1; }
.main-nav a:hover {
  color: var(--harvey-purple);
  background: var(--line-soft);
  text-decoration: none;
}

.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  background: radial-gradient(120% 120% at 10% 0%, #f5f1ff 0%, #ffffff 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-copy p.lead { font-size: 1.2rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-mascot {
  display: flex; justify-content: center; align-items: center;
}
.hero-mascot img { max-width: 380px; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.feature-card .icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--harvey-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

/* ---------- Progress rings (signature element) ---------- */
.progress-ring {
  --pct: 25;
  --ring-color: var(--harvey-purple);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--pct) * 1%), var(--line) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.progress-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: var(--paper);
  border-radius: 50%;
}
.progress-ring .ring-value {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
}
.progress-ring.sm { width: 72px; height: 72px; }
.progress-ring.sm .ring-value { font-size: 0.85rem; }

/* ---------- Section spacing ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--paper-tint); }
.section-header { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section-header.left { margin: 0 0 40px; text-align: left; }

/* ---------- Feature rows (Features page) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse .feature-visual { order: 2; }
@media (max-width: 860px) {
  .feature-row, .feature-row.reverse .feature-visual { grid-template-columns: 1fr; order: 0; }
  .feature-row { grid-template-columns: 1fr; }
}
.feature-visual img {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

/* ---------- Placeholder screenshot frame ---------- */
.placeholder-shot {
  border: 2px dashed #c9bcff;
  border-radius: var(--radius-md);
  background: var(--paper-tint);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.placeholder-shot .label {
  font-weight: 700;
  color: var(--harvey-purple);
  font-size: 0.95rem;
}
.placeholder-shot .sub {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ---------- Pricing ---------- */
.pricing-card {
  text-align: center;
  border: 2px solid var(--harvey-purple);
  position: relative;
  overflow: hidden;
}
.pricing-card .price {
  font-size: 3.2rem;
  font-weight: 800;
  margin: 16px 0 4px;
}
.pricing-card .price span { font-size: 1.1rem; font-weight: 600; color: var(--ink-soft); }
.pricing-card ul { list-style: none; padding: 0; margin: 24px 0; text-align: left; }
.pricing-card li { padding: 8px 0; color: var(--ink-soft); }
.pricing-card li::before { content: "✓ "; color: var(--accent-green); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  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-size: 1.4rem; color: var(--harvey-purple); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 14px; }

/* ---------- Forms (Request Access) ---------- */
.harvey-form { max-width: 560px; margin: 0 auto; }
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.92rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--paper);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--harvey-purple);
}
.form-success {
  background: #f1fbf6;
  border: 1px solid #bdeeda;
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}
.form-error { color: #d64545; font-weight: 600; margin-top: 12px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--harvey-gradient);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: #fff;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .btn-secondary { background: #fff; color: var(--harvey-purple); border: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d6d1ec;
  padding: 56px 0 28px;
  margin-top: 40px;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Pill stat row (same visual language as the app's own
   "MONTHS / WEEKS / DAYS" countdown units) ---------- */
.stat-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 32px 0;
}
.stat-pill {
  background: rgba(255,255,255,0.16);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  text-align: center;
  min-width: 92px;
}
.stat-pill .n { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; }
.stat-pill .label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.85); margin-top: 2px; }
.stat-band {
  background: var(--harvey-gradient);
  border-radius: var(--radius-lg);
  padding: 40px 32px 24px;
  text-align: center;
  color: #fff;
}
.stat-band h3 { color: #fff; margin-bottom: 0; }

/* ---------- Demo page embed ---------- */
.demo-frame-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  background: var(--paper-tint);
}
.demo-frame-wrap iframe { width: 100%; height: 720px; border: none; display: block; }
