/* ==========================================================================
   PERITALE - Design System v2.0
   Bold. Empowering. Unapologetic.
   Mobile-first. Built for women who want answers.
   ========================================================================== */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  /* Brand: Hot pink from the Peritale logo */
  --pk: #FF0080;
  --pk-dark: #D6006B;
  --pk-light: #FFF0F7;
  --pk-glow: rgba(255, 0, 128, 0.12);
  --pk-glow2: rgba(255, 0, 128, 0.06);

  /* Supporting */
  --cream: #F9F6F3;
  --warm: #F3EDE8;
  --coral: #E8706B;
  --gold: #C49A6C;
  --sage: #7A9B7E;
  --plum: #5C3355;

  /* Neutrals */
  --white: #FFFFFF;
  --off: #FAFAFA;
  --g50: #F5F3F0;
  --g100: #EDE9E5;
  --g200: #D8D2CC;
  --g300: #B8B0A8;
  --g400: #8A8078;
  --g500: #6B6058;
  --g600: #4A4038;
  --g700: #2D2520;
  --g800: #1A1510;
  --black: #0F0A05;

  /* Semantic */
  --bg: var(--cream);
  --bg-alt: var(--warm);
  --text: var(--g800);
  --text2: var(--g500);
  --text3: var(--g400);
  --border: var(--g100);

  /* Typography - Serif for headings (matching logo), sans for body */
  --serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --lh: 1.65;

  /* Layout */
  --max: 1200px;
  --narrow: 720px;
  --nav-h: 60px;
  --section: 100px 28px;
  --section-m: 64px 20px;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 9999px;

  /* Shadows */
  --sh-sm: 0 2px 8px rgba(15,10,5,0.04);
  --sh-md: 0 4px 24px rgba(15,10,5,0.06);
  --sh-lg: 0 12px 48px rgba(15,10,5,0.08);
  --sh-xl: 0 24px 64px rgba(15,10,5,0.10);
  --sh-glow: 0 8px 32px rgba(255,0,128,0.2);

  /* Ease */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t: 0.3s var(--ease);

  /* Safe area */
  --sab: env(safe-area-inset-bottom, 0px);
  --sat: env(safe-area-inset-top, 0px);
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ---------- ACCESSIBILITY ---------- */
.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;
}

:focus-visible {
  outline: 2px solid var(--pk);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- TYPOGRAPHY ---------- */
.h-display {
  font-family: var(--serif);
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

.h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.body-lg {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text2);
}

.body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text2);
}

.body-sm {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text3);
}

.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pk);
}

.accent { color: var(--pk); }

.italic { font-family: var(--serif); font-style: italic; }

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(253, 248, 245, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow var(--t), background var(--t);
}

.nav.scrolled {
  box-shadow: 0 1px 0 var(--border);
  background: rgba(253, 248, 245, 0.97);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--pk);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: color var(--t);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--pk);
  transition: width var(--t);
  border-radius: 1px;
}

.nav-link:hover { color: var(--pk); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  background: var(--pk);
  color: var(--white);
  padding: 10px 24px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--t);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-cta:hover {
  background: var(--pk-dark);
  box-shadow: var(--sh-glow);
  transform: translateY(-1px);
}

.nav-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: color var(--t);
}

.nav-login:hover { color: var(--pk); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--t);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 999;
  padding: 24px 28px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 14px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color var(--t);
}

.mobile-menu a:hover { color: var(--pk); }

.mobile-menu .nav-cta {
  margin-top: 16px;
  text-align: center;
  justify-content: center;
  padding: 16px 24px;
  font-size: 16px;
  border-bottom: none;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--pk);
  color: var(--white);
  padding: 16px 36px;
  border-radius: var(--r-full);
  font-size: 16px;
  border: none;
}

.btn-primary:hover {
  background: var(--pk-dark);
  transform: translateY(-2px);
  box-shadow: var(--sh-glow);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 14px 32px;
  border-radius: var(--r-full);
  font-size: 15px;
  border: 2px solid var(--g200);
}

.btn-outline:hover {
  border-color: var(--pk);
  color: var(--pk);
}

.btn-ghost {
  background: transparent;
  color: var(--pk);
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--pk);
  border-radius: 0;
  font-weight: 600;
}

.btn-ghost:hover { opacity: 0.7; }

.btn-white {
  background: var(--white);
  color: var(--text);
  padding: 16px 36px;
  border-radius: var(--r-full);
  font-size: 16px;
  font-weight: 700;
  border: none;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-lg);
}

/* ---------- SECTIONS ---------- */
.section {
  padding: var(--section);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-narrow {
  max-width: var(--narrow);
  margin: 0 auto;
}

.section-alt { background: var(--white); }
.section-warm { background: var(--warm); }
.section-dark { background: var(--black); color: var(--white); }
.section-pk { background: var(--pk); color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .label { margin-bottom: 12px; }

.section-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--text2);
  max-width: 520px;
  margin: 16px auto 0;
  line-height: 1.7;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: all var(--t);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--pk-glow);
}

.card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
}

/* ---------- GRIDS ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- STATS ---------- */
.stat {
  text-align: center;
  padding: 28px 16px;
}

.stat-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--pk);
  line-height: 1;
}

.stat-text {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
  margin-top: 8px;
}

.stat-cite {
  font-size: 10px;
  color: var(--text3);
  margin-top: 6px;
  font-style: italic;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--t);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }
.faq-item summary:hover { color: var(--pk); }

.faq-toggle {
  font-size: 20px;
  color: var(--g300);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.8;
  padding-bottom: 20px;
  max-width: var(--narrow);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--black);
  padding: 64px 28px 0;
  color: rgba(255,255,255,0.5);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--pk);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  transition: color var(--t);
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

.footer-disclaimer {
  font-size: 10px;
  color: rgba(255,255,255,0.15);
  max-width: 400px;
  text-align: right;
  line-height: 1.5;
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--black);
  color: var(--white);
  padding: 16px 24px;
  font-size: 13px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-banner button {
  background: var(--pk);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
}

.cookie-banner a {
  color: var(--pk);
  font-size: 12px;
  font-weight: 500;
}

/* ---------- DISCLAIMER ---------- */
.disclaimer {
  padding: 16px 28px 24px;
  background: var(--black);
  text-align: center;
}

.disclaimer p {
  font-size: 10px;
  color: rgba(255,255,255,0.15);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- DIVIDER ---------- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 28px;
}

/* ---------- HIGHLIGHT BOX ---------- */
.highlight {
  background: var(--pk-light);
  border-left: 3px solid var(--pk);
  padding: 20px 24px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.highlight p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 56px;
    --section: 64px 20px;
  }

  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .section-header { margin-bottom: 40px; }
  .stat-num { font-size: 36px; }

  .section-sub { font-size: 16px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }

  .btn-primary, .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- PRINT ---------- */
@media print {
  .nav, .cookie-banner, .footer, .disclaimer { display: none; }
  body { color: #000; background: #fff; }
  .section { padding: 24px 0; }
}
</style>
