/* ==========================================================================
   VIRENLAAKSO — NORDIC CIRCADIAN & VITALITY CHRONICLE (FINLAND)
   Architectural Dark Editorial + Asymmetric Bento + Kinetic Scroll UI
   ========================================================================== */

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

:root {
  /* Architectural Dark Nordic Substrate */
  --bg-base: #050B0E;
  --bg-surface: #0A1419;
  --bg-elevated: #0F1E26;
  --bg-card: rgba(13, 26, 33, 0.78);
  --bg-glass: rgba(8, 17, 22, 0.82);

  /* High-Contrast Singular Accent + Secondary Telemetry Tones */
  --accent-primary: #2DD4BF;
  --accent-cyan: #38BDF8;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;

  /* Typography */
  --text-main: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;
  --text-dark: #041014;

  /* Architectural Grid Lines & Glows */
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);
  --border-accent: rgba(45, 212, 191, 0.42);
  --shadow-soft: 0 24px 60px -12px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 40px -6px rgba(45, 212, 191, 0.26);

  /* Consistent Shape System */
  --radius-card: 20px;
  --radius-lg: 28px;
  --radius-input: 14px;
  --radius-pill: 9999px;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-base);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(45, 212, 191, 0.08) 0%, transparent 38%),
    radial-gradient(circle at 88% 22%, rgba(56, 189, 248, 0.07) 0%, transparent 42%),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(to right, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.page-loaded {
  animation: pageReveal 0.6s var(--ease-spring) forwards;
}

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

h1, h2, h3, h4, .font-display {
  font-family: 'Outfit', sans-serif;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

/* ==========================================================================
   1. FLOATING ARCHITECTURAL GLASS PILL HEADER (Single-Line white-space: nowrap)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
}

.header-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 0 1.15rem 0 1.35rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all var(--transition-base);
}

.site-header.scrolled .header-inner {
  background: rgba(5, 11, 14, 0.94);
  border-color: var(--border-accent);
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

.main-nav {
  display: none;
}

@media (min-width: 1060px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
  }
}

.nav-link {
  white-space: nowrap;
  padding: 0.45rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
}

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

.nav-link.active {
  color: var(--text-dark);
  background: var(--accent-primary);
  font-weight: 700;
}

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

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
}

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

.mobile-nav-drawer {
  pointer-events: auto;
  margin: 0.5rem 1.25rem 0;
  background: rgba(10, 20, 25, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--shadow-soft);
}

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

.mobile-nav-drawer .nav-link {
  padding: 0.75rem 1rem;
  font-size: 0.96rem;
  border-radius: 12px;
}

/* ==========================================================================
   BUTTONS (High-Contrast WCAG AA, Single-Line Lock)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.25s ease, background-color 0.25s ease;
}

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

.btn-primary {
  background: var(--accent-primary);
  color: var(--text-dark);
  box-shadow: 0 10px 28px -6px rgba(45, 212, 191, 0.5);
}

.btn-primary:hover {
  background: #5EEAD4;
  box-shadow: 0 14px 34px -4px rgba(45, 212, 191, 0.65);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
}

.btn-lg {
  padding: 1.05rem 2.1rem;
  font-size: 1.04rem;
}

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

/* ==========================================================================
   2. EDITORIAL ASYMMETRIC HERO WITH INLINE PILL PHOTO & TELEMETRY FRAME
   ========================================================================== */
.hero-section {
  padding-top: 112px;
  padding-bottom: 4.5rem;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-editorial-frame {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(15, 30, 38, 0.75) 0%, rgba(7, 14, 18, 0.92) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-top-telemetry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(5, 11, 14, 0.6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

.hero-copy-col {
  padding: 2.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .hero-copy-col { padding: 3.25rem; }
}

.hero-title {
  font-size: clamp(2.35rem, 4.4vw, 4.15rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 1.35rem;
  max-width: 22ch;
}

.hero-title .text-accent {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Inline Typography Pill Image (from gpt-taste skill) */
.inline-photo-pill {
  display: inline-block;
  width: 96px;
  height: 44px;
  border-radius: var(--radius-pill);
  vertical-align: middle;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--accent-primary);
  margin: 0 0.35rem;
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.35);
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 58ch;
  margin-bottom: 1.75rem;
}

.hero-bullets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .hero-bullets { grid-template-columns: 1fr 1fr; }
}

.hero-bullet-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.hero-bullet-icon {
  color: var(--accent-primary);
  flex-shrink: 0;
}

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

.hero-visual-col {
  position: relative;
  border-top: 1px solid var(--border-subtle);
  min-height: 380px;
  overflow: hidden;
  background: var(--bg-surface);
}

@media (min-width: 1024px) {
  .hero-visual-col {
    border-top: none;
    border-left: 1px solid var(--border-subtle);
  }
}

.hero-visual-col img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease-spring);
}

.hero-visual-col:hover img {
  transform: scale(1.04);
}

.hero-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 11, 14, 0.92) 0%, rgba(5, 11, 14, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
}

/* ==========================================================================
   KINETIC MARQUEE (Max 1 Per Page Rule)
   ========================================================================== */
.kinetic-marquee {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 20, 25, 0.85);
  overflow: hidden;
  padding: 0.95rem 0;
  white-space: nowrap;
  position: relative;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  animation: marqueeScroll 34s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.marquee-item strong {
  color: var(--accent-primary);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   UNIQUE INTERACTIVE 1: HORIZONTAL EXPANDING CHRONO-ACCORDION (4 SLICES)
   ========================================================================== */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-alt {
  background: rgba(10, 20, 25, 0.65);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 760px;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.06rem;
}

.chrono-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 960px) {
  .chrono-accordion {
    flex-direction: row;
    height: 410px;
  }
}

.chrono-slice {
  flex: 1;
  background: linear-gradient(165deg, rgba(15, 30, 38, 0.92) 0%, rgba(7, 14, 18, 0.96) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: flex 0.55s var(--ease-spring), border-color 0.3s ease, background 0.3s ease;
}

.chrono-slice:hover,
.chrono-slice.active {
  border-color: var(--accent-primary);
  background: linear-gradient(165deg, rgba(20, 44, 54, 0.95) 0%, rgba(8, 19, 24, 0.98) 100%);
  box-shadow: var(--shadow-glow);
}

@media (min-width: 960px) {
  .chrono-slice.active {
    flex: 2.6;
  }
}

.chrono-time-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--accent-primary);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid var(--border-accent);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  width: fit-content;
}

.chrono-slice-title {
  font-size: 1.4rem;
  margin: 1rem 0 0.65rem;
}

.chrono-slice-details {
  color: var(--text-secondary);
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.35s ease;
}

@media (min-width: 960px) {
  .chrono-slice:not(.active) .chrono-slice-details {
    display: none;
  }
}

.chrono-footer-meta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   STICKY EDITORIAL SPLIT SECTION (Left Pinned Narrative / Right Scrolling Cards)
   ========================================================================== */
.sticky-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .sticky-split-layout {
    grid-template-columns: 0.88fr 1.12fr;
    gap: 4rem;
  }
  .sticky-left-pane {
    position: sticky;
    top: 108px;
  }
}

.editorial-chapter-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chapter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 2.25rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.chapter-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.chapter-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(45, 212, 191, 0.14);
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  pointer-events: none;
}

/* ==========================================================================
   3. ARCHITECTURAL GAPLESS BENTO COMMAND DECK (Quiz + Timer + Rhythm Simulator)
   ========================================================================== */
.bento-command-deck {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  grid-auto-flow: dense;
}

@media (min-width: 1024px) {
  .bento-command-deck {
    grid-template-columns: repeat(12, 1fr);
  }
  .bento-col-7 { grid-column: span 7; }
  .bento-col-5 { grid-column: span 5; }
  .bento-col-12 { grid-column: span 12; }
}

.interactive-widget-box {
  background: linear-gradient(160deg, rgba(15, 30, 38, 0.92) 0%, rgba(7, 14, 18, 0.97) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Generic Grids & Cards for Inner Pages */
.bento-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.bento-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

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

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.85rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

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

.card-interactive { cursor: pointer; }
.card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

/* Quiz Internals */
.quiz-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-cyan));
  width: 25%;
  transition: width 0.35s ease;
}

.quiz-question-title {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.quiz-options {
  display: grid;
  gap: 0.75rem;
}

.quiz-option-btn {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-input);
  font-size: 0.96rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.quiz-option-btn:hover {
  background: rgba(45, 212, 191, 0.12);
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.quiz-result-panel {
  display: none;
  padding: 1.5rem;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-card);
  margin-top: 1rem;
}

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

/* Circle Timer */
.timer-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.15rem;
}

.timer-svg-wrap {
  position: relative;
  width: 186px;
  height: 186px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.timer-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

.timer-circle-progress {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.95s linear, stroke 0.3s ease;
}

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

.timer-seconds {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.timer-phase-label {
  font-size: 0.76rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  max-width: 130px;
}

/* Rhythm Slider */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, #334155 0%, var(--accent-primary) 100%);
  border-radius: var(--radius-pill);
  outline: none;
  margin: 1.25rem 0;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text-main);
  border: 4px solid var(--accent-primary);
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.85);
  cursor: grab;
}

.comparison-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

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

.metric-box {
  background: rgba(5, 11, 14, 0.78);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.1rem;
}

.metric-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-primary);
}

/* ==========================================================================
   4. ARCHITECTURAL BLUEPRINT MATRIX FOR CERTIFICATES (1px Grid Gap)
   ========================================================================== */
.blueprint-cert-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-strong);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

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

.blueprint-cell {
  background: var(--bg-surface);
  padding: 2rem 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  cursor: pointer;
  transition: background 0.25s ease;
  position: relative;
}

.blueprint-cell:hover {
  background: var(--bg-elevated);
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@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 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.cert-badge-code {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  width: fit-content;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  color: var(--accent-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
}

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

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

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================================================
   5. OFFER & CONSULTATION FORM SECTION
   ========================================================================== */
.offer-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

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

.product-stage {
  background: radial-gradient(circle at 50% 45%, rgba(45, 212, 191, 0.16) 0%, rgba(10, 20, 25, 0.94) 70%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.product-stage img {
  max-width: 290px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.65));
  transition: transform 0.5s var(--ease-spring);
}

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

.order-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2.35rem;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

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

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

.form-input {
  width: 100%;
  background: #050B0E;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-input);
  padding: 0.95rem 1.15rem;
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder { color: #64748B; }

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

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

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

.form-helper {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.form-feedback {
  font-size: 0.84rem;
  margin-top: 0.45rem;
  min-height: 1.25rem;
  font-weight: 500;
}

.form-feedback.error { color: #F87171; }
.form-feedback.success { color: #34D399; }

.trust-badges-row {
  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-row { grid-template-columns: repeat(3, 1fr); }
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   5B. INTERACTIVE CONSULTATION & COURSE ARCHITECT (konsultaatio.html)
   ========================================================================== */
.configurator-shell {
  background: linear-gradient(155deg, rgba(15, 30, 38, 0.92) 0%, rgba(6, 13, 17, 0.98) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .configurator-shell { padding: 2.5rem; }
}

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

@media (min-width: 1024px) {
  .config-step-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.25rem;
  }
}

.pill-selector-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.6rem;
}

.config-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-input);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.config-pill-btn:hover {
  border-color: var(--border-accent);
  color: var(--text-main);
  background: rgba(45, 212, 191, 0.07);
}

.config-pill-btn.active {
  background: rgba(45, 212, 191, 0.16);
  border-color: var(--accent-primary);
  color: var(--text-main);
  box-shadow: 0 0 20px -4px rgba(45, 212, 191, 0.35);
}

.config-pill-btn .dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.config-pill-btn.active .dot-indicator {
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.blueprint-summary-card {
  background: rgba(5, 11, 14, 0.88);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-card);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.capsule-visualizer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 1rem 0;
  padding: 0.85rem;
  background: rgba(15, 30, 38, 0.65);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.capsule-node {
  width: 22px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent-primary) 50%, var(--accent-cyan) 50%);
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.35);
  animation: capsulePop 0.3s var(--ease-spring) forwards;
}

@keyframes capsulePop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Interactive 3-Layer Capsule Anatomy Inspector */
.capsule-anatomy-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1.25rem 0 1rem;
}

.anatomy-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.anatomy-tab-btn.active {
  background: var(--accent-primary);
  color: var(--text-dark);
  border-color: var(--accent-primary);
  font-weight: 700;
}

.anatomy-detail-box {
  background: rgba(5, 11, 14, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.15rem;
  text-align: left;
  min-height: 118px;
}

/* Interactive Logistics & Call-Center Timeline Stepper */
.dispatch-stepper-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.dispatch-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.4rem;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  position: relative;
}

.dispatch-step-card:hover,
.dispatch-step-card.active {
  border-color: var(--accent-primary);
  background: rgba(15, 34, 43, 0.92);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.selected-plan-banner {
  background: rgba(45, 212, 191, 0.09);
  border: 1px dashed var(--border-accent);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   6. FAQ ACCORDION & FOOTER
   ========================================================================== */
.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 900px;
}

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

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.35rem 1.6rem;
  text-align: left;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.faq-icon {
  color: var(--accent-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-content-inner {
  padding: 0 1.6rem 1.4rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.site-footer {
  margin-top: auto;
  background: #030709;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.2fr 0.9fr 1.1fr; }
}

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

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

.map-frame-wrap {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 210px;
  background: var(--bg-surface);
}

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

.disclaimer-box {
  background: rgba(10, 20, 25, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 540px;
  background: rgba(10, 20, 25, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  z-index: 1500;
  box-shadow: var(--shadow-soft);
  display: none;
}

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

.story-lead {
  font-size: 1.2rem;
  color: var(--text-main);
  border-left: 3px solid var(--accent-primary);
  padding-left: 1.25rem;
  margin-bottom: 1.75rem;
}

.story-body p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.coa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.14);
  color: #34D399;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  background: var(--bg-surface);
}

.hero-visual-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.hero-visual-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(5, 11, 14, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
