/* ============================================================
   Typpilä Oy — Design system
   Theme: Bold cobalt background | Palette: Cobalt & sky blue
   Fonts: DM Serif Display + DM Sans
   Layout: Sticky headline, scrolling content
   Shapes: Brutalist thick borders (no radius, hard offset shadow)
   Nav: Centered logo, split nav
   ============================================================ */

:root {
  --bg: #0E2D6B;
  --bg-dark: #091E4A;
  --bg-mid: #132F74;
  --accent: #3A86D4;
  --sky: #7EC8F7;
  --text-dark: #E8F2FF;
  --text-muted: #9BB8DB;
  --light-bg: #EBF3FF;
  --light-bg-alt: #DDE9F8;
  --light-text: #0D1F3C;
  --light-muted: #3A5278;
  --border: #3A86D4;
  --border-light: #0D1F3C;
  --shadow: 4px 4px 0px #3A86D4;
  --shadow-light: 4px 4px 0px #0D1F3C;
  --font-heading: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 0px;
  --border-width: 3px;
  --header-h: 72px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg);
}

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

a { color: var(--sky); text-decoration: underline; }
a:hover { color: var(--text-dark); }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 400;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.light-section h1,
.light-section h2,
.light-section h3,
.light-section h4,
.light-section p,
.light-section li,
.light-section td,
.light-section th,
.light-section label {
  color: var(--light-text);
}
.light-section a { color: var(--accent); }
.light-section a:hover { color: var(--light-text); }

/* ---- LAYOUT ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.narrow {
  max-width: 760px;
}
.text-center { text-align: center; }

.section {
  padding: 5rem 0;
}
.light-section {
  background: var(--light-bg);
  color: var(--light-text);
}

/* Sticky headline layout */
.sticky-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}
.sticky-label {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.light-section .section-sub { color: var(--light-muted); }

@media (max-width: 768px) {
  .sticky-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .sticky-label { position: static; }
}

/* ---- HEADER / NAV ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), border-bottom var(--transition);
}
.site-header.scrolled {
  background: var(--bg-dark);
  border-bottom: var(--border-width) solid var(--border);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.main-nav {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 1rem;
}
.nav-left, .nav-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}
.site-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-brand:hover { color: var(--sky); }

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 100%;
  height: 2px;
  background: var(--sky);
  transition: right var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.nav-link:hover, .nav-link.active { color: var(--sky); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-dark);
  border-top: var(--border-width) solid var(--border);
  padding: 1.5rem;
  gap: 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(58, 134, 212, 0.3);
}
.mobile-link:hover { color: var(--sky); }

@media (max-width: 768px) {
  .nav-left, .nav-right, .nav-center { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    justify-content: space-between;
  }
  /* Show brand on mobile */
  .nav-toggle {
    order: 2;
  }
  .main-nav::before {
    content: 'Typpilä Oy';
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    order: 1;
  }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border: var(--border-width) solid currentColor;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  border-radius: var(--radius);
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--light-text);
  box-shadow: 6px 6px 0 var(--bg-dark);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}
.btn-outline-light {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--text-dark);
  box-shadow: 4px 4px 0 rgba(126, 200, 247, 0.4);
}
.btn-outline-light:hover {
  background: var(--text-dark);
  color: var(--bg);
}
.btn-outline-dark {
  background: transparent;
  color: var(--light-text);
  border-color: var(--light-text);
  box-shadow: var(--shadow-light);
}
.btn-outline-dark:hover {
  background: var(--light-text);
  color: var(--light-bg);
}

/* ---- CARDS ---- */
.card {
  border: var(--border-width) solid var(--border);
  box-shadow: var(--shadow);
  padding: 2rem;
  background: transparent;
}
.light-section .card {
  border-color: var(--border-light);
  box-shadow: var(--shadow-light);
  background: #fff;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.light-section .card-title { color: var(--light-text); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
}
.hero-svg {
  width: 100%;
  height: 100%;
}

/* Animated route lines */
.route-line {
  stroke: var(--sky);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}
.rl1  { stroke-dasharray: 400; animation: draw 2.0s 0.1s forwards ease-in-out; }
.rl2  { stroke-dasharray: 200; animation: draw 1.2s 0.5s forwards ease-in-out; }
.rl3  { stroke-dasharray: 400; animation: draw 2.0s 0.9s forwards ease-in-out; }
.rl4  { stroke-dasharray: 250; animation: draw 1.4s 1.5s forwards ease-in-out; }
.rl5  { stroke-dasharray: 400; animation: draw 2.0s 2.0s forwards ease-in-out; }
.rl6  { stroke-dasharray: 500; animation: draw 2.5s 0.3s forwards ease-in-out; }
.rl7  { stroke-dasharray: 600; animation: draw 2.8s 0.6s forwards ease-in-out; }
.rl8  { stroke-dasharray: 400; animation: draw 2.0s 0.8s forwards ease-in-out; }
.rl9  { stroke-dasharray: 300; animation: draw 1.6s 0.2s forwards ease-in-out; }
.rl10 { stroke-dasharray: 150; animation: draw 1.0s 0.6s forwards ease-in-out; }
.rl11 { stroke-dasharray: 400; animation: draw 2.0s 0.9s forwards ease-in-out; }
.rl12 { stroke-dasharray: 500; animation: draw 2.4s 1.4s forwards ease-in-out; }

.route-node {
  fill: var(--sky);
  opacity: 0;
  animation: fadeIn 0.4s 2.5s forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  width: 100%;
}
.hero-headline {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-facts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 200px;
}
.fact-item {
  border: var(--border-width) solid var(--border);
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.fact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: var(--font-body);
}
.fact-value {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--sky);
}

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-facts { flex-direction: row; flex-wrap: wrap; }
  .fact-item { min-width: 140px; flex: 1; }
}

/* ---- INNER HERO (non-index pages) ---- */
.inner-hero {
  background: var(--bg-dark);
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  border-bottom: var(--border-width) solid var(--border);
}
.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}
.page-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* ---- WIZARD ---- */
.wizard-section { background: var(--bg-mid); }
.wizard-box {
  border: var(--border-width) solid var(--border);
  box-shadow: var(--shadow);
  padding: 2.5rem;
}
.wizard-step-header {
  margin-bottom: 1.5rem;
}
.wizard-step-num {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: var(--font-body);
}
.wizard-step-header h3 {
  font-size: 1.3rem;
  margin-top: 0.3rem;
  color: var(--text-dark);
}
.wizard-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.wizard-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  border: 2px solid transparent;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), background var(--transition);
}
.wizard-option:hover {
  border-color: var(--border);
  background: rgba(58, 134, 212, 0.1);
}
.wizard-option input[type="radio"] {
  accent-color: var(--accent);
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.wizard-option span { color: var(--text-dark); font-size: 0.95rem; }
.wizard-option:has(input:checked) {
  border-color: var(--sky);
  background: rgba(126, 200, 247, 0.12);
}
.wizard-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.wizard-error {
  color: #f87171;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  border-left: 3px solid #f87171;
  padding-left: 0.75rem;
}

/* ---- HOW IT WORKS ---- */
.steps-list { display: flex; flex-direction: column; gap: 2rem; }
.step-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  border: var(--border-width) solid var(--border);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.step-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--sky);
  line-height: 1;
  padding-top: 4px;
}
.step-body h3 { margin-bottom: 0.5rem; }

/* ---- WHY ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.why-item {
  border: var(--border-width) solid var(--border-light);
  box-shadow: var(--shadow-light);
  padding: 1.75rem;
  background: #fff;
}
.why-icon {
  width: 48px; height: 48px;
  color: var(--accent);
  margin-bottom: 1rem;
}
.why-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--light-text);
}
.why-item p { font-size: 0.9rem; color: var(--light-muted); }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border: var(--border-width) solid var(--border);
  box-shadow: none;
  margin-bottom: -3px;
}
.faq-item summary {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
}
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  line-height: 1;
  color: var(--sky);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.faq-item a { color: var(--sky); }

/* ---- CONTACT SECTION ---- */
.contact-details {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.95rem;
}
.contact-details p { margin: 0; }
.map-link { display: inline-block; color: var(--accent); font-weight: 600; text-decoration: none; }
.map-link:hover { color: var(--light-text); }

/* ---- FORMS ---- */
.contact-form-box {
  border: var(--border-width) solid var(--border-light);
  box-shadow: var(--shadow-light);
  padding: 2rem;
  background: #fff;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--light-text);
}
.optional { font-weight: 400; text-transform: none; color: var(--light-muted); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--light-text);
  background: var(--light-bg);
  border: 2px solid var(--light-muted);
  border-radius: 0;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 2px 2px 0 var(--accent);
}
.form-privacy {
  margin-bottom: 1.5rem;
}
.checkbox-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--light-text);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- SERVICES PAGE ---- */
.service-block {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: var(--border-width) solid var(--light-bg-alt);
}
.service-block:last-child { border-bottom: none; }
.service-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  padding-top: 4px;
}
.service-body h2 {
  margin-bottom: 1rem;
}
.service-body p {
  margin-bottom: 1rem;
  font-size: 0.975rem;
  color: var(--light-muted);
}
.service-body p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .service-block { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---- CTA SECTION ---- */
.cta-section {
  background: var(--bg-dark);
  border-top: var(--border-width) solid var(--border);
}
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.cta-section h2 { margin-bottom: 0.75rem; }
.cta-section p { color: var(--text-muted); }

/* ---- ABOUT PAGE ---- */
.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.detail-table th,
.detail-table td {
  padding: 0.65rem 1rem;
  border: 1px solid var(--light-bg-alt);
  text-align: left;
  vertical-align: top;
}
.detail-table th {
  background: var(--light-bg-alt);
  font-weight: 700;
  width: 180px;
  color: var(--light-text);
}
.detail-table td { color: var(--light-muted); }
.detail-table td a { color: var(--accent); }

.prose p { margin-bottom: 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 1rem 0 1rem 1.5rem; }
.prose li { margin-bottom: 0.4rem; }
.prose h2 { margin: 2rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose table { margin: 1.5rem 0; }
.independence-statement { border-left: 4px solid var(--accent); padding-left: 1rem; }

/* ---- COOKIE TABLE ---- */
.cookie-table { font-size: 0.85rem; }
.cookie-table th { font-size: 0.8rem; }
.cookie-table code {
  background: var(--light-bg-alt);
  padding: 2px 5px;
  font-size: 0.8rem;
}

/* ---- COMPANY CARD ---- */
.company-card { margin-bottom: 0; }

/* ---- RESULT CARD ---- */
.result-card { margin-bottom: 2rem; }
.result-list { margin: 1rem 0 1rem 0; list-style: none; }
.result-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--light-bg-alt); font-size: 0.95rem; }
.result-list li:last-child { border-bottom: none; }

/* ---- SUCCESS NOTICE ---- */
.success-notice {
  background: #d1fae5;
  border: var(--border-width) solid #059669;
  box-shadow: 4px 4px 0 #059669;
  padding: 1.25rem 1.5rem;
  color: #065f46;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ---- 404 ---- */
.four-oh-four {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 20vw, 12rem);
  line-height: 1;
  color: var(--border);
  opacity: 0.3;
  margin-bottom: 1rem;
  letter-spacing: -0.05em;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg-dark);
  border-top: var(--border-width) solid var(--border);
  padding: 3.5rem 0 2rem;
}
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}
.footer-summary { font-size: 0.875rem; color: var(--text-muted); max-width: 420px; }
.footer-nav { display: flex; gap: 2.5rem; }
.footer-nav-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-weight: 700;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.4rem; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.875rem; }
.footer-nav a:hover { color: var(--sky); }
.footer-legal {
  border-top: 1px solid rgba(58,134,212,0.3);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-legal p { margin-bottom: 0.4rem; }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--sky); }
.footer-copy { margin-top: 0.75rem; color: rgba(155, 184, 219, 0.5); }

.cookie-settings-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
}
.cookie-settings-link:hover { color: var(--sky); }
.inline-link {
  font-size: 0.95rem;
  color: var(--accent);
}

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-nav { flex-wrap: wrap; gap: 1.5rem; }
}

/* ---- COOKIE BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--bg-dark);
  border-top: var(--border-width) solid var(--border);
  box-shadow: 0 -4px 0 var(--accent);
  padding: 1.25rem 1.5rem;
}
.cookie-banner-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 260px; }
.cookie-banner-text strong { display: block; margin-bottom: 0.4rem; color: var(--text-dark); }
.cookie-banner-text p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.cookie-banner-text a { color: var(--sky); }
.cookie-banner-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cookie-banner-actions .btn { font-size: 0.8rem; padding: 0.6rem 1.2rem; }

.cookie-prefs-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-dark);
  border-top: var(--border-width) solid var(--border);
  box-shadow: 0 -4px 0 var(--sky);
  padding: 2rem 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
}
.cookie-prefs-inner {
  max-width: 600px;
  margin: 0 auto;
}
.cookie-prefs-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}
.cookie-pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(58,134,212,0.3);
}
.cookie-pref-info strong { display: block; margin-bottom: 0.25rem; color: var(--text-dark); font-size: 0.95rem; }
.cookie-pref-info p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.cookie-always-on {
  font-size: 0.75rem;
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  font-weight: 700;
  border: 1px solid var(--sky);
  padding: 3px 8px;
}
.cookie-toggle { position: relative; display: flex; align-items: center; cursor: pointer; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle-track {
  display: block;
  width: 48px; height: 26px;
  background: var(--light-muted);
  border: 2px solid var(--border);
  position: relative;
  transition: background var(--transition);
}
.cookie-toggle-track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  transition: transform var(--transition);
}
.cookie-toggle input:checked + .cookie-toggle-track { background: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle-track::after { transform: translateX(22px); }
.cookie-prefs-actions { margin-top: 1.5rem; }

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
