/* MumLife360° — styles. Colours and type follow spec v2.1. */

@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/dm-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Locked palette */
  --terracotta: #E76F51;      /* logo, panels, large shapes — never body or small text on cream */
  --cream: #FFF4E8;           /* page background; text on evergreen */
  --evergreen: #263E39;       /* body text, headings, buttons, footer */
  --deep-terracotta: #B9533D; /* sub-headlines, eyebrows, link underlines — large text only on cream (4.4:1) */
  --sun: #FFBB55;             /* degree ring, sun — never text */
  --clay: #F5E8E0;            /* form fields, secondary panels */
  --coral: #F36B50;           /* illustration only */
  --white: #FFFFFF;           /* form card, as in the visual direction */

  --head: "Manrope", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --radius: 20px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--evergreen);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--evergreen); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
section[id] { scroll-margin-top: 16px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--evergreen); color: var(--cream); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ── Shared type ── */
.eyebrow {
  /* deep terracotta on cream is 4.43:1, so the label is set as large bold text (≥18.66px) to meet WCAG AA */
  font: 700 1.1875rem/1.3 var(--head);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--deep-terracotta);
  margin-bottom: .9rem;
}
.sub {
  font: 600 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.3 var(--head);
  color: var(--deep-terracotta);
  margin-bottom: 1.1rem;
}
.sub-plain { font-family: var(--body); font-weight: 400; color: var(--evergreen); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
h1 { font-size: clamp(2.6rem, 1.8rem + 3.6vw, 4.25rem); }
h2 { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.25rem); }

.text-link {
  /* evergreen text with a deep-terracotta underline: small links stay above 4.5:1 */
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--deep-terracotta);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--deep-terracotta); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 30px;
  background: var(--evergreen); color: var(--cream);
  font: 600 1.0625rem/1.2 var(--body);
  border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(38 62 57 / .22); }
.btn:focus-visible { outline-offset: 4px; }
.btn-small { min-height: 44px; padding: 10px 20px; font-size: 1rem; }

/* ── Header ── */
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-block: 20px; }
.header-logo { margin-right: auto; }
.header-logo img { height: 26px; width: auto; }
.header-btn { padding: 10px 16px; font-size: .95rem; }
.header-nav { order: 3; width: 100%; }
.header-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.header-nav a { text-decoration: none; font-weight: 500; white-space: nowrap; padding-block: 6px; display: inline-block; }
.header-nav a:hover { text-decoration: underline; text-decoration-color: var(--deep-terracotta); text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ── Hero ── */
.hero { display: grid; gap: 36px; padding-block: 28px 72px; }
.hero h1 { margin-bottom: .35em; }
.hero-para { font-size: 1.2rem; max-width: 34em; margin-bottom: 1.8rem; }
.sunrise { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; min-height: 320px; }
.sunrise-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.sunrise-text {
  /* evergreen on terracotta is 3.71:1, so this text stays ≥24px (large text) */
  position: absolute; left: 22%; top: 38%; right: 8%;
  font: 700 clamp(2.25rem, 1.6rem + 2.6vw, 3.4rem)/1.08 var(--head);
  letter-spacing: -0.02em; margin: 0; max-width: 6em;
}

/* ── Ask ── */
.ask { display: grid; gap: 32px; padding-block: 72px; }
.ask-intro .small-note { font-size: .98rem; margin-top: 1.6rem; }
.form-card { background: var(--white); border-radius: var(--radius); padding: 28px 20px; box-shadow: 0 1px 0 rgb(38 62 57 / .05); }
.field { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.label { display: block; font-weight: 500; font-size: 1.0625rem; margin-bottom: 8px; padding: 0; }
.req { color: var(--deep-terracotta); }
.helper { font-size: .95rem; margin: -4px 0 8px; }
textarea, input[type="text"], input[type="email"] {
  width: 100%; display: block;
  font: inherit; color: var(--evergreen);
  background: var(--clay);
  border: 1.5px solid transparent; border-radius: 12px;
  padding: 14px 16px;
}
textarea { resize: vertical; min-height: 130px; }
::placeholder { color: rgb(38 62 57 / .72); }
textarea:focus, input[type="text"]:focus, input[type="email"]:focus { outline: none; border-color: var(--evergreen); background: var(--white); }
[aria-invalid="true"] { border-color: var(--deep-terracotta) !important; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; line-height: 1.4; }
.choices .choice { background: var(--clay); border-radius: 999px; padding: 10px 16px; border: 1.5px solid transparent; }
.choices .choice:has(input:checked) { border-color: var(--evergreen); background: var(--white); }
.choice input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--evergreen); }
.consent { margin: 4px 0 26px; }

.form-actions { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.form-actions .btn { width: 100%; }
.form-actions .text-link { align-self: center; }
.field-error, .form-error { color: var(--deep-terracotta); font-weight: 600; font-size: 1rem; margin: 8px 0 0; }
.form-error { margin-top: 18px; }
.preview-note { margin: 18px 0 0; font-size: .9rem; padding: 10px 14px; background: var(--clay); border-radius: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.confirmation h3 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); margin-bottom: .8em; outline: none; }
.confirmation p { font-size: 1.15rem; }

/* ── Why ── */
.why { padding-block: 72px; }
.why-grid { display: grid; gap: 28px; margin-bottom: 40px; }
.lead { font: 700 clamp(1.3rem, 1.1rem + .8vw, 1.7rem)/1.35 var(--head); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.card { background: var(--clay); border-radius: var(--radius); padding: 24px; }
.card h3 { color: var(--deep-terracotta); font-size: 1.9rem; margin-bottom: .25em; } /* large text: 4.0:1 on clay passes AA large */
.card p { margin: 0; }

/* ── Founder ── */
.founder { display: grid; gap: 36px; padding-block: 72px; }
.founder-photo { margin: 0; width: min(100%, 460px); justify-self: center; }
.founder-frame { position: relative; padding: 28px 28px 0 0; } /* room for the sun behind the top-right corner */
.founder-sun { position: absolute; top: 0; right: 0; width: 38%; height: auto; aspect-ratio: 1; }
.founder-frame picture, .founder-frame img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.founder-caption { margin: 14px 0 12px; font: 500 .9375rem/1.4 var(--body); letter-spacing: .02em; color: var(--evergreen); } /* evergreen on cream 10.6:1 — fine at any size */
.founder-copy h2 { margin-bottom: .8em; }
.highlight { font: 700 clamp(1.35rem, 1.2rem + .6vw, 1.65rem)/1.3 var(--head); color: var(--deep-terracotta); margin-top: 1.4rem; }
.signature { font-weight: 600; }

/* ── Journey ── */
.journey { padding-block: 72px; }
.journey-para { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); max-width: 48em; margin-bottom: 2rem; }
.steps { list-style: none; padding: 0; margin: 0 0 56px; display: grid; gap: 12px; }
.step { position: relative; display: flex; align-items: center; }
.step span { flex: 1; background: var(--clay); border-radius: 16px; padding: 20px 24px; font: 700 1.35rem/1.2 var(--head); }
.step-active span { background: var(--terracotta); } /* evergreen 21.6px bold on terracotta = large text, 3.7:1 */
.step-arrow { color: var(--deep-terracotta); flex: none; margin: 0 10px 0 4px; transform: rotate(90deg); position: absolute; top: -18px; left: 22px; width: 20px; height: 20px; }
.steps .step + .step { margin-top: 12px; }
.journey-sub { font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.4rem); margin-bottom: 1.2em; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.milestone { border-top: 2px solid var(--clay); padding-top: 18px; }
.milestone-label { font: 700 1.1875rem/1.2 var(--head); letter-spacing: .04em; text-transform: uppercase; color: var(--deep-terracotta); margin-bottom: .6rem; }
.milestone h4 { font-size: 1.5rem; font-weight: 600; margin-bottom: .5em; }

/* ── Closing ── */
.closing { padding-block: 40px 24px; }
.closing-panel {
  background: var(--terracotta); color: var(--evergreen);
  border-radius: var(--radius); text-align: center;
  padding: 56px 24px;
}
/* Every evergreen text on terracotta here is ≥24px (spec rule; 3.71:1 = AA large) */
.closing-panel h2 { font-size: clamp(2.5rem, 1.8rem + 3vw, 4rem); }
.closing-para { font-size: 1.5rem; line-height: 1.45; max-width: 26em; margin: 0 auto 1.6rem; }
.closing-q { font: 700 1.75rem/1.3 var(--head); margin-bottom: 1.6rem; }
.closing-panel .btn { margin-bottom: 1.2rem; }
.closing-ig { font: 600 1.5rem/1.3 var(--body); text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ── Footer ── */
.site-footer { padding-bottom: 24px; }
.footer-inner { background: var(--evergreen); color: var(--cream); border-radius: var(--radius); padding: 28px 24px; display: grid; gap: 18px; justify-items: start; }
.footer-logo img { height: 32px; width: auto; }
.footer-copy { margin: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { text-underline-offset: 4px; }
.footer-legal { grid-column: 1 / -1; justify-self: stretch; margin: 0; padding-top: 16px; border-top: 1px solid rgb(255 244 232 / .2); font-size: .875rem; line-height: 1.5; }
.site-footer :focus-visible { outline-color: var(--cream); }

/* ── Privacy page ── */
.privacy { max-width: 760px; padding-block: 32px 72px; }
.privacy h1 { font-size: clamp(2.2rem, 1.8rem + 2vw, 3rem); }
.privacy h2 { font-size: 1.4rem; font-weight: 600; margin-top: 2rem; }
.privacy a { text-decoration-color: var(--deep-terracotta); text-underline-offset: 3px; }
.draft-banner { background: var(--clay); border-left: 4px solid var(--deep-terracotta); padding: 14px 18px; border-radius: 8px; font-weight: 500; }
.updated { margin-top: 2.5rem; font-size: .95rem; }
.privacy-page .header-inner .text-link { margin-left: auto; }

/* ── Tablet and up ── */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .header-nav { order: 0; width: auto; }
  .header-inner { column-gap: 24px; }
  .header-logo img { height: 46px; }
  .header-btn { padding: 10px 20px; font-size: 1rem; }
  .form-card { padding: 36px 32px; }
  .form-actions { flex-direction: row; align-items: center; gap: 28px; }
  .form-actions .btn { width: auto; min-width: 230px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps .step + .step { margin-top: 0; }
  .step-arrow { display: none; }
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; padding: 26px 32px; }
  .footer-copy { justify-self: center; }
  .closing-panel { padding: 80px 40px; }
}

/* ── Desktop ── */
@media (min-width: 1000px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding-block: 48px 96px; }
  .sunrise { aspect-ratio: auto; height: 100%; min-height: 540px; }
  .ask { grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; padding-block: 96px; }
  .ask-intro { position: sticky; top: 32px; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .founder { grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
  .founder-photo { width: 100%; max-width: 500px; justify-self: start; }
  .founder-frame { padding: 36px 36px 0 0; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .step + .step { padding-left: 44px; }
  .step-arrow { display: block; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; margin: 0; }
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}

/* ───────── Motion ─────────
   Everything below is switched off for visitors who ask their device for reduced motion. */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Moving band of words */
.ribbon { position: relative; border-block: 1.5px solid var(--clay); padding-block: 22px; margin-block: 8px 0; overflow: hidden; }
.ribbon-track { display: flex; width: max-content; animation: ribbon 60s linear infinite; }
.ribbon-run { display: flex; align-items: center; flex: none; }
.ribbon-word { font: 600 clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem)/1.2 var(--head); letter-spacing: -0.01em; white-space: nowrap; padding-inline: 28px; }
.ribbon-dot { width: 18px; height: 18px; flex: none; }
.ribbon.is-paused .ribbon-track { animation-play-state: paused; }
.ribbon-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--evergreen); color: var(--cream); display: grid; place-items: center;
  box-shadow: 0 0 0 8px var(--cream);
}
.ribbon-toggle .i-play { display: none; }
.ribbon.is-paused .i-pause { display: none; }
.ribbon.is-paused .i-play { display: block; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* Sunrise artwork: the sun rises once, then everything breathes slowly */
.art-sun { animation: sun-rise 2.2s cubic-bezier(.2,.7,.2,1) both, sun-float 9s ease-in-out 2.2s infinite; }
.art-ring { transform-box: fill-box; transform-origin: center; animation: ring-breathe 8s ease-in-out infinite; }
.art-ring-2 { animation-delay: -4s; }
.art-band { animation: band-glow 10s ease-in-out infinite; }
.sunrise-text { animation: fade-up 1.2s ease .9s both; }
@keyframes sun-rise { from { transform: translateY(170px); } to { transform: translateY(0); } }
@keyframes sun-float { 50% { transform: translateY(-10px); } }
@keyframes ring-breathe { 50% { transform: scale(1.045); opacity: .7; } }
@keyframes band-glow { 50% { fill-opacity: .22; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Gentle reveal on scroll (only when JavaScript is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* A little more air between sections on large screens */
@media (min-width: 1000px) {
  .why, .founder, .journey { padding-block: 112px; }
  .ask { padding-block: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon-track, .art-sun, .art-ring, .art-band, .sunrise-text { animation: none !important; }
  .ribbon-toggle { display: none; }
  .ribbon-track { width: auto; flex-wrap: wrap; justify-content: center; }
  .ribbon-run[aria-hidden="true"] { display: none; }
  .ribbon-run { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
