/* ==========================================================================
   Povi waitlist — one light lavender theme.
   The colour tokens are the app's own design tokens, so the site and the app
   read as one product. Typography uses the visitor's own system fonts:
   ui-rounded on Apple devices for the friendly display headings, and the
   system UI face for everything that must be read carefully. No font files
   are downloaded.
   ========================================================================== */

:root {
  --bg: #F7F5FA;
  --scene: #EFE9F8;
  --scene-deep: #E6DDF5;
  --halo: #E1CFF6;
  --surface: #FFFFFF;
  --ink: #282134;
  --ink-soft: #3E3549;
  --muted: #5E566A;
  --accent: #7141B3;
  --accent-strong: #5D3199;
  --accent-soft: #8A62C4;
  --on-accent: #FFFFFF;
  --tint: #ECE0FB;
  --tint-strong: #DCCBF6;
  --line: #DDD4E6;
  --line-strong: #C9BDD8;
  --food: #FAE9D6;
  --food-ink: #7A4A1C;
  --energy: #E0EEF4;
  --rest: #E5EFDF;
  --rest-ink: #2F5A3C;
  --warm: #A55B1B;
  --focus: #4A2B8A;
  --danger: #8E2F3B;
  --danger-bg: #FBE9EC;
  --shadow-soft: 0 10px 30px rgba(50, 32, 76, 0.08);
  --shadow-lift: 0 18px 50px rgba(50, 32, 76, 0.14);

  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-panel: 32px;
  --radius-card: 24px;
  --radius-control: 16px;
  --radius-pill: 999px;

  --ease-settle: cubic-bezier(0.22, 0.7, 0.18, 1);
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--tint-strong); color: var(--ink); }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow { max-width: 760px; }

.placeholder {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

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

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.06;
  color: var(--ink);
  text-wrap: balance;
}
.display--hero { font-size: clamp(2.5rem, 4.2vw + 1.2rem, 4.1rem); }
.display--section { font-size: clamp(1.75rem, 2.2vw + 1rem, 2.6rem); letter-spacing: -0.024em; line-height: 1.12; }
.display--doc { font-size: clamp(2rem, 3vw + 1rem, 3rem); margin: 8px 0 18px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s var(--ease-settle), transform .18s var(--ease-settle), box-shadow .18s var(--ease-settle);
}
.button--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 0 rgba(36, 22, 50, 0.06);
}
.button--primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.button--primary:active { transform: translateY(1px); box-shadow: none; }
.button--primary[disabled], .button--primary[aria-busy="true"] {
  background: var(--accent-soft);
  cursor: progress;
}
.button--secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.button--secondary:hover { border-color: var(--accent); color: var(--accent-strong); }
.button--small { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.button--large { min-height: 58px; padding: 0 32px; font-size: 1.125rem; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--scene) 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header__inner {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark { width: 36px; height: 36px; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}
.site-nav__link:hover { background: var(--tint); color: var(--ink); }

@media (max-width: 480px) {
  .site-nav__link { display: none; }  /* the hero has the preview link's job on a phone; no hamburger needed */
  .brand__mark { width: 32px; height: 32px; }
}

/* --------------------------------------------------------------------------
   Scenes (hero, closing, status pages)
   -------------------------------------------------------------------------- */

.scene {
  position: relative;
  background: linear-gradient(180deg, var(--scene) 0%, var(--bg) 100%);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding: 8px 0 56px; overflow: hidden; }
.hero__inner {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 160px;
  margin-top: 4px;
}
.hero__halo {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 240px;
  height: 150px;
  transform: translate(-50%, -46%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--halo) 0%, rgba(228, 211, 247, 0.55) 45%, transparent 72%);
  pointer-events: none;
}
.coach {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.coach--hero { width: 136px; }
.coach__img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(60, 38, 92, 0.16));
  will-change: transform;
}

.hero__copy { display: grid; gap: 14px; }
.hero__copy .eyebrow { margin-bottom: -2px; }
.hero__body {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34ch;
  text-wrap: pretty;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  min-height: 36px;
  padding: 0 14px 0 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.status-pill__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 4px rgba(165, 91, 27, 0.14);
}

.hero__form { margin-top: 8px; scroll-margin-top: 96px; }

@media (min-width: 900px) {
  .hero { padding: 40px 0 88px; }
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
  }
  .hero__stage {
    order: 2;
    height: auto;
    min-height: 460px;
    margin: 0;
  }
  .hero__halo { width: 520px; height: 340px; transform: translate(-50%, -44%); }
  .coach--hero { width: min(420px, 100%); }
  .hero__copy { gap: 18px; }
  .hero__form { margin-top: 12px; }
}

/* --------------------------------------------------------------------------
   Waitlist form
   -------------------------------------------------------------------------- */

.waitlist {
  display: grid;
  gap: 12px;
  max-width: 560px;
  grid-template-areas: "notice" "email" "consent" "submit" "status" "supporting";
}
.waitlist__dev-notice { grid-area: notice; }
.waitlist__email { grid-area: email; }
.waitlist__consent { grid-area: consent; }
.waitlist__submit { grid-area: submit; }
.waitlist__status { grid-area: status; }
.waitlist__supporting { grid-area: supporting; }
.field { display: grid; gap: 6px; }
.field__label { font-weight: 650; font-size: 0.95rem; color: var(--ink); }
.field__input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.0625rem;
  transition: border-color .15s, box-shadow .15s;
}
.field__input::placeholder { color: #8E8798; }
.field__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(113, 65, 179, 0.16); }
.field__input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(142, 47, 59, 0.12); }

.waitlist__submit { width: 100%; }

.field--check {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 12px;
  padding: 4px 0;
}
.field__checkbox {
  width: 24px; height: 24px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.field__check-label {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 2px 0;
}
.field--check.is-invalid .field__check-label { color: var(--danger); }
.field--check.is-invalid .field__checkbox { outline: 2px solid var(--danger); outline-offset: 2px; border-radius: 4px; }

.waitlist__status {
  min-height: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink-soft);
}
.waitlist__status:empty { display: none; }
.waitlist__status[data-tone="error"] { color: var(--danger); }
.waitlist__status[data-tone="success"] {
  color: var(--rest-ink);
  background: var(--rest);
  padding: 12px 16px;
  border-radius: 14px;
}
.waitlist__status[data-tone="busy"] { color: var(--muted); }

.waitlist__supporting {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}
.waitlist__privacy { white-space: nowrap; }

.waitlist__dev-notice {
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--food);
  color: var(--food-ink);
  border: 1px dashed rgba(122, 74, 28, 0.35);
}

.waitlist.is-accepted .waitlist__email,
.waitlist.is-accepted .waitlist__consent,
.waitlist.is-accepted .waitlist__submit { display: none; }

@media (min-width: 560px) {
  /* Email and button share a row; the consent line sits directly beneath them. */
  .waitlist {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "notice notice" "email submit" "consent consent" "status status" "supporting supporting";
    align-items: end;
  }
  .waitlist__submit { width: auto; }
}

/* --------------------------------------------------------------------------
   Benefits
   -------------------------------------------------------------------------- */

.benefits { padding: 40px 0 24px; }
.benefits .display--section { max-width: 18ch; margin-bottom: 28px; }

.benefit-list { display: grid; gap: 18px; }
.benefit {
  display: grid;
  gap: 18px;
  padding: 26px 22px;
  border-radius: var(--radius-panel);
  background: var(--surface);
  border: 1px solid var(--line);
}
.benefit__heading {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
  text-wrap: balance;
}
.benefit__body { color: var(--ink-soft); max-width: 42ch; text-wrap: pretty; }

.benefit__figure { display: grid; gap: 10px; }
.benefit__caption { font-size: 0.85rem; color: var(--muted); }

.mini {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  user-select: none;
}

/* mini: week */
.mini-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mini-week__day {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 8px 0 7px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.mini-week__day--on { background: var(--tint); color: var(--ink); }
.mini-week__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.mini-week__day--on .mini-week__dot { background: var(--accent); }
.mini-plan {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--tint);
  color: var(--ink);
}
.mini-plan__tag { font-size: 0.72rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.mini-plan__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.mini-plan__meta { font-size: 0.85rem; color: var(--muted); }

/* mini: nutrition modes */
.mini-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--tint);
}
.mini-modes__mode {
  text-align: center;
  padding: 9px 4px;
  border-radius: 11px;
  font-weight: 600;
  color: var(--ink-soft);
}
.mini-modes__mode--on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 4px rgba(50, 32, 76, 0.08); }
.mini-meal {
  display: grid;
  grid-template-columns: auto 1fr 40px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--food);
}
.mini-meal__time { font-size: 0.8rem; font-weight: 600; color: var(--food-ink); }
.mini-meal__body { display: grid; gap: 2px; }
.mini-meal__name { font-weight: 650; color: var(--ink); }
.mini-meal__detail { font-size: 0.82rem; color: var(--muted); }
.mini-meal__plate {
  width: 40px; height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 42%, #B8D48E 0 7px, transparent 8px),
    radial-gradient(circle at 62% 60%, #F1C58C 0 8px, transparent 9px),
    radial-gradient(circle at 55% 35%, #E5A876 0 5px, transparent 6px),
    #FFF6EA;
  border: 2px solid #F0D7BB;
}

/* mini: review */
.mini-review {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.mini-review__mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--tint);
  position: relative;
}
.mini-review__mark::before, .mini-review__mark::after {
  content: "";
  position: absolute;
  left: 7px; right: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.mini-review__mark::before { top: 9px; }
.mini-review__mark::after { top: 15px; }
.mini-review__body { display: grid; gap: 2px; }
.mini-review__note { font-weight: 650; color: var(--ink); }
.mini-review__detail { font-size: 0.85rem; color: var(--muted); }
.mini-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini-choices__chip {
  text-align: center;
  padding: 10px 6px;
  border-radius: var(--radius-pill);
  background: var(--tint);
  color: var(--ink);
  font-weight: 600;
}
.mini-choices__chip:first-child { background: var(--accent); color: var(--on-accent); }

.benefits__note { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

@media (min-width: 720px) {
  .benefits { padding: 64px 0 32px; }
  .benefit {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    padding: 34px 34px;
  }
  .benefit:nth-child(even) .benefit__copy { order: 2; }
  .benefit__heading { font-size: 1.7rem; }
}

/* --------------------------------------------------------------------------
   Product preview
   -------------------------------------------------------------------------- */

.preview { padding: 40px 0; }
.preview__head { max-width: 640px; margin-bottom: 24px; display: grid; gap: 12px; }
.preview__body { color: var(--ink-soft); font-size: 1.05rem; }

.preview__frame {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, var(--scene) 0%, var(--scene-deep) 100%);
}
.preview__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  justify-self: center;
  max-width: 100%;
}
.preview__tab {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.preview__tab:hover { color: var(--ink); }
.preview__tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 6px rgba(50, 32, 76, 0.10);
}

.preview__stage { display: grid; justify-items: center; }
.preview__panel { display: grid; gap: 14px; justify-items: center; width: 100%; }
.preview__panel[hidden] { display: none; }
.preview__screen {
  width: min(100%, 320px);
  border-radius: 30px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}
.preview__screen img { width: 100%; height: auto; }
.preview__caption {
  max-width: 44ch;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.preview__label {
  justify-self: center;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  text-align: center;
}

@media (min-width: 720px) {
  .preview { padding: 56px 0; }
  .preview__frame { padding: 32px; gap: 24px; }
  .preview__screen { width: 340px; }
}

/* --------------------------------------------------------------------------
   PCOS clarity
   -------------------------------------------------------------------------- */

.clarity { padding: 48px 0; }
.clarity__inner { display: grid; gap: 28px; }
.clarity__copy { display: grid; gap: 16px; max-width: 620px; }
.clarity__body { color: var(--ink-soft); font-size: 1.05rem; text-wrap: pretty; }
.clarity__notes {
  display: grid;
  gap: 12px;
  align-self: start;
}
.clarity__note {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
}
.clarity__note dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.clarity__note dd { margin: 0; color: var(--ink-soft); line-height: 1.5; }

@media (min-width: 860px) {
  .clarity { padding: 72px 0; }
  .clarity__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
}

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

.faq { padding: 40px 0 56px; }
.faq .display--section { margin-bottom: 20px; }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { content: ""; }
.faq__icon {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--tint);
  position: relative;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform .2s var(--ease-settle);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer { padding: 0 4px 20px; color: var(--ink-soft); max-width: 62ch; display: grid; gap: 10px; }

@media (min-width: 720px) { .faq { padding: 56px 0 72px; } }

/* --------------------------------------------------------------------------
   Closing
   -------------------------------------------------------------------------- */

.closing { padding: 56px 0 72px; background: linear-gradient(180deg, var(--bg) 0%, var(--scene) 60%, var(--scene) 100%); }
.closing__inner { display: grid; justify-items: center; text-align: center; gap: 14px; }
.closing__coach { width: 112px; margin-bottom: 4px; }
.coach__img--small { filter: drop-shadow(0 10px 14px rgba(60, 38, 92, 0.14)); }
.closing .display--section { max-width: 16ch; }
.closing__body { color: var(--ink-soft); font-size: 1.05rem; max-width: 40ch; }
.closing .button { margin-top: 6px; }
.closing__supporting { font-size: 0.875rem; color: var(--muted); }

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

.site-footer { background: var(--scene); padding: 32px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.site-footer__inner {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  display: grid;
  gap: 16px;
}
.site-footer__brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.site-footer__brand .brand__word { font-size: 1.35rem; }
.site-footer__tagline { color: var(--ink-soft); font-weight: 500; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer__links a { color: var(--ink-soft); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer__links a:hover { color: var(--accent-strong); text-decoration: underline; }
.site-footer__note { font-size: 0.85rem; color: var(--muted); max-width: 70ch; }
.site-footer__legal { font-size: 0.85rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Documents & status pages
   -------------------------------------------------------------------------- */

.doc { padding: 40px 0 72px; }
.doc__intro { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 12px; text-wrap: pretty; }
.doc__meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; }
.doc__notice {
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--food);
  color: var(--food-ink);
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.doc__section { display: grid; gap: 10px; padding: 22px 0; border-top: 1px solid var(--line); }
.doc__section h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.doc__section p { color: var(--ink-soft); max-width: 66ch; }
.doc__back { margin-top: 32px; }

.status-page { min-height: 60vh; padding: 48px 0 80px; }
.status-page__inner { display: grid; justify-items: center; text-align: center; gap: 12px; }
.status-page__coach { width: 128px; margin-bottom: 8px; }
.status-page__body { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; text-wrap: pretty; }
.status-page__note { font-size: 0.9rem; color: var(--muted); max-width: 46ch; }
.status-page .button { margin-top: 12px; }

/* --------------------------------------------------------------------------
   Character motion — small, pausable, optional
   -------------------------------------------------------------------------- */

@keyframes coach-float {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50%      { transform: translateY(-9px) rotate(1.2deg); }
}
@keyframes coach-greet {
  0%   { transform: translateY(0) scale(1); }
  30%  { transform: translateY(6px) scale(1.06, 0.94) rotate(-3deg); }
  62%  { transform: translateY(-14px) scale(0.97, 1.04) rotate(3deg); }
  100% { transform: translateY(0) scale(1) rotate(0); }
}
@keyframes coach-cheer {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-12px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(0); }
}

.coach--hero .povi__float { animation: coach-float 5.4s ease-in-out infinite; }
.coach.is-paused .povi__float { animation-play-state: paused; }
.coach.is-greeting .povi__float { animation: coach-greet .9s var(--ease-settle) 1; }
.coach.is-cheer .povi__float { animation: coach-cheer .8s var(--ease-settle) 1; }

/* Layered face. The base is the head with the skin reconstructed under the
   features; the eyes and mouth are the original pixels lifted out as sprites
   and positioned by percentages from assets/img/face/FACE_LAYOUT.json.
   Expression = transforms only: gaze (translate), lids (scaleY), mouth shape
   (scale), lean (rotate). Nothing is redrawn. */
.povi__float { display: block; }
.povi__stage {
  position: relative;
  display: block;
  width: 100%;
  transform: rotate(var(--lean, 0deg)) translate(var(--lean-x, 0px), 0);
  transition: transform .26s var(--ease-settle);
  filter: drop-shadow(0 18px 22px rgba(60, 38, 92, 0.16));
}
.povi__stage .coach__img { filter: none; }
.povi__base { display: block; width: 100%; }
.povi__eye, .povi__mouth {
  position: absolute;
  display: block;
  height: auto;
  pointer-events: none;
}
.povi__eye img, .povi__mouth img { width: 100%; height: auto; }
.povi__eye {
  transform-origin: 50% 62%;
  transform: translate(var(--gaze-x, 0px), var(--gaze-y, 0px)) scale(var(--eye-scale, 1)) scaleY(var(--lid, 1));
  transition: transform .18s var(--ease-settle);
}
.povi__eye.is-blinking { transition-duration: .07s; }
.povi__mouth {
  transform-origin: 50% 40%;
  transform: translate(var(--mouth-x, 0px), var(--mouth-y, 0px)) scale(var(--mouth-sx, 1), var(--mouth-sy, 1)) rotate(var(--mouth-rot, 0deg));
  transition: transform .22s var(--ease-settle);
}
/* Named expressions the script toggles on the button. */
.povi.is-curious { --mouth-sx: .64; --mouth-sy: 1.4; --mouth-y: 3%; --eye-scale: 1.05; }
.povi.is-happy { --mouth-sx: 1.18; --mouth-sy: 1.08; --lid: .62; --gaze-y: 4%; }
.povi.is-attentive { --eye-scale: 1.03; }
.povi.is-wink .povi__eye--left { --lid: .08; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .coach__img, .povi__float { animation: none !important; }
  .povi__stage, .povi__eye, .povi__mouth { transition: none; }
  .button, .field__input, .preview__tab, .faq__icon::before, .faq__icon::after { transition: none; }
}
