/* PagePup landing — brand tokens mirror the iOS app's design system */
:root {
  --brand-cream: #F8F2E0;
  --brand-cream-deep: #F1E8CD;
  --brand-primary: #E8B33D;
  --brand-secondary: #2D6D4E;
  --brand-secondary-soft: #68A781;
  --brand-ink: #1F2A25;
  --brand-text: #1F2A25;
  --brand-muted: rgba(31, 42, 37, 0.65);
  --brand-line: rgba(31, 42, 37, 0.10);
  --brand-card: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(31, 42, 37, 0.06), 0 4px 12px rgba(31, 42, 37, 0.04);
  --shadow-md: 0 2px 8px rgba(31, 42, 37, 0.08), 0 12px 32px rgba(31, 42, 37, 0.08);
  --shadow-lg: 0 4px 16px rgba(31, 42, 37, 0.10), 0 24px 64px rgba(31, 42, 37, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 56px;
  --space-2xl: 96px;
  --content-max: 1140px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--brand-text);
  background: var(--brand-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-secondary); text-decoration: none; transition: opacity 0.18s ease, color 0.18s ease; }
a:hover { opacity: 0.78; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* Headings — Fraunces for display, Atkinson for body */
h1, h2, h3, h4, .display, .title {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand-ink);
  margin: 0;
}
.display {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.display em {
  font-style: italic;
  font-weight: 600;
  color: var(--brand-secondary);
  background: linear-gradient(180deg, transparent 70%, rgba(232,179,61,0.35) 70%);
  padding: 0 4px;
}
.title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}
.title em {
  font-style: italic;
  color: var(--brand-secondary);
}
.subtitle {
  color: var(--brand-muted);
  font-size: 1.08rem;
  max-width: 640px;
  margin: 0 0 var(--space-lg) 0;
}
.lede {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--brand-text);
  margin: 0 0 var(--space-lg) 0;
  max-width: 540px;
}
p { margin: 0 0 var(--space-md) 0; }

.eyebrow {
  display: inline-block;
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  background: rgba(45, 109, 78, 0.10);
  border: 1px solid rgba(45, 109, 78, 0.22);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: var(--space-md);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 242, 224, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--brand-line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-ink);
  font-weight: 700;
}
.brand-icon { border-radius: 8px; box-shadow: var(--shadow-sm); }
.brand-name {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}
.nav-links a {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--brand-text);
}
.nav-links a:hover { color: var(--brand-secondary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand-secondary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #25593f; box-shadow: var(--shadow-md); opacity: 1; }
.btn-ghost {
  background: transparent;
  color: var(--brand-secondary);
  border-color: rgba(45, 109, 78, 0.30);
}
.btn-ghost:hover { background: rgba(45, 109, 78, 0.06); opacity: 1; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

/* Hero */
.hero {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-2xl);
  align-items: center;
}
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-blob {
  position: absolute;
  inset: 8%;
  background: radial-gradient(circle at 35% 30%, rgba(232,179,61,0.32), transparent 60%),
              radial-gradient(circle at 70% 75%, rgba(104,167,129,0.28), transparent 55%);
  border-radius: 50%;
  filter: blur(10px);
}
.hero-mascot {
  position: relative;
  width: 86%;
  max-width: 420px;
  filter: drop-shadow(0 14px 40px rgba(31,42,37,0.18));
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-pills li {
  background: var(--brand-card);
  border: 1px solid var(--brand-line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--brand-text);
  box-shadow: var(--shadow-sm);
}

/* Sections */
.section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}
.section-cream {
  background: var(--brand-cream-deep);
}
.section-cta {
  padding-bottom: var(--space-2xl);
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.step {
  background: var(--brand-card);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--brand-ink);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}
.step h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.step p {
  color: var(--brand-muted);
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.feature {
  background: var(--brand-card);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(232,179,61,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feature h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature p {
  color: var(--brand-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}
.pill {
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}
.pill.pro {
  background: var(--brand-primary);
  color: var(--brand-ink);
}

/* Privacy */
.privacy-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-2xl);
  align-items: center;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--brand-text);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-secondary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote-card {
  background: var(--brand-card);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.quote-mascot {
  margin: 0 auto var(--space-md);
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 6px 20px rgba(31,42,37,0.12));
}
.quote {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--brand-ink);
  margin: 0 0 var(--space-md);
}
.quote-author {
  font-size: 0.9rem;
  color: var(--brand-muted);
  margin: 0;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 760px;
}
details {
  background: var(--brand-card);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  transition: box-shadow 0.18s ease;
}
details:hover { box-shadow: var(--shadow-sm); }
details[open] { box-shadow: var(--shadow-sm); }
summary {
  cursor: pointer;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--brand-ink);
  list-style: none;
  position: relative;
  padding-right: 30px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand-secondary);
  transition: transform 0.18s ease;
}
details[open] summary::after { content: '−'; }
details p {
  margin-top: var(--space-sm);
  color: var(--brand-muted);
  font-size: 0.96rem;
}

/* CTA / waitlist */
.cta-card {
  background: linear-gradient(155deg, #fff 0%, var(--brand-cream) 100%);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 760px;
  margin: 0 auto;
}
.cta-mascot {
  margin: 0 auto var(--space-md);
  width: 120px;
  filter: drop-shadow(0 8px 24px rgba(31,42,37,0.14));
}
.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  max-width: 460px;
  margin: 0 auto var(--space-sm);
}
.waitlist-form input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-line);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--brand-ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.waitlist-form input:focus {
  outline: none;
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 3px rgba(45,109,78,0.18);
}
.fine-print {
  font-size: 0.82rem;
  color: var(--brand-muted);
  margin: 0;
}

/* Footer */
.footer {
  background: var(--brand-ink);
  color: rgba(248, 242, 224, 0.85);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}
.footer .brand,
.footer .brand-name {
  color: var(--brand-cream);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: var(--space-2xl);
  align-items: start;
  padding-bottom: var(--space-xl);
}
.footer-tag {
  font-size: 1rem;
  color: rgba(248, 242, 224, 0.65);
  margin-top: var(--space-sm);
}
.footer-meta {
  font-size: 0.84rem;
  color: rgba(248, 242, 224, 0.45);
  margin: 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.footer-cols h4 {
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(248, 242, 224, 0.45);
  margin: 0 0 var(--space-md);
}
.footer-cols a {
  display: block;
  color: rgba(248, 242, 224, 0.85);
  font-size: 0.94rem;
  margin-bottom: 8px;
}
.footer-cols a:hover { color: var(--brand-primary); opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(248, 242, 224, 0.10);
  padding-top: var(--space-md);
  color: rgba(248, 242, 224, 0.45);
  font-size: 0.84rem;
}

/* Legal page typography */
.legal {
  background: var(--brand-cream);
  padding: var(--space-2xl) 0;
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--brand-card);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.legal-content h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: var(--space-sm);
}
.legal-content .updated {
  color: var(--brand-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
}
.legal-content h2 {
  font-size: 1.4rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}
.legal-content h3 {
  font-size: 1.1rem;
  margin-top: var(--space-lg);
  margin-bottom: 8px;
}
.legal-content p,
.legal-content li {
  font-size: 1rem;
  color: var(--brand-text);
  line-height: 1.65;
}
.legal-content ul {
  padding-left: 22px;
  margin-bottom: var(--space-md);
}
.legal-content a {
  text-decoration: underline;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-lg);
  font-size: 0.94rem;
  color: var(--brand-secondary);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .privacy-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .hero-art {
    aspect-ratio: 4 / 3;
  }
  .feature-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --space-xl: 40px;
    --space-2xl: 64px;
  }
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  .nav-links {
    gap: var(--space-md);
  }
  .nav-links a:not(:last-child) {
    display: none;
  }
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .display { font-size: clamp(2rem, 8vw, 2.6rem); }
  .lede { font-size: 1rem; }
  .hero-mascot { width: 70%; }
}

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