@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Surfaces — cool neutrals (Cool-Neutral Rule, see DESIGN.md) */
  --bg: #f4f5f7;
  --surface: #fcfdfe;   /* near-white, faintly cool — never pure #fff (DESIGN.md) */
  --surface-alt: #eef8f6;
  --surface-dark: #112028;
  --line: #d6dee6;

  /* Text */
  --text: #16181d;
  --text-soft: #4d5562;
  --text-on-dark: #f8fafc;

  /* Brand palette */
  --primary: #c43f63;          /* Rosa Confidente — voice of brand, ≤15% per screen */
  --primary-strong: #a81f48;
  --secondary: #0c7a74;        /* Teal Fiducia — voice of action (CTA) */
  --secondary-strong: #0a5f5a;
  --secondary-soft: #cceee9;
  --highlight: #ffd36f;         /* Giallo Evidenzia — rare highlight only */
  --highlight-text-dark: #b07a00;  /* Accessible variant of highlight on light bg */

  /* Typography */
  --font-display: 'Playfair Display', Georgia, "Times New Roman", serif;
  --font-body: Inter, "Segoe UI", system-ui, Arial, sans-serif;

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --radius: var(--radius-sm); /* legacy alias */

  /* Elevation — Single Glow Rule applies (DESIGN.md) */
  --shadow: rgba(17, 32, 40, 0.12);
  --shadow-ambient-soft: 0 6px 20px -14px rgba(15, 23, 42, 0.25);
  --shadow-ambient-lifted: 0 14px 30px -18px rgba(15, 23, 42, 0.35);
  --shadow-cta-glow: 0 4px 14px -4px rgba(12, 122, 116, 0.5);
  --shadow-cta-glow-lifted: 0 8px 20px -6px rgba(12, 122, 116, 0.6);

  --content-width: 1160px;

  /* Motion — ease-out only, no bounce (DESIGN.md / impeccable) */
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Checkout button — primary conversion action (Single Glow Rule applies — only this CTA carries colored shadow) */
.button-checkout {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 50px;
  padding: 8px 22px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-strong) 100%);
  color: var(--surface);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: var(--shadow-cta-glow);
}

.button-checkout:hover,
.button-checkout:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--secondary-strong) 0%, #084440 100%);
  box-shadow: var(--shadow-cta-glow-lifted);
}

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

.button-checkout:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.button-checkout .checkout-label {
  font-size: 0.98rem;
  font-weight: 700;
}

.button-checkout .checkout-sub {
  font-size: 0.74rem;
  font-weight: 500;
  opacity: 0.88;
  letter-spacing: 0.02em;
}

/* Hero upsell — paid plan demoted to a quiet text link so the free Try-On
   is the single dominant hero action (free-first funnel). Keeps the
   .button-checkout class so the existing checkout JS still manages it. */
.hero-upsell {
  margin: 14px 0 0;
}

.button-checkout--ghost {
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  min-height: 0;
  padding: 4px 0;
  background: none;
  box-shadow: none;
  color: var(--secondary);
  font-weight: 600;
}

.button-checkout--ghost:hover,
.button-checkout--ghost:focus-visible {
  transform: none;
  background: none;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.button-checkout--ghost:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.button-checkout--ghost .checkout-label,
.button-checkout--ghost .checkout-sub {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: normal;
  opacity: 1;
}

.button-checkout--ghost .checkout-sub {
  color: var(--text-soft);
}

.checkout-notice {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--text-on-dark);
  font-size: 0.88rem;
  max-width: 520px;
}

.checkout-notice.is-error {
  background: rgba(196, 63, 99, 0.15);
  border-color: rgba(196, 63, 99, 0.4);
}

/* Final CTA actions wrapper */
.cta-sub {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Referral banner (shown when URL has ?ref=CODE) */
.ref-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
  color: var(--surface);
  text-align: center;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(196, 63, 99, 0.3);
  transition: opacity 0.4s ease;
}

.ref-banner strong {
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Trust Bar */
.trust-bar {
  background: linear-gradient(180deg, var(--surface) 0%, #fafbfc 100%);
  border-bottom: 1px solid var(--line);
  padding: 28px 20px;
}

.trust-bar-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 20px -14px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.trust-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-ambient-lifted);
  border-color: var(--secondary-soft);
}

.trust-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fce8ee 0%, #fef3f7 100%);
  font-size: 1.4rem;
  line-height: 1;
}

.trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.trust-text strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.trust-text span {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.35;
}

/* Virtual Try-On spotlight */
.section-vto {
  background: linear-gradient(180deg, #fff7fb 0%, var(--surface) 100%);
  padding: 76px 20px;
}

.vto-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: 44px;
  align-items: center;
}

.vto-copy .eyebrow {
  text-align: left;
  color: var(--primary);
}

.vto-copy h2 {
  margin: 0;
  max-width: 680px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
}

.vto-copy > p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.7;
}

.vto-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.vto-actions span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.vto-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.vto-feature-grid article {
  min-height: 120px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-ambient-soft);
}

.vto-feature-grid strong,
.vto-feature-grid span {
  display: block;
}

.vto-feature-grid strong {
  color: var(--text);
  font-size: 0.98rem;
}

.vto-feature-grid span {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.vto-preview {
  display: flex;
  justify-content: center;
}

.vto-phone {
  width: min(100%, 360px);
  padding: 14px;
  border: 1px solid rgba(17, 32, 40, 0.12);
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 28px 80px -42px rgba(17, 32, 40, 0.55);
}

.vto-phone-top {
  display: flex;
  justify-content: space-between;
  padding: 6px 6px 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vto-face {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: #1f2937 url("20.png") center 38% / cover no-repeat;
  --vto-split-pos: 54%;
}

.vto-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vto-before-img {
  filter: saturate(0.94) contrast(0.98);
}

.vto-after-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--vto-split-pos)) 0 0);
  pointer-events: none;
}

.vto-after-layer img {
  filter: none;
}

.vto-split {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--vto-split-pos);
  width: 3px;
  transform: translateX(-50%);
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(17, 32, 40, 0.16), 0 0 18px rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.vto-split::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(17, 32, 40, 0.22);
}

.vto-split::before {
  content: "↔";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -53%);
  color: #111827;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.vto-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
}

.vto-watermark {
  position: absolute;
  right: 12px;
  bottom: 13px;
  max-width: 46%;
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  background: rgba(17, 32, 40, 0.78);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.vto-compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.vto-ai-disclaimer {
  margin: 9px 2px 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.66rem;
  line-height: 1.35;
}

.vto-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.vto-controls span {
  padding: 8px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.vto-controls span:first-child {
  background: var(--primary);
  color: var(--surface);
}

.vto-look-card {
  margin-top: 10px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface);
}

.vto-look-card strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.vto-look-card p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.35;
}

.vto-swatches {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}

.vto-swatches span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(17, 32, 40, 0.1);
}

.vto-swatches span:nth-child(1) { background: #c93054; }
.vto-swatches span:nth-child(2) { background: #df806c; }
.vto-swatches span:nth-child(3) { background: #b56c79; }

/* Come Funziona Section */
.section-how {
  background: var(--surface);
  padding: 64px 20px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.how-step {
  text-align: left;
  padding: 0;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.how-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-ambient-lifted);
  border-color: var(--text-soft);
}

.how-number {
  display: block;
  margin: 0;
  padding: 32px 28px 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(4rem, 7.5vw, 6.4rem);
  font-weight: 700;
  font-style: italic;
  line-height: 0.9;
  color: var(--text);
  letter-spacing: -0.04em;
}

.how-step h3 {
  padding: 24px 28px 0;
}

.how-step p {
  padding: 12px 28px 28px;
}

.how-step h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.how-step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}

/* FAQ Section */
.section-faq {
  background: var(--bg);
  padding: 64px 20px;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.faq-item summary:hover {
  background: var(--bg);
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 24px 20px;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

/* Sticky CTA Mobile */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  gap: 8px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px -8px var(--shadow);
  z-index: 100;
}

.sticky-cta .button {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  font-size: 0.92rem;
  min-height: 44px;
}

.sticky-cta .button-checkout {
  flex-direction: row;
  gap: 0;
}

.sticky-cta .button-checkout .checkout-label,
.sticky-cta .button-checkout .checkout-sub {
  display: inline;
}

/* Card hover effects */
.outcome:hover,
.audience:hover,
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -24px var(--shadow);
}

.outcome,
.audience,
.pillar {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.lang-switcher select {
  appearance: none;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 28px 6px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%234d5562'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  min-height: 44px;
}

.lang-switcher select:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.brand span {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--primary-strong);
}

.hero {
  position: relative;
  min-height: clamp(640px, 88svh, 920px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 88% 50%, rgba(196, 63, 99, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

/* Decorative hero overlays disabled — kept as no-op so existing markup is harmless.
   Removed: dark navy gradient, animated blurred blobs, three-stop radial overlay.
   See DESIGN.md anti-references ("beauty tech startup", "AI-SaaS template"). */
.hero-gradient,
.hero-shape,
.hero-shape-1,
.hero-shape-2 {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 96px 20px 72px;
  color: var(--text);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

@media (max-width: 880px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Pricing Badge — momento Rosa Confidente nel hero (1 dei rari usi consentiti) */
.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  padding: 8px 18px;
  background: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  color: var(--surface);
  font-weight: 500;
}

.price-free {
  color: var(--surface);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.price-sep {
  color: rgba(255, 255, 255, 0.55);
}

.price-paid {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  text-align: center;
  display: block;
}

.hero-text .eyebrow,
.vto-copy .eyebrow,
.referral-copy .eyebrow,
.section-cta .eyebrow {
  text-align: left;
}

.section-dark .eyebrow,
.section-dark .section-heading .eyebrow {
  color: var(--highlight);
}

.hero h1,
.section-heading h2,
.audience h3,
.outcome h3,
.pillar h3,
.cta-inner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero h1 {
  max-width: 14ch;
  margin: 14px 0 0;
  font-size: clamp(2.6rem, 6.2vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero h1 em {
  font-style: italic;
  color: var(--primary);
  font-weight: 700;
}

.hero-copy {
  max-width: 46ch;
  margin: 24px 0 0;
  font-size: 1.1rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Hero Look Card — il prodotto reso visibile, puramente tipografico */
.hero-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 28px 60px -36px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  transform: rotate(0.4deg);
  transition: transform 0.3s ease;
}

.hero-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

@media (max-width: 880px) {
  .hero-card {
    max-width: 360px;
    transform: rotate(0deg);
  }
}

.hero-card-head {
  padding: 28px 28px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-card-tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
}

.hero-card-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 6px;
}

.hero-card-sub {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}

.hero-card-swatches {
  display: flex;
  gap: 0;
  height: 44px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-card-swatches span {
  flex: 1;
  height: 100%;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-card-swatches span:last-child {
  border-right: 0;
}

.hero-card-meta {
  padding: 8px 28px 4px;
  display: flex;
  flex-direction: column;
}

.hero-card-line {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.hero-card-line:last-of-type {
  border-bottom: 0;
}

.hero-card-line span {
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-card-line strong {
  color: var(--text);
  font-family: var(--font-body); /* keep label+value row single-family (DESIGN.md) */
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-align: right;
}

.hero-card-foot {
  padding: 14px 28px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.72rem;
  color: var(--text-soft);
  font-style: italic;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--text);
  color: var(--surface);
  letter-spacing: 0.01em;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--surface-dark);
}

.button-primary:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--bg);
  border-color: var(--text-soft);
}

/* CTA dupe — voce brand (Rosa Confidente), promossa a primo bottone della hero */
.button-dupe {
  background: var(--primary);
  color: #fff;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(196, 63, 99, 0.28);
}

.button-dupe:hover,
.button-dupe:focus-visible {
  background: var(--primary-strong);
  box-shadow: 0 8px 22px rgba(168, 31, 72, 0.32);
}

.button-dupe:focus-visible {
  outline: 2px solid var(--primary-strong);
  outline-offset: 3px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 920px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  text-align: center;
}

.checkout-notice {
  margin: 14px 0 0;
  max-width: 520px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.92rem;
}

.section {
  padding: 84px 20px;
}

.section-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.section-light {
  background: var(--bg);
}

.section-accent {
  background: linear-gradient(180deg, var(--surface-alt) 0%, #f7fcfb 100%);
}

.section-dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 1.05;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2 em {
  font-style: italic;
  color: var(--primary);
}

.outcomes-grid,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.audience-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: pillar;
}

/* Editorial index numeral — differentiates the pillars grid from the
   white outcome/audience cards (echoes .how-number, no markup change). */
.pillar {
  counter-increment: pillar;
}

.pillar h3::before {
  content: counter(pillar, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--secondary);
}

.outcome,
.audience,
.pillar,
.shot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 16px 40px -28px var(--shadow);
}

.outcome h3,
.audience h3,
.pillar h3 {
  font-size: 1.5rem;
  line-height: 1.15;
}

.outcome p,
.audience p,
.pillar p {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.audience-kicker {
  margin: 0 0 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  display: inline-block;
  padding: 4px 10px;
  background: var(--secondary-soft);
  border-radius: var(--radius-pill);
}

.section-referral {
  background: linear-gradient(180deg, var(--surface) 0%, #f3fbfa 100%);
}

.referral-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: 32px;
  align-items: center;
}

.referral-copy .eyebrow {
  text-align: left;
  color: var(--secondary);
}

.referral-copy h2 {
  margin: 0;
  max-width: 680px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
}

.referral-copy p {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.referral-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(12, 122, 116, 0.22);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 52px -34px rgba(12, 122, 116, 0.45);
}

.referral-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.referral-price span {
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.9rem;
}

.referral-price strong {
  color: var(--text);
  font-size: 1.4rem;
  white-space: nowrap;
}

.referral-price-highlight {
  background: #0c7a74;
  border-color: #0c7a74;
}

.referral-price-highlight span,
.referral-price-highlight strong {
  color: var(--surface);
}

.referral-arrow {
  width: 2px;
  height: 22px;
  margin: 0 auto;
  background: var(--secondary);
  position: relative;
}

.referral-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--secondary);
  border-bottom: 2px solid var(--secondary);
  transform: translateX(-50%) rotate(45deg);
}

.referral-rules {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.referral-rules article {
  min-height: 126px;
  padding: 18px;
  border: 1px solid rgba(12, 122, 116, 0.18);
  border-radius: var(--radius);
  background: var(--surface);
}

.referral-rules strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.referral-rules p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.proof-heading {
  text-align: left;
  max-width: 720px;
  margin: 0 auto 56px;
}

.proof-heading h2 {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.proof-heading .eyebrow {
  text-align: left;
}

.proof-intro {
  margin-top: 20px;
  color: rgba(248, 250, 252, 0.78);
  font-size: 1.04rem;
  line-height: 1.6;
  max-width: 60ch;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
  align-items: start;
}

@media (max-width: 1024px) {
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (max-width: 540px) {
  .proof-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
    gap: 40px;
  }
}

.shot {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.shot-frame {
  position: relative;
  background: var(--text);
  padding: 8px;
  border-radius: 26px;
  box-shadow:
    0 32px 60px -28px rgba(17, 32, 40, 0.55),
    0 0 0 1px rgba(248, 250, 252, 0.06);
  overflow: hidden;
}

.shot-frame::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  z-index: 2;
  pointer-events: none;
}

.shot-frame img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
}

.shot figcaption {
  margin: 0;
  padding: 0;
  text-align: left;
  font-weight: 400;
}

.shot figcaption strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
}

.shot figcaption span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.72);
}

.section-dark .section-heading .eyebrow {
  color: var(--highlight);
}

.section-cta {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(72px, 10vw, 128px);
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 211, 111, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.section-cta .eyebrow {
  color: var(--highlight);
  text-align: left;
}

.section-cta h2,
.section-cta .cta-sub {
  color: var(--text-on-dark);
}

.section-cta h2 {
  font-size: clamp(2.4rem, 5.4vw, 4.8rem) !important;
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-top: 8px;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
  position: relative;
  z-index: 1;
}

.cta-inner > div:first-of-type {
  max-width: 720px;
}

@media (max-width: 760px) {
  .cta-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }
}

.cta-logo {
  display: none;
}

.cta-inner h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

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

  .vto-preview {
    justify-content: flex-start;
  }

  .outcomes-grid,
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .referral-inner {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 80px; /* Spazio per sticky CTA */
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-content {
    padding-top: 92px;
    padding-bottom: 44px;
  }

  .hero-points,
  .vto-feature-grid,
  .outcomes-grid,
  .audience-grid,
  .referral-rules,
  .pillars,
  .proof-grid,
  .how-grid {
    grid-template-columns: 1fr;
  }

  .referral-copy,
  .referral-copy .eyebrow,
  .referral-copy p {
    text-align: center;
  }

  .referral-panel {
    padding: 16px;
  }

  .referral-price {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .shot img,
  .shot-tall img {
    max-height: none;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .trust-bar-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vto-copy .eyebrow {
    text-align: center;
  }

  .vto-copy,
  .vto-copy > p {
    text-align: center;
  }

  .vto-actions {
    justify-content: center;
  }

  .vto-preview {
    justify-content: center;
  }

  .how-step {
    padding: 24px 20px;
  }

  .faq-item summary {
    padding: 16px 20px;
    font-size: 1rem;
  }

  .faq-item p {
    padding: 0 20px 16px;
  }

  /* Footer/CTA section - centered on mobile */
  .cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 20px;
  }

  .cta-logo {
    width: 80px;
    height: 80px;
  }

  .cta-actions {
    justify-content: center;
    width: 100%;
  }

  .section-cta {
    padding: 48px 20px;
  }

  /* Attiva sticky CTA su mobile */
  .sticky-cta.is-visible {
    display: flex;
  }
}

/* Footer */
.site-footer {
  background: var(--surface-dark);
  color: rgba(248, 250, 252, 0.7);
  padding: 24px 20px;
  font-size: 0.85rem;
}

.footer-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(248, 250, 252, 0.7);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-on-dark);
}

@media (max-width: 480px) {
  .how-number {
    font-size: 2.6rem;
  }

  .trust-item {
    font-size: 0.85rem;
  }
}

/* ─── Hero entrance — one orchestrated page-load (impeccable: animate).
   The hero text rises in from the left while the Look Card composes on the
   right, swatches sweeping in last: "your look, generated for you." Pure
   CSS, ease-out only, fully disabled under prefers-reduced-motion below. */
@keyframes biq-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes biq-card-in {
  from { opacity: 0; transform: translateY(20px) rotate(0.4deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0.4deg); }
}

@keyframes biq-swatch-sweep {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero-text > .eyebrow,
.hero-text > h1,
.hero-text > .hero-copy,
.hero-text > .pricing-badge,
.hero-text > .hero-actions,
.hero-text > .hero-upsell,
.hero-text > .hero-points {
  animation: biq-rise 0.65s var(--ease-out-quint) backwards;
}

.hero-text > .eyebrow      { animation-delay: 0.05s; }
.hero-text > h1            { animation-delay: 0.12s; }
.hero-text > .hero-copy    { animation-delay: 0.22s; }
.hero-text > .pricing-badge{ animation-delay: 0.30s; }
.hero-text > .hero-actions { animation-delay: 0.38s; }
.hero-text > .hero-upsell  { animation-delay: 0.44s; }
.hero-text > .hero-points  { animation-delay: 0.50s; }

.hero-card {
  animation: biq-card-in 0.75s var(--ease-out-quint) 0.30s backwards;
}

.hero-card-swatches span {
  transform-origin: left center;
  animation: biq-swatch-sweep 0.55s var(--ease-out-quint) backwards;
}

.hero-card-swatches span:nth-child(1) { animation-delay: 0.62s; }
.hero-card-swatches span:nth-child(2) { animation-delay: 0.70s; }
.hero-card-swatches span:nth-child(3) { animation-delay: 0.78s; }
.hero-card-swatches span:nth-child(4) { animation-delay: 0.86s; }

/* Reduced motion — required by PRODUCT.md, WCAG 2.3.3.
   Disable purely decorative animation/transition for users with vestibular sensitivity. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .section,
  .how-step,
  .outcome,
  .audience,
  .pillar,
  .trust-item,
  .button,
  .button-checkout,
  .cta-logo,
  .ref-banner {
    transform: none !important;
  }
}

/* ── Curated looks strip (landing → /look/ SEO funnel) ── */
.section-lead {
  margin: 12px auto 0;
  color: var(--text-soft);
  max-width: 60ch;
  line-height: 1.5;
}

.looks-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.look-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.look-card:hover,
.look-card:focus-visible {
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-ambient-soft);
}

.look-card-swatch {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  border: 1px solid var(--line);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.25);
}

.look-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.look-card-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.look-card-sub {
  font-size: 0.85rem;
  color: var(--text-soft);
}

@media (prefers-reduced-motion: reduce) {
  .look-card:hover,
  .look-card:focus-visible {
    transform: none !important;
  }
}

/* ============================================================
   Download / install section (#installa) — added with the free
   relaunch. Android shows a "Presto su Google Play" pending badge
   (swap for a real store link at go-live); iPhone shows Safari
   add-to-home steps. Browser fallback always available.
   ============================================================ */
.section-install .install-sub { max-width: 56ch; margin: 0.5rem auto 0; color: var(--text-soft); }
.install-grid {
  display: grid; gap: 1.25rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 760px; margin-inline: auto;
}
.install-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-ambient-soft); display: flex; flex-direction: column;
}
.install-card h3 { font-family: var(--font-body); font-size: 1.1rem; margin: 0 0 .5rem; display: flex; align-items: center; gap: .5rem; }
.install-card > p { color: var(--text-soft); font-size: .95rem; margin: 0 0 1rem; }
.install-os { font-size: 1.3rem; line-height: 1; }
.install-steps { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--text-soft); font-size: .9rem; line-height: 1.6; }
.install-steps li { margin-bottom: .4rem; }
.install-steps strong { color: var(--text); }
.install-cta {
  margin-top: auto; align-self: flex-start; font-weight: 600;
  color: var(--secondary-strong); text-decoration: none; font-size: .92rem;
}
.install-cta:hover { text-decoration: underline; }
/* App Store badge (pending finche' la scheda non e' pubblica) */
.store-badge {
  position: relative; display: inline-flex; align-items: center; gap: .6rem;
  background: var(--surface-dark); color: var(--text-on-dark);
  border-radius: var(--radius-md); padding: .6rem 1rem; margin-bottom: 1rem;
  text-decoration: none; width: max-content;
}
.store-badge.is-pending { cursor: default; opacity: .92; }
a.store-badge:hover, a.store-badge:focus-visible { opacity: 1; transform: translateY(-1px); }
.store-badge svg { width: 22px; height: 28px; flex: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-text small { font-size: .68rem; opacity: .8; }
.store-text strong { font-size: 1rem; }
.store-pending-tag {
  position: absolute; top: -.55rem; right: -.4rem;
  background: var(--highlight); color: var(--highlight-text-dark);
  font-size: .62rem; font-weight: 700; letter-spacing: .03em;
  padding: .12rem .45rem; border-radius: var(--radius-pill); text-transform: uppercase;
}
/* hero install nudge link */
.hero-install-link { color: var(--secondary-strong); font-weight: 600; text-decoration: none; font-size: .95rem; }
.hero-install-link:hover { text-decoration: underline; }
/* dupe engine section (2026-08, motore dupe + ED score) */
#dupe-engine .section-inner { text-align: center; }
.dupe-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem 2.8rem; margin: 1.4rem 0 1.6rem; }
.dupe-stat { display: flex; flex-direction: column; align-items: center; }
.dupe-stat strong { font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--text); }
.dupe-stat span { font-size: .85rem; color: var(--text-soft); max-width: 180px; }
.section-dark .dupe-stat strong { color: var(--text-on-dark, #fff); }
.section-dark .dupe-stat span { color: rgba(255,255,255,.75); }
.dupe-ed { margin: 0 auto 1.6rem; padding: 1.1rem 1.2rem; border-radius: 14px; background: rgba(255,255,255,.06); max-width: 720px; text-align: left; }
.dupe-ed-chip {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: .18rem .55rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .03em;
  background: #fde8d8; color: #b34a0c; margin-right: .4rem; margin-bottom: .6rem;
}
.dupe-ed-critical { background: #fbd8d8; color: #a01212; }
.dupe-ed p { margin: 0; font-size: .95rem; line-height: 1.55; }
.section-dark .dupe-ed p { color: rgba(255,255,255,.85); }
#dupe-engine .button-dupe { display: inline-block; }
