/* Parkle marketing site — mirrors the app's own design tokens
   (src/theme/colors.ts, src/theme/typography.ts) so the site and the
   app feel like the same product. */

/* The browser's own [hidden] rule and an author class rule of the same
   specificity (like .ios-modal-overlay's `display: flex` below) are a tie
   that the class wins regardless of source order — so the modal was
   showing for every visitor, not just after clicking its trigger button,
   and toggling the `hidden` attribute back on did nothing. !important
   forces `hidden` to always mean hidden, everywhere on the site. */
[hidden] { display: none !important; }

:root {
  --bg: #FFF8F0;
  --surface: #FFFFFF;
  --ink: #2B1B12;
  --ink-soft: #7A6657;
  --placeholder: #B7A594;
  --line: #EFE1D2;

  --coral: #FF6B4A;
  --coral-dark: #E14E2C;
  --gold: #FFC768;

  --dating: #FF5C8A;
  --dating-bg: #FFE3EA;

  --companion: #12A6A0;
  --companion-dark: #0C8481;
  --companion-bg: #D6F2F0;

  --couples: #8B6AC8;
  --couples-dark: #6B5590;
  --couples-bg: #EFE9FA;

  --warning-bg: #FFF3E8;
  --warning-text: #8A6A3D;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  scroll-behavior: smooth;
}

h1, h2, h3, .brand {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.nav .brand {
  font-size: 22px;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: 24px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-login {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav-login:hover { color: var(--ink); }
.btn-cta {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
}
.btn-cta:hover { background: var(--coral-dark); }
.btn-cta-lg {
  font-size: 16px;
  padding: 16px 32px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--gold) 0%, #FF8A50 50%, var(--dating) 100%);
  border-radius: 32px;
  padding: 72px 32px;
  text-align: center;
  color: #fff;
  margin: 12px 0 60px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.hero p {
  font-size: 17px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 32px;
  opacity: 0.95;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-actions .btn-cta {
  background: #fff;
  color: var(--coral-dark);
}
.hero-actions .btn-cta:hover { background: var(--gold); color: var(--ink); }
.hero-login {
  font-weight: 600;
  font-size: 14.5px;
  color: #fff;
  opacity: 0.9;
}
.hero-login:hover { opacity: 1; text-decoration: underline; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(43, 27, 18, 0.85);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}
.test-links {
  margin: 16px 0 0;
  font-size: 13px;
  color: #fff;
  opacity: 0.75;
}
.test-links a { color: #fff; font-weight: 600; opacity: 1; }
.test-links a:hover { text-decoration: underline; }

.install-btn {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
}
.install-btn:hover { background: rgba(255, 255, 255, 0.28); }
.install-btn-dark {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}
.install-btn-dark:hover { background: var(--bg); }
.ios-modal-copy-row { margin-top: 18px; }

.ios-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 27, 18, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.ios-modal {
  position: relative;
  background: var(--surface);
  color: var(--ink);
  border-radius: 20px;
  padding: 28px 26px;
  max-width: 360px;
  width: 100%;
}
.ios-modal h3 {
  margin: 0 0 16px;
  font-family: 'Fredoka', sans-serif;
  font-size: 19px;
}
.ios-modal ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ios-modal li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.4;
}
.ios-modal li svg { flex-shrink: 0; color: var(--coral-dark); }
.ios-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 16px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px;
}

/* ---------- Section headings ---------- */
.section { margin-bottom: 68px; }
.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--coral-dark);
  margin-bottom: 10px;
}
.section h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  margin-bottom: 14px;
}
.section .lead {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 620px;
}

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
}
.card .glyph {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.card.dating .glyph { background: var(--dating-bg); color: var(--dating); }
.card.companion .glyph { background: var(--companion-bg); color: var(--companion-dark); }
.card.couples .glyph { background: var(--couples-bg); color: var(--couples-dark); }
.card.groups .glyph { background: var(--warning-bg); color: var(--warning-text); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.step .num {
  font-family: 'Fredoka', sans-serif;
  font-size: 34px;
  color: var(--coral);
  margin-bottom: 10px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Safety banner ---------- */
.safety {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.safety .glyph {
  font-size: 30px;
  flex-shrink: 0;
}
.safety h3 { font-size: 18px; margin-bottom: 8px; }
.safety p { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  margin-top: 40px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.footer-links a { white-space: nowrap; }
.footer-links a:hover { color: var(--ink); }
.footer-note {
  font-size: 13px;
  color: var(--placeholder);
  margin-top: 18px;
}

/* ---------- Pricing ---------- */
a.inline { color: var(--coral-dark); font-weight: 600; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 30px 26px;
}
.pricing-card.featured {
  border-color: var(--coral);
  box-shadow: 0 8px 24px rgba(255, 107, 74, 0.12);
}
.pricing-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.pricing-price {
  font-family: 'Fredoka', sans-serif;
  font-size: 34px;
  margin-bottom: 20px;
  min-height: 42px;
}
.pricing-price span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}
.pricing-loading { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; color: var(--ink-soft); }
.pricing-perks {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-perks li {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}
.pricing-perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--companion-dark);
  font-weight: 700;
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.legal .back {
  display: inline-block;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--coral-dark);
  margin-bottom: 24px;
}
.legal h1 { font-size: 30px; margin-bottom: 8px; }
.legal .updated { font-size: 13px; color: var(--placeholder); margin-bottom: 36px; }
.legal h2 {
  font-size: 18px;
  margin-top: 34px;
  margin-bottom: 12px;
}
.legal p, .legal li {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.legal ul { padding-left: 20px; margin: 10px 0; }
.legal li { margin-bottom: 6px; }
.legal a.inline { color: var(--coral-dark); font-weight: 600; }

@media (max-width: 560px) {
  .hero { padding: 52px 20px; border-radius: 24px; }
  .safety { flex-direction: column; }
  .nav { flex-wrap: wrap; gap: 12px; }
  .nav-links { display: none; }
}

/* App preview (phone frames) */
.phones { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.phone { width: 240px; border: 8px solid var(--ink); border-radius: 34px; overflow: hidden; background: var(--bg); box-shadow: 0 18px 40px rgba(43, 27, 18, 0.18); }
.phone img { display: block; width: 100%; height: auto; }
.phones-note { text-align: center; color: var(--ink-soft); font-size: 13px; margin-top: 16px; }

/* Audience landing pages */
.audience-hero-tag { display: inline-block; background: var(--dating-bg); color: var(--dating); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.talk-list { list-style: none; padding: 0; margin: 26px auto 0; max-width: 560px; display: grid; gap: 12px; }
.talk-list li { color: var(--ink); font-size: 15px; line-height: 1.5; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 18px; text-align: left; }
