/* =================================================================
   RHEMIS — Styles
   Tema chiaro, accento blu navy, ispirazione linear.app
   ================================================================= */

/* ── Reset & Base ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand */
  --color-navy: #101b4d;
  --color-navy-light: #1a2a6c;
  --color-navy-dark: #0a1235;

  /* Surfaces */
  --color-white: #ffffff;
  --color-offwhite: #f8f9fb;
  --color-gray-50: #f1f3f5;
  --color-gray-100: #e9ecef;
  --color-gray-200: #dee2e6;
  --color-gray-300: #ced4da;
  --color-gray-400: #adb5bd;
  --color-gray-500: #868e96;
  --color-gray-600: #495057;
  --color-gray-700: #343a40;
  --color-gray-800: #212529;

  /* Text */
  --color-text: #1a1a2e;
  --color-text-secondary: #555e68;
  --color-text-muted: #868e96;

  /* Layout */
  --container-max: 1120px;
  --section-padding: 6rem 0;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.3s;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--color-navy-light);
}

/* ── Container ────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-navy-light);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-offwhite);
  color: var(--color-text);
  border: 1px solid var(--color-gray-200);
}

.btn-secondary:hover {
  background-color: var(--color-gray-50);
  color: var(--color-text);
  border-color: var(--color-gray-300);
  transform: translateY(-1px);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-navy);
}

.btn-white:hover {
  background-color: var(--color-offwhite);
  color: var(--color-navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 0.8125rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-block {
  width: 100%;
}

.btn-hero {
  padding: 1rem 3.5rem;
  font-size: 1.0625rem;
  border-radius: var(--radius);
}

/* ── Navbar ───────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease),
              background-color var(--duration) var(--ease);
}

.navbar.scrolled {
  border-bottom-color: var(--color-gray-100);
  background-color: rgba(255, 255, 255, 0.95);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-logo .navbar-icon {
  height: 32px;
  width: 32px;
  max-width: 32px;
  border-radius: 6px;
  flex-shrink: 0;
}

.navbar-logo img:last-child {
  height: 28px;
  width: auto;
  max-width: 120px;
}

.navbar-links {
  display: flex;
  gap: 2rem;
}

.navbar-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--duration) var(--ease);
}

.navbar-links a:hover {
  color: var(--color-text);
}

.navbar-cta {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.navbar-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-offwhite) 100%);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Laptop mockup */
.hero-laptop {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.laptop-frame {
  background: var(--color-gray-800);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.laptop-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--color-gray-700);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.laptop-screen {
  aspect-ratio: 16 / 10;
  background: var(--color-offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
}

.laptop-screen img,
.laptop-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder blocks */
.placeholder-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: var(--color-gray-50);
  border: 2px dashed var(--color-gray-300);
  border-radius: var(--radius-sm);
  color: var(--color-gray-500);
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  padding: 2rem;
}

/* Floating pills */
.pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-white);
  border-radius: 100px;
  box-shadow: var(--shadow-lg);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  z-index: 2;
}

.pill svg {
  color: var(--color-navy);
  flex-shrink: 0;
}

/* Remove the duplicate first SVG in pill-1 */
.pill-1 svg:first-child {
  display: none;
}

.pill-1 {
  top: 15%;
  left: -5%;
  animation: float 6s ease-in-out infinite;
}

.pill-2 {
  top: 25%;
  right: -8%;
  animation: float 6s ease-in-out infinite 1.5s;
}

.pill-3 {
  bottom: 25%;
  left: -6%;
  animation: float 6s ease-in-out infinite 3s;
}

.pill-4 {
  bottom: 15%;
  right: -4%;
  animation: float 6s ease-in-out infinite 4.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Trust Strip ──────────────────────────────────────────────────── */
.trust-strip {
  padding: 2.5rem 0;
  background: var(--color-offwhite);
  border-top: 1px solid var(--color-gray-100);
  border-bottom: 1px solid var(--color-gray-100);
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.trust-badge svg {
  color: var(--color-navy);
  flex-shrink: 0;
}

/* ── Barra categorie professionali (marquee) ─────────────────────── */
.marquee {
  padding: 1.75rem 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-100);
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

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

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

.marquee-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  flex-shrink: 0;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.marquee-item svg {
  color: var(--color-navy);
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-alt {
  background: var(--color-offwhite);
  border-bottom: none;
  border-top: 1px solid var(--color-gray-100);
}

.marquee-track-reverse {
  animation-direction: reverse;
}

/* ── Come funziona ────────────────────────────────────────────────── */
.how-it-works {
  padding: var(--section-padding);
  background: var(--color-offwhite);
}

.how-it-works-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.how-it-works-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1100px) {
  .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.how-step {
  padding: 1.75rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.how-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.how-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-offwhite);
  border-radius: var(--radius-sm);
  color: var(--color-navy);
  margin-bottom: 0.875rem;
}

.how-step-num {
  font-family: 'Courier New', monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.how-step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.how-step p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ── Fatto per il tuo lavoro (persone) ───────────────────────────── */
.personas {
  padding: var(--section-padding);
  background: var(--color-offwhite);
}

.personas-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.personas-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.personas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.persona-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
}

.persona-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--color-offwhite);
  border-radius: var(--radius-sm);
  color: var(--color-navy);
}

.persona-body {
  flex: 1 1 auto;
  min-width: 0;
}

.persona-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  line-height: 1.3;
}

.persona-body p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.personas-also {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-gray-200);
}

.personas-also-lede {
  text-align: center;
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ── Feature Sections ─────────────────────────────────────────────── */
.feature {
  padding: var(--section-padding);
}

.feature-alt {
  background: var(--color-offwhite);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-reversed .feature-visual {
  order: -1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.feature-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.feature-text p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.feature-link {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-navy);
  transition: gap var(--duration) var(--ease);
}

.feature-link:hover {
  color: var(--color-navy-light);
}

.feature-mockup {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-white);
}

.placeholder-feature {
  min-height: 320px;
}

/* ── Performance ──────────────────────────────────────────────────── */
.performance {
  padding: var(--section-padding);
  background: var(--color-white);
}

.performance-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.performance-content h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.performance-text {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.performance-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 1.75rem 1rem;
  background: var(--color-offwhite);
  border-radius: var(--radius-lg);
}

.performance-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.performance-stat-value {
  font-family: 'Courier New', monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-navy);
  font-variant-numeric: tabular-nums;
}

.performance-stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  max-width: 140px;
}

.performance-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.performance-chart {
  margin: 0;
}

.placeholder-chart {
  min-height: 260px;
  aspect-ratio: 16 / 10;
}

/* ── Privacy ──────────────────────────────────────────────────────── */
.privacy {
  padding: var(--section-padding);
  background: var(--color-white);
}

.privacy-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.privacy-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}

.privacy-warning {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 3rem;
  padding: 1.1rem 1.25rem;
  background: var(--color-offwhite);
  border-left: 3px solid var(--color-navy);
  border-radius: var(--radius-sm);
  text-align: left;
}

.privacy h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.privacy-lead {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.privacy-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}

.privacy-detail {
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-gray-100);
}

.privacy-detail h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.privacy-detail p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ── Confronto (Rhemis vs. cloud) ─────────────────────────────────── */
.comparison {
  padding: var(--section-padding);
  background: var(--color-offwhite);
}

.comparison-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.comparison-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.comparison-table-wrap {
  max-width: 800px;
  margin: 0 auto;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 0.9rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-gray-100);
  font-size: 0.9375rem;
}

.comparison-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: 600;
  background: var(--color-offwhite);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  color: var(--color-text-secondary);
}

.comparison-table td.cell-cloud {
  color: var(--color-text-muted);
}

.comparison-table td.cell-rhemis {
  color: var(--color-navy);
  font-weight: 600;
}

.comparison-note {
  max-width: 640px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq {
  padding: var(--section-padding);
  background: var(--color-white);
}

.faq-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.faq-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  padding: 1.5rem;
  background: var(--color-offwhite);
  border-radius: var(--radius);
  border: 1px solid var(--color-gray-100);
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.content-placeholder {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-500);
  background: var(--color-gray-50);
  border: 1px dashed var(--color-gray-300);
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
}

/* ── Pricing ──────────────────────────────────────────────────────── */
.pricing {
  padding: var(--section-padding);
  background: var(--color-offwhite);
}

.pricing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.pricing-header p {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
}

/* ── Billing toggle (Mensile / Annuale) ──────────────────────────── */
.billing-toggle {
  position: relative;
  display: flex;
  width: fit-content;
  margin: 0 auto 2.5rem;
  padding: 4px;
  background: var(--color-gray-100);
  border-radius: 100px;
}

.billing-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--color-navy);
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease);
  z-index: 0;
}

.billing-toggle[data-active="annual"] .billing-toggle-thumb {
  transform: translateX(100%);
}

.billing-toggle-option {
  position: relative;
  z-index: 1;
  flex: none;
  min-width: 152px;
  padding: 0.625rem 1.25rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
  text-align: center;
  border-radius: 100px;
  cursor: pointer;
  transition: color var(--duration) var(--ease);
}

.billing-toggle-option.is-active {
  color: var(--color-white);
}

.billing-toggle-badge {
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #2f9e44;
  background: rgba(47, 158, 68, 0.12);
  border-radius: 100px;
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.billing-toggle-option.is-active .billing-toggle-badge {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.2);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 2rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  position: relative;
}

.pricing-card-featured {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-lg);
}

.pricing-card-enterprise {
  background: var(--color-offwhite);
  border-style: dashed;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pricing-price {
  margin-bottom: 1.5rem;
}

.price-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-navy);
  font-variant-numeric: tabular-nums;
}

.price-amount-custom {
  font-size: 1.375rem;
}

.price-period {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.price-sub {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.price-save {
  color: #2f9e44;
  font-weight: 600;
}

/* Toggle tra vista mensile/annuale: di default mostra "mensile",
   .pricing[data-billing="annual"] inverte la visibilità. */
.price-view-annual {
  display: none;
}

.pricing[data-billing="annual"] .price-view-monthly {
  display: none;
}

.pricing[data-billing="annual"] .price-view-annual {
  display: inline;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.pricing-features svg {
  color: var(--color-navy);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── CTA Finale ───────────────────────────────────────────────────── */
.cta-final {
  padding: 5rem 0;
  background: var(--color-navy);
  text-align: center;
}

.cta-final h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.cta-final p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.footer {
  background: var(--color-gray-50);
  padding: 3rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.footer-brand img {
  height: 24px;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.footer-col a:hover {
  color: var(--color-text);
}

.footer-bottom {
  padding: 1.5rem 0;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ── Scroll Animations ────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Performance: content-visibility for below-fold sections ──────── */
.how-it-works,
.feature,
.performance,
.privacy,
.personas,
.comparison,
.faq,
.cta-final,
.footer {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 600px;
}

/* ── Reduced Motion ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pill {
    animation: none;
  }

  .marquee-track {
    animation: none;
  }
}

/* ── Responsive: Tablet (≤ 1024px) ────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --section-padding: 4.5rem 0;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .personas-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .performance-charts {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .performance-stats {
    gap: 2rem;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 620px;
    margin: 0 auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-reversed .feature-visual {
    order: 0;
  }

  .privacy-details {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-laptop {
    max-width: 600px;
  }

  .pill {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }

  .pill-1 { left: -2%; }
  .pill-2 { right: -2%; }
  .pill-3 { left: -2%; }
  .pill-4 { right: -2%; }
}

/* ── Responsive: Mobile (≤ 768px) ─────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 0;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-100);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-cta {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero-laptop {
    max-width: 100%;
  }

  .pill {
    position: static;
    animation: none;
  }

  .hero-laptop {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-laptop .laptop-frame {
    order: 0;
  }

  .hero-laptop .pill {
    order: 1;
    justify-content: center;
    box-shadow: var(--shadow-sm);
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }

  .placeholder-feature {
    min-height: 220px;
  }

  .placeholder-chart {
    min-height: 260px;
  }

  .performance-stats {
    flex-direction: column;
    gap: 1.25rem;
  }
}
