/* Whole Woman Wellness: brand styles. Fonts are self-hosted (no third-party requests). */
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/montserrat-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap;
  src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap;
  src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap;
  src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Anton"; font-weight: 400; font-display: swap;
  src: url("../fonts/anton-latin-400-normal.woff2") format("woff2"); }

:root {
  --plum: #4B0F4F; --berry: #8A2A66; --rose: #C2487A; --lavender: #F3D9F7; --lilac: #D9A3EA;
  --tint: #F6ECF8; --cream: #FBF5F2; --ink: #2A1230; --body: #3D2643; --muted: #6B5670;
  --line: #EBDDE6; --control: #D9C3D6; --then: #9C86A3; --track: #F1E6EE;
  --gradient: linear-gradient(155deg, var(--plum) 0%, var(--berry) 60%, var(--rose) 100%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; }
.page { max-width: 480px; margin: 0 auto; padding: 20px 16px 24px; }
.page > * + * { margin-top: 16px; }
.footer { max-width: 480px; margin: 0 auto; padding: 8px 16px 32px; font-size: 12px; color: var(--muted); }
.footer p { margin: 0 0 6px; }

/* Type */
.display { font-family: "Anton", Impact, sans-serif; font-weight: 400; text-transform: lowercase;
  font-size: 44px; line-height: 0.98; margin: 0; }
.title { font-size: 22px; line-height: 1.25; margin: 8px 0 0; }
.h2 { font-size: 17px; font-weight: 700; margin: 0; line-height: 1.35; }
.h3 { font-size: 15px; font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
.eyebrow { color: var(--lavender); font-size: 11px; font-weight: 600; letter-spacing: .12em; margin: 0 0 10px; }
.kicker { color: var(--berry); font-size: 11px; font-weight: 600; letter-spacing: .1em; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.ink { color: var(--ink); }
.delta { color: var(--berry); font-weight: 600; }
p { margin: 0; }
p + p { margin-top: 10px; }
a { color: var(--berry); font-weight: 600; }

/* Surfaces */
.hero, .feature { background: var(--gradient); color: #fff; }
.hero { border-radius: 0 0 28px 28px; margin: -20px -16px 0; padding: 40px 24px 32px; }
.feature { border-radius: 24px; padding: 24px 22px; }
.feature > * + * { margin-top: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; margin-left: 0; margin-right: 0; }
.card.tint { background: var(--tint); border-color: transparent; }
.card.dashed { border-style: dashed; border-color: #B9A3C2; }
.stack > * + * { margin-top: 16px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trio .card { padding: 14px 12px; }
.glass { background: rgba(255, 255, 255, .14); border-radius: 16px; padding: 14px; }
.big { font-size: 22px; font-weight: 700; }
.strong-lav { color: var(--lavender); font-weight: 600; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.prose ul { padding-left: 20px; margin: 10px 0; }
.prose li + li { margin-top: 6px; }

/* Controls */
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.card { padding: 16px; }
label, legend { font-weight: 600; font-size: 14.5px; }
legend { padding: 0; margin-bottom: 8px; }
.field label:not(.choice):not(.chip) { display: block; margin-bottom: 6px; }
input[type=email], input[type=text] { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit;
  border: 1px solid var(--control); border-radius: 12px; background: #fff; color: var(--ink); }
.code-input { font-size: 24px; letter-spacing: 6px; text-align: center; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; }
.choice input { width: 20px; height: 20px; accent-color: var(--plum); flex-shrink: 0; }
.button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px;
  border: 0; border-radius: 999px; background: var(--plum); color: #fff; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; }
.button.secondary { background: #fff; color: var(--plum); border: 1.5px solid var(--plum); }
.link-button { display: block; background: none; border: 0; color: var(--berry); font: inherit; font-weight: 600;
  min-height: 44px; padding: 0 12px; cursor: pointer; }
.link-button.center { margin-left: auto; margin-right: auto; }
.link { display: inline-flex; align-items: center; min-height: 44px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Assessment */
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.progress { width: 100%; height: 6px; border: 0; border-radius: 999px; background: var(--line); overflow: hidden;
  -webkit-appearance: none; appearance: none; display: block; }
.progress::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
.progress::-webkit-progress-value { background: var(--berry); border-radius: 999px; }
.progress::-moz-progress-bar { background: var(--berry); border-radius: 999px; }
.question-text { font-size: 15.5px; font-weight: 500; line-height: 1.45; margin-bottom: 14px; }
.question-missing { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose); }
.scale { display: flex; justify-content: space-between; gap: 6px; }
.scale-option { position: relative; flex: 1; display: flex; justify-content: center; }
.scale-option input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.scale-dot { width: 100%; max-width: 56px; height: 48px; border-radius: 999px; border: 1.5px solid var(--control);
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; color: var(--plum); background: #fff; }
.scale-option input:checked + .scale-dot { background: var(--plum); border-color: var(--plum); color: #fff; }
.scale-option input:focus-visible + .scale-dot { outline: 3px solid var(--rose); outline-offset: 2px; }
.scale-ends { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.scale-ends span:last-child { text-align: right; }
.hint-box { font-size: 13.5px; color: var(--muted); }
.hint-box summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--berry); }
.scale-key { padding-left: 0; list-style: none; margin: 4px 0 0; }
.scale-key li + li { margin-top: 4px; }

/* Results */
.score-row + .score-row { margin-top: 14px; }
.score-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.score-name { font-size: 14.5px; font-weight: 600; }
.score-num { font-size: 18px; font-weight: 700; color: var(--plum); }
.bar { display: block; width: 100%; height: 8px; margin: 6px 0 4px; }
.bar-track { fill: var(--track); }
.card.tint .bar-track { fill: #fff; }
.bar-fill { fill: var(--berry); }
.overall { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px;
  font-size: 13px; color: var(--muted); }
.overall strong { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--control); background: #fff; color: var(--plum); font-size: 14px; font-weight: 600; cursor: pointer; }
.chip input:checked + span { background: var(--plum); border-color: var(--plum); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--rose); outline-offset: 2px; }
.dumbbell { display: block; width: 100%; height: 16px; margin: 6px 0 4px; overflow: visible; }
.db-track { stroke: var(--track); stroke-width: 4; stroke-linecap: round; }
.card.tint .db-track { stroke: #fff; }
.db-span { stroke: var(--lilac); stroke-width: 4; stroke-linecap: round; }
.db-then { fill: #fff; stroke: var(--then); stroke-width: 2; }
.db-now { fill: var(--plum); }
.legend { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.key-then, .key-now { display: inline-block; border-radius: 999px; }
.key-then { width: 10px; height: 10px; border: 2px solid var(--then); background: #fff; }
.key-now { width: 12px; height: 12px; background: var(--plum); margin-left: 6px; }
.support { font-size: 12px; color: var(--muted); text-align: center; }

/* Messages */
.flash { border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.flash-error { background: #FDECEF; color: #7A1B3A; }
.flash-info { background: var(--tint); color: var(--plum); }

@media (max-width: 360px) {
  .trio { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .display { font-size: 38px; }
}

/* Legends sit on a fieldset's border by default; float them inside instead. */
fieldset > legend { float: left; width: 100%; }
fieldset > legend + * { clear: both; }
.trio .h3 { font-size: 14px; overflow-wrap: anywhere; hyphens: auto; }

/* Journal, feedback, testimonials, settings */
.display-sm { font-family: "Anton", Impact, sans-serif; font-weight: 400; text-transform: lowercase;
  font-size: 32px; line-height: 1; margin: 8px 0 0; color: var(--plum); }
.prompt-lg { display: block; font-size: 18px; font-weight: 600; line-height: 1.4; color: #fff; }
.pill { display: inline-block; background: var(--tint); color: var(--berry); font-size: 12.5px; font-weight: 600;
  border-radius: 999px; padding: 6px 12px; }
.block { display: block; font-weight: 400; }
textarea { display: block; width: 100%; padding: 14px; font: inherit; line-height: 1.55; color: var(--ink);
  border: 1px solid var(--control); border-radius: 16px; background: #fff; resize: vertical; }
.row-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px;
  padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--ink); font-weight: 400; }
.row-link.plain { background: transparent; border: 0; padding: 4px 0; min-height: 48px; }
.row-link > span:last-child { color: var(--berry); font-size: 22px; }
.row-locked { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px;
  padding: 10px 16px; background: #F4EEF2; border-radius: 14px; color: var(--muted); }
.button.light { background: #fff; color: var(--plum); }
.button.danger { background: #8E1F3D; }
.summary { min-height: 44px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.quote { font-style: italic; font-size: 15.5px; }
.actions { display: flex; align-items: center; gap: 16px; }
.lock-note { padding: 12px 16px; }
.menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.menu a { display: flex; flex-direction: column; justify-content: center; min-height: 72px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.menu a span { font-size: 12.5px; color: var(--muted); font-weight: 400; }
fieldset.card.field { border: 1px solid var(--line); padding: 16px; }
.row-locked > span { white-space: nowrap; }

/* Admin */
body.admin { background: #FAF7F9; }
.admin-page { max-width: 1040px; }
.admin-bar { background: var(--plum); color: #fff; padding: 12px 16px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 8px 20px; }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.admin-nav a, .admin-nav .link-button { color: var(--lavender); font-weight: 600; text-decoration: none; min-height: 44px;
  display: inline-flex; align-items: center; padding: 0; }
.narrow { max-width: 440px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.stat-num { font-size: 28px; font-weight: 700; color: var(--plum); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.filters label { margin: 0; }
select { min-height: 44px; padding: 8px 12px; font: inherit; border: 1px solid var(--control); border-radius: 10px; background: #fff; }
.button.compact { width: auto; min-height: 44px; padding: 0 18px; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
table.data caption { text-align: left; font-weight: 700; padding: 0 0 8px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td { white-space: nowrap; }
table.data thead th { font-size: 12px; color: var(--muted); font-weight: 600; }
table.data tbody th { font-weight: 600; }
table.data tr.divider th, table.data tr.divider td { border-top: 2px solid var(--line); }
.n { font-size: 12px; color: var(--muted); font-weight: 400; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.comments { margin: 0; padding-left: 20px; font-size: 14px; }
.comments li + li { margin-top: 6px; }
.report-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.report-grid table.data td:last-child, .report-grid table.data th:last-child { width: 72px; text-align: right; }
.report-grid table.data td:nth-child(2) { width: 56px; }
.admin-page .h2 { margin-top: 12px; }
.brand-logo { display: block; width: 168px; height: auto; margin: 4px auto 0; }
.brand-logo + .hero { margin-top: 16px; border-radius: 24px; margin-left: 0; margin-right: 0; }
