/* ============================================================
   Lensa Landing V4 — minimalist mono (Alo-inspired)
   Strict black / white / grey UI; color lives in the photography.
   ============================================================ */

:root {
  --white:  #FFFFFF;
  --off:    #F4F4F3;
  --ink:    #0E0E0E;
  --grey:   #767676;
  --grey-2: #A6A6A6;
  --line:   #E4E4E2;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--white);
  line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 600; line-height: 1.04; letter-spacing: -.01em; }
.eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--grey); margin-bottom: 16px;
}
.eyebrow--light { color: rgba(255,255,255,.85); }

.section { padding: 80px 0; max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }
.section__head { margin-bottom: 40px; }
.section__title { font-size: clamp(1.9rem, 5vw, 3rem); text-transform: uppercase; letter-spacing: .01em; }
.section__cta { display: flex; justify-content: center; margin-top: 40px; }
.section__cta--start { justify-content: flex-start; margin-top: 28px; }

/* ---------- scroll reveal ----------
   JS-gated via html.reveal-on so no-JS visitors see everything, and the hidden
   state is keyed off structural selectors that already exist at first paint —
   so there's no flash of visible-then-hidden content. JS only adds .is-in. */
html.reveal-on .page-hero > *,
html.reveal-on .app-hero > *,
html.reveal-on .section__head > *,
html.reveal-on .prose > *,
html.reveal-on .strip__item,
html.reveal-on .press,
html.reveal-on .product,
html.reveal-on .cardgrid,
html.reveal-on .feature,
html.reveal-on .finalcta__content > *,
html.reveal-on .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
html.reveal-on .is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.reveal-on .page-hero > *,
  html.reveal-on .app-hero > *,
  html.reveal-on .section__head > *,
  html.reveal-on .prose > *,
  html.reveal-on .strip__item,
  html.reveal-on .press,
  html.reveal-on .product,
  html.reveal-on .cardgrid,
  html.reveal-on .feature,
  html.reveal-on .finalcta__content > *,
  html.reveal-on .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--ink); border-radius: 100px; cursor: pointer; white-space: nowrap;
  min-height: 50px; padding: 0 32px; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--solid { background: var(--ink); color: var(--white); }
.btn--solid:hover { background: var(--white); color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn--lg { min-height: 56px; padding: 0 40px; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .68rem; }
.btn:focus-visible { outline: 2px solid var(--grey); outline-offset: 3px; }

/* ---------- announcement ---------- */
.announce { background: var(--ink); color: var(--white); text-align: center; padding: 9px 16px; font-size: .66rem; font-weight: 500; letter-spacing: .18em; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s ease, padding .25s ease; }
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { max-width: var(--wrap); margin-inline: auto; padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; transition: padding .25s ease; }
.nav.is-scrolled .nav__inner { padding-block: 12px; }
.logo { display: inline-block; line-height: 0; flex: 0 0 auto; }
.logo img { display: block; height: 22px; width: 103px; }
.nav__links { display: none; gap: 32px; font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.nav__login { font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.nav__login:hover { color: var(--ink); }

/* ---------- hero (editorial: centered type + image band) ---------- */
.hero__head { text-align: center; max-width: 900px; margin: 0 auto; padding: 56px 28px 46px; }
.hero__title { font-size: clamp(2.7rem, 8.5vw, 5rem); text-transform: uppercase; letter-spacing: .005em; }
.hero__sub { margin: 20px auto 30px; font-size: 1.08rem; max-width: 48ch; color: var(--grey); }
.hero__trust { margin-top: 22px; font-size: .8rem; letter-spacing: .04em; color: var(--grey); }
.hero__trust strong { color: var(--ink); font-weight: 600; }
.hero__band { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.hero__track { display: flex; gap: 2px; width: max-content; animation: hero-scroll 60s linear infinite; }
.hero__band:hover .hero__track { animation-play-state: paused; }
.hero__track img { flex: 0 0 auto; width: min(64vw, 300px); aspect-ratio: 3 / 4; object-fit: cover; background: var(--off); }
@keyframes hero-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 1px)); } /* half the track (incl. one gap) loops seamlessly */
}
@media (prefers-reduced-motion: reduce) {
  .hero__track { animation: none; }
}

/* ---------- stat strip ---------- */
.strip { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 26px 12px; border-bottom: 1px solid var(--line); }
.strip__item:nth-child(odd) { border-right: 1px solid var(--line); }
.strip__item strong { font-size: 1.5rem; font-weight: 600; }
.strip__item span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }

/* ---------- press ---------- */
.press { border-bottom: 1px solid var(--line); padding: 36px 28px; text-align: center; }
.press__label { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--grey-2); margin-bottom: 22px; }
.press__logos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 46px; }
.press__logos li { display: flex; align-items: center; }
/* real logos, desaturated to fit the mono palette; full color on hover */
.press__logo { display: block; width: auto; filter: grayscale(1); opacity: .72; transition: opacity .2s ease, filter .2s ease; }
.press__logo:hover { opacity: 1; filter: grayscale(0); }
.press__logo--nyt     { height: 28px; }
.press__logo--glamour { height: 32px; }
.press__logo--cnbc    { height: 54px; }
.press__logo--forbes  { height: 38px; }
.press__logo--techcrunch { height: 30px; }
.press__logo--usatoday   { height: 34px; }
.press__logo--guardian   { height: 24px; }

/* ---------- before/after ---------- */
.ba-grid { display: grid; gap: 14px; }
.ba {
  position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--off); user-select: none; touch-action: pan-y; isolation: isolate; container-type: inline-size;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__clip { position: absolute; inset: 0; width: 50%; overflow: hidden; will-change: width; }
.ba__clip .ba__img--before { width: 100cqw; max-width: none; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 40px; border: none; background: transparent; cursor: ew-resize; z-index: 3; display: flex; align-items: center; justify-content: center; }
.ba__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); background: var(--white); }
.ba__handle span { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.ba__handle span::before, .ba__handle span::after { content: ""; position: absolute; width: 0; height: 0; border-block: 4px solid transparent; }
.ba__handle span::before { border-right: 6px solid var(--ink); left: 9px; }
.ba__handle span::after { border-left: 6px solid var(--ink); right: 9px; }
.ba__handle:focus-visible { outline: none; }
.ba__handle:focus-visible span { outline: 2px solid var(--grey); outline-offset: 2px; }
.ba__tag { position: absolute; top: 12px; z-index: 2; font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; }
.ba__tag--before { left: 12px; background: rgba(14,14,14,.7); color: var(--white); }
.ba__tag--after  { right: 12px; background: var(--white); color: var(--ink); }
.ba__cap { position: absolute; left: 12px; bottom: 12px; z-index: 2; color: var(--white); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: rgba(14,14,14,.55); padding: 5px 10px; backdrop-filter: blur(2px); }

/* ---------- hair try-on ---------- */
.hair__lead { margin-top: 16px; max-width: 52ch; font-size: 1.04rem; color: var(--grey); }
.hair-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hair-card { position: relative; overflow: hidden; background: var(--off); }
.hair-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; transition: transform .5s ease; }
.hair-card:hover img { transform: scale(1.04); }
.hair-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; z-index: 1; background: linear-gradient(transparent, rgba(14,14,14,.62)); pointer-events: none; }
.hair-card figcaption { position: absolute; left: 14px; bottom: 14px; z-index: 2; color: var(--white); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: rgba(14,14,14,.55); padding: 5px 10px; backdrop-filter: blur(2px); }
.hair-card__tag { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; background: var(--white); color: var(--ink); }

/* ---------- effects grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tile { position: relative; overflow: hidden; background: var(--off); }
.tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.04); }
.tile figcaption { position: absolute; left: 14px; bottom: 14px; z-index: 2; color: var(--white); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: rgba(14,14,14,.55); padding: 5px 10px; backdrop-filter: blur(2px); display: flex; align-items: baseline; gap: 8px; }
.tile__no { font-size: .6rem; letter-spacing: .12em; opacity: .8; }

/* ---------- erase spotlight ---------- */
.badge-new { display: inline-block; vertical-align: middle; margin-left: 10px; background: #E5231B; color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 4px 11px; border-radius: 100px; }
.erase__inner { display: grid; gap: 36px; align-items: center; }
.erase__copy .section__title { margin-bottom: 18px; }
.erase__lead { color: var(--grey); font-size: 1.05rem; max-width: 46ch; margin-bottom: 24px; }
.erase__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { border: 1px solid var(--line); padding: 8px 15px; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.erase__media { max-width: 460px; width: 100%; }

/* enhancer — same layout as erase, media on the left */
.enhance .erase__media { order: -1; }

/* ---------- presets ---------- */
.presets__lead { margin-top: 16px; max-width: 52ch; font-size: 1.04rem; color: var(--grey); }
.presets-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.preset-card { position: relative; overflow: hidden; background: var(--off); }
.preset-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; transition: transform .5s ease; }
.preset-card:hover img { transform: scale(1.04); }
.preset-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; z-index: 1; background: linear-gradient(transparent, rgba(14,14,14,.62)); pointer-events: none; }
.preset-card figcaption { position: absolute; left: 14px; bottom: 14px; z-index: 2; color: var(--white); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: rgba(14,14,14,.55); padding: 5px 10px; backdrop-filter: blur(2px); }
.preset-card__tag { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; background: var(--white); color: var(--ink); }

/* ---------- toolkit ---------- */
.toolkit__list { list-style: none; border-top: 1px solid var(--line); }
.toolkit__list li { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding-left .25s ease; }
.toolkit__list li:hover { padding-left: 10px; }
.toolkit__no { font-size: .72rem; font-weight: 600; color: var(--grey-2); letter-spacing: .1em; }
.toolkit__list h3 { font-size: clamp(1.3rem, 4vw, 2rem); text-transform: uppercase; letter-spacing: .01em; }
.toolkit__list p { grid-column: 2; color: var(--grey); max-width: 54ch; }

/* ---------- reviews ---------- */
.reviews__grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.review { padding: 32px 0; border-bottom: 1px solid var(--line); }
.review__stars { letter-spacing: 3px; margin-bottom: 14px; font-size: .85rem; }
.review p { font-size: clamp(1.2rem, 3.5vw, 1.6rem); font-weight: 500; letter-spacing: -.01em; margin-bottom: 14px; }
.review cite { font-style: normal; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }

/* ---------- final cta ---------- */
.finalcta { background: var(--ink); color: var(--white); padding: 100px 28px; text-align: center; }
.finalcta__content { max-width: 760px; margin-inline: auto; }
.finalcta__title { font-size: clamp(2.4rem, 8vw, 4.5rem); text-transform: uppercase; letter-spacing: .01em; margin-bottom: 32px; }
.finalcta__fine { margin-top: 18px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-2); }

/* ---------- footer ---------- */
.footer { width: 100%; padding: 56px 28px 30px; max-width: var(--wrap); margin-inline: auto; position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100vw; height: 1px; background: var(--line); }
.footer__top { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.footer__address { font-style: normal; font-size: .8rem; line-height: 1.65; color: var(--grey); }
.logo--footer img { height: 28px; width: 131px; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.footer__col h4 { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); margin-bottom: 14px; }
.footer__col a { display: block; padding: 5px 0; font-size: .85rem; color: var(--grey); }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 22px; font-size: .66rem; letter-spacing: .16em; color: var(--grey); }

/* ---------- sticky mobile cta ---------- */
.mobilecta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--white); border-top: 1px solid var(--line); padding: 12px 18px; transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.mobilecta.is-visible { transform: translateY(0); }
.mobilecta span { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* ============================================================ RESPONSIVE */
@media (min-width: 720px) {
  .nav__links { display: flex; }
  .strip { grid-template-columns: repeat(4, 1fr); }
  .strip__item { border-right: 1px solid var(--line); border-bottom: none; }
  .strip__item:last-child { border-right: none; }
  .ba-grid { grid-template-columns: repeat(3, 1fr); }
  #before-after .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .hair-grid { grid-template-columns: repeat(4, 1fr); }
  .presets-grid { grid-template-columns: repeat(4, 1fr); }
  .reviews__grid { grid-template-columns: repeat(3, 1fr); column-gap: 36px; }
  .review { border-bottom: none; border-top: none; padding-top: 40px; }
  .footer__top { grid-template-columns: 1fr 2fr; align-items: start; }
  .footer__cols { grid-template-columns: repeat(4, 1fr); }
  .erase__inner { grid-template-columns: 1fr 1fr; gap: 64px; }
  .erase__media { justify-self: end; }
  .enhance .erase__media { justify-self: start; }
  .hero__head { padding: 72px 28px 52px; }
  .hero__track img { width: clamp(240px, 22vw, 320px); }
  .press__logos { gap: 28px 80px; }
  .mobilecta { display: none; }
}
@media (min-width: 980px) {
  .section { padding: 110px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================================================
   Cookie consent — banner + preferences modal (mono UI)
   ============================================================ */

/* shared ghost button (outline, used in consent UI) */
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }

/* ---------- banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10000;
  background: var(--white); border-top: 1px solid var(--ink);
  box-shadow: 0 -18px 40px -28px rgba(14,14,14,.5);
  animation: cookie-rise .4s cubic-bezier(.2,.8,.2,1);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  max-width: var(--wrap); margin-inline: auto; padding: 22px 28px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cookie-banner__text { flex: 1 1 360px; }
.cookie-banner__title { font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.cookie-banner__desc { font-size: .9rem; color: var(--grey); max-width: 64ch; line-height: 1.55; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

@keyframes cookie-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ---------- modal ---------- */
.cookie-modal { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 24px; }
.cookie-modal[hidden] { display: none; }
.cookie-modal__overlay { position: absolute; inset: 0; background: rgba(14,14,14,.55); backdrop-filter: blur(3px); animation: cookie-fade .25s ease; }
.cookie-modal__dialog {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--white); border: 1px solid var(--ink); padding: 30px;
  animation: cookie-pop .3s cubic-bezier(.2,.8,.2,1);
}
.cookie-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.cookie-modal__title { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
.cookie-modal__close { background: none; border: none; font-size: 1.7rem; line-height: 1; color: var(--grey); cursor: pointer; padding: 0 2px; }
.cookie-modal__close:hover { color: var(--ink); }
.cookie-modal__intro { font-size: .88rem; color: var(--grey); line-height: 1.55; margin-bottom: 22px; }

.cookie-cats { list-style: none; }
.cookie-cat { padding: 18px 0; border-top: 1px solid var(--line); }
.cookie-cat:first-child { border-top: none; padding-top: 0; }
.cookie-cat__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-cat__label { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cookie-cat__name { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.cookie-cat__always { font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-2); }
.cookie-cat__desc { font-size: .84rem; color: var(--grey); line-height: 1.5; margin-top: 8px; max-width: 52ch; }

/* ---------- toggle switch ---------- */
.cookie-switch { position: relative; flex-shrink: 0; display: inline-flex; cursor: pointer; }
.cookie-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-switch__track {
  width: 46px; height: 26px; border-radius: 100px; background: var(--white);
  border: 1px solid var(--grey-2); transition: background .2s ease, border-color .2s ease;
}
.cookie-switch__track::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--grey); transition: transform .2s ease, background .2s ease;
}
.cookie-switch input:checked + .cookie-switch__track { background: var(--ink); border-color: var(--ink); }
.cookie-switch input:checked + .cookie-switch__track::after { transform: translateX(20px); background: var(--white); }
.cookie-switch input:focus-visible + .cookie-switch__track { outline: 2px solid var(--grey); outline-offset: 3px; }
.cookie-switch--locked { cursor: not-allowed; opacity: .85; }

.cookie-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 28px; }

@keyframes cookie-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cookie-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 620px) {
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1 1 auto; }
  .cookie-modal__actions { justify-content: stretch; }
  .cookie-modal__actions .btn { flex: 1 1 auto; }
}

/* ============================================================
   Auth (login / sign up) page
   ============================================================ */
.auth-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--off); }

.auth-topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--wrap); width: 100%; margin-inline: auto; padding: 18px 28px;
}
.auth-topbar__back { font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.auth-topbar__back:hover { color: var(--ink); }

.auth { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 20px 64px; }
.auth-card {
  width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--line);
  padding: 40px 34px; box-shadow: 0 30px 70px -40px rgba(14,14,14,.35);
}
.auth-card__head { text-align: center; margin-bottom: 28px; }
.auth-card__title { font-size: 1.6rem; text-transform: uppercase; letter-spacing: .02em; }
.auth-card__sub { margin-top: 12px; font-size: .9rem; color: var(--grey); line-height: 1.55; }

/* email form */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 8px; }
.auth-field__label { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.auth-input {
  font-family: var(--sans); font-size: .95rem; color: var(--ink);
  border: 1px solid var(--grey-2); border-radius: 100px; padding: 14px 20px; background: var(--white);
  transition: border-color .2s ease;
}
.auth-input::placeholder { color: var(--grey-2); }
.auth-input:focus { outline: none; border-color: var(--ink); }
.auth-submit { width: 100%; margin-top: 2px; }

/* divider */
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--grey-2); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-divider span { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

/* social buttons */
.auth-social { display: flex; flex-direction: column; gap: 12px; }
.auth-social__btn { width: 100%; gap: 12px; }
.auth-social__icon { width: 18px; height: 18px; flex: 0 0 auto; }

/* marketing opt-out checkbox */
.auth-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; cursor: pointer; }
.auth-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.auth-check__box {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--grey-2);
  border-radius: 5px; background: var(--white); display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: background .15s ease, border-color .15s ease;
}
.auth-check__box svg { width: 12px; height: 10px; opacity: 0; transition: opacity .15s ease; }
.auth-check input:checked + .auth-check__box { background: var(--ink); border-color: var(--ink); }
.auth-check input:checked + .auth-check__box svg { opacity: 1; }
.auth-check input:focus-visible + .auth-check__box { outline: 2px solid var(--grey); outline-offset: 3px; }
.auth-check__text { font-size: .82rem; color: var(--grey); line-height: 1.5; }

/* legal */
.auth-legal { margin-top: 20px; text-align: center; font-size: .78rem; color: var(--grey); line-height: 1.55; }
.auth-legal a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.auth-legal a:hover { color: var(--grey); }

@media (max-width: 480px) {
  .auth-card { padding: 32px 22px; }
}

/* ============================================================
   Secondary pages — corporate / product / legal (V4 system)
   ============================================================ */

/* ---------- corporate nav: products dropdown ---------- */
.logo--corp img { height: 26px; width: auto; }
.logo--corp.logo--footer img { height: 26px; width: auto; }
.nav__dd { position: relative; }
.nav__dd-toggle {
  font: inherit; font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey); background: none; border: none; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav__dd-toggle::after {
  content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
.nav__dd-toggle:hover,
.nav__dd:hover .nav__dd-toggle,
.nav__dd.is-open .nav__dd-toggle { color: var(--ink); }
.nav__dd.is-open .nav__dd-toggle::after { transform: rotate(-135deg) translateY(2px); }
.nav__dd-menu {
  position: absolute; top: calc(100% + 16px); left: 50%; min-width: 168px;
  background: var(--white); border: 1px solid var(--line); padding: 8px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-50%) translateY(6px);
  box-shadow: 0 24px 50px -30px rgba(14,14,14,.4);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav__dd:hover .nav__dd-menu,
.nav__dd:focus-within .nav__dd-menu,
.nav__dd.is-open .nav__dd-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav__dd-menu a {
  padding: 10px 14px; font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--grey);
}
.nav__dd-menu a:hover { color: var(--ink); background: var(--off); }

/* ---------- homepage stat strip (3 cols) ---------- */
/* mobile: stack the 3 stats so longer labels aren't squeezed into thin columns */
.strip--3 { grid-template-columns: 1fr; }
.strip--3 .strip__item { border-right: none; border-bottom: 1px solid var(--line); }
.strip--3 .strip__item:last-child { border-bottom: none; }
@media (min-width: 720px) {
  .strip--3 { grid-template-columns: repeat(3, 1fr); }
  .strip--3 .strip__item { border-right: 1px solid var(--line); border-bottom: none; }
  .strip--3 .strip__item:last-child { border-right: none; }
}

/* ---------- footer (2 columns) ---------- */
.footer__cols--2 { grid-template-columns: max-content max-content; gap: 72px; justify-content: start; }
.footer__cols--3 { grid-template-columns: repeat(2, max-content); gap: 32px 56px; justify-content: start; }
@media (min-width: 720px) { .footer__cols--3 { grid-template-columns: repeat(3, max-content); gap: 72px; } }

/* ---------- homepage products ---------- */
.products { margin-bottom: 80px; }
.section__head--center { text-align: center; }
.products__grid { display: grid; gap: 56px; }
.product { display: flex; flex-direction: column; align-items: center; text-align: center; }
.product__media { width: 100%; max-width: 320px; margin-bottom: 48px; }
.product__media img { width: 100%; height: auto; display: block; }
.product__name { font-size: clamp(1.6rem, 3.4vw, 2.2rem); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 14px; }
.product__lead { color: var(--grey); font-size: 1.02rem; line-height: 1.6; max-width: 42ch; margin-bottom: 26px; }
@media (min-width: 820px) {
  .products__grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .products__grid .product { padding: 8px 52px; }
  .products__grid .product + .product { border-left: 1px solid var(--line); }
}

/* ---------- platform picker modal ---------- */
.pmodal { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pmodal[hidden] { display: none; }
.pmodal__overlay { position: absolute; inset: 0; background: rgba(14,14,14,.55); backdrop-filter: blur(3px); animation: cookie-fade .25s ease; }
.pmodal__dialog { position: relative; width: 100%; max-width: 420px; background: var(--white); border: 1px solid var(--ink); padding: 38px 32px 34px; text-align: center; animation: cookie-pop .3s cubic-bezier(.2,.8,.2,1); }
.pmodal__close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 1.7rem; line-height: 1; color: var(--grey); cursor: pointer; padding: 0 2px; }
.pmodal__close:hover { color: var(--ink); }
.pmodal__title { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.pmodal__intro { font-size: .9rem; color: var(--grey); margin-bottom: 26px; }
.pmodal__choices { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pmodal__choice { display: inline-flex; }
.pmodal__choice img { height: 52px; width: auto; transition: transform .2s ease; }
.pmodal__choice:hover img { transform: translateY(-2px); }

/* ---------- generic page header ---------- */
.page-hero { max-width: var(--wrap); margin-inline: auto; padding: 72px 28px 16px; }
.page-hero--center { text-align: center; padding-bottom: 80px; }
.page-hero__title { font-size: clamp(2.2rem, 6.5vw, 4rem); text-transform: uppercase; letter-spacing: .005em; }
.page-hero__lead { margin-top: 24px; font-size: 1.1rem; color: var(--grey); max-width: 62ch; line-height: 1.6; }
.page-hero--center .page-hero__lead { margin-inline: auto; }

/* ---------- prose / text columns ---------- */
.prose { max-width: 68ch; }
.prose p { color: var(--grey); font-size: 1.08rem; line-height: 1.7; margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- contact block (about / company) ---------- */
.contact { display: grid; gap: 36px; }
.contact__intro p { color: var(--grey); font-size: 1.05rem; line-height: 1.65; max-width: 40ch; }
.contact__list { display: grid; gap: 26px; }
.contact-item__label { font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--grey-2); margin-bottom: 7px; }
.contact-item__value { font-size: 1.02rem; color: var(--ink); line-height: 1.55; }
.contact-item__value a { color: var(--ink); }
.contact-item__value a:hover { color: var(--grey); }
@media (min-width: 720px) {
  .contact { grid-template-columns: 1fr 1fr; gap: 64px; }
  .contact__list--2 { grid-template-columns: 1fr 1fr; }
}

/* ---------- bordered card grid (career benefits / support) ---------- */
.cardgrid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--white); padding: 30px 26px; display: flex; flex-direction: column; }
.card__no { font-size: .72rem; font-weight: 600; letter-spacing: .1em; color: var(--grey-2); margin-bottom: 16px; }
.card h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.card p { font-size: .92rem; color: var(--grey); line-height: 1.6; }
.card--span { grid-column: 1 / -1; }
@media (min-width: 600px) { .card--span { flex-direction: row; align-items: baseline; gap: 40px; } .card--span .contact-item__label { margin-bottom: 0; } }
.card__link { margin-top: auto; padding-top: 18px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.card__link:hover { color: var(--grey); }
@media (min-width: 600px) { .cardgrid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) {
  .cardgrid--3 { grid-template-columns: repeat(3, 1fr); }
  .cardgrid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- app hero (prisma / lensa) ---------- */
.app-hero { max-width: var(--wrap); margin-inline: auto; padding: 64px 28px 8px; }
.app-hero__icon { width: 68px; height: 68px; border-radius: 16px; margin-bottom: 26px; box-shadow: 0 20px 45px -28px rgba(14,14,14,.6); }
.app-hero__title { font-size: clamp(1.9rem, 4.6vw, 3rem); max-width: 18ch; letter-spacing: -.01em; line-height: 1.1; }
.app-hero__lead { margin-top: 22px; font-size: 1.08rem; color: var(--grey); max-width: 52ch; line-height: 1.6; }

/* ---------- store badges ---------- */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.store-badges img { height: 50px; width: auto; }

/* ---------- feature rows (alternating) ---------- */
.feature { padding: 48px 0; border-bottom: 1px solid var(--line); }
.feature__inner { display: grid; gap: 36px; align-items: center; }
.feature__media { width: 100%; max-width: 340px; justify-self: center; overflow: hidden; }
.feature__media img { width: 100%; height: auto; display: block; transition: transform .6s ease; }
.feature:hover .feature__media img { transform: scale(1.03); }
.feature__no { font-size: .72rem; font-weight: 600; letter-spacing: .14em; color: var(--grey-2); margin-bottom: 14px; }
.feature__title { font-size: clamp(1.4rem, 3.4vw, 2rem); text-transform: uppercase; letter-spacing: .01em; }
@media (min-width: 820px) {
  .feature__inner { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature__media { justify-self: end; }
  .feature--flip .feature__media { order: 2; justify-self: start; }
}

/* ---------- spotlight band (prisma web / desktop) ---------- */
.spotlight { background: var(--off); }
.spotlight__inner { display: grid; gap: 32px; align-items: center; }
.spotlight__media img { width: 100%; }
@media (min-width: 820px) { .spotlight__inner { grid-template-columns: 1.1fr 1fr; gap: 64px; } }

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 28px; }
.notfound__code { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--grey-2); margin-bottom: 18px; }
.notfound__title { font-size: clamp(2rem, 6vw, 3.4rem); text-transform: uppercase; letter-spacing: .01em; }
.notfound__text { margin: 18px 0 32px; color: var(--grey); font-size: 1.05rem; }

/* ---------- legal documents (privacy / terms) ---------- */
.legal { max-width: 820px; margin-inline: auto; padding: 0 28px 80px; }
.legal__head { padding: 64px 0 36px; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.legal__title { font-size: clamp(2rem, 5.5vw, 3.2rem); text-transform: uppercase; letter-spacing: .005em; }
.legal__meta { margin-top: 18px; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.legal__doc { font-size: .96rem; line-height: 1.72; color: var(--grey); }
.legal__doc h2 { font-size: 1.18rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); margin: 44px 0 16px; }
.legal__doc p { margin-bottom: 16px; }
.legal__doc strong { color: var(--ink); font-weight: 600; }
.legal__doc a { color: var(--ink); }
.legal__doc a:hover { color: var(--grey); }
.legal__doc ul, .legal__doc ol { margin: 0 0 16px 22px; }
.legal__doc li { margin-bottom: 8px; }
.legal__doc li p { margin-bottom: 8px; }
.legal__doc blockquote { border-left: 2px solid var(--line); background: var(--off); padding: 16px 20px; margin: 0 0 18px; }
.legal__doc blockquote p:last-child { margin-bottom: 0; }
.legal__doc table { border-collapse: collapse; width: 100%; margin: 0 0 18px; font-size: .88rem; }
.legal__doc th, .legal__doc td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }

/* ---------- version history: trigger + modal ---------- */
.legal__versions { display: inline-flex; align-items: center; margin-top: 18px; background: none; border: none; padding: 0; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.legal__versions:hover { color: var(--grey); }
.legal__prevlink { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.legal__prevlink:hover { color: var(--grey); }

.vmodal { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 24px; }
.vmodal[hidden] { display: none; }
.vmodal__overlay { position: absolute; inset: 0; background: rgba(14,14,14,.55); backdrop-filter: blur(3px); animation: cookie-fade .25s ease; }
.vmodal__dialog { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 48px); overflow-y: auto; background: var(--white); border: 1px solid var(--ink); padding: 30px; animation: cookie-pop .3s cubic-bezier(.2,.8,.2,1); }
.vmodal__close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.7rem; line-height: 1; color: var(--grey); cursor: pointer; padding: 0 2px; }
.vmodal__close:hover { color: var(--ink); }
.vmodal__title { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; padding-right: 24px; }
.vmodal__intro { font-size: .86rem; color: var(--grey); margin-bottom: 20px; }
.vtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.vtable th { text-align: left; font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-2); padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.vtable td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.vtable td:last-child { text-align: right; white-space: nowrap; }
.vtable a { color: var(--ink); }
.vtable td:first-child a { text-decoration: underline; text-underline-offset: 2px; }
.vtable a:hover { color: var(--grey); }
.vtable tr.is-current td { font-weight: 600; }
.vtable__tag { font-size: .6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); border: 1px solid var(--line); padding: 3px 8px; }
