/* =========================================================
   FaceUpper — "Starter" sales page
   Page-level layout. Tokens and fu-* classes live in faceupper.css.
   Shares the header/hero/section patterns of metodo.css, plus
   the purchase card, package alternatives and FAQ.
   ========================================================= */

:root {
  --pad: clamp(18px, 4vw, 56px);
  --fu-bg: #F5F2EB;
  --fu-bone-50: #FFFFFF;
  --fu-cream-100: #F5F2EB;
  --fu-bloom-50: color-mix(in srgb, #E1AA9A 16%, #FFFFFF);
  --fu-bloom-100: color-mix(in srgb, #E1AA9A 24%, #FFFFFF);
  --fu-bloom-300: #E1AA9A;
  --fu-bloom-500: #764248;
  --fu-bloom-600: color-mix(in srgb, #764248 85%, #A48B66);
  --fu-ink-900: color-mix(in srgb, #764248 55%, #201214);
  --fu-ink-700: color-mix(in srgb, #764248 75%, #201214);
  --fu-sage-100: var(--fu-bloom-50);
  --fu-shadow-glow: 0 16px 48px rgb(118 66 72 / 22%);
}

* { 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, h4 { font-family: var(--fu-font-display); font-weight: 400; margin: 0; letter-spacing: -.015em; }
h1 em, h2 em, h3 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-bloom-600);
  margin: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--fu-cream-100);
  padding: clamp(112px, 14vh, 168px) var(--pad) clamp(70px, 9vw, 120px);
}
.light { position: absolute; inset: -25%; z-index: -2; 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(225, 168, 186, .85), rgba(225, 168, 186, 0) 68%); animation: f1 19s ease-in-out infinite alternate; }
.l2 { right: -8%; top: 2%; width: 58%; height: 88%; background: radial-gradient(circle, rgba(164, 139, 102, .7), rgba(164, 139, 102, 0) 68%); animation: f2 23s ease-in-out infinite alternate; }
.l3 { left: 34%; bottom: -8%; width: 34%; height: 44%; background: radial-gradient(circle, rgba(245, 242, 235, .86), rgba(245, 242, 235, 0) 66%); animation: f3 17s ease-in-out infinite alternate; }
@keyframes f1 { from { transform: translate3d(-3%, 2%, 0) scale(1); }    to { transform: translate3d(4%, -3%, 0) scale(1.1); } }
@keyframes f2 { from { transform: translate3d(3%, -2%, 0) scale(1.06); } to { transform: translate3d(-4%, 3%, 0) scale(.96); } }
@keyframes f3 { from { transform: translate3d(-3%, 2%, 0) scale(.96); }  to { transform: translate3d(4%, -4%, 0) scale(1.14); } }
.veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(245, 242, 235, .5), rgba(245, 242, 235, 0) 34%, rgba(245, 242, 235, 0) 64%, rgba(245, 242, 235, .55) 98%);
}
.hero__in {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 60px); align-items: center;
}
.hero h1 { margin: 18px 0 0; font-size: clamp(38px, 4.4vw, 68px); line-height: 1.05; max-width: 17ch; }
.hero__body {
  margin: 22px 0 0; max-width: 48ch;
  font-size: clamp(15.5px, 1.15vw, 17.5px); line-height: 1.62;
  color: var(--fu-ink-700);
}
.facts {
  margin: 18px 0 0;
  font-size: 13.5px; letter-spacing: .04em; line-height: 1.6;
  color: var(--fu-text-muted);
}
.hero__ctx {
  margin: 18px 0 0;
  font-size: 13.5px; letter-spacing: .03em; line-height: 1.6;
  color: var(--fu-text-muted);
}
.hero__ctx a { color: var(--fu-ink-900); border-bottom: 1px solid var(--fu-border-strong); padding-bottom: 1px; }
.hero__ctx a:hover { color: var(--fu-bloom-600); border-color: currentColor; }
.cta { margin: clamp(24px, 2.6vw, 34px) 0 0; display: flex; flex-wrap: wrap; gap: 14px; }
.cta .fu-btn { transition: transform 180ms var(--fu-ease-out), box-shadow 180ms var(--fu-ease-out), background var(--fu-dur-base) var(--fu-ease-out); }
.cta .fu-btn--primary:hover, .cta .fu-btn--primary:focus-visible, .cta .fu-btn--primary:active { color: #fff; }
.hero__media { border-radius: clamp(28px, 3vw, 48px); overflow: hidden; aspect-ratio: 4 / 5; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.curve {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: clamp(48px, 6vw, 96px);
  display: block; z-index: 3;
}

/* ---------- Sections ---------- */
.sec { padding: clamp(56px, 7vw, 104px) var(--pad); }
.sec--band { background: var(--fu-bloom-50); }
.wrap { max-width: 1180px; margin: 0 auto; }
.wrap--narrow { max-width: 820px; }
.head { max-width: 720px; }
.head--mid { margin-left: auto; margin-right: auto; text-align: center; }
.head h2 { margin: 14px 0 0; font-size: clamp(30px, 3.1vw, 50px); line-height: 1.07; }
.head p { margin: 18px 0 0; max-width: 54ch; color: var(--fu-ink-700); font-size: clamp(15px, 1.05vw, 16.5px); line-height: 1.62; }
.head--mid p { margin-left: auto; margin-right: auto; }

.duo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 34px); align-items: stretch;
}
.duo--gap { margin-top: clamp(30px, 3.6vw, 52px); }
.duo--flip .media { order: 2; }
.media { border-radius: clamp(28px, 3vw, 48px); overflow: hidden; min-height: clamp(260px, 26vw, 380px); }
.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); }
.pan { border-radius: clamp(28px, 3vw, 48px); padding: clamp(26px, 2.8vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.pan--sage { background: var(--fu-sage-100); }
.pan--cream { background: var(--fu-cream-100); }
.pan--bone { background: var(--fu-bone-50); border: 1px solid var(--fu-border); }
.pan h3 { font-size: clamp(21px, 1.8vw, 28px); margin: 8px 0 0; }
.pan p { margin: 14px 0 0; color: var(--fu-ink-700); font-size: 15.5px; line-height: 1.62; }
.pan .eyebrow--gap { margin-top: 22px; }

/* Numbered steps (Più Bella) */
.steps {
  margin: clamp(30px, 3.6vw, 52px) 0 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-bloom-600); 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;
}
.hint { margin: clamp(22px, 2.2vw, 30px) 0 0; font-size: 15px; line-height: 1.6; color: var(--fu-ink-700); max-width: 58ch; }

/* Queen chips */
.chips { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; height: 34px; padding: 0 15px;
  border-radius: var(--fu-radius-pill);
  background: rgba(245, 242, 235, .8);
  border: 1px solid var(--fu-border-strong);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.chips--hero { margin: 22px 0 0; }
.chips--hero li { height: 32px; padding: 0 13px; font-size: 11px; background: rgba(245, 242, 235, .72); }

/* Bulleted list (purchase card) */
.list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.list li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.55; color: var(--fu-ink-700); }
.list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fu-bloom-300);
}

/* ---------- Purchase ---------- */
.buy {
  margin: clamp(30px, 3.6vw, 52px) 0 0;
  background: var(--fu-surface);
  border: 1px solid var(--fu-border);
  border-radius: clamp(28px, 3vw, 48px);
  box-shadow: var(--fu-shadow-md);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  overflow: hidden;
}
.buy__main { padding: clamp(26px, 3vw, 48px); }
.buy .badge {
  display: inline-flex; align-items: center;
  height: 28px; padding: 0 12px; margin: 0 0 12px;
  border-radius: var(--fu-radius-pill);
  background: var(--fu-ink-900); color: var(--fu-text-invert);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
}
.buy__main h3 { font-size: clamp(26px, 2.4vw, 38px); margin: 10px 0 0; }
.buy__list { margin-top: clamp(18px, 2vw, 26px); gap: 11px; }
.buy__list li { font-size: 15.5px; }
.buy__side {
  padding: clamp(26px, 3vw, 48px);
  background: var(--fu-bloom-50);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 6px;
}
.price {
  margin: 0;
  font-family: var(--fu-font-display); font-weight: 400;
  font-size: clamp(44px, 4.6vw, 68px); line-height: 1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.price__note { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--fu-ink-700); }
.buy__side .fu-btn { margin-top: clamp(18px, 2vw, 26px); }
.buy__side .fu-btn--primary:hover, .buy__side .fu-btn--primary:focus-visible, .buy__side .fu-btn--primary:active { color: #fff; }
.buy__note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--fu-text-subtle); max-width: 30ch; }

/* Package alternatives — deliberately quieter than the Starter card */
.alts-head { margin: clamp(40px, 4.6vw, 68px) auto 0; max-width: 640px; text-align: center; }
.alts-head h3 { font-size: clamp(20px, 1.8vw, 27px); }
.alts-head p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--fu-ink-700); }
.alts {
  margin: clamp(20px, 2.4vw, 32px) auto 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
  max-width: 920px;
}
.alt { padding: clamp(20px, 2.2vw, 30px); justify-content: flex-start; }
.alt h4 { font-size: clamp(18px, 1.5vw, 23px); margin: 8px 0 0; }
.alt p { font-size: 14.5px; }
.alt__price {
  font-family: var(--fu-font-display); font-weight: 400;
  font-size: clamp(24px, 2.2vw, 32px); line-height: 1;
  letter-spacing: -.015em; font-variant-numeric: tabular-nums;
  margin: 16px 0 !important; color: var(--fu-ink-900) !important;
}
/* margin-top: auto bottom-aligns the buy buttons across both cards even
   when one card's copy runs longer (the price's bottom margin keeps the
   16px minimum gap). */
.alt .fu-btn { margin-top: auto; align-self: flex-start; }
.alt .fu-btn--ink:hover, .alt .fu-btn--ink:focus-visible, .alt .fu-btn--ink:active { color: var(--fu-text-invert); }

/* ---------- FAQ ---------- */
.faq { margin: clamp(28px, 3.2vw, 44px) 0 0; display: grid; gap: 10px; }
.faq details {
  background: var(--fu-bone-50);
  border: 1px solid var(--fu-border);
  border-radius: clamp(16px, 1.8vw, 22px);
  padding: 0 clamp(18px, 2vw, 26px);
  transition: border-color var(--fu-dur-base) var(--fu-ease-out);
}
.faq details[open] { border-color: var(--fu-bloom-300); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: clamp(16px, 1.8vw, 20px) 28px clamp(16px, 1.8vw, 20px) 0;
  position: relative;
  font-family: var(--fu-font-display); font-size: clamp(17px, 1.4vw, 21px); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--fu-font-sans); font-size: 20px; line-height: 1;
  color: var(--fu-bloom-600);
  transition: transform var(--fu-dur-base) var(--fu-ease-out);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p {
  margin: 0; padding: 0 0 clamp(16px, 1.8vw, 20px);
  font-size: 15px; line-height: 1.62; color: var(--fu-ink-700); max-width: 62ch;
}
.faq__back { margin: clamp(20px, 2.4vw, 32px) 0 0; text-align: center; font-size: 13.5px; letter-spacing: .04em; }
.faq__back a { color: var(--fu-text-muted); border-bottom: 1px solid var(--fu-border-strong); padding-bottom: 2px; }
.faq__back a:hover { color: var(--fu-bloom-600); border-color: currentColor; }

/* ---------- 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 { padding: 96px var(--pad) 64px; }
  .hero__in { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: clamp(32px, 8.6vw, 42px); max-width: 18ch; }
  .hero__media { aspect-ratio: 4 / 3; }
  .cta .fu-btn { width: 100%; justify-content: center; }
  .duo { grid-template-columns: 1fr; }
  .duo--flip .media { order: 0; }
  .media { min-height: 220px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buy { grid-template-columns: 1fr; }
  .buy__side { align-items: stretch; text-align: left; }
  .buy__side .fu-btn { justify-content: center; }
  .alts { grid-template-columns: 1fr; }
  .alt .fu-btn { align-self: stretch; justify-content: center; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* Method content is part of the Starter detail page. Hash targets sit on
   sections and on cards (#per-chi, #metodo); the offset also clears the
   sticky buy bar when it is visible. */
[id] { scroll-margin-top: 84px; }
.starter-login { font-size: 12px; }
.tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.tri .pan { justify-content: flex-start; }
.pan h2 { font-size: clamp(30px, 3.1vw, 50px); margin-top: 14px; }
.section-link { margin-top: 24px; }
@media (max-width: 900px) { .tri { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .starter-login { display: none; }
  .section-link { width: 100%; justify-content: center; }
}

/* ---------- Hero intro video ---------- */
/* The video hero widens the content box and gives the extra width to the
   video column (Podia parity: ~780×440 at 1440px). The text column stays
   at ~490px — the h1 caps itself at 17ch anyway. Scoped to .hero--video so
   testimonianze.html (which shares this stylesheet) keeps the plain hero. */
.hero--video .hero__in {
  max-width: 1340px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
}
/* Mid-size desktops: ease the split so the text column isn't crushed. */
@media (max-width: 1200px) {
  .hero--video .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
}
.hero__media--video { aspect-ratio: 16 / 9; background: var(--fu-cream-100); }
.hero__media--video video { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero__vcredit { margin: 12px 6px 0; font-size: 12.5px; letter-spacing: .03em; line-height: 1.6; color: var(--fu-text-muted); }
.hero__vcredit a { color: var(--fu-ink-900); border-bottom: 1px solid var(--fu-border-strong); padding-bottom: 1px; }
.hero__vcredit a:hover { color: var(--fu-bloom-600); border-color: currentColor; }

/* ---------- Intro cards (per-chi + metodo) ---------- */
.intro-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px); align-items: stretch;
}
.intro-card { justify-content: flex-start; }
.intro-card h2 { font-size: clamp(24px, 2.2vw, 34px); margin-top: 12px; }
.intro-card .chips { margin-top: auto; padding-top: 22px; }
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  /* Counter-rule: .hero--video .hero__in outranks the generic mobile
     .hero__in { grid-template-columns: 1fr } by specificity. */
  .hero--video .hero__in { grid-template-columns: 1fr; }
}
