/* ==========================================================================
   FINORA — POHJOISEN ELINVOIMAN & SOLUENERGIAN TUTKIMUSPORTAALI
   Dark Luxury Nordic Bio-Vitality Design System (Vanilla CSS3, Mobile-First)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Dark Obsidian & Nordic Gold Palette */
  --bg-primary: #090B0E;
  --bg-secondary: #101319;
  --bg-elevated: #151922;
  --bg-card: rgba(21, 25, 34, 0.78);
  --bg-glass: rgba(16, 19, 25, 0.85);

  --text-primary: #F4F5F8;
  --text-secondary: #A5AEBE;
  --text-muted: #6C7689;

  --accent-gold: #D4AF37;
  --accent-gold-light: #FDE68A;
  --accent-amber: #EA580C;
  --accent-emerald: #10B981;
  --accent-danger: #EF4444;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.28);
  --border-gold-strong: rgba(212, 175, 55, 0.55);

  --gradient-gold: linear-gradient(135deg, #FDE68A 0%, #D4AF37 50%, #EA580C 100%);
  --gradient-surface: linear-gradient(180deg, rgba(25, 30, 41, 0.9) 0%, rgba(14, 17, 23, 0.95) 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.14), rgba(234, 88, 12, 0.05) 45%, transparent 70%);

  --shadow-card: 0 20px 45px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --shadow-gold: 0 12px 32px -8px rgba(212, 175, 55, 0.32);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container-max: 1280px;
  --header-height: 72px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(212, 175, 55, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(234, 88, 12, 0.05) 0%, transparent 45%);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: var(--header-height);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

/* Page Transition Overlay */
.page-transition-veil {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

body.is-transitioning .page-transition-veil {
  opacity: 1;
}

/* Container & Grid Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

.section {
  padding: 4.5rem 0;
  position: relative;
}

@media (min-width: 1024px) {
  .section {
    padding: 6.5rem 0;
  }
}

.section-border {
  border-top: 1px solid var(--border-subtle);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.headline-xl {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  margin-bottom: 1.25rem;
}

.headline-lg {
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  margin-bottom: 1rem;
}

.headline-md {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  margin-bottom: 0.75rem;
}

.text-gold-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead-text {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 64ch;
  line-height: 1.65;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   1. FIXED HEADER (STRICT SINGLE-LINE, NO-WRAP)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(9, 11, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  line-height: 1;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
  margin-top: 3px;
}

.main-nav {
  display: none;
}

@media (min-width: 960px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.nav-link {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--accent-gold-light);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Mobile Menu Button & Drawer */
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-primary);
}

@media (min-width: 960px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-gold);
  padding: 1.25rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 999;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer .nav-link {
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  text-align: center;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--gradient-gold);
  color: #090B0E;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px -6px rgba(212, 175, 55, 0.48);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--border-gold-strong);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.84rem;
}

/* ==========================================================================
   2. HERO SECTION (EDITORIAL SPLIT-SCREEN, NO PRODUCT BOX ON INDEX)
   ========================================================================== */
.hero-section {
  padding: 2.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 4rem 0 6rem;
  }
}

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

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
}

.hero-bullets {
  margin: 1.75rem 0 2.25rem;
  display: grid;
  gap: 0.85rem;
}

.hero-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.96rem;
  color: var(--text-secondary);
}

.hero-bullet-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
}

.hero-visual-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 520px;
  object-fit: cover;
  filter: contrast(1.04) brightness(0.92);
}

.hero-telemetry-overlay {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(9, 11, 14, 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.telemetry-stat {
  display: flex;
  flex-direction: column;
}

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.telemetry-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-gold-light);
  margin-top: 2px;
}

/* ==========================================================================
   3. EDITORIAL STORY & DUAL VITALITY (ASYMMETRIC DOSSIER & BENTO ARCHITECTURE)
   ========================================================================== */
.dossier-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .dossier-split {
    grid-template-columns: 0.78fr 1.22fr;
    gap: 3rem;
  }
}

.dossier-sticky {
  position: relative;
}

@media (min-width: 1024px) {
  .dossier-sticky {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card-luxury {
  background: var(--gradient-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.card-luxury:hover {
  border-color: var(--border-gold);
}

.card-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
  opacity: 0.45;
}

.story-quote {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--accent-gold);
  background: rgba(212, 175, 55, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-primary);
  font-size: 0.92rem;
}

.bento-protocol-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .bento-protocol-grid {
    grid-template-columns: 1.3fr 0.85fr 0.85fr;
  }
}

.step-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.step-box-featured {
  background: radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.14), rgba(16, 19, 25, 0.96) 70%);
  border-color: var(--border-gold);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  display: block;
}

/* ==========================================================================
   4. INTERACTIVE MICRO-ENGAGEMENTS (ARCHITECTURAL WORKBENCH GRID)
   ========================================================================== */
.interactive-workbench {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1080px) {
  .interactive-workbench {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
  }
  .workbench-span-full {
    grid-column: 1 / -1;
  }
}

/* 4A. Quiz Module */
.quiz-container {
  background: var(--gradient-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.quiz-progress-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 1rem 0 1.5rem;
}

.quiz-progress-fill {
  height: 100%;
  width: 25%;
  background: var(--gradient-gold);
  transition: width 0.35s ease;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.quiz-option-btn {
  text-align: left;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.93rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.quiz-option-btn:hover, .quiz-option-btn:focus-visible {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
  transform: translateX(3px);
}

.quiz-result-box {
  display: none;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.quiz-result-box.active {
  display: block;
}

/* 4B. Unique Bio-Chronometer & Breath-Pacer Cockpit (Replaced generic circle timer) */
.biocockpit-card {
  background: radial-gradient(circle at 85% 15%, rgba(212, 175, 55, 0.12), rgba(14, 17, 23, 0.98) 65%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.biocockpit-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1.15rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mode-pills {
  display: inline-flex;
  background: rgba(9, 11, 14, 0.9);
  border: 1px solid var(--border-subtle);
  padding: 0.22rem;
  border-radius: var(--radius-pill);
  gap: 0.2rem;
}

.mode-pill-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.mode-pill-btn.active {
  background: rgba(212, 175, 55, 0.2);
  color: var(--accent-gold-light);
  border: 1px solid var(--border-gold);
}

.biocockpit-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 640px) {
  .biocockpit-body {
    grid-template-columns: 230px 1fr;
  }
}

.chronometer-dial {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chronometer-svg {
  width: 220px;
  height: 220px;
  transform: rotate(-90deg);
}

.chrono-ticks {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 4;
  stroke-dasharray: 2 8.47;
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 8;
}

.circle-progress {
  fill: none;
  stroke: url(#timerGoldGrad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.35s linear;
}

.breath-core-ring {
  position: absolute;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, rgba(16, 185, 129, 0.04) 70%, transparent 100%);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  transition: transform 1.8s ease-in-out, border-color 0.5s ease;
  pointer-events: none;
}

.chronometer-dial.is-running .breath-core-ring {
  animation: breathPulse 5s infinite ease-in-out;
  border-color: rgba(52, 211, 153, 0.65);
}

@keyframes breathPulse {
  0%, 100% { transform: scale(0.88); opacity: 0.65; }
  45% { transform: scale(1.12); opacity: 1; }
}

.circle-timer-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.timer-seconds {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.timer-phase-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold-light);
  margin-top: 0.35rem;
  background: rgba(9, 11, 14, 0.75);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.phase-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.phase-node {
  background: rgba(9, 11, 14, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.65rem;
  transition: all var(--transition-fast);
}

.phase-node.active {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.12);
}

.phase-node-code {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-gold);
  display: block;
}

.phase-node-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-primary);
}

.telemetry-micro-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(9, 11, 14, 0.8);
  border-left: 2px solid var(--accent-gold);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.15rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* 4C. Before / After Interactive Slider */
.comparison-card {
  background: var(--gradient-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.slider-control-wrap {
  margin: 1.75rem 0;
}

.vitality-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #374151 0%, #D4AF37 55%, #10B981 100%);
  outline: none;
  cursor: pointer;
}

.vitality-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 3px solid var(--accent-gold);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.8);
  cursor: grab;
}

.comparison-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .comparison-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.metric-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  margin-top: 0.65rem;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  background: var(--gradient-gold);
  transition: width 0.25s ease;
}

/* ==========================================================================
   5. CERTIFICATES & QUALITY STANDARDS (4 INTERACTIVE CARDS + MODAL)
   ========================================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cert-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cert-card {
  background: var(--gradient-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.cert-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.cert-badge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cert-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-gold-light);
  background: rgba(212, 175, 55, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.cert-action-hint {
  font-size: 0.8rem;
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

/* Modal Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.84);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 2000;
}

.modal-backdrop.open {
  display: flex;
}

.modal-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.85);
  position: relative;
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(212, 175, 55, 0.2);
  color: var(--text-primary);
}

/* ==========================================================================
   6. OFFER & CONSULTATION FORM (TILAA.HTML DEDICATED PAGE)
   ========================================================================== */
.offer-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .offer-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
  }
}

.product-showcase-card {
  background: radial-gradient(circle at 50% 35%, rgba(212, 175, 55, 0.16), rgba(16, 19, 25, 0.95) 70%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.product-img-medium {
  max-width: 310px;
  width: 100%;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75);
  transition: transform 0.4s ease;
}

.product-img-medium:hover {
  transform: translateY(-4px) scale(1.02);
}

.form-card {
  background: var(--gradient-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(9, 11, 14, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.form-input.input-error {
  border-color: var(--accent-danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.form-input.input-valid {
  border-color: var(--accent-emerald);
}

.field-feedback {
  font-size: 0.8rem;
  margin-top: 0.4rem;
  min-height: 1.2em;
  color: var(--text-muted);
}

.field-feedback.error {
  color: #F87171;
  font-weight: 500;
}

.field-feedback.success {
  color: #34D399;
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 640px) {
  .trust-badges-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   7. FAQ ACCORDION (LACONIC NORDIC EDITORIAL STYLE — NO HEAVY CIRCLES)
   ========================================================================== */
.faq-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .faq-split-layout {
    grid-template-columns: 0.75fr 1.25fr;
    gap: 3.5rem;
  }
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
}

.faq-item {
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.faq-item.active {
  border-bottom-color: var(--border-gold);
  background: rgba(212, 175, 55, 0.025);
}

.faq-trigger {
  width: 100%;
  padding: 1.25rem 0.75rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.faq-trigger:hover {
  color: var(--accent-gold-light);
}

.faq-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-gold);
  margin-right: 0.75rem;
  opacity: 0.85;
}

.faq-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-icon::before {
  width: 12px;
  height: 1.5px;
}

.faq-icon::after {
  width: 1.5px;
  height: 12px;
}

.faq-item.active .faq-icon {
  color: var(--accent-gold);
}

.faq-item.active .faq-icon::after {
  transform: scaleY(0);
  opacity: 0;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-panel-inner {
  padding: 0 0.75rem 1.35rem 2.35rem;
  color: var(--text-secondary);
  font-size: 0.93rem;
  max-width: 66ch;
}

/* ==========================================================================
   8. FOOTER, GOOGLE MAP & LEGAL DISCLAIMER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: #060709;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }
}

.footer-links {
  display: grid;
  gap: 0.65rem;
}

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

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

.map-frame-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 190px;
  background: var(--bg-secondary);
}

.map-frame-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) brightness(92%) contrast(90%);
}

.legal-disclaimer-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 540px;
  background: rgba(16, 19, 25, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.85);
  z-index: 1500;
  display: none;
}

.cookie-banner.show {
  display: block;
}

/* Data Tables for CoA & Legal Pages */
.coa-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.coa-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.coa-table th, .coa-table td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}

.coa-table th {
  background: rgba(212, 175, 55, 0.08);
  color: var(--accent-gold-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.status-pass {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #34D399;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

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

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