/* ============================================================
   LUMEA — design system
   Framework-free CSS. This file is the single source of truth
   for all visual styling. It is imported by src/index.css (the
   Vite/React app) and linked directly by preview.html.
   Editing colours, type or spacing here changes both.
   ============================================================ */

/* ---------- 1. Tokens ------------------------------------- */

:root {
  /* ---- Brand palette -------------------------------------------------
     Sampled directly from the LUMEA HYDRATE packaging artwork
     (src-assets/pack-cutout-original.png), so the site and the pack
     share one set of colours. See README §"Brand palette".
     -------------------------------------------------------------------- */

  /* Surfaces — the warm cream the packaging is photographed on */
  --ivory:        #f8ece0;
  --ivory-lift:   #fdf6ee;
  --stone:        #f1e3d5;
  --stone-deep:   #e7d8c8;

  /* Ink — the official logo charcoal, so the wordmark, headings and body
     all sit in one neutral. Contrast on --ivory: 10.6:1 / 6.4:1 / 4.9:1. */
  --ink:          #2c3034;
  --ink-soft:     #4f575c;
  --ink-faint:    #5f696e;

  /* Hydration blue — the LUMEA logo blue, the principal accent */
  --blue:         #0050c0;
  --blue-deep:    #003a8c;
  --blue-lift:    #2a6fd8;

  /* Pack film tones */
  --sky:          #cce8fc;   /* pouch film */
  --sky-deep:     #b8dcf4;   /* embossed oval panel */
  --aqua:         #cce8fc;
  --mist:         #e8f4fd;
  --mineral:      #8fa0b5;

  /* Type */
  --font-display: "Manrope", ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-sans:    "DM Sans", ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --gutter:       1.375rem;
  --measure:      1240px;
  --radius-sm:    10px;
  --radius:       18px;
  --radius-lg:    28px;

  /* Motion */
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft:    cubic-bezier(0.4, 0.0, 0.2, 1);
}

@media (min-width: 768px)  { :root { --gutter: 2.5rem; } }
@media (min-width: 1200px) { :root { --gutter: 3.5rem; } }

/* ---------- 2. Reset & base ------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* Class rules below set `display`, which would otherwise beat the UA
   stylesheet's [hidden] { display: none }. Keep this guard. */
[hidden] { display: none !important; }

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

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

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

.skip-link {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -110%);
  z-index: 200;
  background: var(--ink); color: var(--ivory);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none; font-size: 0.875rem;
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- 3. Layout primitives -------------------------- */

.shell {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4.5rem, 11vw, 8.5rem); position: relative; }
.section--tight { padding-block: clamp(3.25rem, 7vw, 5rem); }
.section--stone { background: var(--stone); }
.section--ink   { background: var(--ink); color: var(--ivory); }
.section--mist  { background: var(--mist); }

.rule { height: 1px; background: rgba(44, 48, 52, 0.1); border: 0; margin: 0; }

/* ---------- 4. Typography --------------------------------- */

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.section--ink .eyebrow { color: var(--aqua); }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7.6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.8vw, 3.05rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.subhead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 46ch;
}
.section--ink .lede { color: rgba(253, 246, 238, 0.72); }

.body { color: var(--ink-soft); max-width: 60ch; }
.fine { font-size: 0.8125rem; line-height: 1.55; color: var(--ink-faint); }

/* The official LUMEA wordmark.
   Always an image asset — per brand direction it is never set in a typeface.
   Two colourways ship: charcoal for the cream sections, cream for the dark
   ones. See README §"Replacing the logo". */
.wordmark {
  display: inline-block;
  width: var(--wordmark-w, 6.75rem);
  /* the logo artwork's own proportions — 480 x 111 */
  aspect-ratio: 4.3243;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

a.wordmark { text-decoration: none; }

/* ---------- 5. Buttons & links ---------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 45, 110, 0.2), 0 10px 24px -14px rgba(0, 45, 110, 0.7);
}
.btn--primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(44, 48, 52, 0.22);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(44, 48, 52, 0.04); }

.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; transform: none; }

.link-quiet {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
.link-quiet::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.link-quiet:hover::after, .link-quiet:focus-visible::after { transform: scaleX(1); }

/* ---------- 6. Announcement bar --------------------------- */

.announce {
  background: var(--ink);
  color: rgba(253, 246, 238, 0.9);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 60;
}
.announce__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; min-height: 2.5rem;
  padding: 0.4rem calc(var(--gutter) + 1.5rem) 0.4rem var(--gutter);
  text-align: center;
}
.announce__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--aqua); flex: none;
  animation: pulse 3.6s var(--ease-soft) infinite;
}
.announce__close {
  position: absolute; right: calc(var(--gutter) - 0.5rem); top: 50%;
  transform: translateY(-50%);
  background: none; border: 0; cursor: pointer;
  color: rgba(253, 246, 238, 0.6);
  padding: 0.5rem; line-height: 0;
  transition: color 0.25s var(--ease);
}
.announce__close:hover { color: var(--ivory); }

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50%      { opacity: 1;    transform: scale(1); }
}

/* ---------- 7. Navigation --------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 236, 224, 0.6);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav[data-scrolled="true"] {
  background: rgba(248, 236, 224, 0.9);
  border-bottom-color: rgba(44, 48, 52, 0.09);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.nav__links { display: none; align-items: center; gap: 2rem; }
.nav__link {
  font-size: 0.875rem; color: var(--ink-soft);
  text-decoration: none; transition: color 0.3s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__cta { display: none; }
.nav__cta-mobile { min-height: 2.75rem; padding: 0 1.1rem; font-size: 0.875rem; }
.nav__actions { display: flex; align-items: center; gap: 0.5rem; }

/* Mobile menu trigger — three rules that collapse into a cross when open. */
.nav__toggle {
  display: inline-grid; place-content: center; gap: 5px;
  width: 2.75rem; height: 2.75rem;
  background: none; border: 0; cursor: pointer;
  border-radius: 999px;
  transition: background-color 0.3s var(--ease);
}
.nav__toggle:hover { background: rgba(44, 48, 52, 0.06); }
.nav__toggle span {
  display: block; width: 18px; height: 1.5px;
  background: var(--ink); border-radius: 1px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  display: grid; grid-template-rows: 0fr;
  border-top: 1px solid transparent;
  transition: grid-template-rows 0.4s var(--ease), border-color 0.4s var(--ease);
  background: rgba(248, 236, 224, 0.97);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
}
.nav__drawer[data-open="true"] {
  grid-template-rows: 1fr;
  border-top-color: rgba(44, 48, 52, 0.09);
}
.nav__drawer > div { overflow: hidden; }
.nav__drawer ul { padding-block: 0.5rem 1.25rem; }  /* padding-inline comes from .shell */
.nav__drawer .nav__link {
  display: block; padding: 0.85rem 0;
  font-size: 1.0625rem; color: var(--ink);
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; min-height: 2.75rem; padding: 0 1.25rem; font-size: 0.875rem; }
  .nav__cta-mobile, .nav__toggle, .nav__drawer { display: none; }
}

/* ---------- 8. Hero --------------------------------------- */

.hero { position: relative; overflow: hidden; }
.hero__glow {
  position: absolute; pointer-events: none;
  width: min(90vw, 780px); aspect-ratio: 1;
  right: -22%; top: -18%;
  background: radial-gradient(circle at 50% 50%,
              rgba(204, 232, 252, 0.75), rgba(204, 232, 252, 0) 68%);
  z-index: 0;
}
.hero__inner {
  position: relative; z-index: 1;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem);
  display: grid; gap: clamp(2.75rem, 6vw, 4rem);
}
.hero__copy { max-width: 34rem; }
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
}
.hero__actions .btn { flex: 1 1 auto; }
.hero__note { margin-top: 1.1rem; }
.hero__lede { margin-top: 1.5rem; }

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
  }
  .hero__actions .btn { flex: 0 0 auto; }
}

/* ---------- 9. Product visual ------------------------------
   Real LUMEA HYDRATE packaging photography, served as a
   transparent cutout so it floats on any background colour.
   Source art: src-assets/pack-cutout-original.png
   ----------------------------------------------------------- */

.stage {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

/* Soft contact shadow under the floating pack. */
.stage__plinth {
  position: absolute;
  bottom: 4%;
  left: 50%;
  width: min(64%, 20rem);
  height: 2.25rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%,
              rgba(94, 74, 56, 0.30), rgba(94, 74, 56, 0) 70%);
  filter: blur(7px);
  z-index: 0;
}

.stage__pack {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-width: clamp(16rem, 46vw, 25rem);
  /* width/height attributes on the <img> reserve this ratio, so the
     surrounding layout never shifts while the image loads. */
  filter: drop-shadow(0 30px 40px rgba(0, 45, 110, 0.16));
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .stage__pack { animation: float 9s var(--ease-soft) infinite; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.stage__caption {
  position: relative;
  z-index: 2;
  margin-top: 0.75rem;
  text-align: center;
}

/* Framed editorial crop used in the product section. */
.product__frame {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--stone);
  box-shadow: 0 30px 60px -40px rgba(0, 45, 110, 0.45);
}
.product__frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- 10. Benefit strip ----------------------------- */

.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(44, 48, 52, 0.1);
  border-block: 1px solid rgba(44, 48, 52, 0.1);
}
.benefit {
  background: var(--ivory);
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.75rem);
  display: flex; flex-direction: column; align-items: center;
  gap: 0.9rem; text-align: center;
}
.benefit__icon { color: var(--blue); flex: none; }
.benefit__name {
  font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.01em; line-height: 1.35;
}
@media (min-width: 760px) {
  .benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 11. Steps (Tear / Squeeze / Go) --------------- */

.steps {
  display: grid; gap: 1.25rem;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}
.step {
  background: var(--ivory-lift);
  border: 1px solid rgba(44, 48, 52, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2rem);
  display: flex; flex-direction: column; gap: 1.1rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px -32px rgba(0, 45, 110, 0.55);
}
.step__index {
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mineral);
}
.step__art {
  height: 6.5rem;
  display: grid; place-items: center;
  color: var(--blue);
}
.step__name { font-size: 1.0625rem; font-weight: 500; }
.step__text { font-size: 0.9375rem; color: var(--ink-soft); }
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}

/* ---------- 12. Use-case cards ---------------------------- */

.cards { display: grid; gap: 1.25rem; margin-top: clamp(2.5rem, 6vw, 3.5rem); }
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__media { aspect-ratio: 4 / 5; }
}
@media (min-width: 1080px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }

.card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ivory-lift);
  border: 1px solid rgba(44, 48, 52, 0.08);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 50px -34px rgba(0, 45, 110, 0.6);
}
/* Abstract placeholder art — swap for editorial photography.
   See README §"Replacing lifestyle imagery". */
.card__media {
  /* Shorter on phones so four cards don't become four full screens. */
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--stone);
}
.card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--card-art, none);
}
.card__body { padding: 1.25rem 1.35rem 1.6rem; }
.card__name { font-size: 1.0625rem; font-weight: 500; margin-bottom: 0.4rem; }
.card__text { font-size: 0.9375rem; color: var(--ink-soft); }

.card--a { --card-art:
  radial-gradient(58% 42% at 30% 26%, rgba(204,232,252,0.95), rgba(204,232,252,0) 70%),
  radial-gradient(46% 34% at 74% 66%, rgba(0,80,192,0.16), rgba(0,80,192,0) 72%),
  linear-gradient(168deg, #fbf3ea, #dfeaf7); }
.card--b { --card-art:
  radial-gradient(52% 38% at 68% 24%, rgba(0,80,192,0.18), rgba(0,80,192,0) 70%),
  radial-gradient(64% 46% at 24% 76%, rgba(232,244,253,0.98), rgba(232,244,253,0) 72%),
  linear-gradient(200deg, #f2e5d7, #cfe4f7); }
.card--c { --card-art:
  radial-gradient(44% 44% at 50% 34%, rgba(255,255,255,0.94), rgba(255,255,255,0) 68%),
  radial-gradient(60% 40% at 78% 82%, rgba(184,220,244,0.9), rgba(184,220,244,0) 70%),
  linear-gradient(150deg, #f0e2d3, #b8dcf4); }
.card--d { --card-art:
  radial-gradient(50% 36% at 26% 70%, rgba(0,80,192,0.14), rgba(0,80,192,0) 72%),
  radial-gradient(56% 42% at 70% 28%, rgba(253,246,238,0.98), rgba(253,246,238,0) 70%),
  linear-gradient(186deg, #f7ece0, #d6e8f7); }

/* ---------- 13. Product introduction ---------------------- */

.product { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}
.product__stage {
  display: grid; place-items: center;
  padding-block: 1rem;
}
.spec-list { margin-top: clamp(1.75rem, 4vw, 2.25rem); }
.spec {
  display: flex; align-items: baseline; gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid rgba(44, 48, 52, 0.1);
}
.spec:last-child { border-bottom: 1px solid rgba(44, 48, 52, 0.1); }
.spec__mark {
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em;
  color: var(--mineral); flex: none; width: 2.25rem;
}
.spec__name { font-size: 1.0625rem; }
.disclaimer { margin-top: 1.5rem; }

/* ---------- 14. Validation poll --------------------------- */

.poll { display: grid; gap: 0.75rem; margin-top: clamp(2rem, 5vw, 2.75rem); }
@media (min-width: 700px) { .poll { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .poll { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.poll__option {
  position: relative;
  display: flex; align-items: center; gap: 0.85rem;
  width: 100%; min-height: 4.25rem;
  padding: 1rem 1.25rem;
  text-align: left;
  background: var(--ivory-lift);
  border: 1px solid rgba(44, 48, 52, 0.14);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease),
              transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.poll__option:hover { border-color: rgba(30, 95, 123, 0.5); transform: translateY(-2px); }
.poll__option[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--mist);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.poll__tick {
  flex: none; width: 1.125rem; height: 1.125rem;
  border-radius: 50%;
  border: 1px solid rgba(44, 48, 52, 0.28);
  display: grid; place-items: center;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.poll__option[aria-pressed="true"] .poll__tick { background: var(--blue); border-color: var(--blue); }
.poll__tick svg { opacity: 0; transition: opacity 0.25s var(--ease); color: #fff; }
.poll__option[aria-pressed="true"] .poll__tick svg { opacity: 1; }
.poll__label { font-size: 0.9375rem; font-weight: 500; }

.poll__ack {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--blue);
  display: flex; align-items: center; gap: 0.5rem;
}

/* ---------- 15. Waitlist form ----------------------------- */

.waitlist { display: grid; gap: clamp(2.25rem, 6vw, 4rem); align-items: start; }
@media (min-width: 940px) {
  .waitlist { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 5.5rem); }
}

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field__label {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(253, 246, 238, 0.7);
}
.field__input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0 1.1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ivory);
  background: rgba(253, 246, 238, 0.06);
  border: 1px solid rgba(253, 246, 238, 0.22);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.field__input::placeholder { color: rgba(253, 246, 238, 0.38); }
.field__input:hover { border-color: rgba(253, 246, 238, 0.38); }
.field__input:focus { outline: none; border-color: var(--aqua); background: rgba(253, 246, 238, 0.1); }
.field__input:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
.field__input[aria-invalid="true"] { border-color: #e8a9a0; }

.field__error {
  font-size: 0.8125rem;
  color: #f0b8b0;
  display: flex; align-items: center; gap: 0.4rem;
}

.field__static {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 3.25rem; padding: 0 1.1rem;
  border: 1px dashed rgba(253, 246, 238, 0.22);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: rgba(253, 246, 238, 0.82);
}
.field__static a { color: var(--aqua); font-size: 0.8125rem; }

.consent { font-size: 0.8125rem; color: rgba(253, 246, 238, 0.55); line-height: 1.55; }
.consent a { color: rgba(253, 246, 238, 0.8); }

.form__error {
  display: flex; gap: 0.5rem; align-items: flex-start;
  font-size: 0.875rem; color: #f0b8b0;
}

.dev-note {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(253, 246, 238, 0.06);
  border: 1px solid rgba(253, 246, 238, 0.14);
  font-size: 0.8125rem; line-height: 1.55;
  color: rgba(253, 246, 238, 0.62);
}
.dev-note strong { color: rgba(253, 246, 238, 0.85); font-weight: 500; }

.success {
  display: grid; gap: 1rem; justify-items: start;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid rgba(204, 232, 252, 0.35);
  border-radius: var(--radius-lg);
  background: rgba(204, 232, 252, 0.08);
}
.success__mark {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--aqua); color: var(--blue-deep);
}

.spinner {
  width: 1rem; height: 1rem; flex: none;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 16. Statement --------------------------------- */

.statement {
  max-width: 52rem; margin-inline: auto; text-align: center;
}
.statement__quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 1.95rem);
  line-height: 1.42;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.statement__mark {
  width: 2rem; height: 1px; background: var(--blue);
  margin: 0 auto clamp(2rem, 5vw, 2.75rem);
}

/* ---------- 17. FAQ --------------------------------------- */

.faq { max-width: 46rem; margin-top: clamp(2rem, 5vw, 3rem); }
.faq__item { border-top: 1px solid rgba(44, 48, 52, 0.12); }
.faq__item:last-child { border-bottom: 1px solid rgba(44, 48, 52, 0.12); }

.faq__trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  background: none; border: 0;
  text-align: left; cursor: pointer;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  font-weight: 500;
  transition: color 0.3s var(--ease);
}
.faq__trigger:hover { color: var(--blue); }
.faq__sign { flex: none; position: relative; width: 14px; height: 14px; color: var(--blue); }
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.faq__sign::before { left: 0; right: 0; top: 6px; height: 1.5px; }
.faq__sign::after  { top: 0; bottom: 0; left: 6px; width: 1.5px; }
.faq__trigger[aria-expanded="true"] .faq__sign::after { transform: rotate(90deg); opacity: 0; }

.faq__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.faq__panel[data-open="true"] { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__answer { padding-bottom: 1.6rem; color: var(--ink-soft); max-width: 56ch; }

/* ---------- 18. Footer ------------------------------------ */

.footer { background: var(--ink); color: rgba(253, 246, 238, 0.68); }
.footer__top {
  display: grid; gap: 2.5rem;
  padding-block: clamp(3rem, 7vw, 4.5rem) 2.5rem;
}
@media (min-width: 780px) {
  .footer__top { grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 3rem; }
}
.footer__brand .wordmark { --wordmark-w: 8.5rem; }
.footer__tagline { margin-top: 1rem; font-size: 0.9375rem; color: rgba(253, 246, 238, 0.6); }
.footer__heading {
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(253, 246, 238, 0.42);
  margin-bottom: 1.1rem;
}
.footer__list { display: grid; gap: 0.75rem; }
.footer__link {
  color: rgba(253, 246, 238, 0.75);
  text-decoration: none; font-size: 0.9375rem;
  transition: color 0.3s var(--ease);
}
.footer__link:hover { color: var(--ivory); }
.footer__tag {
  font-size: 0.6875rem; letter-spacing: 0.08em;
  color: rgba(253, 246, 238, 0.32);
  margin-left: 0.5rem;
}
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem;
  align-items: center; justify-content: space-between;
  padding-block: 1.75rem;
  border-top: 1px solid rgba(253, 246, 238, 0.12);
  font-size: 0.8125rem; color: rgba(253, 246, 238, 0.45);
}

/* ---------- 19. Scroll reveal ----------------------------- */

/* Hidden only when JavaScript is running (the `js` class is set by an inline
   script in <head>). Without JS — or if the observer never fires — content
   stays fully visible rather than disappearing. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.js .reveal[data-visible="true"] { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }

/* ---------- 20. Reduced motion ---------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
