/* ELUVO · join.eluvocare.com · pre-launch list
   Palette and type from ELUVO Brand Guide v1.1 (Oct 2026). */

@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/lato-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #0A1F3C;
  --teal: #0196A2;        /* icon, rules, accents — not small text */
  --teal-text: #1C8084;   /* teal for text on white */
  --slate: #56616A;
  --white: #FFFFFF;
  --mist: #F4F6F7;        /* restrained pale surface */
  --line: #DDE2E5;
  --error: #A3262A;

  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 56px;
  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }

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

:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--navy); color: var(--white); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner {
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.logo img { width: 126px; height: auto; }
.launch-flag {
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--slate);
}
.header-link {
  justify-self: end; font-size: 13px; color: var(--navy); text-decoration: none; white-space: nowrap;
}
.header-link span { margin-left: 14px; }
.header-link:hover { color: var(--teal-text); }

/* ---------- Hero ---------- */
.headline {
  text-align: center; font-weight: 300; line-height: 1.12; letter-spacing: -.01em;
  font-size: clamp(30px, 2.6vw + 8px, 46px);
  padding: clamp(16px, 2.6vh, 28px) var(--gutter) clamp(14px, 2.2vh, 24px);
}
.headline span { display: block; text-wrap: balance; }
.headline-1 { color: var(--navy); }
.headline-2 { color: var(--teal-text); }

.stage {
  position: relative;
  background: #E9EFF1; /* shown only while the image loads */
  border-top: 1px solid var(--line);
  /* Desktop: fill the space between headline and invitation, within sensible limits */
  height: clamp(320px, calc(100svh - 376px), 680px);
  display: flex; justify-content: center; align-items: flex-end;
  overflow: hidden;
}
.stage-media { position: absolute; inset: 0; display: block; }
.kit {
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 20%; /* AI concept render: Hero_Concept_05, full-bleed */
}
/* gentle wash behind the captions so they stay readable over the water */
.stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 70%, rgba(255,255,255,.7) 100%);
  pointer-events: none;
}
.stage-captions {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-bottom: 22px; pointer-events: none;
}
.regime { display: flex; flex-direction: column; gap: 4px; }
.regime-name { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
.regime-sub { font-size: 13px; color: var(--slate); }
.rrp { display: flex; align-items: baseline; gap: 12px; }
.rrp-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); }
.rrp-value { font-size: 19px; font-weight: 400; color: var(--navy); }

/* ---------- Invitation + form ---------- */
.join { border-top: 1px solid var(--line); background: var(--white); scroll-margin-top: 12px; }
.join:focus { outline: none; }
.join-inner {
  display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: clamp(24px, 5vw, 120px);
  padding-top: 20px; padding-bottom: 22px; align-items: start;
}
.offer-title { font-size: 18px; font-weight: 400; line-height: 1.35; margin-top: 14px; }
.offer-title strong { font-weight: 700; }
.offer-line { font-size: 13px; color: var(--slate); margin-top: 8px; }
.offer-small { font-size: 13px; color: var(--slate); margin-top: 8px; max-width: 380px; }

.form-area { position: relative; }
.fields { display: grid; grid-template-columns: minmax(120px, 0.7fr) minmax(120px, 0.7fr) minmax(190px, 1.2fr) auto; gap: 12px 14px; align-items: start; }
/* Narrower desktops: three fields in a row, button beneath */
@media (min-width: 721px) and (max-width: 1280px) {
  /* three fields in a row, then consent, then the button */
  .signup { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 12px 14px; }
  .fields { display: contents; }
  .field { order: 1; }
  .consent { order: 2; grid-column: 1 / -1; margin-top: 4px; }
  .consent-error { order: 3; grid-column: 1 / -1; margin-top: -6px; }
  .signup .btn { order: 4; grid-column: 1 / -1; justify-self: start; margin-top: 2px; }
  .form-status { order: 5; grid-column: 1 / -1; }
  .recaptcha-note { order: 6; grid-column: 1 / -1; margin-top: 0; }
  .stage { height: clamp(300px, calc(100svh - 420px), 620px); }
}
.field { display: flex; flex-direction: column; }
.field label { font-size: 12px; color: var(--slate); margin-bottom: 4px; }
.field input {
  border: 0; border-bottom: 1px solid #9AA4AB; border-radius: 0; background: transparent;
  padding: 10px 0 9px; font-size: 16px; color: var(--navy); width: 100%; min-height: 44px;
  transition: border-color .15s ease;
}
.field input::placeholder { color: #8A949B; }
.field input:hover { border-bottom-color: var(--navy); }
.field input:focus-visible { outline: none; border-bottom: 2px solid var(--teal-text); padding-bottom: 8px; }
.field input[aria-invalid="true"] { border-bottom-color: var(--error); }

.btn {
  align-self: end; margin-top: 21px;
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 46px; padding: 0 18px 0 18px; border: 1px solid var(--navy); border-radius: 0;
  background: var(--navy); color: var(--white); font-size: 14px; letter-spacing: .01em; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: #142E54; }
.btn[aria-disabled="true"] { opacity: .7; cursor: progress; }
.btn-quiet { background: transparent; color: var(--navy); margin-top: 24px; }
.btn-quiet:hover { background: var(--mist); }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; }
.consent input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 1px 0 0;
  width: 18px; height: 18px; border: 1px solid #7C878F; border-radius: 0; background: var(--white); cursor: pointer;
  display: grid; place-content: center;
}
.consent input::before {
  content: ""; width: 10px; height: 10px; transform: scale(0); transition: transform .12s ease;
  background: var(--navy);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.consent input:checked { border-color: var(--navy); }
.consent input:checked::before { transform: scale(1); }
.consent input[aria-invalid="true"] { border-color: var(--error); }
.consent label { font-size: 13px; color: var(--slate); cursor: pointer; line-height: 1.45; }

.field-error { color: var(--error); font-size: 12.5px; margin-top: 6px; }
.consent-error { margin-left: 30px; }
.form-status { font-size: 13px; color: var(--slate); margin-top: 8px; min-height: 0; }
.form-status.is-error { color: var(--error); }
.form-status:empty { display: none; }

.recaptcha-note { font-size: 11px; color: var(--slate); margin-top: 10px; }
.recaptcha-note a { color: inherit; }
.eo-holder { position: absolute !important; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.result { padding: 14px 0 4px; max-width: 620px; }
.result:focus { outline: none; }
.result-title { font-size: 22px; font-weight: 300; line-height: 1.3; }
.result-body { color: var(--slate); font-size: 14px; margin-top: 8px; }
.result-note { margin-top: 12px; font-size: 12px; color: var(--teal-text); letter-spacing: .02em; }

/* ---------- Below the fold ---------- */
.routine { border-top: 1px solid var(--line); background: var(--white); }
.routine-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(48px, 8vw, 104px);
}
.routine-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-text); }
.section-title { font-size: clamp(26px, 2.2vw + 10px, 38px); font-weight: 300; line-height: 1.2; margin-top: 12px; }
.lede { color: var(--slate); margin-top: 16px; max-width: 46ch; }
.steps { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.steps li {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.step-name { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.step-name::after { content: "."; }
.step-text { color: var(--slate); font-size: 15px; }
.fine { font-size: 12.5px; color: var(--slate); margin-top: 20px; }

.faq { background: var(--mist); }
.faq-inner { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); max-width: 920px; }
.faq .section-title { margin-top: 0; }
.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 17px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 1.5px 12px no-repeat;
  transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--slate); padding: 0 40px 22px 0; max-width: 68ch; }
.faq-cta { margin-top: 32px; }
.text-link { color: var(--navy); font-size: 15px; text-underline-offset: 4px; }
.text-link:hover { color: var(--teal-text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.preview-flag { font-size: 12px; color: var(--slate); }
.footer-nav { display: flex; gap: 24px; }
.link-btn { background: none; border: 0; padding: 6px 0; font-size: 12.5px; color: var(--slate); cursor: pointer; }
.link-btn:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.link-btn span { margin-left: 6px; }

/* ---------- Dialogs ---------- */
.dialog {
  border: 0; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  color: var(--navy); background: var(--white); box-shadow: 0 24px 64px rgba(10, 31, 60, .22);
}
.dialog::backdrop { background: rgba(10, 31, 60, .45); }
.dialog-inner { padding: clamp(24px, 4vw, 40px); }
.dialog h2 { font-size: 24px; font-weight: 300; margin-bottom: 16px; }
.dialog p, .terms li { font-size: 14px; color: var(--slate); }
.dialog p + p { margin-top: 12px; }
.terms { padding-left: 18px; margin: 0; display: grid; gap: 10px; }
.terms strong { color: var(--navy); font-weight: 700; }
.draft-note { margin-top: 18px !important; padding: 12px 14px; background: var(--mist); border-left: 2px solid var(--teal); font-size: 12.5px !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .join-inner { grid-template-columns: 1fr; gap: 18px; }
  .offer-title { margin-top: 0; }
}

/* Short desktop windows: let the page scroll naturally instead of squeezing the kit */
@media (min-width: 721px) and (max-height: 640px) {
  .stage { height: 340px; }
}

@media (max-width: 860px) {
  .routine-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 52px; }
  .header-inner { grid-template-columns: auto 1fr; }
  .launch-flag { display: none; }
  .logo img { width: 112px; }
  .headline { padding-top: 26px; padding-bottom: 18px; }
  .stage { height: auto; flex-direction: column; align-items: stretch; }
  .stage-media { position: static; }
  .kit { height: auto; width: 100%; }
  .stage::after { display: none; }
  .stage-captions { position: static; padding-top: 14px; padding-bottom: 18px; pointer-events: auto; }
  /* Mobile order: name, email, consent, then button */
  .signup { display: flex; flex-direction: column; gap: 14px; }
  .fields { display: contents; }
  .field { order: 1; }
  .consent { order: 2; margin-top: 4px; }
  .consent-error { order: 3; margin-top: -8px; }
  .btn { order: 4; width: 100%; margin-top: 4px; justify-content: space-between; }
  .form-status { order: 5; }
  .recaptcha-note { order: 6; margin-top: 0; }
  .join-inner { padding-top: 24px; padding-bottom: 30px; }
  .footer-inner { flex-direction: column-reverse; align-items: flex-start; padding-top: 14px; padding-bottom: 16px; gap: 6px; }
  .steps li { grid-template-columns: 96px 1fr; }
}

@media (max-width: 360px) {
  .rrp { flex-direction: column; align-items: flex-end; gap: 0; }
  .regime-name { letter-spacing: .14em; }
}
