/* ============================================================
   PMS Relief — shared stylesheet
   ============================================================ */

:root {
  --cream: #FBF6F1;
  --cream-dim: #F3EBE2;
  --plum: #3F2A3E;
  --plum-soft: #6B4E68;
  --mauve: #8C5B7A;
  --sage: #7C9070;
  --sage-dim: #E4EADF;
  --terracotta: #E29A6B;
  --line: #E4D9CC;
  --max: 1080px;
  --frame: 24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--plum);
}

body {
  margin: 0 auto;
  max-width: 1400px;
  padding: var(--frame);
  background: var(--cream);
  color: var(--plum);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

@media (max-width: 640px) {
  :root { --frame: 12px; }
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--plum);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 440; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--mauve); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--mauve); outline-offset: 3px; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 0.6em;
  display: block;
}

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

/* ---------- header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  position: sticky; top: var(--frame); z-index: 20;
}
header.site .bar {
  max-width: var(--max); margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--plum);
}
.logo span { color: var(--mauve); }
nav.main a {
  color: var(--plum);
  margin-left: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}
nav.main a:hover { color: var(--mauve); text-decoration: none; }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  nav.main { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--plum); color: var(--cream); }
.btn-primary:hover { background: var(--mauve); text-decoration: none; transform: translateY(-1px); }
.btn-outline { border-color: var(--plum); color: var(--plum); }
.btn-outline:hover { background: var(--plum); color: var(--cream); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  padding: 88px 0 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
}
.hero p.lead { font-size: 1.15rem; color: var(--plum-soft); max-width: 46ch; }
.hero .cta-row { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* signature: cycle phase diagram */
.phase-wheel { width: 100%; max-width: 380px; margin: 0 auto; display: block; }
.phase-wheel .arc { fill: none; stroke-width: 30; }
.phase-wheel text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.phase-wheel .center-label {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  fill: var(--plum);
}
.phase-wheel .center-sub {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  fill: var(--plum-soft);
  letter-spacing: 0.08em;
}

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--cream-dim); }
.section-head { max-width: 640px; margin-bottom: 40px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.card h3 { margin-bottom: 0.4em; }
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-dim);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  font-weight: 600;
}

/* product cards */
.product-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-card .swatch {
  width: 100%; height: 120px;
  border-radius: 10px;
  margin-bottom: 6px;
}
.product-card .price { color: var(--plum-soft); font-size: 0.92rem; }
.product-card .btn { margin-top: auto; align-self: flex-start; }

/* symptom phase sidebar layout */
.phase-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}
@media (max-width: 780px) { .phase-layout { grid-template-columns: 1fr; } }
.phase-nav {
  border-left: 2px solid var(--line);
  padding-left: 18px;
  position: sticky; top: 100px; align-self: start;
}
.phase-nav a {
  display: block;
  color: var(--plum-soft);
  font-size: 0.92rem;
  padding: 6px 0;
}
.phase-nav a:hover { color: var(--mauve); text-decoration: none; }

.symptom-block { margin-bottom: 56px; scroll-margin-top: 100px; }
.symptom-block .eyebrow { color: var(--mauve); }
.symptom-list { list-style: none; padding: 0; margin: 0; }
.symptom-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.symptom-list li:last-child { border-bottom: none; }

/* blog cards */
.blog-card .date { font-size: 0.82rem; color: var(--sage); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* disclaimer */
.disclaimer {
  background: var(--sage-dim);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 0.9rem;
  color: var(--plum-soft);
}

/* footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  margin-top: 40px;
  color: var(--plum-soft);
  font-size: 0.9rem;
}
footer.site .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site h4 { font-size: 0.85rem; color: var(--plum); margin-bottom: 10px; }
footer.site a { color: var(--plum-soft); display: block; margin-bottom: 6px; }
footer.site a:hover { color: var(--mauve); }
footer.site .bottom { border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.82rem; }

/* contact form */
form.contact { display: grid; gap: 16px; max-width: 520px; }
form.contact label { font-size: 0.88rem; font-weight: 600; display: block; margin-bottom: 6px; }
form.contact input, form.contact textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--plum);
}
form.contact textarea { min-height: 130px; resize: vertical; }
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--mauve); outline-offset: 1px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
