/* =========================================================
   FaceUpper — landing page (concept 04 "Velo")
   Page-level layout. Tokens and fu-* classes live in faceupper.css.
   ========================================================= */

:root {
  --pad: clamp(18px, 4vw, 56px);

  /* Palette lives in css/branding-kit.css (loaded before this file). */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fu-bg);
  color: var(--fu-text);
  font-family: var(--fu-font-sans);
}
main { overflow-x: hidden; }
a { color: var(--fu-ink-900); text-decoration: none; }
a:hover { color: var(--fu-bloom-600); }
:focus-visible { outline: 2px solid var(--fu-bloom-500); outline-offset: 3px; border-radius: 8px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--fu-font-display); font-weight: 400; margin: 0; letter-spacing: -.015em; }
h1 em, h2 em { font-style: italic; }
.eyebrow {
  font-family: var(--fu-font-sans);
  font-size: var(--fu-text-3xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fu-gold-500);
  margin: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(800px, 100svh);
  display: grid; place-items: center;
  overflow: visible; isolation: isolate;
  background: var(--fu-cream-100);
}
.bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.bg video {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%;
}
.light { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.light i { position: absolute; display: block; border-radius: 50%; filter: blur(56px); will-change: transform, opacity; }
.l1 { left: -6%; top: -4%; width: 62%; height: 86%; background: radial-gradient(circle, rgba(246, 221, 214, .9), rgba(246, 221, 214, 0) 68%); animation: f1 17s ease-in-out infinite alternate; }
.l2 { right: -8%; top: 2%; width: 58%; height: 88%; background: radial-gradient(circle, rgba(244, 215, 175, .78), rgba(244, 215, 175, 0) 68%); animation: f2 21s ease-in-out infinite alternate; }
.p1 { left: 12%; bottom: 4%; width: 30%; height: 38%; background: radial-gradient(circle, rgba(239, 196, 185, .7), rgba(239, 196, 185, 0) 65%); animation: f3 14s ease-in-out infinite alternate; }
.p2 { right: 16%; bottom: -2%; width: 34%; height: 42%; background: radial-gradient(circle, rgba(242, 235, 229, .85), rgba(242, 235, 229, 0) 65%); animation: f4 16s ease-in-out infinite alternate; }
.p3 { left: 38%; top: -6%; width: 28%; height: 34%; background: radial-gradient(circle, rgba(250, 247, 244, .88), rgba(250, 247, 244, 0) 65%); animation: f5 13s ease-in-out infinite alternate; }
@keyframes f1 { from { transform: translate3d(-3%, 2%, 0) scale(1); }               to { transform: translate3d(4%, -3%, 0) scale(1.12); } }
@keyframes f2 { from { transform: translate3d(3%, -2%, 0) scale(1.08); }            to { transform: translate3d(-4%, 3%, 0) scale(.96); } }
@keyframes f3 { from { transform: translate3d(0, 3%, 0) scale(.95); opacity: .75; }  to { transform: translate3d(6%, -6%, 0) scale(1.15); opacity: 1; } }
@keyframes f4 { from { transform: translate3d(2%, 4%, 0) scale(1.1); opacity: 1; }   to { transform: translate3d(-5%, -5%, 0) scale(.94); opacity: .7; } }
@keyframes f5 { from { transform: translate3d(-4%, -2%, 0) scale(1); }              to { transform: translate3d(5%, 4%, 0) scale(1.18); } }
.veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(62% 48% at 50% 50%, rgba(250, 247, 244, .78), rgba(250, 247, 244, .36) 62%, rgba(250, 247, 244, 0) 80%),
    linear-gradient(to bottom, rgba(250, 247, 244, .44), rgba(250, 247, 244, 0) 26%, rgba(250, 247, 244, 0) 62%, rgba(250, 247, 244, .6) 96%);
}
.hero.paused .light i { animation-play-state: paused; }

.hero__in {
  position: relative; z-index: 2; text-align: center;
  padding: clamp(96px, 12vh, 140px) var(--pad) clamp(96px, 13vh, 150px);
  max-width: 860px;
}
.hero h1 { margin: 18px auto 0; font-size: clamp(40px, 4.9vw, 76px); line-height: 1.04; max-width: 14ch; }
.hero__body {
  margin: 20px auto 0; max-width: 46ch;
  font-size: clamp(15.5px, 1.15vw, 17.5px); line-height: 1.62;
  color: var(--fu-ink-700);
}
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; }
.cta .fu-btn {
  transition: transform 180ms var(--fu-ease-out), box-shadow 180ms var(--fu-ease-out),
              background 180ms var(--fu-ease-out), color 180ms var(--fu-ease-out);
}
.cta .fu-btn:hover, .foot .fu-btn:hover { transform: translateY(-2px); box-shadow: var(--fu-shadow-md); }
.cta .fu-btn--primary { background: var(--fu-bloom-500); }
.cta .fu-btn--primary:hover, .cta .fu-btn--primary:focus-visible, .cta .fu-btn--primary:active {
  background: var(--fu-bloom-600);
  color: var(--fu-text-invert);
}
.btn-soft {
  background: rgba(250, 247, 244, .86);
  border: 1px solid var(--fu-border-strong);
  color: var(--fu-ink-900);
  backdrop-filter: blur(6px);
}
.btn-soft:hover { background: var(--fu-bone-50); color: var(--fu-bloom-600); }
.curve {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: clamp(56px, 7.5vw, 120px);
  display: block; z-index: 3;
}

/* Nested in the curve. Same stacking context as the menu, below .sheet (7). */
.jump {
  display: flex;
  justify-content: center;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  z-index: 4;
  margin-top: calc(clamp(56px, 7.5vw, 120px) * -0.58);
  padding: 0 var(--pad) 8px;
}
.jump a {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px;
  border: 1px solid rgb(118 66 72 / 24%);
  border-radius: var(--fu-radius-pill);
  background: #FFFFFF;
  box-shadow: 0 6px 24px rgb(118 66 72 / 10%);
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #764248;
  transition: background 180ms var(--fu-ease-out), border-color 180ms var(--fu-ease-out),
              transform 180ms var(--fu-ease-out);
}
.jump a:hover { background: #F5F2EB; border-color: #A48B66; color: #764248; transform: translateY(-1px); }
.jump a:active { transform: none; }
.jump a:focus-visible { outline: 2px solid #764248; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .jump a { transition: none; } }

/* ---------- Who it's for ---------- */
.intro { padding: clamp(52px, 6.5vw, 96px) var(--pad); }
.intro__in {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.intro h2 {
  margin: 14px auto 0;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.08;
}
.intro p {
  margin: 18px auto 0;
  color: var(--fu-ink-700);
  font-size: clamp(15px, 1.05vw, 16.5px);
  line-height: 1.62;
  max-width: 58ch;
}
.intro .eyebrow {
  margin: 0;
  color: var(--fu-gold-500);
  max-width: none;
}
.intro__prose {
  max-width: 62ch;
  margin: clamp(24px, 3vw, 40px) auto 0;
  display: grid;
  gap: 16px;
}
.intro__prose p {
  margin: 0;
  line-height: 1.68;
}

/* ---------- Anchors + compact Starter footer ---------- */
#starter, #metodo, #percorso, #pratica, #aga, #esperienze, #programmi, #pro, #platinum { scroll-margin-top: 90px; }
.foot { max-width: 1180px; margin: clamp(30px, 3.8vw, 56px) auto 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.foot .fu-btn { transition: transform 180ms var(--fu-ease-out), box-shadow 180ms var(--fu-ease-out); }
.foot .facts { margin: 0; font-size: 13.5px; letter-spacing: .04em; line-height: 1.6; color: var(--fu-ink-700); text-align: center; }
.foot__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.path { font-size: var(--fu-text-2xs); letter-spacing: .18em; text-transform: uppercase; color: var(--fu-text-muted); margin: 0; }

/* ---------- Offer-style sections (practice / Aga / experiences / Starter / programmes) ---------- */
.offer { padding: clamp(52px, 6.5vw, 96px) var(--pad); }
#programmi.offer { padding: clamp(28px, 3.2vw, 44px) var(--pad); }
#programmi .offer__head h2 { font-size: clamp(24px, 2.4vw, 36px); }
#programmi .offer__head p { margin-top: 8px; font-size: 15px; line-height: 1.5; }
.offer--band { background: var(--fu-bloom-50); }
.offer__head { max-width: 760px; margin: 0 auto; text-align: center; }
.offer__head h2 { margin: 14px 0 0; font-size: clamp(30px, 3.1vw, 50px); line-height: 1.07; }
.offer__head p { margin: 18px auto 0; max-width: 56ch; color: var(--fu-ink-700); font-size: clamp(15px, 1.05vw, 16.5px); line-height: 1.62; }
.duo {
  max-width: 1180px; margin: clamp(30px, 3.8vw, 56px) auto 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 34px);
}
.media { border-radius: clamp(28px, 3vw, 48px); overflow: hidden; min-height: clamp(260px, 26vw, 360px); }
.media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 900ms var(--fu-ease-out); }
.media.in img { transform: scale(1); }
#pratica .media img { scale: 1.1; translate: 0 -4%; }
#aga .media {
  position: relative;
  aspect-ratio: 4 / 5;
  align-self: start;
  width: 100%;
  min-height: 0;
}
#aga .media .quote {
  height: 100%;
  min-height: inherit;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
}
#aga .media .ba-cmp {
  position: relative;
  height: 100%;
  min-height: inherit;
  border-radius: inherit;
  background: transparent;
  overflow: hidden;
}
#aga .media .ba-cmp img,
#aga .media .ba-cmp .ba-cmp__clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#aga .media .ba-cmp img {
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
}
#aga .media .ba-cmp__line,
#aga .media .ba-cmp__handle {
  opacity: 1;
}
#aga .media .ba-cmp__line {
  width: 2px;
  background: var(--fu-bone-50);
  box-shadow: 0 0 0 1px rgb(164 139 102 / 55%);
}
#aga .media .ba-cmp__handle {
  width: 36px;
  height: 36px;
  background: var(--fu-bone-50);
  color: var(--fu-gold-500);
  border: 2px solid var(--fu-gold-500);
  box-shadow: 0 2px 10px rgb(118 66 72 / 28%);
  font-size: 15px;
}
.pan { border-radius: clamp(28px, 3vw, 48px); padding: clamp(26px, 2.8vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.pan--bloom { background: var(--fu-bloom-50); }
.pan--bone { background: var(--fu-bone-50); border: 1px solid var(--fu-border); }
.inc { margin: 18px 0 0; display: grid; gap: clamp(18px, 1.8vw, 24px); }
.inc h3 { font-size: clamp(21px, 1.8vw, 28px); margin: 6px 0 0; }
.inc p { margin: 8px 0 0; color: var(--fu-ink-700); font-size: 15.5px; line-height: 1.6; max-width: 40ch; }
.pan__cta { margin-top: clamp(24px, 2.4vw, 32px); }
.pan__cta .fu-btn { transition: transform 180ms var(--fu-ease-out), box-shadow 180ms var(--fu-ease-out); }
.pan__cta .fu-btn:hover { transform: translateY(-2px); box-shadow: var(--fu-shadow-md); }
.pan h3 { font-size: clamp(22px, 1.9vw, 30px); margin: 10px 0 0; }
.pan > p { margin: 14px 0 0; color: var(--fu-ink-700); font-size: 15.5px; line-height: 1.62; }
.note { max-width: 64ch; margin: clamp(26px, 2.8vw, 38px) auto 0; text-align: center; font-size: 15px; line-height: 1.62; color: var(--fu-ink-700); }

/* ---------- Offer map (Starter → Pro, packages, alternatives) ---------- */
/* Filled emphasis only on the recommended starting point */
.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Numbered steps (practice preview) ---------- */
.steps {
  max-width: 1180px;
  margin: clamp(30px, 3.6vw, 52px) auto 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.steps li { border-top: 1px solid var(--fu-border-strong); padding: clamp(16px, 1.6vw, 22px) 0 0; }
.steps b {
  display: block; font-family: var(--fu-font-display); font-weight: 400;
  font-size: clamp(30px, 3vw, 46px); line-height: 1;
  color: var(--fu-gold-500); font-variant-numeric: tabular-nums;
}
.steps span {
  display: block; margin-top: 12px;
  font-family: var(--fu-font-display); font-size: clamp(19px, 1.5vw, 24px); line-height: 1.2; letter-spacing: -.01em;
}

/* Learner experiences carousel: styles moved to css/tcar.css (shared). */

/* ---------- Reveal system ---------- */
.js .rv {
  opacity: 0; transform: translateY(22px);
  transition: opacity 760ms var(--fu-ease-out), transform 760ms var(--fu-ease-out), filter 760ms var(--fu-ease-out);
}
.js .rv--blur { filter: blur(6px); }
.js .rv.in { opacity: 1; transform: none; filter: none; }
.js .rv:focus-within { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .light i { animation: none; }
  .js .rv { opacity: 1; transform: none; filter: none; transition: none; }
  .media img { transform: none; transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hero { min-height: min(700px, 100svh); }
  .bg video { object-position: 50% 22%; }
  .hero__in { padding: 96px var(--pad) 86px; }
  .hero h1 { font-size: clamp(34px, 9.2vw, 44px); max-width: 16ch; }
  .hero__body { font-size: 15.5px; margin-top: 16px; }
  .cta { margin-top: 24px; gap: 12px; }
  .cta .fu-btn { width: 100%; justify-content: center; }
  .duo { grid-template-columns: 1fr; }
  .media { min-height: 220px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot .fu-btn, .pan__cta .fu-btn { width: 100%; justify-content: center; }
  .foot__cta { width: 100%; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

.hero__facts { margin: 14px auto 0; color: var(--fu-ink-700); font-size: 13px; line-height: 1.5; }

/* One control, two explicit destinations: checkout and Starter details. */
.starter-choice {
  display: inline-grid;
  grid-template-columns: minmax(0, 61fr) minmax(0, 39fr);
  width: 440px;
  max-width: 100%;
  margin-top: 32px;
  border: 1px solid rgb(118 66 72 / 24%);
  border-radius: var(--fu-radius-pill);
  background: #FFFFFF;
  box-shadow: 0 6px 24px rgb(118 66 72 / 10%);
  transition: grid-template-columns 600ms cubic-bezier(.4, 0, .2, 1), background 600ms cubic-bezier(.4, 0, .2, 1);
}
/* Include reveal transitions so .js .rv does not override the hover motion. */
.js .starter-choice.rv {
  transition: grid-template-columns 600ms cubic-bezier(.4, 0, .2, 1),
    background 600ms cubic-bezier(.4, 0, .2, 1), opacity 760ms var(--fu-ease-out),
    transform 760ms var(--fu-ease-out), filter 760ms var(--fu-ease-out);
}
.starter-choice a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 18px;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background 600ms cubic-bezier(.4, 0, .2, 1);
}
.starter-choice__buy {
  position: relative;
  z-index: 1;
  border-radius: var(--fu-radius-pill);
  background: #764248;
  color: #FFFFFF;
}
.starter-choice__buy:hover { background: color-mix(in srgb, #764248 88%, #A48B66); color: #FFFFFF; }
.starter-choice__explore {
  position: relative;
  border-radius: 0 var(--fu-radius-pill) var(--fu-radius-pill) 0;
  background: transparent;
  color: #764248;
}
.starter-choice__explore:hover { color: #764248; }
.starter-choice:has(.starter-choice__explore:hover),
.starter-choice:has(.starter-choice__explore:focus-visible) { background: #F5F2EB; }
.starter-choice a:focus-visible { outline: 2px solid #764248; outline-offset: 4px; }
@media (max-width: 520px) {
  .starter-choice { margin-top: 24px; width: 100%; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .starter-choice a { min-height: 56px; padding: 12px 10px; font-size: 14px; white-space: normal; }
}

/* The curved join flows toward the active action without moving the pill. */
@media (min-width: 521px) and (hover: hover) and (pointer: fine) {
  .starter-choice:not(:has(a:focus-visible)):has(.starter-choice__buy:hover),
  .starter-choice:has(.starter-choice__buy:focus-visible) {
    grid-template-columns: minmax(0, 70fr) minmax(0, 30fr);
  }
  .starter-choice:not(:has(a:focus-visible)):has(.starter-choice__explore:hover),
  .starter-choice:has(.starter-choice__explore:focus-visible) {
    grid-template-columns: minmax(0, 53fr) minmax(0, 47fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .starter-choice, .js .starter-choice.rv, .starter-choice a { transition: none; }
}
