:root {
  --color-bg: #fafaf9;
  --color-surface: #ffffff;
  --color-ink: #111827;
  --color-ink-secondary: #4b5563;
  --color-ink-tertiary: #6b7280;
  --color-border: #e5e7eb;
  --color-border-strong: #d1d5db;
  --color-accent: #047857;
  --color-accent-dark: #065f46;
  --color-accent-light: #d1fae5;
  --color-error: #dc2626;
  --color-success: #059669;
  --color-whatsapp: #25d366;
  --shadow-sm: 0 1px 2px 0 rgba(17, 24, 39, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(17, 24, 39, 0.07), 0 2px 4px -2px rgba(17, 24, 39, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(17, 24, 39, 0.08), 0 4px 6px -4px rgba(17, 24, 39, 0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --max-width: 1200px;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;
  --tracking-tight: -0.02em;
  --tracking-tighter: -0.03em;
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

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

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 250, 249, 0.98);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-md);
  height: 72px;
}

/* Logo e menu raggruppati a sinsistra, la CTA demo resta spinta a destra */
.nav > .btn {
  margin-left: auto;
}

.nav .nav-links {
  border-left: 1px solid var(--color-border);
  padding-left: var(--space-lg);
}

.logo {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  text-decoration: none;
}

.logo-sm {
  font-size: var(--text-lg);
}

.nav-links {
  display: none;
  list-style: none;
  padding: 0;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-ink);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: var(--text-base);
}

.btn-full {
  width: 100%;
}

.section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
  padding-left: 24px;
  padding-right: 24px;
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-3xl);
}

.section-head h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.section-head p {
  font-size: var(--text-lg);
  color: var(--color-ink-secondary);
}

.hero {
  padding-block: var(--space-4xl) var(--space-3xl);
  background:
    radial-gradient(56rem 30rem at 12% 8%, color-mix(in oklab, var(--color-accent) 9%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in oklab, var(--color-accent-light) 30%, var(--color-bg)), var(--color-bg) 85%);
}

.hero-copy h1 {
  color: color-mix(in oklab, var(--color-accent-dark) 22.5%, var(--color-ink));
}

.hero-chips li {
  background: color-mix(in oklab, var(--color-accent-light) 63.75%, var(--color-surface));
  border-color: color-mix(in oklab, var(--color-accent) 26.25%, var(--color-border));
  color: color-mix(in oklab, var(--color-accent-dark) 45%, var(--color-ink));
}

.hero-grid {
  display: grid;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-copy h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: var(--tracking-tighter);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.hero-lead {
  font-size: var(--text-lg);
  color: var(--color-ink-secondary);
  max-width: 56ch;
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero-note {
  font-size: var(--text-sm);
  color: var(--color-ink-tertiary);
}

.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: 0 0 var(--space-lg);
  padding: 0;
}

.hero-chips li {
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-secondary);
  background-color: var(--color-surface);
  animation: app-chip-c1 22s infinite;
}

.hero-chips li:nth-child(2) { animation-name: app-chip-c2; }
.hero-chips li:nth-child(3) { animation-name: app-chip-c3; }
.hero-chips li:nth-child(4) { animation-name: app-chip-c4; }
.hero-chips li:nth-child(5) { animation-name: app-chip-c5; }

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background-color: var(--color-ink);
  border-radius: 40px;
  padding: 12px;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background-color: var(--color-ink);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.app-screen {
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  border-radius: 30px;
  padding: 2.5rem 1rem 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.app-screen-dark {
  background: linear-gradient(180deg, #075e54 0%, #128c7e 100%);
}

.app-styles {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
}

.app-style {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: 2.5rem 1rem 1rem;
  background-color: var(--as-bg);
  color: var(--as-fg);
  opacity: 0;
  animation: app-style-r1 22s infinite;
}

.app-style:nth-child(2) { animation-name: app-style-r2; }
.app-style:nth-child(3) { animation-name: app-style-r3; }
.app-style:nth-child(4) { animation-name: app-style-r4; }
.app-style:nth-child(5) { animation-name: app-style-r5; }
.app-style:first-child { opacity: 1; }

.app-style-barber { --as-bg: #111827; --as-fg: #f9fafb; --as-mut: #9ca3af; --as-line: rgba(255, 255, 255, 0.16); --as-acc: #d1fae5; --as-acc-fg: #065f46; }
.app-style-beauty { --as-bg: #fdf2f8; --as-fg: #831843; --as-mut: #a4466e; --as-line: rgba(131, 24, 67, 0.15); --as-acc: #be185d; --as-acc-fg: #ffffff; }
.app-style-nail { --as-bg: #f5f3ff; --as-fg: #4c1d95; --as-mut: #6b5ca5; --as-line: rgba(76, 29, 149, 0.15); --as-acc: #6d28d9; --as-acc-fg: #ffffff; }
.app-style-spa { --as-bg: #fff7ed; --as-fg: #7c2d12; --as-mut: #a7653f; --as-line: rgba(124, 45, 18, 0.15); --as-acc: #c2410c; --as-acc-fg: #ffffff; }
.app-style-solo { --as-bg: #ffffff; --as-fg: #111827; --as-mut: #6b7280; --as-line: #e5e7eb; --as-acc: #111827; --as-acc-fg: #ffffff; }

.app-style-head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--as-line);
  margin-bottom: var(--space-xs);
}

.app-style-back {
  font-size: var(--text-lg);
  color: var(--as-mut);
}

.app-style-title {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--as-fg);
}

.app-style-salon {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--as-mut);
  margin-bottom: var(--space-xs);
}

.app-style-service {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--as-fg);
  margin-bottom: var(--space-xs);
}

.app-style-meta {
  font-size: var(--text-sm);
  color: var(--as-mut);
  margin-bottom: var(--space-md);
}

.app-style-slots span {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  margin-right: var(--space-xs);
  margin-bottom: var(--space-xs);
  border: 1px solid var(--as-line);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--as-mut);
}

.app-style-slots .app-style-on {
  background-color: var(--as-acc);
  border-color: var(--as-acc);
  color: var(--as-acc-fg);
}

.app-style-cta {
  margin-top: auto;
  padding: 0.75rem;
  background-color: var(--as-acc);
  color: var(--as-acc-fg);
  font-weight: 600;
  font-size: var(--text-sm);
  border: none;
  border-radius: var(--radius-md);
}

@keyframes app-style-r1 { 0%, 19% { opacity: 1; } 24%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes app-style-r2 { 0%, 16% { opacity: 0; } 20%, 39% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes app-style-r3 { 0%, 36% { opacity: 0; } 40%, 59% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes app-style-r4 { 0%, 56% { opacity: 0; } 60%, 79% { opacity: 1; } 84%, 100% { opacity: 0; } }
@keyframes app-style-r5 { 0%, 76% { opacity: 0; } 80%, 99% { opacity: 1; } 100% { opacity: 0; } }

@keyframes app-chip-c1 { 0%, 19% { background-color: #d1fae5; border-color: #047857; color: #065f46; } 24%, 97% { background-color: #ffffff; border-color: #d1d5db; color: #4b5563; } 100% { background-color: #d1fae5; border-color: #047857; color: #065f46; } }
@keyframes app-chip-c2 { 0%, 16% { background-color: #ffffff; border-color: #d1d5db; color: #4b5563; } 20%, 39% { background-color: #d1fae5; border-color: #047857; color: #065f46; } 44%, 100% { background-color: #ffffff; border-color: #d1d5db; color: #4b5563; } }
@keyframes app-chip-c3 { 0%, 36% { background-color: #ffffff; border-color: #d1d5db; color: #4b5563; } 40%, 59% { background-color: #d1fae5; border-color: #047857; color: #065f46; } 64%, 100% { background-color: #ffffff; border-color: #d1d5db; color: #4b5563; } }
@keyframes app-chip-c4 { 0%, 56% { background-color: #ffffff; border-color: #d1d5db; color: #4b5563; } 60%, 79% { background-color: #d1fae5; border-color: #047857; color: #065f46; } 84%, 100% { background-color: #ffffff; border-color: #d1d5db; color: #4b5563; } }
@keyframes app-chip-c5 { 0%, 76% { background-color: #ffffff; border-color: #d1d5db; color: #4b5563; } 80%, 99% { background-color: #d1fae5; border-color: #047857; color: #065f46; } 100% { background-color: #ffffff; border-color: #d1d5db; color: #4b5563; } }

/* Hero — mockup reali con tema immersivo per attività (colori da info_mockups.md) */
.hero.hero-v2 {
  --t-bg: #070709;
  --t-ink: #f5f4f2;
  --t-mut: rgba(245, 244, 242, 0.72);
  --t-acc: #218250;
  --t-acc-ink: #ffffff;
  --t-card: #2e3236;
  background: var(--t-bg);
  color: var(--t-ink);
  transition: background-color 0.6s ease, color 0.6s ease;
}

.hero.hero-v2:has(> #hv2-beauty:checked) { --t-bg: #f2dec8; --t-ink: #33241a; --t-mut: rgba(51, 36, 26, 0.7); --t-acc: #de9e55; --t-acc-ink: #3a2610; --t-card: #ffffff; }
.hero.hero-v2:has(> #hv2-nail:checked) { --t-bg: #f8f4f2; --t-ink: #37272d; --t-mut: rgba(55, 39, 45, 0.7); --t-acc: #c98f9d; --t-acc-ink: #432832; --t-card: #ffffff; }
.hero.hero-v2:has(> #hv2-spa:checked) { --t-bg: #563748; --t-ink: #faf4f5; --t-mut: rgba(250, 244, 245, 0.72); --t-acc: #d64a4c; --t-acc-ink: #ffffff; --t-card: #2f0406; }

.hero-v2 .hv-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hero-v2 .hero-copy h1 { color: var(--t-ink); transition: color 0.6s ease; }
.hero-v2 .hero-lead { color: var(--t-mut); transition: color 0.6s ease; }

.hero.hero-v2 .hero-chips li {
  animation: none;
  padding: 0;
  background-color: var(--t-card);
  border-color: color-mix(in oklab, var(--t-ink) 22%, transparent);
  color: var(--t-mut);
  transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease;
}

.hero-v2 .hero-chips li > label { display: block; padding: 0.375rem 0.875rem; cursor: pointer; }
.hero-v2 .hero-chips li:hover { border-color: var(--t-acc); color: var(--t-ink); }

.hero.hero-v2:has(> #hv2-barber:checked) .hero-chips li:nth-child(1),
.hero.hero-v2:has(> #hv2-beauty:checked) .hero-chips li:nth-child(2),
.hero.hero-v2:has(> #hv2-nail:checked) .hero-chips li:nth-child(3),
.hero.hero-v2:has(> #hv2-spa:checked) .hero-chips li:nth-child(4) { background-color: var(--t-acc); border-color: var(--t-acc); color: var(--t-acc-ink); }

.hero-v2 .btn-primary { background-color: var(--t-acc); color: var(--t-acc-ink); transition: background-color 0.6s ease, color 0.6s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.hero-v2 .btn-primary:hover { background-color: color-mix(in oklab, var(--t-acc) 86%, var(--t-ink)); }
.hero-v2 .btn-secondary { background-color: transparent; color: var(--t-ink); border-color: color-mix(in oklab, var(--t-ink) 38%, transparent); transition: color 0.6s ease, border-color 0.6s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.hero-v2 .btn-secondary:hover { border-color: var(--t-ink); }

.hero-v2 .phone-frame { width: 280px; height: auto; padding: 0; background-color: transparent; border-radius: 0; }
.hero-v2 .phone-notch { display: none; }
.hero-v2 .hv2-stage { display: grid; width: 100%; filter: drop-shadow(0 1.5rem 2.75rem rgba(0, 0, 0, 0.35)); }
.hero-v2 .hv2-shot { grid-area: 1 / 1; display: block; width: 100%; height: auto; opacity: 0; transition: opacity 0.6s ease; }

.hero.hero-v2:has(> #hv2-barber:checked) .hv2-shot-barber,
.hero.hero-v2:has(> #hv2-beauty:checked) .hv2-shot-beauty,
.hero.hero-v2:has(> #hv2-nail:checked) .hv2-shot-nail,
.hero.hero-v2:has(> #hv2-spa:checked) .hv2-shot-spa { opacity: 1; }

.hero-v2 .visual-caption { color: var(--t-mut); transition: color 0.6s ease; }
.hero-v2 .hv2-cap { display: none; font-weight: 600; color: color-mix(in oklab, var(--t-acc) 45%, var(--t-ink)); }

.hero.hero-v2:has(> #hv2-barber:checked) .hv2-cap-barber,
.hero.hero-v2:has(> #hv2-beauty:checked) .hv2-cap-beauty,
.hero.hero-v2:has(> #hv2-nail:checked) .hv2-cap-nail,
.hero.hero-v2:has(> #hv2-spa:checked) .hv2-cap-spa { display: inline; }

.hero.hero-v2:has(> #hv2-barber:focus-visible) .hero-chips li:nth-child(1) > label,
.hero.hero-v2:has(> #hv2-beauty:focus-visible) .hero-chips li:nth-child(2) > label,
.hero.hero-v2:has(> #hv2-nail:focus-visible) .hero-chips li:nth-child(3) > label,
.hero.hero-v2:has(> #hv2-spa:focus-visible) .hero-chips li:nth-child(4) > label { outline: 2px solid var(--t-acc); outline-offset: 2px; border-radius: var(--radius-full); }

.visual-caption {
  font-size: var(--text-xs);
  color: var(--color-ink-tertiary);
  margin-top: var(--space-md);
  text-align: center;
}

.demo {
  background-color: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3xl) var(--space-4xl);
  align-items: center;
}

.demo-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.demo-video video {
  width: min(320px, 100%);
  height: auto;
}

.demo-video-toggle {
  margin-top: var(--space-md);
}

.demo-copy h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.demo-lead {
  font-size: var(--text-lg);
  color: var(--color-ink-secondary);
  margin-bottom: var(--space-2xl);
}

.steps-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-xl);
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3.5rem;
}

.step-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color-accent);
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  counter-increment: step;
}

.step-marker::before {
  content: counter(step);
}

.step h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-xs);
}

.step p {
  color: var(--color-ink-secondary);
}

.features-sheet {
  border-top: 1px solid var(--color-border-strong);
}

.features-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md) var(--space-2xl);
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.features-label h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

.features-label p {
  font-size: var(--text-sm);
  color: var(--color-ink-tertiary);
  margin: var(--space-xs) 0 0;
}

.features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs) var(--space-xl);
  align-content: start;
}

.features-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-ink-secondary);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.features-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 0.875rem;
  height: 0.875rem;
  background-color: var(--color-accent-light);
  border-radius: var(--radius-full);
}

.features-list li::after {
  content: '';
  position: absolute;
  left: 0.22rem;
  top: 0.42rem;
  width: 0.3rem;
  height: 0.5rem;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(45deg);
}

.pricing {
  background-color: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.pricing-grid {
  display: grid;
  gap: var(--space-lg);
  align-items: stretch;
}

/* Starter / Advanced / Professional si allungano fino a uguagliare la riga; il Custom resta naturale */
.pricing-card-custom {
  align-self: start;
}

/* Le descrizioni si allungano così le righe prezzo restano allineate tra le card standard */
.pricing-card:not(.pricing-card-custom) .pricing-desc {
  flex-grow: 1;
}

/* Lo spazio extra si riparte tra le voci della lista invece di accumularsi in fondo */
.pricing-card:not(.pricing-card-custom) .pricing-features {
  align-content: space-between;
}

.pricing-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-xs);
}

.pricing-desc {
  color: var(--color-ink-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
  flex-wrap: nowrap;
  white-space: nowrap;
}

.price {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
}

.price-period {
  color: var(--color-ink-tertiary);
  font-weight: 500;
}

.pricing-variant {
  font-size: var(--text-sm);
  color: var(--color-ink-secondary);
  margin-bottom: var(--space-lg);
}

.pricing-features {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-grow: 1;
}

.pricing-features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--text-sm);
  color: var(--color-ink-secondary);
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.pricing-card-popular {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: var(--space-xl);
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
}

.pricing-card-custom {
  background-color: var(--color-ink);
  border-color: var(--color-ink);
  color: #ffffff;
}

.pricing-card-custom h3,
.pricing-card-custom .price,
.pricing-card-custom .price-period {
  color: #ffffff;
}

.pricing-card-custom .price {
  font-size: var(--text-3xl);
}

.pricing-card-custom .pricing-desc,
.pricing-card-custom .pricing-variant,
.pricing-card-custom .pricing-features li {
  color: #d1d5db;
}

.pricing-card-custom .pricing-features li::before {
  color: var(--color-accent);
}

.contact {
  background-color: var(--color-bg);
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
}

.contact-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-head h2 {
  font-size: clamp(2.25rem, 5vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: var(--tracking-tighter);
  line-height: 1.05;
  margin-bottom: var(--space-md);
  text-wrap: balance;
}

.contact-head p {
  color: var(--color-ink-secondary);
  font-size: var(--text-lg);
  max-width: 56ch;
  margin: 0 auto;
}

/* Salon-type band: five identities sliding past */
.contact-band {
  margin-top: var(--space-2xl);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.contact-track {
  display: flex;
  width: max-content;
  animation: contact-marquee 40s linear infinite;
}

.contact-band:hover .contact-track {
  animation-play-state: paused;
}

.contact-track ul {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding-right: var(--space-xl);
}

.contact-track li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xl);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: var(--tracking-tighter);
  line-height: 1;
  white-space: nowrap;
  color: #e7e5e4;
}

.contact-track li svg {
  width: 0.5em;
  height: 0.5em;
  color: var(--color-accent);
  flex: none;
}

@keyframes contact-marquee {
  to { transform: translateX(-50%); }
}

.contact-grid {
  position: relative;
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
  margin-top: calc(var(--space-xl) * -1);
}

/* WhatsApp conversation preview */
.chat-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  max-width: 460px;
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.chat-who strong {
  display: block;
  line-height: 1.2;
}

.chat-who span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--color-accent);
}

.chat-who span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-success);
}

.chat-tag {
  margin-left: auto;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-ink-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 3px 10px;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background-color: var(--color-bg);
}

.chat-msg {
  max-width: 82%;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.chat-msg time {
  display: block;
  margin-top: 4px;
  font-size: var(--text-xs);
  opacity: 0.7;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.chat-in {
  align-self: flex-start;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
}

.chat-out {
  align-self: flex-end;
  background-color: var(--color-accent-light);
  color: var(--color-accent-dark);
  border-bottom-right-radius: 4px;
}

.chat-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 0.75rem 0.875rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  border-bottom-left-radius: 4px;
}

.chat-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-ink-tertiary);
  animation: chat-typing 1.2s ease-in-out infinite;
}

.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes chat-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@keyframes chat-bubble-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

@supports (animation-timeline: view()) {
  .chat-thread > * {
    animation: chat-bubble-in linear both;
    animation-timeline: view();
  }
  .chat-thread > :nth-child(1) { animation-range: entry 0% entry 60%; }
  .chat-thread > :nth-child(2) { animation-range: entry 25% cover 30%; }
  .chat-thread > :nth-child(3) { animation-range: entry 50% cover 35%; }
  .chat-thread > :nth-child(4) { animation-range: entry 75% cover 40%; }
  .chat-thread > :nth-child(5) { animation-range: entry 100% cover 45%; }
}

.chat-channels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-lg);
}

.chat-channels li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-secondary);
}

.chat-channels svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

.contact-form {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

/* Plan picker */
.form-plans {
  border: 0;
  margin: 0 0 var(--space-lg);
  padding: 0;
}

.form-plans legend {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  padding: 0;
}

.form-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.form-pills input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.form-pills label {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-secondary);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-pills label:hover {
  border-color: var(--color-accent);
  color: var(--color-ink);
}

.form-pills input:checked + label {
  background-color: var(--color-accent-light);
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
  transform: scale(1.03);
}

.form-pills input:focus-visible + label {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.form-field {
  margin-bottom: var(--space-lg);
}

.form-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  color: var(--color-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: var(--color-border-strong);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
  outline: none;
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--color-error);
}

.error-message {
  display: none;
  font-size: var(--text-sm);
  color: var(--color-error);
  margin-top: var(--space-xs);
}

.form-field input[aria-invalid="true"] + .error-message,
.form-field textarea[aria-invalid="true"] + .error-message {
  display: block;
}

.form-row {
  display: grid;
  gap: var(--space-lg);
}

.form-status {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
}

.form-status.success {
  color: var(--color-success);
}

.form-status.error {
  color: var(--color-error);
}

.site-footer {
  background-color: var(--color-ink);
  color: #d1d5db;
  padding-block: var(--space-2xl);
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
}

.footer-credit {
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-legal {
  font-size: var(--text-sm);
  color: #9ca3af;
}

@media (min-width: 640px) {
  :root {
    --text-4xl: 3rem;
    --text-5xl: 3.75rem;
  }

  .hero-copy h1 {
    font-size: var(--text-5xl);
  }

  .section-head h2,
  .demo-copy h2 {
    font-size: var(--text-4xl);
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
  }

  .demo-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  .features-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-row {
    grid-template-columns: 280px 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-3xl);
  }

  .contact-chat {
    padding-top: var(--space-2xl);
  }

  .chat-card {
    margin-left: auto;
  }
}

/* Desktop: ogni sezione occupa l'altezza dello schermo, sotto l'header sticky (72px + bordo) */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  main > section {
    min-height: calc(100svh - 73px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-margin-top: 73px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-style,
  .hero-chips li,
  .contact-track,
  .chat-typing i,
  .chat-thread > * {
    animation: none;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
