/* ═══════════════════════════════════════════════════════════════
   VERALEVA — Landing Page Styles
   Depends on: veraleva-tokens.css (loaded first)
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Landing-only tokens ── */
:root {
  --teal-stats: #5DD8CB;
}

/* ── 2. Grain texture ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.25;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ── 3. Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav.scrolled {
  background: var(--deep-forest);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 12px rgba(15, 61, 56, 0.15);
  padding: 12px 32px;
}
.nav.scrolled .nav-logo { color: var(--white); }
.nav.scrolled .nav-links a { color: rgba(255,255,255,0.7); }
.nav.scrolled .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav.scrolled .nav-links .cta { color: var(--white); }
.nav.scrolled .nav-hamburger span { background: var(--white); }

.nav-logo {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--white);
  text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.nav-logo .mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  display: flex; align-items: center; justify-content: center;
}
.nav-logo .mark svg { width: 20px; height: 20px; }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: 100px; transition: all 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-links .cta {
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  color: var(--white); font-weight: 600; padding: 10px 24px;
}
.nav-links .cta:hover { filter: brightness(1.05); transform: scale(0.98); color: var(--white); }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--white); border-radius: var(--radius-s);
  box-shadow: var(--shadow-lg); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block; padding: 10px 20px; color: var(--dark) !important;
  font-size: 14px;
}
.nav-dropdown-menu a:hover { background: var(--sage-faint); color: var(--sage-dark) !important; }
.nav.scrolled .nav-dropdown-menu {
  background: var(--deep-forest); border: 1px solid rgba(255,255,255,0.1);
}
.nav.scrolled .nav-dropdown-menu a { color: rgba(255,255,255,0.7) !important; }
.nav.scrolled .nav-dropdown-menu a:hover { background: rgba(255,255,255,0.1); color: #fff !important; }

/* Hamburger */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--white);
  margin: 5px 0; border-radius: 2px; transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; background: rgba(250,247,242,0.98);
  backdrop-filter: blur(20px); z-index: 999;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-size: 1.2rem; color: var(--dark); text-decoration: none;
  font-weight: 500; padding: 12px 24px;
}
.mobile-menu .close-btn {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; font-size: 28px; cursor: pointer; color: var(--dark);
}

/* ── 4. Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px; font-family: var(--font-body);
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  border: none; cursor: pointer; min-height: 48px;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  color: var(--white); box-shadow: 0 4px 20px rgba(18,172,165,0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(18,172,165,0.3); }
.btn-ghost {
  background: rgba(255,255,255,0.1); color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline {
  background: transparent; border: 1.5px solid rgba(255,255,255,0.2); color: #fff;
}
.btn-outline:hover { border-color: var(--sage); color: var(--sage); }

/* ── 5. Section base ── */
section { padding: clamp(48px, 8vw, 80px) clamp(20px, 4vw, 48px); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--sage-dark); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400; line-height: 1.2; margin-bottom: 20px;
}
.section-body {
  font-size: 15px; color: var(--dark-muted); max-width: 480px; line-height: 1.7;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--dark-muted); max-width: 560px; line-height: 1.7;
}

/* ── 6. Hero ── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 120px 48px 0; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('/static/images/hero-landing.jpg');
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(150deg,
    rgba(15,61,56,0.94) 0%,
    rgba(19,73,80,0.85) 40%,
    rgba(43,163,148,0.35) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 52fr 48fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center; max-width: 1100px; width: 100%;
}
.hero-text { text-align: left; }

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85);
  padding: 8px 18px; border-radius: 100px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 32px; backdrop-filter: blur(8px);
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-stats); animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  font-weight: 400; line-height: 1.12; color: #fff; margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--teal-stats); }
.hero-text p {
  font-size: clamp(1rem, 1.6vw, 1.1rem); color: rgba(255,255,255,0.7);
  max-width: 480px; margin: 0 0 40px; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }
.hero-trust {
  font-size: clamp(0.75rem, 1.5vw, 0.85rem); color: rgba(255,255,255,0.45);
  margin-top: 16px; letter-spacing: 0.01em;
}

/* Hero visual — phone mockups */
.hero-visual {
  position: relative; display: flex; justify-content: center;
  align-items: flex-end; gap: clamp(12px, 2vw, 24px);
  padding: 40px 0;
}
.hero-visual .phone:first-child { transform: rotate(-5deg); }
.hero-visual .phone:last-child { transform: rotate(5deg) translateY(28px); }

/* Stats bar */
.hero-stats {
  position: relative; z-index: 1; width: 100%; max-width: 1100px;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(16px, 4vw, 64px);
  padding: clamp(20px, 3vw, 32px) 0;
  margin-top: 48px;
  background: rgba(0,0,0,0.12);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.hero-stat .num {
  font-family: var(--font-data);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  color: var(--teal-stats); display: block; line-height: 1;
}
.hero-stat .lbl {
  font-size: 11px; color: rgba(255,255,255,0.35);
  margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em;
}

/* ── 7. Phone mockup ── */
.phone {
  background: #0D0D0D; border-radius: 32px;
  border: 2.5px solid #1A1A1A;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  overflow: hidden; position: relative;
}
.phone--xl { width: clamp(160px, 16vw, 200px); }
.phone--lg { width: clamp(130px, 14vw, 170px); }
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 20px; background: #0D0D0D;
  border-radius: 100px; z-index: 20;
}
.phone-screen {
  margin: 4px; border-radius: 28px; overflow: hidden;
  aspect-ratio: 9 / 19.5;
}
.phone-screen img {
  width: 100%; height: 100%; object-fit: cover; object-position: top; display: block;
}

/* ── 8. Screen frame (PT dashboard) ── */
.screen-frame {
  border-radius: 10px; border: 2.5px solid #2A2A2A;
  overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  background: #0D0D0D;
}
.screen-frame img {
  width: 100%; aspect-ratio: 16 / 9;
  object-fit: cover; object-position: top left; display: block;
}

/* ── 9. Problem section ── */
.problem { background: var(--dark); color: rgba(255,255,255,0.85); }
.problem .section-label { color: var(--terracotta); }
.problem .section-title { color: #fff; }
.problem .section-subtitle { color: rgba(255,255,255,0.55); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px; margin-top: 48px;
}
.problem-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-l); padding: 28px;
  transition: all 0.3s;
}
.problem-card:hover { background: rgba(255,255,255,0.07); transform: translateY(-4px); }
.problem-card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(252,161,110,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.problem-card .icon svg { width: 24px; height: 24px; color: var(--terracotta); }
.problem-card h3 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 400;
  color: #fff; margin-bottom: 8px;
}
.problem-card p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ── 10. Feature sections ── */
.feature-section {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
.feature-section--flipped .feature-section__text { order: 2; }
.feature-section--flipped .feature-section__visual { order: 1; }

.feature-section__text {
  padding: clamp(40px, 6vw, 64px) clamp(24px, 4vw, 48px);
  display: flex; flex-direction: column; justify-content: center;
}
.feature-section__text .section-label { margin-bottom: 12px; }
.feature-section__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 400; line-height: 1.2; margin-bottom: 16px;
}
.feature-section__text p {
  font-size: 15px; color: var(--dark-muted); line-height: 1.7;
  max-width: 480px; margin-bottom: 24px;
}

.feature-section__visual {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(24px, 4vw, 48px); position: relative; overflow: hidden;
}
.feature-section__visual--dark {
  background: var(--deep-teal);
}
.feature-section__visual--sage {
  background: var(--sage-light);
}
.feature-section__visual--image {
  background-size: cover; background-position: center;
}
.feature-section__visual--image::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(15,61,56,0.92) 0%,
    rgba(19,73,80,0.8) 50%,
    rgba(43,163,148,0.4) 100%);
}
.feature-section__visual--image > * { position: relative; z-index: 1; }

/* Two phones side by side in visual */
.feature-phones {
  display: flex; gap: clamp(8px, 1.5vw, 16px);
  align-items: flex-end;
}
.feature-phones .phone:first-child { transform: rotate(-3deg); }
.feature-phones .phone:last-child { transform: rotate(3deg) translateY(28px); }

/* ── 11. White-label demo ── */
.wl-section { overflow: hidden; }
.wl-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

/* Color picker card */
.wl-picker {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  background: var(--white); border-radius: var(--radius-s);
  padding: 16px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.wl-dot {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2.5px solid transparent; cursor: pointer;
  transition: border-color 0.3s, transform 0.2s;
}
.wl-dot:hover { transform: scale(1.1); }
.wl-dot.active { border-color: var(--dark); }

/* Simulated phone UI elements that change color */
.wl-topbar,
.wl-ring-stroke,
.wl-kcal-num,
.wl-meal-label,
.wl-fab {
  transition: all 0.6s ease;
}

/* ── 12. Extras grid ── */
.extras { background: var(--cream); }
.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px; margin-top: 48px;
}
.extra-card {
  background: var(--white); border: 1px solid rgba(19,73,80,0.06);
  border-radius: var(--radius-m); padding: 24px; text-align: center;
  transition: all 0.3s;
}
.extra-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(19,73,80,0.06); }
.extra-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--sage-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.extra-icon svg { width: 24px; height: 24px; color: var(--sage-dark); }
.extra-card h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 6px; }
.extra-card p { font-size: 12px; color: var(--dark-muted); line-height: 1.5; }

/* ── 13. Database banner ── */
.db-banner { background: var(--sage-light); overflow: hidden; padding: 0; }
.db-banner-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 480px;
}
.db-text {
  padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 48px);
  display: flex; flex-direction: column; justify-content: center;
}
.db-text .section-label { color: var(--sage-dark); }
.db-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px; line-height: 1.2;
}
.db-text p { font-size: 1rem; color: var(--dark-muted); line-height: 1.7; margin-bottom: 28px; }
.db-stats { display: flex; gap: 32px; margin-bottom: 32px; flex-wrap: wrap; }
.db-stat { text-align: center; }
.db-stat .num {
  font-family: var(--font-data); font-size: 1.8rem; color: var(--sage-dark);
  display: block; line-height: 1;
}
.db-stat .lbl {
  font-size: 11px; color: var(--dark-muted); text-transform: uppercase;
  letter-spacing: 0.04em; margin-top: 4px;
}
.db-brands { display: flex; flex-wrap: wrap; gap: 8px; }
.db-brand {
  background: var(--white); border: 1px solid rgba(19,73,80,0.06);
  padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 600;
  color: var(--dark-muted);
}
.db-visual {
  background: var(--white); display: flex; flex-direction: column; justify-content: center;
  padding: 48px; position: relative; overflow: hidden;
}
.db-visual::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--sage), var(--sage-dark));
}
.db-search-preview { margin-bottom: 24px; }
.db-search-box {
  background: var(--cream); border: 1.5px solid rgba(19,73,80,0.1);
  border-radius: var(--radius-s); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.db-search-box svg { flex-shrink: 0; color: var(--faint); }
.db-search-box span { color: var(--dark); font-size: 14px; }
.db-search-box .typed { color: var(--sage-dark); font-weight: 600; }
.db-result {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid rgba(19,73,80,0.06); font-size: 13px;
}
.db-result:last-child { border-bottom: none; }
.db-result .name { font-weight: 500; color: var(--dark); }
.db-result .source {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 100px;
}
.db-result .source.mt { background: var(--sage-light); color: var(--sage-dark); }
.db-result .source.off { background: #E8F0FE; color: #3B78D4; }
.db-result .source.usda { background: #FFF3E0; color: #D48B3B; }
.db-result .kcal { font-family: var(--font-display); color: var(--sage-dark); font-size: 14px; }
.db-barcode {
  background: var(--cream); border-radius: var(--radius-s); padding: 16px;
  display: flex; align-items: center; gap: 16px;
}
.db-barcode-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.db-barcode-icon svg { width: 20px; height: 20px; color: #fff; }
.db-barcode-text .title { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.db-barcode-text .desc { font-size: 12px; color: var(--dark-muted); }

/* ── 14. Calculator demo ── */
.calc-demo { background: var(--cream); }
.calc-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; margin-top: 48px; align-items: start;
}
.calc-form {
  background: var(--white); border: 1px solid rgba(19,73,80,0.06);
  border-radius: var(--radius-xl); padding: 36px;
}
.calc-form .field { margin-bottom: 20px; }
.calc-form label {
  display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--dark-muted); margin-bottom: 8px;
}
.calc-form input,
.calc-form select {
  width: 100%; padding: 12px 16px; border: 1.5px solid rgba(19,73,80,0.1);
  border-radius: var(--radius-s); font-family: var(--font-body); font-size: 15px;
  color: var(--dark); background: var(--cream); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.calc-form input:focus,
.calc-form select:focus {
  border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-faint);
}
.calc-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-btn {
  width: 100%; padding: 14px; margin-top: 8px;
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  color: var(--white); border: none; border-radius: var(--radius-s);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; min-height: 48px;
}
.calc-btn:hover { filter: brightness(1.05); transform: scale(0.98); }
.calc-results {
  background: var(--white); border: 1px solid rgba(19,73,80,0.06);
  border-radius: var(--radius-xl); padding: 36px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.calc-results.has-data { border-color: var(--sage); box-shadow: 0 8px 40px rgba(43,163,148,0.12); }
.calc-results h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 24px; }
.result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid rgba(19,73,80,0.06);
}
.result-row:last-child { border-bottom: none; }
.result-label { font-size: 14px; color: var(--dark-muted); }
.result-value {
  font-family: var(--font-display); font-size: 1.4rem; color: var(--sage-dark);
}
.result-value small { font-family: var(--font-body); font-size: 12px; color: var(--dark-muted); }

/* Macro rings (SVG) */
.macro-rings {
  display: flex; justify-content: center; gap: clamp(16px, 3vw, 32px);
  margin-top: 24px;
}
.macro-ring { text-align: center; }
.macro-ring svg { width: clamp(64px, 8vw, 80px); height: clamp(64px, 8vw, 80px); }
.macro-ring circle {
  fill: none; stroke-width: 6; stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.macro-ring .track { stroke: var(--sand); }
.macro-ring .fill-protein { stroke: var(--sage); }
.macro-ring .fill-fett { stroke: var(--terracotta); }
.macro-ring .fill-karbo { stroke: var(--lavender); }
.macro-ring .ring-value {
  font-family: var(--font-display); font-size: 14px; color: var(--dark);
}
.macro-ring .ring-label {
  font-size: 11px; color: var(--dark-muted); text-transform: uppercase;
  letter-spacing: 0.04em; margin-top: 4px;
}

/* Fallback macro bars */
.macro-bars { margin-top: 24px; }
.macro-bar { margin-bottom: 16px; }
.macro-bar .macro-header { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.macro-bar .macro-header .name { font-weight: 600; color: var(--dark); }
.macro-bar .macro-header .val { color: var(--dark-muted); }
.macro-track { height: 8px; background: var(--sand); border-radius: 100px; overflow: hidden; }
.macro-fill { height: 100%; border-radius: 100px; transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.macro-fill.protein { background: linear-gradient(90deg, var(--sage-dark), var(--sage)); }
.macro-fill.fett { background: linear-gradient(90deg, var(--terracotta), #D4956B); }
.macro-fill.karbo { background: linear-gradient(90deg, var(--lavender), #9BAAD6); }

.calc-note {
  font-size: 12px; color: var(--dark-muted); margin-top: 20px;
  text-align: center; line-height: 1.6;
}
.calc-empty { text-align: center; padding: 40px 20px; color: var(--faint); }
.calc-empty .icon { font-size: 48px; margin-bottom: 16px; }
.calc-empty p { font-size: 14px; line-height: 1.6; }

/* ── 15. Social proof ── */
.proof { text-align: center; }
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px; margin-top: 48px;
}
.testimonial {
  background: var(--white); border: 1px solid rgba(19,73,80,0.06);
  border-radius: var(--radius-l); padding: 28px; text-align: left;
}
.testimonial-stars {
  display: flex; gap: 2px; margin-bottom: 16px;
}
.testimonial-stars svg { width: 16px; height: 16px; color: var(--terracotta); }
.testimonial .quote {
  font-size: 15px; line-height: 1.7; color: var(--dark); margin-bottom: 20px;
  font-style: italic;
}
.testimonial .author { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--white);
  background: var(--sage);
}
.testimonial .name { font-size: 14px; font-weight: 600; }
.testimonial .role { font-size: 12px; color: var(--dark-muted); }
.testimonial .client-count {
  font-size: 11px; color: var(--sage-dark); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* ── 16. How it works ── */
.how { background: var(--sand); }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 32px; margin-top: 48px;
}
.step { text-align: center; position: relative; }
.step::after {
  content: ''; position: absolute; top: 28px; left: calc(50% + 32px);
  width: calc(100% - 64px); height: 2px;
  background: var(--sage-light);
}
.step:last-child::after { display: none; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--sage-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--sage-dark);
  margin: 0 auto 20px; position: relative; z-index: 1;
}
.step h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 400;
  margin-bottom: 8px;
}
.step p { font-size: 13px; color: var(--dark-muted); line-height: 1.6; }

/* ── 17. Price comparison ── */
.comparison { background: var(--cream); }
.comparison-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 48px; }
.comparison-table {
  width: 100%; border-collapse: collapse; min-width: 600px;
}
.comparison-table th,
.comparison-table td {
  padding: 14px 16px; text-align: center; font-size: 14px;
  border-bottom: 1px solid rgba(19,73,80,0.06);
}
.comparison-table th {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--dark-muted);
  background: var(--sand); position: sticky; top: 0;
}
.comparison-table th:first-child,
.comparison-table td:first-child { text-align: left; font-weight: 600; }
.comparison-table .col-veraleva {
  background: var(--sage-faint);
}
.comparison-table th.col-veraleva {
  background: var(--sage); color: var(--white);
}
.comparison-table .check svg { width: 18px; height: 18px; color: var(--sage); }
.comparison-table .dash { color: var(--faint); font-size: 18px; }
.comparison-table .price-row td {
  font-family: var(--font-data); font-weight: 600;
  color: var(--dark);
}
.comparison-table .price-row .col-veraleva {
  color: var(--sage-dark); font-size: 1.1em;
}

/* ── 18. Pricing ── */
.pricing { background: var(--dark); color: rgba(255,255,255,0.85); }
.pricing .section-label { color: var(--sage); }
.pricing .section-title { color: #fff; }
.pricing .section-subtitle { color: rgba(255,255,255,0.55); margin: 0 auto 48px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 2vw, 24px); max-width: 1080px; margin: 0 auto;
}
.price-card {
  max-width: 340px; width: 100%;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl); padding: 36px; text-align: center;
  transition: all 0.3s;
}
.price-card:hover { background: rgba(255,255,255,0.06); transform: translateY(-4px); }
.price-card.featured {
  background: rgba(43,163,148,0.12); border-color: var(--sage);
  position: relative;
}
.price-card.featured::before {
  content: 'Mest populær'; position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--sage), var(--sage-dark)); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 6px 16px; border-radius: 100px; white-space: nowrap;
}
.price-card .plan-name {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5); margin-bottom: 16px;
}
.price-card .price {
  font-family: var(--font-data); font-size: 2.8rem; color: #fff;
  line-height: 1; margin-bottom: 4px;
}
.price-card .price span { font-size: 1rem; color: rgba(255,255,255,0.4); }
.price-card .period { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 28px; }
.price-card ul { list-style: none; text-align: left; margin-bottom: 28px; }
.price-card li {
  font-size: 14px; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 10px;
}
.price-card li::before {
  content: ''; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: rgba(43,163,148,0.2);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%232BA394' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 10px;
}
.price-card .btn { width: 100%; }

/* ── 19. Final CTA ── */
.final-cta {
  background: var(--deep-teal); text-align: center;
  padding: clamp(80px, 10vw, 120px) clamp(20px, 4vw, 48px);
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400; color: #fff; margin-bottom: 20px; line-height: 1.2;
}
.final-cta p {
  font-size: 1rem; color: rgba(255,255,255,0.6); max-width: 480px;
  margin: 0 auto 40px; line-height: 1.7;
}
.final-cta .hero-trust { text-align: center; }

/* ── 20. Footer ── */
footer { background: var(--deep-forest); color: rgba(255,255,255,0.5); font-size: 14px; }
.footer-top {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px;
  padding: 64px 32px 48px;
}
.footer-col h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.65); text-decoration: none;
  margin-bottom: 10px; font-size: 14px; transition: color 0.2s; line-height: 1.4;
}
.footer-col a:hover { color: #fff; }
.footer-brand-logo {
  font-family: var(--font-display); font-size: 1.4rem; color: #fff;
  text-decoration: none; display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.footer-brand-logo .mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), rgba(19,73,80,0.8));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer-brand-logo .mark svg { width: 20px; height: 20px; }
.footer-tagline {
  color: rgba(255,255,255,0.5); font-size: 13px; line-height: 1.6;
  margin-bottom: 16px; max-width: 240px;
}
.footer-email {
  color: var(--sage) !important; font-size: 13px;
  display: inline-flex !important; align-items: center; gap: 6px;
}
.footer-email:hover { color: #fff !important; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
}
.footer-copy { color: rgba(255,255,255,0.35); font-size: 12px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); text-decoration: none; transition: all 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ── 21. Sticky mobile CTA ── */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  background: rgba(245,247,249,0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 12px 20px; box-shadow: 0 -2px 16px rgba(19,73,80,0.08);
  text-align: center;
  transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; font-size: 15px; padding: 14px 24px; }
.sticky-cta .sticky-trust { font-size: 11px; color: var(--dark-muted); margin-top: 6px; }

/* ── 22. Feature link ── */
.feature-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--sage-dark);
  text-decoration: none; transition: gap 0.2s ease;
}
.feature-link:hover { gap: 10px; }
.feature-link svg {
  width: 16px; height: 16px; transition: transform 0.2s ease;
}
.feature-link:hover svg { transform: translateX(2px); }

/* ── 23. Scroll animations ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1; transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible {
    opacity: 1; transform: none; transition: none;
  }
}

/* ── 24. Phone showcase (device strip) ── */
.phone-showcase { background: var(--sand); padding: clamp(60px, 8vw, 100px) 32px; }
.phone-showcase .section-inner { text-align: center; }
.showcase-strip {
  display: flex; gap: clamp(16px, 2.5vw, 36px); justify-content: center;
  align-items: flex-end; margin-top: 60px;
}
.sc-phone {
  flex: 0 0 auto; width: clamp(170px, 16vw, 230px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.sc-phone.elevated { transform: translateY(-32px); }
.phone-shell {
  width: 100%; aspect-ratio: 9 / 19.5;
  background: #18202A; border-radius: clamp(28px, 3.5vw, 44px);
  border: 2px solid #2E3848;
  box-shadow:
    0 2px 0 0 #3A4558 inset,
    0 -1px 0 0 #0D1219 inset,
    0 40px 90px rgba(13,25,35,0.40),
    0 8px 24px rgba(13,25,35,0.20);
  overflow: hidden; position: relative;
}
.di-pill {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 25px; background: #0D1219; border-radius: 100px; z-index: 20;
}
.phone-shell .sc-screen { width: 100%; height: 100%; overflow: hidden; }
.phone-shell .sc-screen img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
}

/* Browser window */
.sc-browser {
  flex: 0 0 auto; width: clamp(300px, 30vw, 450px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transform: translateY(-16px);
}
.browser-shell {
  width: 100%; background: #18202A; border-radius: 12px;
  border: 2px solid #2E3848;
  box-shadow:
    0 2px 0 0 #3A4558 inset,
    0 -1px 0 0 #0D1219 inset,
    0 40px 90px rgba(13,25,35,0.40),
    0 8px 24px rgba(13,25,35,0.20);
  overflow: hidden;
}
.browser-bar {
  height: 38px; background: #0F161E;
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.b-dots { display: flex; gap: 6px; }
.b-dots span { width: 11px; height: 11px; border-radius: 50%; }
.b-dots span:nth-child(1) { background: #FF5F57; }
.b-dots span:nth-child(2) { background: #FEBC2E; }
.b-dots span:nth-child(3) { background: #28C840; }
.b-url {
  flex: 1; height: 22px;
  background: rgba(255,255,255,0.06); border-radius: 5px;
  display: flex; align-items: center; gap: 6px; padding: 0 10px;
}
.b-url svg { opacity: 0.30; flex-shrink: 0; }
.b-url span { font-family: var(--font-data); font-size: 10.5px; color: rgba(255,255,255,0.38); }
.browser-screen { width: 100%; aspect-ratio: 16 / 9.5; overflow: hidden; }
.browser-screen img {
  width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block;
}
.sc-caption { font-size: 12px; color: var(--dark-muted); font-weight: 600; letter-spacing: 0.01em; }

/* ── 25. Responsive (single 768px breakpoint) ── */
@media (max-width: 768px) {
  /* Nav */
  .nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }

  /* Hero */
  .hero { padding: 96px 20px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; }
  .hero-visual .phone:first-child { transform: rotate(-3deg); }
  .hero-visual .phone:last-child { transform: rotate(3deg) translateY(16px); }
  .hero-stats { flex-direction: row; flex-wrap: wrap; gap: 16px 32px; justify-content: center; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }

  /* Feature sections */
  .feature-section { grid-template-columns: 1fr; min-height: auto; }
  .feature-section__visual { order: -1 !important; min-height: 280px; }
  .feature-section__text { order: 0 !important; }
  .feature-section--flipped .feature-section__text { order: 0; }
  .feature-section--flipped .feature-section__visual { order: -1; }

  /* Phone mockups scale down */
  .phone--xl { width: clamp(120px, 30vw, 160px); }
  .phone--lg { width: clamp(100px, 26vw, 140px); }
  .feature-phones .phone:first-child { transform: rotate(-2deg); }
  .feature-phones .phone:last-child { transform: rotate(2deg) translateY(16px); }

  /* White-label picker repositions */
  .wl-picker {
    position: relative; top: auto; right: auto;
    margin: 16px auto 0; grid-template-columns: repeat(6, 1fr);
  }

  /* Database banner */
  .db-banner-inner { grid-template-columns: 1fr; }
  .db-visual { padding: 24px 20px 32px; }

  /* Calculator */
  .calc-layout { grid-template-columns: 1fr; }
  .calc-form .row { grid-template-columns: 1fr; }

  /* How it works */
  .step::after { display: none; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 20px 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; padding: 16px 20px; }

  /* Sticky CTA visible */
  .sticky-cta { display: block; }
  body { padding-bottom: 80px; }

  /* Showcase strip */
  .showcase-strip {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    padding: 0 20px 16px; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .showcase-strip::-webkit-scrollbar { display: none; }
  .sc-phone, .sc-browser { scroll-snap-align: center; flex-shrink: 0; }
  .sc-phone { width: 54vw; }
  .sc-phone.elevated { width: 60vw; transform: translateY(-10px); }
  .sc-browser { width: 82vw; transform: none; }

  /* Pricing grid center cards */
  .pricing-grid { max-width: 380px; margin: 0 auto; }

  /* Final CTA */
  .final-cta { padding: 80px 20px; }
}
