/* ==========================================================================
   Transchyroll Ecosystem — Stylesheet (Pure CSS3, Ultra-lightweight)
   ========================================================================== */

:root {
  /* Dark Mode (Default) */
  --bg-primary: #0B0D10;
  --bg-alt: #0F1217;
  --bg-card: #14181F;
  --bg-elevated: #1A2029;
  --border-subtle: #242A35;
  --border-strong: #323A48;

  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;

  --accent: #FF6B00;
  --accent-hover: #FF852B;
  --accent-soft: rgba(255, 107, 0, 0.14);
  --accent-glow: rgba(255, 107, 0, 0.22);

  --emerald: #10B981;
  --emerald-hover: #059669;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --emerald-border: rgba(16, 185, 129, 0.34);

  --amber: #F59E0B;
  --amber-hover: #FBBF24;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --amber-border: rgba(245, 158, 11, 0.5);
  --deluxe-bg: #161B24;

  --nav-bg: rgba(11, 13, 16, 0.84);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.38);
  --shadow-glow: 0 0 0 1px rgba(255, 107, 0, 0.32), 0 20px 50px rgba(255, 107, 0, 0.1);
  --shadow-btn: 0 8px 22px rgba(255, 107, 0, 0.26);

  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --container-max: 1140px;
  --nav-height: 70px;
  --transition: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg-primary: #F6F7FA;
  --bg-alt: #EDF0F5;
  --bg-card: #FFFFFF;
  --bg-elevated: #F3F5F9;
  --border-subtle: #E1E5ED;
  --border-strong: #C9D0DC;

  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;

  --accent: #FF6B00;
  --accent-hover: #FF852B;
  --accent-soft: rgba(255, 107, 0, 0.1);
  --accent-glow: rgba(255, 107, 0, 0.14);

  --emerald: #10B981;
  --emerald-hover: #059669;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.32);

  --amber: #D97706;
  --amber-hover: #B45309;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --amber-border: rgba(217, 119, 6, 0.48);
  --deluxe-bg: #FFFBF2;

  --nav-bg: rgba(246, 247, 250, 0.88);
  --shadow-soft: 0 14px 36px rgba(17, 24, 39, 0.07);
  --shadow-glow: 0 0 0 1px rgba(255, 107, 0, 0.28), 0 18px 42px rgba(255, 107, 0, 0.08);
  --shadow-btn: 0 8px 20px rgba(255, 107, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

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

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

button {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-globe {
  position: absolute;
  left: 10px;
  color: var(--text-secondary);
  pointer-events: none;
}

.lang-select {
  height: 36px;
  padding: 0 12px 0 29px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 34px;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}

.lang-select:hover,
.lang-select:focus-visible {
  border-color: var(--accent);
}

.lang-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 500;
  transition: border-color var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent);
}

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  max-width: 100%;
  border: 1px solid transparent;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition);
}

.btn-lg {
  padding: 14px 25px;
  font-size: 0.98rem;
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-emerald {
  background-color: var(--emerald);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.24);
}

.btn-emerald:hover {
  background-color: var(--emerald-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background-color: var(--bg-elevated);
  transform: translateY(-1px);
}

.btn-outline-strong {
  background-color: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}

.btn-outline-strong:hover {
  border-color: var(--accent);
  background-color: var(--accent-soft);
  transform: translateY(-1px);
}

.btn-amber {
  background-color: #F59E0B;
  color: #111827;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.22);
}

.btn-amber:hover {
  background-color: #FBBF24;
  transform: translateY(-1px);
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  font-size: 0.77rem;
  font-weight: 600;
  border-radius: 999px;
}

.badge-orange {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 0, 0.34);
}

.badge-emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.badge-neutral {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.badge-amber {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 76px) 0 74px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-glow {
  position: absolute;
  top: -130px;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 440px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--emerald-border);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.emerald-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px var(--emerald-soft);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.3vw, 3.2rem);
  line-height: 1.13;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-subtitle {
  margin: 0 auto 34px;
  max-width: 670px;
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ==========================================================================
   Sections & Cards
   ========================================================================== */
.section {
  padding: 86px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.alt-surface {
  background-color: var(--bg-alt);
}

.featured-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(255, 107, 0, 0.35);
  box-shadow: var(--shadow-glow);
}

.companion-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  align-items: center;
  gap: 44px;
}

.split-layout > * {
  min-width: 0;
}

.split-inverted {
  grid-template-columns: 0.96fr 1.04fr;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.section-desc {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 0.99rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

/* Checkout Box */
.checkout-box {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offer-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.price-old {
  font-size: 1.15rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 600;
}

.price-now {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.discount-pill {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}

.price-note {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.btn-checkout {
  width: 100%;
  padding: 15px 22px;
  font-size: 1rem;
}

.free-download-box,
.showcase-quick-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.showcase-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.free-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Download & Prezzi — 2 Livelli Gerarchici
   ========================================================================== */
.tier-primary-card {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1.5px solid #FF6B00;
  box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.22), 0 20px 48px rgba(255, 107, 0, 0.12);
}

.tier-header {
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.tier-title {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
}

.tier-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.tier-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.plan-card {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.plan-card.plan-pro {
  border-color: rgba(255, 107, 0, 0.45);
  background: linear-gradient(180deg, rgba(255, 107, 0, 0.07) 0%, var(--bg-elevated) 55%);
}

.plan-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-top .badge {
  align-self: flex-start;
}

.plan-name {
  margin: 2px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.plan-features,
.deluxe-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.plan-features li,
.deluxe-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text-primary);
}

.plan-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 1px;
}

.plan-check.emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.plan-check.orange {
  background: var(--accent-soft);
  color: var(--accent);
}

.plan-check.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.plan-cta {
  margin-top: auto;
}

/* Livello 2: Pacchetto Deluxe */
.deluxe-card {
  margin-top: 28px;
  padding: 30px 34px;
  border-radius: var(--radius-lg);
  background: var(--deluxe-bg);
  border: 1px solid #F59E0B;
  box-shadow: var(--shadow-soft);
}

.deluxe-top-badge {
  margin-bottom: 14px;
}

.deluxe-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

.deluxe-info > * {
  min-width: 0;
}

.deluxe-title {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.deluxe-subtitle {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.deluxe-price-box {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--amber-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.amber-pill {
  background: var(--amber-soft);
  color: var(--amber);
}

/* ==========================================================================
   Media Switcher, Frames & Mockups
   ========================================================================== */
.product-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.media-switcher-bar {
  display: inline-flex;
  align-self: flex-end;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background-color var(--transition), color var(--transition);
}

.switcher-btn.active {
  background: var(--accent);
  color: #FFFFFF;
}

.app-frame,
.phone-showcase-frame {
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.frame-dots {
  display: flex;
  gap: 6px;
}

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

.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #22C55E; }

.frame-title {
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.frame-pill-ok,
.frame-pill-free {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.media-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090B0E;
  overflow: hidden;
}

.media-pane {
  display: none;
  width: 100%;
  height: 100%;
}

.media-pane.active {
  display: block;
}

.demo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.is-hidden {
  display: none !important;
}

.mockup-fallback {
  width: 100%;
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(155deg, var(--bg-card) 0%, var(--bg-primary) 100%);
  color: var(--text-primary);
}

/* Transchyroll PC Mockup */
.tc-mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tc-route {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  font-weight: 600;
}

.tc-node {
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.tc-node.accent {
  background: var(--accent-soft);
  border-color: rgba(255, 107, 0, 0.35);
  color: var(--accent);
}

.tc-arrow {
  color: var(--accent);
}

.tc-done-badge {
  font-size: 0.69rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.tc-progress-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tc-progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
}

.tc-progress-info span {
  color: var(--accent);
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transition: width 0.3s ease;
}

.progress-fill.animate-100 {
  width: 100%;
  animation: loadFull 1.5s ease-out;
}

@keyframes loadFull {
  from { width: 15%; }
  to { width: 100%; }
}

.tc-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fmt {
  font-size: 0.64rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.fmt.active {
  background: var(--accent-soft);
  border-color: rgba(255, 107, 0, 0.35);
  color: var(--accent);
}

.tc-log {
  padding: 9px 12px;
  border-radius: 10px;
  background: #090B0E;
  border: 1px solid var(--border-subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  color: #CBD5E1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tc-log span {
  color: var(--emerald);
  font-weight: 700;
}

.log-accent {
  color: #FDE68A;
}

/* Transchyroll Android Mockup */
.tc-android-mockup {
  justify-content: center;
  align-items: center;
}

.mini-phone {
  width: 215px;
  height: 100%;
  border-radius: 22px;
  padding: 7px;
  background: #080A0D;
  border: 2px solid var(--border-strong);
  display: flex;
  flex-direction: column;
}

.mini-phone-notch {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: #242A35;
  margin: 2px auto 6px;
}

.mini-phone-screen {
  flex: 1;
  border-radius: 14px;
  background: var(--bg-card);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.badge-mini-emerald {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
}

.mp-card {
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mp-card small {
  font-size: 0.63rem;
  color: var(--text-secondary);
}

.mp-card strong {
  font-size: 0.71rem;
  line-height: 1.3;
}

.mp-cta {
  text-align: center;
  font-size: 0.69rem;
  font-weight: 700;
  padding: 7px;
  border-radius: 8px;
  background: var(--accent);
  color: #FFF;
}

/* Series Tracker Phone Mockup */
.st-phone-mockup {
  justify-content: center;
  align-items: center;
  padding: 12px;
}

.st-phone-shell {
  width: min(320px, 100%);
  max-width: 100%;
  min-width: 0;
  height: 100%;
  border-radius: 22px;
  padding: 7px;
  background: #080A0D;
  border: 2px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.st-phone-notch {
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: #242A35;
  margin: 2px auto 6px;
}

.st-phone-ui {
  flex: 1;
  min-width: 0;
  border-radius: 14px;
  background: var(--bg-card);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
}

.st-ui-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.st-ui-top strong {
  font-size: 0.74rem;
}

.st-ui-tabs {
  display: flex;
  gap: 4px;
}

.st-ui-tabs span {
  font-size: 0.56rem;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.st-ui-tabs span.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.st-series-card {
  display: flex;
  gap: 10px;
  padding: 9px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.st-cover {
  width: 48px;
  height: 66px;
  flex-shrink: 0;
  border-radius: 7px;
  background: linear-gradient(155deg, var(--accent), #4C1D95, #111827);
  display: flex;
  align-items: flex-end;
  padding: 4px;
}

.st-cover span {
  font-size: 0.52rem;
  font-weight: 700;
  color: #FFF;
  background: rgba(0, 0, 0, 0.55);
  padding: 1px 4px;
  border-radius: 3px;
}

.st-series-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.st-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.st-title-row h4 {
  margin: 0;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-title-row span {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
}

.st-series-details p {
  margin: 0;
  font-size: 0.63rem;
  color: var(--text-secondary);
}

.st-tap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
}

.st-tap-btn {
  padding: 3px 9px;
  border-radius: 6px;
  border: none;
  background: var(--accent);
  color: #FFF;
  font-size: 0.63rem;
  font-weight: 700;
}

.st-tap-btn:hover {
  background: var(--accent-hover);
}

.st-import-tag {
  font-size: 0.56rem;
  color: var(--emerald);
  font-weight: 600;
}

.st-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.63rem;
  color: var(--text-secondary);
}

.mini-bar {
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: var(--bg-elevated);
  overflow: hidden;
}

.mini-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

/* ==========================================================================
   3 Steps: Come lavorano insieme
   ========================================================================== */
.section-header-center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 42px;
}

.section-header-center .badge {
  margin-bottom: 10px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 0, 0.34);
  font-weight: 800;
  font-size: 1rem;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.step-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 19px 22px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.97rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-chevron {
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 19px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer p {
  margin: 0;
}

.faq-answer code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.86em;
}

/* ==========================================================================
   Direct Support & Contact
   ========================================================================== */
.contact-form {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form-centered {
  max-width: 700px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.93rem;
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.btn-submit {
  width: 100%;
}

.form-feedback {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.form-feedback.error {
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.form-feedback[hidden] {
  display: none;
}

/* ==========================================================================
   Footer & Toast
   ========================================================================== */
.footer {
  padding: 34px 0 38px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand strong {
  font-size: 0.95rem;
}

.footer-brand span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-disclaimer {
  padding-top: 18px;
}

.footer-disclaimer p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  max-width: 360px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}

.toast[hidden] {
  display: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .nav-links {
    gap: 14px;
  }

  .split-layout,
  .split-inverted,
  .tier-columns,
  .deluxe-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split-inverted .product-media {
    order: 2;
  }

  .split-inverted .product-info {
    order: 1;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px;
    gap: 16px;
    display: none;
  }

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

  .mobile-menu-btn {
    display: flex;
  }

  .theme-label {
    display: none;
  }

  .lang-select {
    height: 34px;
    max-width: 132px;
    font-size: 0.78rem;
    line-height: 32px;
    padding: 0 8px 0 26px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lang-globe {
    left: 8px;
  }

  .hero {
    padding: calc(var(--nav-height) + 46px) 0 54px;
  }

  .section {
    padding: 58px 0;
  }

  .container {
    padding: 0 16px;
  }

  .featured-card,
  .companion-card,
  .tier-primary-card,
  .deluxe-card {
    padding: 20px;
  }

  .plan-card,
  .deluxe-price-box {
    padding: 18px;
  }

  .free-download-box,
  .showcase-quick-actions {
    align-items: stretch;
  }

  .st-stage {
    aspect-ratio: auto;
    min-height: 225px;
  }

  .st-ui-tabs {
    display: none;
  }

  .st-cover {
    width: 40px;
    height: 56px;
  }

  .media-switcher-bar {
    align-self: stretch;
    justify-content: center;
  }

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

@media (max-width: 460px) {
  .brand {
    gap: 7px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .brand-badge {
    display: none;
  }

  .navbar-inner {
    gap: 8px;
  }

  .nav-actions {
    gap: 6px;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
  }

  .mobile-menu-btn {
    width: 34px;
    height: 34px;
    padding: 7px;
  }

  .lang-select {
    max-width: 112px;
    font-size: 0.74rem;
    padding: 0 6px 0 23px;
  }

  .lang-globe {
    left: 7px;
  }
}
