/* ============================================================
   I Am a Period Warrior — shared stylesheet
   Soft, magical, moon + nature theme
   ============================================================ */

:root {
  /* palette — pulled from the book cover */
  --blue:      #5fbad3;      /* signature sky-turquoise (cover background) */
  --blue-deep: #3e9dbb;
  --sky:       #a9e0ee;      /* soft blue tint */
  --sky-deep:  #3e9dbb;
  --pink:      #f4b6df;      /* soft book pink */
  --pink-deep: #e45ab4;      /* title pink */
  --purple:    #a9abdd;      /* periwinkle */
  --purple-deep:#7b7dc4;     /* title outline purple */
  --yellow:    #f6cf5c;      /* daisy + polka-dot gold */
  --gold:      #f6cf5c;
  --cream:     #f5fcfe;      /* light blue-white */
  --ink:       #33465f;      /* soft navy (cover subtitle text) */
  --ink-soft:  #5c6f88;

  --radius:    26px;
  --radius-sm: 16px;
  --shadow:    0 18px 45px rgba(62, 157, 187, 0.20);
  --shadow-sm: 0 8px 22px rgba(62, 157, 187, 0.15);
  --maxw:      1120px;

  --font-head: 'Fredoka', 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Quicksand', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.7;
  background:
    radial-gradient(1100px 620px at 8% -5%, #d5f1f8 0%, transparent 55%),
    radial-gradient(1000px 650px at 98% 2%, #fbdcef 0%, transparent 55%),
    radial-gradient(900px 700px at 50% 118%, #e6e2f8 0%, transparent 60%),
    radial-gradient(700px 500px at 85% 90%, #fdf3d4 0%, transparent 60%),
    linear-gradient(180deg, #f2fbfe 0%, #f7f4fc 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* soft floating stars layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(5px 5px at 20% 24%, rgba(228,90,180,.55), transparent 60%),
    radial-gradient(5px 5px at 72% 16%, rgba(246,207,92,.75), transparent 60%),
    radial-gradient(4px 4px at 40% 66%, rgba(123,125,196,.55), transparent 60%),
    radial-gradient(5px 5px at 88% 54%, rgba(95,186,211,.6), transparent 60%),
    radial-gradient(4px 4px at 12% 78%, rgba(228,90,180,.45), transparent 60%),
    radial-gradient(5px 5px at 58% 88%, rgba(246,207,92,.6), transparent 60%),
    radial-gradient(4px 4px at 33% 40%, rgba(95,186,211,.5), transparent 60%),
    radial-gradient(4px 4px at 82% 82%, rgba(123,125,196,.5), transparent 60%);
  background-repeat: no-repeat;
  opacity: .85;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; font-weight: 600; }
p { color: var(--ink-soft); }
a { color: var(--purple-deep); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 249, 253, 0.78);
  border-bottom: 1px solid rgba(183,155,230,.18);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head);
  font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand .moon { font-size: 1.4rem; }
.brand .logo-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 2px 8px rgba(123,125,196,.3); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; transition: all .18s ease;
}
.nav-links a:hover { color: var(--purple-deep); background: rgba(183,155,230,.14); }
.nav-links a.active { color: #fff; background: linear-gradient(120deg, var(--purple), var(--pink-deep)); }
.nav-links a.preorder {
  color: #fff !important;
  background: linear-gradient(120deg, var(--pink-deep), var(--purple-deep));
  box-shadow: 0 4px 14px rgba(228,90,180,.35);
}
.nav-links a.preorder:hover { opacity: .9; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--purple-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  padding: 14px 30px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--pink-deep) 0%, var(--purple-deep) 100%);
  box-shadow: 0 12px 26px rgba(143,111,209,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(143,111,209,.45); }
.btn-ghost {
  color: var(--purple-deep); background: #fff; box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; position: relative; z-index: 1; }
.section-tight { padding: 52px 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; font-size: .78rem;
  color: var(--blue-deep); background: rgba(95,186,211,.16);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.section h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 14px; }
.lead { font-size: 1.12rem; }
.center { text-align: center; }
.center .lead { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(183,155,230,.12);
}
.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); }

.icon-badge {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(95,186,211,.5), rgba(228,90,180,.42));
}
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; font-size: .98rem; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 40px; position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); margin: 14px 0 18px; }
.hero h1 .glow { background: linear-gradient(120deg, var(--pink-deep), var(--purple-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.18rem; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tag { font-size: .85rem; font-weight: 600; color: var(--purple-deep);
  background: #fff; padding: 7px 15px; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* ---------- Book cover / photo frames ---------- */
.cover-frame {
  position: relative; border-radius: 28px; overflow: hidden;
  aspect-ratio: 1 / 1; box-shadow: var(--shadow);
  background: linear-gradient(150deg, var(--sky) 0%, var(--purple) 55%, var(--pink) 100%);
  display: grid; place-items: center;
  transform: rotate(-2deg);
}
.cover-frame .placeholder-note {
  color: #fff; text-align: center; padding: 24px; font-family: var(--font-head);
  font-size: 1.1rem; line-height: 1.5; text-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.cover-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.photo-frame {
  position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  background: linear-gradient(150deg, var(--pink) 0%, var(--purple) 100%);
  display: grid; place-items: center;
}
.photo-frame .placeholder-note { color:#fff; text-align:center; padding:20px; font-family:var(--font-head); }
.photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Quote ---------- */
.quote-band {
  background: linear-gradient(120deg, rgba(95,186,211,.16), rgba(169,171,221,.16) 55%, rgba(228,90,180,.16));
  border-radius: var(--radius); padding: 48px; text-align: center;
  border: 1px solid rgba(95,186,211,.28);
}
.quote-band blockquote {
  font-family: var(--font-head); font-size: clamp(1.4rem, 3.2vw, 2rem);
  color: var(--ink); margin: 0 auto; max-width: 760px; line-height: 1.4; font-weight: 500;
}
.quote-band .cite { display: block; margin-top: 18px; color: var(--purple-deep);
  font-weight: 600; font-size: 1rem; font-family: var(--font-body); }
.quote-band .qmark { font-size: 3rem; color: var(--pink-deep); line-height: 1; }

/* ---------- Learn list ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-size: 1.02rem; }
.checklist li::before { content: "🌸"; flex: none; }

/* ---------- Author note ---------- */
.note-card { background: #fff; border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(183,155,230,.12); }
.note-card p { font-size: 1.08rem; }
.signature { font-family: var(--font-head); font-size: 1.5rem; color: var(--purple-deep); margin-top: 8px; }

/* ---------- Resource / coming soon ---------- */
.pill-soon { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--purple); padding: 4px 12px; border-radius: 999px; }
.pill-ready { color:#fff; background: var(--pink-deep); }
.pill-new { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--pink-deep); padding: 4px 12px; border-radius: 999px; }
.resource-card { display: flex; flex-direction: column; height: 100%; }
.resource-card .icon-badge { margin-bottom: 18px; }
.resource-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Testimonials ---------- */
.testi { background:#fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(183,155,230,.12); }
.testi .stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }
.testi p { color: var(--ink); font-size: 1.02rem; margin: 12px 0 16px; }
.testi .who { font-weight: 700; color: var(--purple-deep); font-size: .95rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.form input, .form textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid rgba(183,155,230,.35);
  background: #fff; transition: border .18s ease, box-shadow .18s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(183,155,230,.18); }
.form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .88rem; color: var(--ink-soft); }
.form-success { display:none; background: rgba(127,185,230,.15); border:1px solid var(--sky-deep);
  color: var(--ink); padding: 14px 18px; border-radius: var(--radius-sm); font-weight:600; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-deep) 0%, var(--purple-deep) 52%, var(--pink-deep) 100%);
  border-radius: var(--radius); padding: 54px; text-align: center; color: #fff;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 24px; font-size: 1.1rem; }
.cta-band .btn-ghost { color: var(--purple-deep); }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 40px; margin-top: 40px; position: relative; z-index: 1;
  border-top: 1px solid rgba(183,155,230,.18); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.footer .brand { font-size: 1.05rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.footer-links a:hover { color: var(--purple-deep); }
.footer small { display: block; margin-top: 16px; color: var(--ink-soft); }

/* ---------- Page header ---------- */
.page-head { padding: 56px 0 8px; text-align: center; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 10px 0 12px; }
.page-head p { max-width: 620px; margin: 0 auto; font-size: 1.12rem; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .cover-frame { max-width: 320px; margin: 0 auto; transform: rotate(0); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    position: absolute; top: 64px; right: 16px; left: 16px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 14px; border-radius: var(--radius-sm);
    box-shadow: var(--shadow); display: none; z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .quote-band, .cta-band, .note-card { padding: 32px 24px; }
}
