/* ==========================================================================
   Happily Ever Guided — brand design system
   Palette: twilight navy, royal purple, pixie gold, blush pink, cream
   Type: Fraunces (display) · Nunito Sans (body) · Dancing Script (accents)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Nunito+Sans:wght@400;600;700;800&family=Dancing+Script:wght@600&display=swap');

:root {
  --midnight: #221c4e;
  --twilight: #33296b;
  --royal: #6d5bd0;
  --lavender: #e9e4fa;
  --gold: #f5c042;
  --gold-deep: #d9a021;
  --blush: #f9e9f0;
  --pink: #e86fa4;
  --cream: #fdfbf7;
  --ink: #2a2440;
  --ink-soft: #5c5477;
  --white: #ffffff;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, sans-serif;
  --font-script: 'Dancing Script', cursive;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 6px 24px rgba(34, 28, 78, 0.10);
  --shadow-lift: 0 12px 36px rgba(34, 28, 78, 0.16);
  --wrap: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

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

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

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--midnight); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

.script { font-family: var(--font-script); color: var(--pink); font-size: 1.5em; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 0.75rem;
}
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 46em; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(34, 28, 78, 0.08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem; color: var(--midnight);
  line-height: 1.1;
}
.brand-name small {
  display: block; font-family: var(--font-body); font-weight: 700;
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--royal);
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.95rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--royal); }
.main-nav .btn { color: var(--midnight); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.6rem; color: var(--midnight); line-height: 1;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--midnight);
  font-weight: 800; font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 192, 66, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245, 192, 66, 0.5); }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); box-shadow: none; }
.btn-royal { background: var(--royal); color: var(--white); box-shadow: 0 4px 14px rgba(109, 91, 208, 0.4); }
.btn-royal:hover { box-shadow: 0 8px 20px rgba(109, 91, 208, 0.5); }

/* ---------- Hero (night sky) ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(109, 91, 208, 0.55), transparent 60%),
    radial-gradient(800px 420px at 12% 110%, rgba(232, 111, 164, 0.28), transparent 60%),
    linear-gradient(165deg, var(--midnight) 0%, var(--twilight) 55%, #46308a 100%);
  color: var(--white);
  padding: 96px 0 110px;
}
.hero::before {
  /* starfield */
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,0.9), transparent 100%),
    radial-gradient(1px 1px at 28% 64%, rgba(255,255,255,0.7), transparent 100%),
    radial-gradient(2px 2px at 41% 15%, rgba(245,192,66,0.9), transparent 100%),
    radial-gradient(1px 1px at 55% 42%, rgba(255,255,255,0.8), transparent 100%),
    radial-gradient(1.5px 1.5px at 68% 12%, rgba(255,255,255,0.85), transparent 100%),
    radial-gradient(1px 1px at 76% 55%, rgba(245,192,66,0.8), transparent 100%),
    radial-gradient(2px 2px at 88% 30%, rgba(255,255,255,0.9), transparent 100%),
    radial-gradient(1px 1px at 94% 70%, rgba(255,255,255,0.6), transparent 100%),
    radial-gradient(1.5px 1.5px at 6% 78%, rgba(255,255,255,0.65), transparent 100%);
}
.hero h1 { color: var(--white); max-width: 15em; }
.hero h1 .gold { color: var(--gold); }
.hero .lede { color: rgba(255, 255, 255, 0.85); margin: 1.2rem 0 2rem; }
.hero .script { color: var(--gold); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 1.4rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); }

/* Page hero (interior pages, shorter) */
.page-hero { padding: 64px 0 72px; }

/* ---------- Sections ---------- */

section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.alt { background: var(--lavender); }
.alt-blush { background: var(--blush); }

/* ---------- Cards & grids ---------- */

.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); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.6rem; }
.card .icon { font-size: 1.9rem; margin-bottom: 0.8rem; display: block; }
.card p { color: var(--ink-soft); font-size: 1rem; }

/* Numbered steps */
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--royal); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

/* ---------- Pricing ---------- */

.pricing { align-items: stretch; }
.price-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px 30px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  border: 2px solid transparent;
}
.price-card.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-lift);
  transform: scale(1.02);
}
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--midnight);
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.price-card .tier { font-family: var(--font-script); font-size: 1.6rem; color: var(--pink); }
.price-card h3 { font-size: 1.5rem; margin: 0.2rem 0 0.4rem; }
.price {
  font-family: var(--font-display); font-weight: 700;
  font-size: 2.4rem; color: var(--midnight); margin: 0.6rem 0 0.2rem;
}
.price small { font-size: 1rem; font-weight: 600; color: var(--ink-soft); font-family: var(--font-body); }
.price-sub { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.price-card ul { list-style: none; margin: 0 0 1.6rem; flex: 1; }
.price-card li {
  padding: 8px 0 8px 30px; position: relative;
  font-size: 0.98rem; color: var(--ink);
  border-bottom: 1px dashed rgba(34, 28, 78, 0.1);
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: "✦"; position: absolute; left: 4px; color: var(--gold-deep); font-size: 0.9rem;
}
.price-card .btn { text-align: center; }

.price-compare {
  text-align: center; margin-top: 2.2rem;
  font-size: 1.05rem; color: var(--ink-soft);
}
.price-compare strong { color: var(--midnight); }

/* ---------- Phone chat mockup ---------- */

.loop-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.loop-steps { display: flex; flex-direction: column; gap: 18px; }
.loop-step { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.loop-step .li { font-size: 1.6rem; line-height: 1; margin-top: 2px; }
.loop-step h3 { font-size: 1.05rem; margin-bottom: 2px; }
.loop-step p { font-size: 0.92rem; color: var(--ink-soft); }
.loop-note { background: var(--lavender); border-radius: var(--radius); padding: 16px 20px; font-size: 0.92rem; color: var(--ink); }
.loop-note strong { color: var(--royal); }

.phone {
  background: var(--midnight);
  border-radius: 38px;
  padding: 14px;
  max-width: 360px;
  margin: 0 auto;
  box-shadow: var(--shadow-lift);
}
.phone-screen { background: #f4f2fb; border-radius: 26px; overflow: hidden; }
.phone-top { background: var(--white); padding: 12px 16px 10px; text-align: center; border-bottom: 1px solid rgba(34,28,78,.08); }
.phone-top .avatar { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 2px; display: block; }
.phone-top .who { font-size: 0.72rem; font-weight: 800; color: var(--midnight); }
.chat { padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 0.82rem; line-height: 1.45; }
.msg.them { background: #e4e2ec; color: var(--ink); align-self: flex-start; border-bottom-left-radius: 5px; }
.msg.me { background: var(--royal); color: var(--white); align-self: flex-end; border-bottom-right-radius: 5px; }
.msg.me.mapmsg { padding: 6px; max-width: 88%; }
.msg .stamp { display: block; font-size: 0.62rem; opacity: 0.65; margin-top: 3px; }
.map-card { background: var(--white); border-radius: 12px; overflow: hidden; }
.map-card svg { display: block; width: 100%; }
.map-card .map-cap { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 0.72rem; font-weight: 800; color: var(--midnight); }
.map-card .map-cap span { color: var(--ink-soft); font-weight: 700; }
.chat-caption { text-align: center; font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }

@media (max-width: 860px) {
  .loop-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Comparison table ---------- */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--white);
}
.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.97rem;
  border-bottom: 1px dashed rgba(34, 28, 78, 0.12);
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table thead th {
  background: var(--midnight);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-size: 1rem;
  border-bottom: none;
}
.compare-table thead th.heg {
  background: var(--royal);
  color: var(--white);
}
.compare-table thead th.heg .script { color: var(--gold); font-size: 1.15em; display: block; line-height: 1; }
.compare-table tbody th {
  font-weight: 800;
  color: var(--midnight);
  background: var(--cream);
  white-space: nowrap;
}
.compare-table td.heg {
  background: rgba(245, 192, 66, 0.14);
  font-weight: 800;
  color: var(--midnight);
}
.compare-table td { color: var(--ink-soft); }
.table-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; }
.faq-list details {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  padding: 0 26px;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer; list-style: none;
  font-weight: 800; font-size: 1.05rem;
  padding: 20px 36px 20px 0;
  position: relative; color: var(--midnight);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "✦"; position: absolute; right: 2px; top: 20px;
  color: var(--gold-deep); transition: transform 0.25s ease;
}
.faq-list details[open] summary::after { transform: rotate(90deg); }
.faq-list details p { padding: 0 0 22px; color: var(--ink-soft); }
.faq-list details p + p { margin-top: -10px; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 40px 36px;
  max-width: 720px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block; font-weight: 800; font-size: 0.86rem;
  margin-bottom: 6px; color: var(--midnight);
}
input, select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 12px 14px; border: 1.5px solid rgba(34, 28, 78, 0.18);
  border-radius: 10px; background: var(--cream); color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(109, 91, 208, 0.18);
}
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Blog ---------- */

.post-card { text-decoration: none; display: flex; flex-direction: column; }
.post-card .post-tag {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--pink); margin-bottom: 0.5rem;
}
.post-card h3 { color: var(--midnight); }
.post-card:hover h3 { color: var(--royal); }
.post-card .post-date { margin-top: auto; padding-top: 1rem; font-size: 0.85rem; color: var(--ink-soft); }

.article { max-width: 720px; margin: 0 auto; }
.article h1 { margin-bottom: 0.5rem; }
.article .post-meta { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 2.2rem; }
.article h2 { margin: 2.2rem 0 0.8rem; font-size: 1.6rem; }
.article p { margin-bottom: 1.1rem; }
.article ul, .article ol { margin: 0 0 1.1rem 1.4rem; }
.article li { margin-bottom: 0.4rem; }
.article .callout {
  background: var(--lavender); border-left: 4px solid var(--royal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin: 1.6rem 0;
}

/* ---------- Lead magnet ---------- */

.magnet {
  background:
    radial-gradient(600px 260px at 90% 10%, rgba(245, 192, 66, 0.15), transparent 60%),
    linear-gradient(150deg, var(--midnight), var(--twilight));
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.magnet .script { color: var(--gold); }
.magnet h2 { color: var(--white); margin: 0.3rem 0 0.7rem; }
.magnet p { color: rgba(255, 255, 255, 0.82); font-size: 1rem; }
.signup-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-lift);
}
.signup-card label { color: var(--midnight); }
.signup-card .btn { width: 100%; margin-top: 12px; text-align: center; }
.signup-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }

@media (max-width: 760px) {
  .magnet { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
}

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(245, 192, 66, 0.18), transparent 60%),
    linear-gradient(150deg, var(--midnight), var(--twilight));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.8); margin: 0.8rem auto 1.8rem; max-width: 36em; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--midnight); color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 32px; margin-top: 72px;
  font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 {
  color: var(--white); font-family: var(--font-display);
  font-size: 1.05rem; margin-bottom: 0.9rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-brand svg { width: 36px; height: 36px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 1.1rem; }
.disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}
.disclaimer p { margin-bottom: 0.6rem; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { transform: none; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 64px 0 72px; }
  section { padding: 52px 0; }
  .cta-band { padding: 40px 24px; }
  .form-card { padding: 28px 22px; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--cream); padding: 20px 24px 26px;
    border-bottom: 1px solid rgba(34, 28, 78, 0.1);
    box-shadow: var(--shadow);
    gap: 18px;
  }
  .main-nav.open { display: flex; }
}
