/* ============================================================
   Charli — marketing site stylesheet
   Breakpoints:  desktop (default) · tablet ≤960px · mobile ≤600px
   ============================================================ */

:root {
  --cream:    #F2EBDB;
  --cream-2:  #EFE7D4;
  --paper:    #FFFFFF;
  --tan:      #E89A4F;
  --tan-deep: #C97A2F;
  --tan-soft: #FBE3CB;
  --navy:     #1B2340;
  --navy-70:  #3A4364;
  --mute:     #8C8576;
  --hair:     #EFE6D4;
  --red:      #D05A52;
  --green:    #3D8765;

  --maxw: 1180px;
  --radius: 24px;
  --shadow: 0 2px 14px rgba(27,35,64,0.06);
  --shadow-lg: 0 18px 48px rgba(27,35,64,0.14);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan-deep);
  margin: 0 0 18px;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; margin: 0; color: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 16px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--tan); color: #fff; box-shadow: 0 8px 20px rgba(232,154,79,0.34); }
.btn-primary:hover { background: var(--tan-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid rgba(27,35,64,0.16); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); }

/* App Store badge */
.appstore { display: inline-block; transition: transform 0.12s ease, opacity 0.12s ease; }
.appstore:hover { transform: translateY(-2px); opacity: 0.88; }

/* ───────────────── Header / nav ───────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242,235,219,0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.brand .dot { color: var(--tan); }
.brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; background: var(--tan-soft); }
.nav-links { display: flex; align-items: center; gap: 48px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--navy-70); transition: color 0.12s; }
.nav-links a:hover { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; }
.mobile-menu { display: none; }

/* ───────────────── Hero ───────────────── */
.hero { padding: 76px 0 88px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(46px, 6.4vw, 88px);
  font-weight: 700;
  line-height: 0.96;
  margin: 0 0 24px;
}
.hero h1 .accent { color: var(--tan); }
.hero .lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--navy-70);
  max-width: 480px;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Phones (screenshots already include the device bezel) */
.phones { position: relative; display: flex; justify-content: center; align-items: center; min-height: 600px; }
.phone { position: relative; }
.phone img {
  width: 270px;
  display: block;
  filter: drop-shadow(0 24px 46px rgba(27,35,64,0.26));
}
.phone-back {
  position: absolute;
  left: 2%;
  bottom: 24px;
  transform: rotate(-8deg) scale(0.9);
  transform-origin: bottom center;
  z-index: 1;
}
.phone-front { position: relative; z-index: 2; transform: rotate(3deg); }

/* placeholder fill (before real screenshots arrive) */
.ph-fill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    repeating-linear-gradient(45deg, var(--cream) 0 14px, var(--cream-2) 14px 28px);
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}

/* floating mascot peek */
.hero-mascot {
  position: absolute;
  right: -8px;
  bottom: -10px;
  width: 150px;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 12px 20px rgba(27,35,64,0.18));
}

/* ───────────────── Section scaffolding ───────────────── */
section { position: relative; }
.section { padding: 92px 0; }
.section-head { max-width: 680px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 16px;
}
.section-head p {
  font-size: 19px;
  color: var(--navy-70);
  margin: 0;
  line-height: 1.55;
  text-wrap: pretty;
}

.band-paper { background: var(--paper); }
.band-navy { background: var(--navy); color: var(--cream); }
.band-navy h2, .band-navy h3 { color: var(--cream); }

/* ───────────────── How it works ───────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 34px 32px 36px;
  border: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
}
.band-paper .step { background: var(--cream); }
.step .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tan-deep);
  margin-bottom: 18px;
}
.step .icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--tan-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.step h3 { font-size: 24px; font-weight: 700; margin: 0 0 10px; }
.step p { margin: 0 0 24px; font-size: 16px; color: var(--navy-70); line-height: 1.55; text-wrap: pretty; }
.step-screenshot {
  margin-top: auto;
  display: flex;
  justify-content: center;
}
.step-screenshot img {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(27,35,64,0.18));
}

/* ───────────────── Features ───────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px 30px 32px;
  box-shadow: var(--shadow);
}
.feature .icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--tan-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature h3 { font-size: 21px; font-weight: 700; margin: 0 0 8px; }
.feature p { margin: 0; font-size: 15.5px; color: var(--navy-70); line-height: 1.55; }

/* ───────────────── Privacy band ───────────────── */
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.privacy-phone { display: flex; justify-content: center; align-items: center; }
.privacy-phone img { width: 290px; filter: drop-shadow(0 24px 54px rgba(0,0,0,0.42)); }
.privacy-list { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; }
.privacy-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(242,235,219,0.12);
}
.privacy-list li:first-child { border-top: 1px solid rgba(242,235,219,0.12); }
.privacy-list li:last-child { border-bottom: 0; }
.privacy-list .check {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--tan); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.privacy-list strong { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--cream); margin-bottom: 3px; letter-spacing: -0.01em; }
.privacy-list span { font-size: 15px; color: rgba(242,235,219,0.74); line-height: 1.5; }
.privacy-statement {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin: 0 0 22px;
  text-wrap: balance;
}
.privacy-statement em { font-style: normal; color: var(--tan); }
.privacy-grid .lede { font-size: 17px; color: rgba(242,235,219,0.74); margin: 0; line-height: 1.6; }

/* ───────────────── Pricing ───────────────── */
.price-toggle {
  display: inline-flex;
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 5px;
  margin: 0 auto 44px;
  gap: 4px;
}
.price-toggle button {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: 0;
  background: transparent;
  color: var(--navy-70);
  padding: 11px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
  position: relative;
}
.price-toggle button.active { background: var(--navy); color: var(--cream); }
.price-toggle .save {
  margin-left: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  background: var(--tan-soft);
  color: var(--tan-deep);
  padding: 2px 7px;
  border-radius: 999px;
}
.price-toggle button.active .save { background: var(--tan); color: #fff; }

.price-wrap { display: flex; justify-content: center; }
.price-card {
  background: var(--paper);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 40px 42px 44px;
  width: 100%;
  max-width: 460px;
  border: 2px solid var(--tan);
  position: relative;
}
.price-card .tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--tan); color: #fff; padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.price-card .plan-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tan-deep); margin-bottom: 14px; }
.price-amount { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 6px; }
.price-amount .num { font-family: var(--font-display); font-size: 72px; font-weight: 700; line-height: 0.9; letter-spacing: -0.04em; }
.price-amount .per { font-size: 17px; color: var(--mute); font-weight: 600; padding-bottom: 10px; }
.price-sub { font-size: 15px; color: var(--navy-70); margin: 0 0 26px; }
.price-features { list-style: none; margin: 0 0 30px; padding: 26px 0 0; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 15px; }
.price-features li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--navy); }
.price-features .check { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--tan-soft); color: var(--tan-deep); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.price-card .btn-primary { width: 100%; }

/* Promo code */
.promo {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--hair);
}
.promo-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.promo-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--tan-deep);
  background: var(--tan-soft);
  border: 1.5px dashed var(--tan);
  border-radius: 12px;
  padding: 10px 20px;
  margin-bottom: 10px;
  user-select: all;
}
.promo-note { font-size: 13px; color: var(--mute); margin: 0; }

/* ───────────────── FAQ ───────────────── */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: transparent; border: 0; cursor: pointer;
  padding: 26px 4px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 2.4vw, 24px);
  letter-spacing: -0.02em; color: var(--navy); text-align: left;
}
.faq-q .chev { flex-shrink: 0; transition: transform 0.22s ease; color: var(--tan); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.faq-a-inner { padding: 0 4px 26px; font-size: 17px; color: var(--navy-70); line-height: 1.6; max-width: 680px; }

/* ───────────────── CTA band ───────────────── */
.cta-band { text-align: center; padding: 96px 0; }
.cta-band h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; line-height: 1; margin: 0 0 20px; }
.cta-band p { font-size: 20px; color: rgba(242,235,219,0.78); margin: 0 auto 36px; max-width: 520px; }
.cta-band .mascot { width: 130px; margin: 0 auto 26px; filter: drop-shadow(0 14px 24px rgba(0,0,0,0.3)); }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ───────────────── Footer ───────────────── */
.site-footer { background: var(--cream); border-top: 1px solid var(--hair); padding: 64px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 15px; color: var(--navy-70); max-width: 280px; margin: 0 0 20px; line-height: 1.55; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin: 0 0 16px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 15px; color: var(--navy-70); transition: color 0.12s; }
.footer-col a:hover { color: var(--tan-deep); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--hair);
  font-family: var(--font-mono); font-size: 12px; color: var(--mute); letter-spacing: 0.03em;
  gap: 16px; flex-wrap: wrap;
}

/* ───────────────── Legal pages ───────────────── */
.legal-hero { padding: 56px 0 36px; border-bottom: 1px solid var(--hair); }
.legal-hero h1 { font-size: clamp(38px, 5vw, 62px); font-weight: 700; margin: 0 0 14px; }
.legal-hero .meta { font-family: var(--font-mono); font-size: 13px; color: var(--mute); letter-spacing: 0.04em; }
.legal-body { padding: 56px 0 88px; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.legal-toc {
  position: sticky; top: 96px;
  font-size: 14px;
}
.legal-toc h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; font-weight: 600; }
.legal-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.legal-toc a { color: var(--navy-70); transition: color 0.12s; line-height: 1.4; display: block; }
.legal-toc a:hover { color: var(--tan-deep); }
.legal-content { max-width: 760px; }
.legal-content h2 {
  font-size: 24px; font-weight: 700; margin: 44px 0 14px; letter-spacing: -0.02em;
  scroll-margin-top: 96px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-family: var(--font-body); font-size: 17px; font-weight: 800; margin: 24px 0 8px; color: var(--navy); }
.legal-content p { margin: 0 0 16px; font-size: 16.5px; color: var(--navy-70); line-height: 1.66; }
.legal-content ul { margin: 0 0 18px; padding-left: 22px; }
.legal-content li { font-size: 16.5px; color: var(--navy-70); line-height: 1.6; margin-bottom: 9px; }
.legal-content a { color: var(--tan-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal-content strong { color: var(--navy); }
.legal-intro { font-size: 18px !important; color: var(--navy) !important; }
.legal-callout {
  background: var(--cream); border: 1px solid var(--hair); border-radius: 16px;
  padding: 22px 24px; margin: 0 0 28px;
  font-size: 15.5px; color: var(--navy-70); line-height: 1.6;
}

/* ───────────────── Reveal animation ───────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   TABLET  ≤ 960px
   ============================================================ */
@media (max-width: 960px) {
  .wrap { padding: 0 32px; }
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero .lede { max-width: 560px; }
  .phones { min-height: 480px; margin-top: 8px; }
  .section { padding: 72px 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps .step:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .steps .step:last-child:nth-child(odd) .step-screenshot img { max-width: 200px; }
  .step-screenshot img { max-width: 180px; }
  .features { grid-template-columns: 1fr 1fr; }
  .privacy-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; display: none; }

  /* mobile nav */
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--hair);
    background: var(--paper); cursor: pointer;
  }
  .nav-cta { gap: 0; }
  .mobile-menu {
    display: none;
    border-top: 1px solid var(--hair);
    background: var(--cream);
    padding: 16px 0 24px;
  }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display: block; padding: 14px 0; font-weight: 600; font-size: 18px; color: var(--navy); border-bottom: 1px solid var(--hair); }
  .mobile-menu .btn-primary {
    display: block;
    margin: 18px auto 0;
    width: auto;
    padding: 13px 28px;
    font-size: 15px;
    border: 1.5px solid #000;
    box-shadow: none;
  }
}

/* ============================================================
   MOBILE  ≤ 600px
   ============================================================ */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav { height: 64px; }
  .brand { font-size: 24px; }

  .hero { padding: 40px 0 52px; }
  .hero h1 { margin-bottom: 18px; }
  .hero .lede { font-size: 18px; margin-bottom: 26px; }
  .hero-actions { gap: 14px; flex-direction: column; align-items: center; }
  .hero-actions .appstore { display: flex; justify-content: center; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .phones { min-height: 0; flex-direction: column; align-items: center; }
  .phone img { width: min(74vw, 280px); }
  .phone-back { display: none; }
  .phone-front { transform: rotate(0); }
  .privacy-phone img { width: min(72vw, 290px); }
  .hero-mascot { width: 110px; right: 2%; bottom: -6px; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }
  .steps, .features { grid-template-columns: 1fr; gap: 16px; }
  .step { padding: 28px 26px 30px; }
  .steps .step:last-child:nth-child(odd) { grid-column: auto; }
  .step-screenshot img { max-width: min(260px, 70vw); }

  .price-card { padding: 32px 26px 34px; }
  .price-amount .num { font-size: 60px; }
  .price-toggle { width: 100%; justify-content: center; }
  .price-toggle button { flex: 1; padding: 12px 10px; font-size: 14px; }
  .price-toggle .save { display: block; margin: 4px 0 0; }

  .cta-band { padding: 68px 0; }
  .cta-actions .btn { width: 100%; max-width: 320px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  .legal-hero { padding: 40px 0 28px; }
  .legal-body { padding: 40px 0 64px; }
  .legal-content h2 { font-size: 21px; }
}
