/* Self-hosted Nunito Sans (SIL Open Font License), so no visitor data goes to Google */
/* Nunito Sans · cyrillic-ext */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/nunito-sans-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Nunito Sans · cyrillic */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/nunito-sans-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Nunito Sans · vietnamese */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/nunito-sans-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Nunito Sans · latin-ext */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/nunito-sans-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Nunito Sans · latin */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/nunito-sans-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-canvas: #fbf6f1;
  --bg-surface: #fff;
  --brand-primary-soft: #fce8ec;
  --brand-primary-strong: #de6f84;
  --brand-secondary-soft: #e8f0ea;
  --brand-secondary-strong: #5e7e6a;
  --text-primary: #3b3134;
  --text-secondary: #85777b;
  --text-accent: #d45f75;
  --border: #f0e5de;
  --radius-control: 999px;
  --radius-inner: 16px;
  --radius-card: 24px;
  --shadow: 0 14px 40px rgba(59, 48, 51, 0.08);
  --font-body: "Nunito Sans", system-ui, sans-serif;
  /* Fluid: 120px at 1440, easing down to 64px instead of jumping at a breakpoint */
  --gutter: clamp(64px, 8.333vw, 120px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Logo */
.logo { display: inline-flex; flex: none; }
.logo img { width: 176px; height: 48px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* 1px transparent border keeps the size stable when hover adds an outline */
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font: 700 15px/normal var(--font-body);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
/* States from Figma "4 · Button State": default → hover (white + outline) → pressed (soft + deep rose) */
.btn--soft { background: var(--brand-primary-soft); color: var(--text-accent); }
.btn--strong { background: var(--brand-primary-strong); color: #fff; }
/* Hover only for mouse/trackpad — on touch screens a tap would leave it stuck */
@media (hover: hover) and (pointer: fine) {
  .btn--soft:hover, .btn--strong:hover { background: #fff; border-color: var(--brand-primary-strong); color: var(--text-accent); }
  .btn--soft:hover { border-color: var(--text-accent); }
  .btn--outline:hover { border-color: #e6d6cc; }
  .mail:hover { color: var(--text-accent); }
  .social:hover { background: #fff; border-color: var(--text-accent); }
}
.btn--soft:active, .btn--strong:active { background: var(--brand-primary-soft); border-color: #fff; color: #a64d5d; }
.btn--soft:active { background: #ffe7ec; }
.btn--strong[disabled] { background: var(--brand-primary-strong); border-color: transparent; color: #fff; }
.btn__icon {
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.btn__icon--arrow { --icon: url("assets/icon-arrow-right.svg"); }
.btn__icon--refresh { --icon: url("assets/icon-refresh.svg"); }
.btn--lg { padding: 15px 27px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--brand-primary-strong);
  outline-offset: 3px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-block: 28px;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  padding-block: 48px;
}
.hero__copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 14px;
  border-radius: var(--radius-control);
  background: var(--brand-primary-soft);
  color: var(--text-accent);
  font-weight: 700;
  font-size: 13px;
}
.hero__title {
  margin: 0;
  font-weight: 800;
  /* 64px at 1440, shrinking with the column so "breast cancer alone." stays on one line */
  font-size: clamp(44px, 4.45vw, 64px);
  line-height: 1.125;
  letter-spacing: -0.015em;
}
.accent { color: var(--brand-primary-strong); }
.hero__title .accent { display: block; }
.hero__lead {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 19px;
  line-height: 30px;
  color: var(--text-secondary);
}

/* Waitlist (hero) */
.form-card.form-card--waitlist { width: 100%; }
.waitlist { display: flex; flex-direction: column; gap: 14px; padding: 24px 24px 22px; }
.waitlist[hidden] { display: none; }
.waitlist__title { margin: 0; font-weight: 700; font-size: 20px; line-height: normal; }
.waitlist__sub { font-size: 15px; color: var(--text-secondary); }
.waitlist__row { display: flex; align-items: flex-start; gap: 12px; }
.waitlist__row .field { flex: 1 1 0; min-width: 160px; }
.waitlist__btn { flex: none; height: 52px; padding-block: 0; }
/* Fields never get narrower than 160px: based on the form's own width, not the screen.
   2×160 + 138 button + 2×12 gaps = 482 → below that the button drops to its own line;
   2×160 + 12 = 332 → below that everything stacks */
.waitlist { container-type: inline-size; }
@container (max-width: 481px) {
  .waitlist__row { flex-wrap: wrap; }
  .waitlist__btn { flex-basis: 100%; }
}
@container (max-width: 331px) {
  .waitlist__row { flex-direction: column; align-items: stretch; }
  .waitlist__row .field { min-width: 0; }
}
.waitlist__note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.waitlist__note img { flex: none; }
p.form-alert { font-weight: 600; font-size: 13px; color: var(--text-accent); }

/* Follow our journey + social buttons (hero and footer) */
.follow { display: flex; flex-direction: column; gap: 14px; }
.follow__title { font-weight: 700; font-size: 17px; }
.socials { display: flex; gap: 14px; }
.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand-primary-soft);
  transition: background-color .2s, border-color .2s;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero__visual { position: relative; flex: none; width: 500px; height: 600px; }
.hero__bg {
  position: absolute;
  left: 60px; top: 40px;
  width: 440px; height: 520px;
  border-radius: 220px;
  background: var(--brand-primary-soft);
}
.hero__photo {
  position: absolute;
  left: 90px; top: 20px;
  width: 380px; height: 500px;
  object-fit: cover;
  border-radius: 190px 190px 32px 32px;
}

.card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  border-radius: var(--radius-inner);
  background: var(--bg-surface);
  box-shadow: var(--shadow);
  white-space: nowrap;
  width: max-content;
}
.card strong { font-weight: 700; font-size: 15px; }
.card__text { display: flex; flex-direction: column; gap: 1px; }
.card__text span { font-size: 13px; color: var(--text-secondary); }
.card--person { left: 0; top: 90px; }
.card--safe { left: 360px; top: 250px; }
.card--safe strong { font-size: 14px; line-height: 20px; }
.card--lyn { left: 10px; top: 460px; }
.card--lyn .card__text { gap: 2px; }
.card--lyn strong { font-size: 13px; }
.card .green { color: var(--brand-secondary-strong); }
.card .body { width: 220px; font-size: 14px; line-height: 20px; color: var(--text-primary); white-space: normal; }
.chip {
  padding: 6px 12px;
  border-radius: var(--radius-control);
  background: var(--brand-primary-soft);
  color: var(--text-accent);
  font-weight: 700;
  font-size: 12px;
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: var(--radius-inner);
}
.icon-tile--green { width: 40px; height: 40px; background: var(--brand-secondary-soft); }
.icon-tile--white { width: 44px; height: 44px; background: var(--bg-surface); }
.icon-tile--round { border-radius: 999px; }

/* Contact */
.contact { padding-bottom: 68px; }
.contact__panel {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 56px 48px 56px 64px;
  border-radius: 40px;
  background: var(--brand-primary-soft);
}
.contact__copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.eyebrow {
  color: var(--text-accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.contact h2 { font-weight: 800; font-size: 44px; line-height: 52px; }
.contact__lead { font-size: 17px; line-height: 27px; color: var(--text-secondary); }
.mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  font-weight: 700;
  font-size: 16px;
}

.form-card {
  flex: none;
  width: 520px;
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  box-shadow: var(--shadow);
}
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
}
.form[hidden], .success[hidden], .alert[hidden] { display: none; }
.form__row { display: flex; align-items: flex-start; gap: 12px; }
.form__row .field { flex: 1 1 0; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-weight: 700; font-size: 14px; }
.req { color: var(--text-accent); }
.field__error { font-weight: 600; font-size: 13px; color: var(--text-accent); }
.field__error:empty { display: none; }

/* Field states: default · focus · filled (valid) · error */
.control { position: relative; }
.control input, .control textarea {
  display: block;
  width: 100%;
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  font: 400 15px/normal var(--font-body);
  transition: border-color .2s;
}
.control input { height: 52px; padding: 0 16px 0 18px; border-radius: var(--radius-control); }
.control textarea { height: 120px; padding: 14px 16px 14px 18px; border-radius: var(--radius-inner); resize: none; }
.control input::placeholder, .control textarea::placeholder { color: var(--text-secondary); opacity: 1; }
/* 2px borders in focus/error; padding drops by .5px so text doesn't shift */
.control input:focus, .control textarea:focus {
  outline: none;
  border: 2px solid var(--brand-primary-strong);
  padding-left: 17.5px;
}
.control input:focus { padding-right: 15.5px; }
.control__icon { position: absolute; right: 16px; top: 17px; display: none; pointer-events: none; }
.control--area .control__icon { top: 16px; }
.field.is-error .control input, .field.is-error .control textarea {
  border: 2px solid var(--text-accent);
  padding-left: 17.5px;
  padding-right: 41.5px;
}
.field.is-error .control__icon--error { display: block; }
.field.is-valid .control input { padding-right: 42px; }
.field.is-valid .control__icon--ok { display: block; }
.field.is-valid .control input:focus { padding-right: 41.5px; }

/* "Sign me up for launch updates" checkbox */
.check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.check__box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--bg-surface);
  transition: background-color .15s, border-color .15s;
}
.check__box img { opacity: 0; transition: opacity .15s; }
.check input:checked + .check__box { border-color: var(--brand-secondary-strong); background: var(--brand-secondary-strong); }
.check input:checked + .check__box img { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--brand-primary-strong); outline-offset: 3px; }

/* Server error */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #f2a8b5;
  border-radius: var(--radius-inner);
  background: var(--brand-primary-soft);
}
.alert img { flex: none; }
.alert div { display: flex; flex-direction: column; gap: 2px; }
.alert strong { font-weight: 700; font-size: 14px; }
.alert p { font-size: 13px; line-height: 19px; color: var(--text-secondary); }

.btn[disabled] { opacity: .7; cursor: progress; }
.btn--outline {
  padding: 12px 22px;
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* Success: replaces the form inside the same card, same size */
.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 32px;
  text-align: center;
}
.success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--brand-secondary-soft);
}
.success__body { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.success h3 { margin: 0; font-weight: 800; font-size: 24px; line-height: normal; }
.success p { font-size: 15px; line-height: 23px; color: var(--text-secondary); }
/* Waitlist variant: icon beside the text, left-aligned */
.success--row { flex-direction: row; gap: 20px; text-align: left; }
.success__icon--md { flex: none; width: 56px; height: 56px; }
.success--row .success__body { flex: 1 1 0; min-width: 0; align-items: flex-start; gap: 6px; }
.success--row h3 { font-size: 20px; }

/* Footer */
.footer { border-top: 1px solid var(--border); }
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 40px;
}
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer p { font-size: 13px; color: var(--text-secondary); }

/* Hero entrance — uses the individual translate/scale properties so it
   composes with the transform-based scaling on small screens */
@keyframes rise { from { opacity: 0; translate: 0 24px; } }
@keyframes pop { from { opacity: 0; translate: 0 16px; scale: .94; } }
@keyframes fade { from { opacity: 0; } }
@keyframes grow { from { opacity: 0; scale: .92; } }
@keyframes drop { from { opacity: 0; translate: 0 -100%; } }

@media (prefers-reduced-motion: no-preference) {
  .header { animation: drop .7s cubic-bezier(.2, .7, .2, 1) backwards; }
  .hero__copy > *, .hero__photo { animation: rise .8s cubic-bezier(.2, .7, .2, 1) backwards; }
  .hero__copy > :nth-child(1) { animation-delay: .1s; }
  .hero__copy > :nth-child(2) { animation-delay: .2s; }
  .hero__copy > :nth-child(3) { animation-delay: .3s; }
  .hero__copy > :nth-child(4) { animation-delay: .4s; }
  .hero__copy > :nth-child(5) { animation-delay: .5s; }
  .hero__bg { animation: grow 1s cubic-bezier(.2, .7, .2, 1) .15s backwards; }
  .hero__photo { animation-duration: 1s; animation-delay: .25s; }
  .card { animation: pop .6s cubic-bezier(.2, .8, .3, 1.2) backwards; }
  .card--person { animation-delay: .7s; }
  .card--safe { animation-delay: .85s; }
  .card--lyn { animation-delay: 1s; }
}

/* Contact reveal — main.js adds .reveal only when motion is allowed,
   then .is-visible once 30% of the block is on screen. The panel itself
   only fades (moving it would skew the 30% measurement); its content slides. */
.contact__panel.reveal { opacity: 0; transition: opacity .7s ease-out; }
.contact__panel.reveal > * {
  opacity: 0;
  translate: 0 48px;
  transition: opacity .8s ease-out, translate .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: .1s;
}
.contact__panel.reveal > .form-card { transition-delay: .25s; }
.contact__panel.reveal.is-visible,
.contact__panel.reveal.is-visible > * { opacity: 1; translate: none; }

/* Responsive */
/* Two columns, but the 500px visual shrinks so the copy column keeps ~480px+ */
@media (min-width: 1153px) and (max-width: 1366px) {
  .hero__visual { zoom: .85; }
}

@media (max-width: 1200px) {
  .contact__panel { gap: 40px; padding: 48px; }
  .form-card { width: 460px; }
}

/* Hero stacks: copy in a readable column, visual centred underneath */
@media (max-width: 1152px) {
  .hero { flex-direction: column; align-items: stretch; padding-top: 24px; padding-bottom: 72px; }
  .hero__copy { align-items: stretch; align-self: center; width: 100%; max-width: 680px; }
  .hero__copy > .tag { align-self: flex-start; }
  .hero__title { font-size: clamp(44px, 6vw, 56px); }
  .hero__visual { align-self: center; }
}

@media (max-width: 960px) {
  :root { --gutter: 40px; }
  .contact__panel { flex-direction: column; align-items: stretch; }
  .form-card { width: 100%; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .header { padding-block: 20px; }
  .logo img { width: 147px; height: 40px; }
  .hero__title { font-size: 40px; line-height: 46px; letter-spacing: -0.6px; }
  .hero__lead { font-size: 17px; line-height: 27px; }
  .waitlist { padding: 20px; }
  .waitlist__note { align-items: flex-start; }
  .waitlist__note img { margin-top: 1px; }
  .success--row { flex-direction: column; text-align: center; }
  .success--row .success__body { align-items: center; }
  /* Scale the 500×600 composition to fit narrow screens */
  .hero__visual { width: 343px; height: 412px; }
  .hero__visual > * { transform-origin: 0 0; }
  .hero__bg, .hero__photo, .card { transform: scale(.686); }
  .hero__bg { left: 41px; top: 27px; }
  .hero__photo { left: 62px; top: 14px; }
  .card--person { top: 62px; }
  .card--safe { left: 200px; top: 172px; }
  .card--lyn { left: 7px; top: 316px; }
  .contact__panel { padding: 32px 20px; border-radius: 28px; }
  .contact h2 { font-size: 36px; line-height: 44px; }
  .form, .success { padding: 20px; }
  .form__row { flex-direction: column; align-items: stretch; }
  .socials { gap: 10px; }
  .footer .social { width: 44px; height: 44px; }
}
