/* ==========================================================================
   myCHOscan — Design System (Airy Health-Tech + Liquid Glass Accents)
   100% Self-Hosted Fonts, Zero Tracking, Zero Cookies
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f9ff;
  --bg-tint: #eaf5ff;
  --surface: #ffffff;

  --cyan: #00a3ff;
  --cyan-brand: #3bbff2;
  --cyan-dark: #007ec7;
  --cyan-pale: #e0f3ff;

  --orange: #f39200;
  --orange-bright: #ff9500;
  --orange-light: #ffb547;
  --orange-pale: #fff4e3;

  --ink: #27303f;
  --ink-strong: #151c28;
  --muted: #606f82;
  --muted-light: #8795a8;
  --line: #dbe6f2;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-card: 0 18px 46px rgba(15, 65, 115, 0.07), 0 2px 8px rgba(15, 65, 115, 0.03);
  --shadow-card-hover: 0 24px 56px rgba(0, 163, 255, 0.13), 0 4px 12px rgba(15, 65, 115, 0.05);
  --shadow-orange: 0 12px 28px rgba(243, 146, 0, 0.30);
  --shadow-cyan: 0 12px 28px rgba(0, 163, 255, 0.25);

  --container: 1140px;
}

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

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

section[id] {
  scroll-margin-top: 88px;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2.5px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* Signature Scanoma-inspired Blue Pill + Dot Motif */
.pill-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.pill-dot::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-brand));
}

.pill-dot::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-brand);
}

.accent-cyan {
  color: var(--cyan);
  font-style: italic;
}

.accent-orange {
  color: var(--orange-bright);
  font-style: italic;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 230, 242, 0.65);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(15, 65, 115, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 16px;
}

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

.brand-logo {
  height: 53px;
  width: auto;
}

.brand-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted-light);
  border-left: 1.5px solid var(--line);
  padding-left: 12px;
  letter-spacing: 0.05em;
  line-height: 1.32;
  white-space: nowrap;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.nav-links a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.nav-links a.nav-highlight {
  color: var(--cyan);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

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

.btn-orange {
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-orange);
}

.btn-orange:hover {
  box-shadow: 0 16px 34px rgba(243, 146, 0, 0.38);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan-brand) 0%, var(--cyan-dark) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-cyan);
}

.btn-outline {
  background: #ffffff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--ink);
}

/* Mobile Navigation Dialog */
dialog.mobile-drawer {
  margin: 0 0 0 auto;
  width: min(320px, 86vw);
  height: 100dvh;
  max-height: 100dvh;
  border: none;
  padding: 24px;
  background: #ffffff;
  box-shadow: -16px 0 40px rgba(15, 35, 65, 0.16);
}

dialog.mobile-drawer::backdrop {
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(4px);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-nav a {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 4px;
}

.drawer-nav .btn-pill {
  margin-top: 12px;
  width: 100%;
}

/* ==========================================================================
   HERO SECTION (Scanoma 2-Column Split)
   ========================================================================== */
.hero {
  position: relative;
  padding: 48px 0 84px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: 48px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(36px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink-strong);
  text-wrap: balance;
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 18.5px);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  text-wrap: pretty;
  max-width: 530px;
  margin-bottom: 22px;
}

.hero-subtitle strong {
  font-weight: 600;
  color: var(--ink);
}

.hero-text-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--cyan-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  margin-bottom: 28px;
  transition: color 0.2s ease;
}

.hero-text-cta:hover {
  color: var(--orange);
}

/* Laurel / Trust Proof (Scanoma-inspired) */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-orange);
  margin-bottom: 28px;
}

.trust-laurel {
  width: 24px;
  height: 36px;
  color: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
}

.trust-copy {
  text-align: center;
}

.trust-copy strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.22;
}

.trust-copy span {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

/* Store Badges Row */
.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #121822;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(18, 24, 34, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(18, 24, 34, 0.25);
}

.store-badge-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.store-badge-meta small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}

.store-badge-meta strong {
  font-size: 16px;
  font-weight: 700;
}

.store-pill-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.store-pill-status:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

/* Mouse scroll hint */
.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  color: var(--muted-light);
  font-size: 12px;
  font-weight: 500;
}

.mouse-icon {
  width: 22px;
  height: 34px;
  border: 1.8px solid #b6c6d8;
  border-radius: 12px;
  position: relative;
}

.mouse-icon::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--cyan);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  70% { transform: translate(-50%, 8px); opacity: 0.2; }
}

/* ==========================================================================
   HERO RIGHT — INTERACTIVE PHONE MOCKUP & ORGANIC BLOB
   ========================================================================== */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}

.hero-blob {
  position: absolute;
  inset: -12% -10% -6% -10%;
  z-index: 0;
  pointer-events: none;
}

/* Layered Static Shell + Smooth Sliding Phone Screen Viewport */
.hero-layered-stage {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  aspect-ratio: 1 / 1;
}

.hero-layer-bg,
.hero-layer-fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
}

.hero-layer-bg {
  z-index: 1;
}

.hero-layer-fg {
  z-index: 3;
}

.hero-screen-viewport {
  position: absolute;
  z-index: 2;
  left: 32.34375%;
  top: 10.78125%;
  width: 35.3125%;
  height: 79.84375%;
  border-radius: 16.814% / 7.436%;
  overflow: hidden;
  background: #eaf5ff;
}

.hero-screen-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translateX(-200%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-screen-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: block;
}

/* Interactive Phone Frame */
.phone-stage {
  position: relative;
  z-index: 2;
  width: 310px;
  max-width: 100%;
}

.phone-frame {
  background: #161d29;
  border-radius: 42px;
  padding: 11px;
  box-shadow:
    0 30px 70px rgba(14, 55, 105, 0.22),
    0 4px 14px rgba(14, 55, 105, 0.10),
    inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.phone-screen {
  background: #eaf5ff;
  border-radius: 32px;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-topbar {
  background: linear-gradient(135deg, var(--cyan) 0%, #24b3ff 100%);
  color: #ffffff;
  padding: 14px 18px 16px;
}

.phone-notch {
  width: 68px;
  height: 5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 99px;
  margin: 0 auto 10px;
}

.phone-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}

.phone-dots {
  display: flex;
  gap: 5px;
}

.phone-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

.phone-dots span.active {
  width: 16px;
  border-radius: 99px;
  background: #ffffff;
}

.phone-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.phone-panel {
  display: none;
  animation: fadeUp 0.28s ease;
  flex: 1;
  flex-direction: column;
}

.phone-panel.active {
  display: flex;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mock-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 14px;
  border: 1px solid rgba(0, 163, 255, 0.16);
  box-shadow: 0 8px 20px rgba(0, 120, 200, 0.06);
  margin-bottom: 10px;
}

.mock-dish-banner {
  background: linear-gradient(135deg, #fff5e5 0%, #ffe6bf 100%);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border: 1px dashed rgba(243, 146, 0, 0.45);
}

.mock-dish-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1.25;
}

.mock-dish-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.coin-chip {
  background: #ffffff;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  border-radius: 99px;
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.mock-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mock-pill {
  flex: 1;
  padding: 8px 10px;
  border-radius: 14px;
  text-align: center;
}

.mock-pill-orange {
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  color: #ffffff;
}

.mock-pill-cyan {
  background: var(--bg-tint);
  color: var(--cyan-dark);
  border: 1px solid rgba(0, 163, 255, 0.25);
}

.mock-pill strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
}

.mock-pill span {
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.92;
}

.mock-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mock-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f5fa;
}

.mock-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mock-list strong {
  color: var(--ink-strong);
  font-weight: 700;
}

.mock-source-tag {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 14px;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan-dark);
  border: 1px solid rgba(0, 163, 255, 0.2);
}

/* Liquid CHO Ring inside Tab 2 */
.ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 12px;
}

.liquid-ring {
  width: 146px;
  height: 146px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #e4f4ff 100%);
  border: 6px solid var(--cyan);
  box-shadow:
    inset 0 0 22px rgba(0, 163, 255, 0.22),
    0 12px 26px rgba(0, 163, 255, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.liquid-ring::before {
  content: '';
  position: absolute;
  bottom: -14px;
  left: -20%;
  width: 140%;
  height: 52%;
  background: rgba(0, 163, 255, 0.16);
  border-radius: 44%;
}

.liquid-ring strong {
  position: relative;
  z-index: 1;
  font-size: 32px;
  font-weight: 800;
  color: var(--ink-strong);
  line-height: 1;
}

.liquid-ring span {
  position: relative;
  z-index: 1;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cyan-dark);
  margin-top: 3px;
}

/* Phone Mini Bottom Nav (matching app's 7 icons!) */
.phone-bottom-nav {
  margin: 0 12px 12px;
  background: #ffffff;
  border-radius: 99px;
  padding: 7px 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border: 1px solid rgba(0, 163, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 163, 255, 0.08);
}

.pnav-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--cyan);
  transition: background 0.2s ease, color 0.2s ease;
}

.pnav-dot.active {
  background: var(--orange-bright);
  color: #ffffff;
}

/* Interactive Demo Switcher below Phone */
.phone-switcher {
  position: relative;
  z-index: 3;
  display: inline-flex;
  gap: 6px;
  margin-top: 18px;
  background: #ffffff;
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.phone-tab-btn {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.2s ease;
}

.phone-tab-btn.active {
  background: var(--cyan);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 163, 255, 0.28);
}

.phone-tab-btn:hover:not(.active) {
  color: var(--cyan-dark);
}

/* Floating ambient cards around phone */
.float-chip {
  position: absolute;
  z-index: 4;
  background: #ffffff;
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 14px 34px rgba(15, 65, 115, 0.14);
  border: 1px solid rgba(0, 163, 255, 0.16);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-strong);
  animation: floatY 5s ease-in-out infinite;
}

.float-chip img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.float-chip-1 {
  top: -4px;
  left: -58px;
}

.float-chip-2 {
  bottom: 156px;
  right: -58px;
  animation-delay: -2.4s;
}

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

/* ==========================================================================
   WAVE BANDS & SECTION HEADERS
   ========================================================================== */
.wave-section {
  position: relative;
  background: var(--bg-soft);
  padding: 86px 0;
}

.wave-divider {
  display: block;
  width: 100%;
  height: 54px;
  line-height: 0;
}

.section-plain {
  padding: 88px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  color: var(--ink-strong);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 12px;
}

.section-heading p {
  font-size: 16.5px;
  font-weight: 300;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ==========================================================================
   SCENARIOS / VITA REALE AUTO-CAROUSEL (Huge Flush Artwork Masked by Bottom Wave)
   ========================================================================== */
.wave-section-vita {
  position: relative;
  background: var(--bg-soft);
  padding: 28px 0 0;
  overflow: hidden;
}

.vita-bottom-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 54px;
  z-index: 5;
  pointer-events: none;
  display: block;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: end;
  gap: 24px;
}

.story-right {
  align-self: end;
  padding: 0 0 100px;
}

.vitareale-stage {
  background: transparent;
  padding: 0;
  position: relative;
  z-index: 2;
  align-self: end;
}

.vitareale-viewport {
  position: relative;
  width: 100%;
  height: 530px;
  overflow: visible;
}

.vitareale-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.vitareale-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.vitareale-art {
  position: absolute;
  left: -4px;
  bottom: 0;
  width: auto;
  max-width: 72%;
  height: 518px;
  object-fit: contain;
  object-position: left bottom;
  display: block;
}

.vitareale-art--ristorante {
  left: -10px;
  bottom: 44px;
  height: 486px;
  max-width: 78%;
}

.vitareale-slogan {
  position: absolute;
  right: 4px;
  bottom: 100px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  font-size: clamp(24px, 2.55vw, 32px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--orange-bright);
  letter-spacing: -0.025em;
  white-space: nowrap;
  z-index: 4;
}

.vitareale-slogan--2line {
  height: auto;
  bottom: 102px;
  display: block;
}

.carousel-heading {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  color: var(--ink-strong);
  margin-bottom: 24px;
  line-height: 1.18;
}

.quote-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 34px 32px 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 163, 255, 0.10);
  min-height: 226px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.quote-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3.5px;
  background: rgba(0, 163, 255, 0.10);
}

.quote-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--orange-bright));
  border-radius: 99px;
}

.quote-slide {
  display: none;
  animation: fadeUp 0.35s ease;
}

.quote-slide.active {
  display: block;
}

.quote-slide h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 12px;
}

.quote-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quote-title-icon {
  color: var(--cyan);
  flex-shrink: 0;
}

.quote-slide p {
  font-size: 15.5px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.quote-meta {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan-dark);
}

.carousel-pager {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.pager-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.pager-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 163, 255, 0.30);
}

.pager-btn:hover:not(.active) {
  border-color: var(--cyan);
  color: var(--cyan);
}

.carousel-autoplay-note {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted-light);
  font-weight: 500;
}

/* ==========================================================================
   WHY USE MYCHOSCAN? (Scanoma Floating-Icon 3-Column Grid)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 54px 28px;
  padding-top: 26px;
}

.feature-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 58px 26px 30px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 163, 255, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 163, 255, 0.28);
}

.feature-icon-float {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: #ffffff;
  border: 1.5px solid rgba(0, 163, 255, 0.25);
  box-shadow: 0 12px 26px rgba(0, 163, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.feature-icon-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1.28;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.62;
}

/* ==========================================================================
   HOW IT WORKS (Scanoma 2-Column Split with Large Pale Numerals)
   ========================================================================== */
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 56px;
}

.how-visual-card {
  background: #ffffff;
  border-radius: 30px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 163, 255, 0.14);
}

.how-flow-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid rgba(0, 163, 255, 0.12);
}

.how-flow-item + .how-flow-arrow {
  text-align: center;
  color: var(--cyan);
  font-size: 18px;
  font-weight: 800;
  padding: 6px 0;
}

.how-flow-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ffffff;
  padding: 9px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0, 163, 255, 0.14);
}

.how-flow-item strong {
  display: block;
  font-size: 15px;
  color: var(--ink-strong);
}

.how-flow-item span {
  font-size: 13px;
  color: var(--muted);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 28px;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.step-num {
  font-size: 56px;
  font-weight: 800;
  line-height: 0.85;
  color: #cfe8fb;
  min-width: 44px;
  user-select: none;
}

.step-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 6px;
}

.step-body p {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   DATABASE SOURCES (Scanoma Partners Cards)
   ========================================================================== */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.source-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 163, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.source-crea,
.source-off,
.source-usda {
  background: var(--orange-pale);
  color: var(--orange);
}

.source-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 10px;
}

.source-card p {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   FLOATING CTA BANNER (Scanoma Mid/Bottom Card)
   ========================================================================== */
.cta-banner {
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  padding: 52px 36px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 163, 255, 0.14);
  overflow: hidden;
}

.cta-banner::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 280px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.16) 0%, rgba(0, 163, 255, 0.02) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(26px, 3.3vw, 38px);
  font-weight: 800;
  color: var(--ink-strong);
  margin-bottom: 14px;
}

.cta-banner p {
  position: relative;
  z-index: 1;
  font-size: 15.5px;
  font-weight: 300;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 28px;
}

.cta-banner .store-row {
  position: relative;
  z-index: 1;
  justify-content: center;
}

.disclaimer-strip {
  margin-top: 28px;
  background: var(--orange-pale);
  border: 1px solid rgba(243, 146, 0, 0.28);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.disclaimer-strip p {
  margin: 0;
  font-size: 13.5px;
  color: #5c3d15;
  font-weight: 400;
  line-height: 1.55;
}

.disclaimer-strip strong {
  color: #9a5200;
}

/* ==========================================================================
   SUPPORT / COFFEE SECTION (Scanoma Asymmetric Staggered Bottom Section)
   ========================================================================== */
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 44px;
}

.support-kicker {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--cyan);
  font-style: italic;
  line-height: 1.15;
}

.support-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--ink-strong);
  line-height: 1.2;
  margin-bottom: 18px;
}

.support-copy {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.vip-callout {
  background: #fff9ec;
  border: 1.5px solid rgba(255, 179, 0, 0.45);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 13.8px;
  color: #5d4037;
  line-height: 1.55;
  margin: 20px 0 24px;
}

.donation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-paypal {
  background: #003087;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 48, 135, 0.22);
}

.btn-satispay {
  background: #e51a2e;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(229, 26, 46, 0.22);
}

/* Right Side: Real Espresso Box + Staggered 1-2-3 Steps */
.support-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.sostieni-illustration {
  width: 100%;
  max-width: 540px;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 32px rgba(243, 146, 0, 0.14));
  transition: transform 0.25s ease;
}

.sostieni-illustration:hover {
  transform: translateY(-4px) scale(1.02);
}

.stagger-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stagger-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 163, 255, 0.10);
  max-width: 410px;
}

.stagger-item:nth-child(1) { margin-left: auto; }
.stagger-item:nth-child(2) { margin-left: auto; margin-right: auto; }
.stagger-item:nth-child(3) { margin-right: auto; }

.stagger-num {
  font-size: 38px;
  font-weight: 800;
  line-height: 0.9;
  color: #cfe8fb;
  min-width: 28px;
}

.stagger-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 4px;
}

.stagger-item p {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
}

/* ==========================================================================
   CONTACT & ASSISTANCE SECTION (With Anti-Robot Protection)
   ========================================================================== */
.contact-section {
  padding: 76px 0 64px;
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.contact-info-card {
  background: var(--bg-soft);
  border: 1px solid rgba(0, 163, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-info-card:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 163, 255, 0.08);
}

.contact-info-card small {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-light);
  margin-bottom: 2px;
}

.contact-info-card a,
.contact-info-email {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--cyan-dark);
}

.copy-email-btn {
  padding: 7px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.copy-email-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan-dark);
}

.contact-form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid rgba(0, 163, 255, 0.16);
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fafdff;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink-strong);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan);
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(0, 163, 255, 0.14);
}

textarea.form-control {
  resize: vertical;
  min-height: 112px;
}

/* Honeypot hidden field */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Anti-Robot Math Verification Box */
.captcha-box {
  background: var(--bg-soft);
  border: 1.5px solid rgba(0, 163, 255, 0.22);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.captcha-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.captcha-math-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 800;
  color: var(--cyan-dark);
  letter-spacing: 0.04em;
  user-select: none;
}

.captcha-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.captcha-input {
  width: 78px;
  padding: 9px 10px;
  text-align: center;
  font-weight: 700;
}

.captcha-refresh {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.captcha-refresh:hover {
  border-color: var(--cyan);
  color: var(--cyan-dark);
}

.form-feedback {
  margin-top: 14px;
  padding: 12px 15px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  display: none;
}

.form-feedback.error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.form-feedback.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* ==========================================================================
   FOOTER (Minimal Centered Brand + Side-by-Side Copyright + Legal Links Only)
   ========================================================================== */
.site-footer {
  background: #ffffff;
  padding: 0 0 40px;
}

.footer-inner {
  border-top: 1px solid #cbd9e8;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.footer-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 24px;
}

.footer-logo {
  height: 46px;
  width: auto;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted-light);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  list-style: none;
}

.footer-links a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

/* ==========================================================================
   LEGAL SUBPAGES (/privacy, /termini, /delete-account)
   ========================================================================== */
.legal-hero {
  background: var(--bg-soft);
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--ink-strong);
  margin-top: 12px;
  margin-bottom: 10px;
}

.legal-hero p {
  font-size: 15.5px;
  color: var(--muted);
}

.legal-body {
  padding: 48px 0 72px;
}

.legal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 38px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 163, 255, 0.12);
  max-width: 860px;
  margin: 0 auto;
}

.legal-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan-dark);
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 10px;
}

.legal-card ul,
.legal-card ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-card a {
  color: var(--cyan-dark);
  font-weight: 600;
  text-decoration: underline;
}

/* Native Beta / Info Modal */
dialog.app-modal {
  margin: auto;
  border: none;
  border-radius: 26px;
  padding: 32px 28px;
  max-width: 460px;
  width: calc(100% - 32px);
  box-shadow: 0 28px 70px rgba(15, 35, 65, 0.25);
  background: #ffffff;
}

dialog.app-modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(5px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-strong);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1180px) {
  .float-chip {
    display: none;
  }
}

@media (max-width: 1060px) {
  .brand-tag {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .story-grid,
  .how-grid,
  .support-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .story-right {
    align-self: stretch;
    padding: 0 0 84px;
  }
  .vitareale-viewport {
    height: 390px;
  }
  .vitareale-slide {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }
  .vitareale-art,
  .vitareale-art--ristorante {
    position: static;
    width: auto;
    max-width: 82%;
    height: 310px;
  }
  .vitareale-art--ristorante {
    height: 290px;
  }
  .vitareale-slogan,
  .vitareale-slogan--2line {
    position: static;
    height: auto;
    display: block;
    justify-content: center;
    text-align: center;
    font-size: clamp(22px, 4.2vw, 28px);
    white-space: normal;
  }
  .hero {
    padding-top: 28px;
  }
  .hero-left {
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .store-row {
    justify-content: center;
  }
  .scroll-hint {
    display: none;
  }
  .features-grid,
  .sources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stagger-item:nth-child(1),
  .stagger-item:nth-child(2),
  .stagger-item:nth-child(3) {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 720px) {
  .brand-logo {
    height: 44px;
  }
  .nav-desktop {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .features-grid,
  .sources-grid {
    grid-template-columns: 1fr;
  }
  .float-chip {
    display: none;
  }
  .cta-banner {
    padding: 36px 22px;
  }
  .legal-card {
    padding: 28px 22px;
  }
  .donation-buttons {
    flex-direction: column;
  }
  .donation-buttons .btn-pill {
    width: 100%;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 26px 20px;
  }
  .story-right {
    padding: 0 0 76px;
  }
  .vitareale-viewport {
    height: 340px;
  }
  .vitareale-art,
  .vitareale-art--ristorante {
    max-width: 86%;
    height: 270px;
  }
  .vitareale-slogan {
    font-size: 23px;
  }
  .phone-switcher {
    padding: 4px;
    gap: 3px;
    max-width: 100%;
  }
  .phone-tab-btn {
    padding: 7px 10px;
    font-size: 11.5px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .float-chip,
  .mouse-icon::after {
    animation: none;
  }
}


/* ==========================================================================
   AREA PERSONALE (/account), PDF PRINT SHEET & COOKIE BANNER
   ========================================================================== */
.nav-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(0, 163, 255, 0.35);
  background: var(--bg-soft);
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-account-btn:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-logout-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-logout-btn[hidden] {
  display: none;
}

.nav-logout-btn:hover {
  border-color: #cbd5e1;
  color: var(--ink-strong);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(185, 28, 28, 0.22);
}

.btn-danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.footer-link-btn {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-link-btn:hover {
  color: var(--cyan);
}

.account-body {
  padding: 44px 0 80px;
}

.auth-card {
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 42px 36px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1.5px solid rgba(0, 163, 255, 0.16);
}

.auth-card-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: var(--bg-soft);
  border: 1px solid rgba(0, 163, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink-strong);
  margin-bottom: 10px;
}

.auth-subtitle {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 26px;
}

.btn-google-signin {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--ink-strong);
  border: 1.5px solid #cbd5e1;
  font-size: 15.5px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 65, 115, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-google-signin:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 163, 255, 0.16);
}

.demo-mode-box {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--orange-pale);
  border: 1px solid rgba(243, 146, 0, 0.35);
  text-align: center;
}

.demo-mode-box p {
  font-size: 13.5px;
  color: #6b3d00;
  margin-bottom: 14px;
  line-height: 1.5;
}

.demo-banner {
  background: var(--orange-pale);
  border: 1px solid rgba(243, 146, 0, 0.35);
  color: #6b3d00;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 13.5px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-privacy-note {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--muted-light);
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  text-align: left;
}

.line-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.line-icon-cyan {
  color: var(--cyan);
}

.heading-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Dashboard Header & Tabs */
.account-user-bar {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 163, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.account-user-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-brand), var(--cyan-dark));
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-user-identity h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-strong);
  line-height: 1.2;
}

.user-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

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

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.account-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.2s ease;
}

.account-tab .tab-icon {
  color: var(--cyan);
  transition: color 0.2s ease;
}

.account-tab.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 163, 255, 0.24);
}

.account-tab.active .tab-icon {
  color: #ffffff;
}

.account-tab:hover:not(.active) {
  border-color: var(--cyan);
  color: var(--cyan-dark);
}

/* Tab "Elimina Account": discreto e NON evidenziato in blu pieno */
.account-tab-subtle {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted-light);
  padding: 9px 16px;
}

.account-tab-subtle .tab-icon {
  color: var(--cyan);
}

.account-tab-subtle:hover:not(.active) {
  border-color: #cbd5e1;
  color: var(--ink);
  background: #ffffff;
}

.account-tab-subtle.active {
  background: #ffffff;
  border-color: #cbd5e1;
  color: var(--ink-strong);
  box-shadow: 0 4px 12px rgba(15, 35, 65, 0.06);
}

.account-tab-subtle.active .tab-icon {
  color: var(--cyan);
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.kpi-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 163, 255, 0.12);
  text-align: center;
}

.kpi-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-light);
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.kpi-cyan { color: var(--cyan-dark); }
.kpi-orange { color: var(--orange); }
.kpi-ink { color: var(--ink-strong); }

/* Diary Toolbar & Meal Cards */
.diary-toolbar {
  background: var(--bg-soft);
  border: 1px solid rgba(0, 163, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.period-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.period-pill {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s ease;
}

.period-pill.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #ffffff;
}

.date-range-inputs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.date-range-inputs label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.form-control-sm {
  width: auto;
  padding: 7px 10px;
  font-size: 13px;
}

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

.meals-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meal-row-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 163, 255, 0.12);
}

.meal-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.meal-datetime {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted-light);
}

.meal-row-head h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-strong);
}

.meal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meal-badge {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
}

.meal-badge-orange {
  background: var(--orange-pale);
  color: #b45d00;
}

.meal-badge-cyan {
  background: var(--bg-tint);
  color: var(--cyan-dark);
}

.meal-items-list {
  list-style: none;
  border-top: 1px solid #eef4fa;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meal-items-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--ink);
  gap: 12px;
}

.meal-food-qty {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.empty-state-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px dashed var(--line);
}

.empty-state-card h3 {
  font-size: 19px;
  color: var(--ink-strong);
  margin-bottom: 8px;
}

.empty-state-card p {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto;
}

/* Profile & Security Cards */
.account-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 163, 255, 0.14);
  margin-bottom: 22px;
}

.account-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-strong);
  margin-bottom: 6px;
}

.account-card-head p,
.muted-copy {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.form-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 22px 0 18px;
}

.toggle-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--ink);
}

.toggle-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

.pump-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-actions-row {
  margin-top: 20px;
}

.account-data-list {
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.75;
}

.danger-card {
  border: 1.5px solid #fecaca;
  background: #fffafa;
}

.danger-card h3 {
  color: #b91c1c;
}

.delete-confirm-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #fecaca;
}

.delete-confirm-box label {
  display: block;
  font-size: 14px;
  color: var(--ink-strong);
  margin-bottom: 10px;
}

.delete-confirm-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.delete-confirm-row input {
  max-width: 240px;
}

/* Cookie Banner (Garante Privacy compliant) */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  width: min(420px, calc(100vw - 32px));
  background: #ffffff;
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 22px 54px rgba(15, 35, 65, 0.22);
  border: 1.5px solid rgba(0, 163, 255, 0.25);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--ink-strong);
}

.cookie-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-banner p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.cookie-banner p a {
  color: var(--cyan-dark);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Dedicated A4 PDF Print Sheet (Hidden on screen, visible on window.print()) */
.pdf-print-sheet {
  display: none;
}

@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #1e293b !important;
    font-size: 11pt;
  }
  .pdf-print-sheet {
    display: block !important;
    padding: 0;
  }
  .pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #00a3ff;
    margin-bottom: 16px;
  }
  .pdf-logo {
    height: 36px;
    width: auto;
    margin-bottom: 4px;
  }
  .pdf-subtitle {
    display: block;
    font-size: 9.5pt;
    color: #64748b;
  }
  .pdf-user-meta {
    text-align: right;
    font-size: 9.5pt;
    line-height: 1.45;
  }
  .pdf-user-extra {
    font-size: 8.5pt;
    color: #475569;
  }
  .pdf-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: #f1f7fd;
    border: 1px solid #00a3ff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
    text-align: center;
  }
  .pdf-kpi span {
    display: block;
    font-size: 7.5pt;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.04em;
  }
  .pdf-kpi strong {
    font-size: 13pt;
    font-weight: 800;
    color: #0f172a;
  }
  .pdf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9.5pt;
  }
  .pdf-table th {
    background: #eaf5ff;
    color: #0f172a;
    text-align: left;
    padding: 8px 8px;
    border-bottom: 1.5px solid #00a3ff;
    font-size: 8.5pt;
    text-transform: uppercase;
  }
  .pdf-table td {
    padding: 8px 8px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
  }
  .pdf-disclaimer {
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid #cbd5e1;
    font-size: 8pt;
    color: #64748b;
    line-height: 1.45;
  }
}

@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .auth-card {
    padding: 30px 22px;
  }
  .account-card {
    padding: 24px 20px;
  }
  .cookie-banner {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }
}
