/* ============================================================
   QRATE. — Luxury Post-Hype Editorial Design System
   Visual Identity: European Editorial Minimalism + Warm Organic Earth
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300..700;1,6..72,300..700&family=Space+Grotesk:wght@400;500;600;700&family=Geist:wght@300;400;500;600;700&family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
  /* Qrate Brand System */
  --bg: #f7f7f5;
  --surface-lowest: #ffffff;
  --surface-low: #f2f2ef;
  --surface: #ecece7;
  --surface-high: #e2e5e1;
  --surface-highest: #d6d9d4;
  --surface-variant: #e9eaeb;
  --surface-bright: #ffffff;

  /* Neutrals & Text */
  --on-surface: #09131f;
  --on-surface-variant: #4b5058;
  --primary: #09131f;
  --primary-fixed: #09131f;
  --primary-container: #f7f7f5;
  --inverse-surface: #09131f;
  --inverse-on-surface: #f7f7f5;

  /* Brand Colours */
  --brand-navy: #09131f;
  --brand-orange: #ff6b35;
  --brand-yellow: #ffdc50;
  --brand-slate: #4b5058;
  --brand-white: #f7f7f5;

  --kraft: #ff6b35;
  --kraft-dark: #e55d2d;
  --forest: #09131f;
  --forest-dark: #071018;
  --rust: #ff6b35;
  --rust-hover: #e85f2e;
  --rust-dark: #d45426;
  --secondary: #ff6b35;
  --secondary-container: #fff1e8;
  --sage: #4b5058;
  --sage-light: #6d7681;
  --tertiary-container: #fff7d8;
  --ochre: #ffdc50;

  /* Outlines & Borders */
  --outline: #a2a9b0;
  --outline-variant: #d9dbd7;
  --border-subtle: rgba(9, 19, 31, 0.08);

  /* Feedback */
  --success: #1b683b;
  --warning: #b45309;
  --error: #b91c1c;
  --info: #0369a1;

  /* Typography */
  --font-serif: 'Newsreader', Georgia, serif;
  --font-display: 'Newsreader', 'Space Grotesk', Georgia, serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 96px;

  /* Layout */
  --container-max: 1440px;
  --gutter-desktop: 64px;
  --gutter-tablet: 32px;
  --gutter-mobile: 16px;

  /* Shapes */
  --radius-none: 0px;
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  background-color: var(--bg);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.headline-md {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.3;
}

.headline-sm {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 600;
  line-height: 1.4;
}

.body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

.body-base {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

.label-md {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.label-sm {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.font-mono {
  font-family: var(--font-mono);
  font-size: 14px;
}

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

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

/* Material Symbols Icon helper */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* Focus Rings */
.focus-ring:focus-visible,
:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

/* Containers */
.grid-container,
.wrap {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter-desktop);
  padding-right: var(--gutter-desktop);
}

@media (max-width: 1024px) {
  .grid-container,
  .wrap {
    padding-left: var(--gutter-tablet);
    padding-right: var(--gutter-tablet);
  }
}

@media (max-width: 640px) {
  .grid-container,
  .wrap {
    padding-left: var(--gutter-mobile);
    padding-right: var(--gutter-mobile);
  }
}

/* Header & TopNavBar — Clean Editorial Brand Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-logo:hover,
.brand-logo:focus-visible {
  opacity: 0.92;
  transform: translateY(-1px);
}

.brand-logo-img,
.brand-logo-svg {
  display: block;
  height: 30px;
  width: auto;
  max-width: 180px;
}

.brand-logo-svg .brand-mark {
  fill: var(--brand-orange);
  transition: fill 0.2s ease;
}

.brand-logo-svg .brand-wordmark {
  fill: #ffffff;
  transition: fill 0.2s ease;
}

.header-dynamic .brand-logo-svg .brand-mark,
.header-dynamic.scrolled .brand-logo-svg .brand-mark,
body.orange-brand-mode .brand-logo-svg .brand-mark {
  fill: var(--brand-orange) !important;
}

#topNav,
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 var(--gutter-desktop);
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

@media (max-width: 1024px) {
  #topNav,
  .top-nav {
    padding: 0 var(--gutter-tablet);
  }
}

@media (max-width: 640px) {
  #topNav,
  .top-nav {
    padding: 0 var(--gutter-mobile);
  }
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-fixed);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  transition: color var(--transition-fast);
  padding: 4px 0;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-fixed);
}

.nav-link.active {
  color: var(--primary-fixed);
  border-bottom: 2px solid var(--rust);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Mobile Nav Toggle & Drawer */
.mobile-nav-drawer {
  display: none;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--on-surface);
  cursor: pointer;
  padding: 6px;
}

.mobile-nav-toggle span {
  display: block;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  transform-origin: center;
}

.mobile-nav-toggle.open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.mobile-nav-toggle.open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .mobile-nav-drawer {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(9, 19, 31, 0.98) 0%, rgba(9, 19, 31, 0.96) 45%, rgba(255, 107, 53, 0.88) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-xl) var(--gutter-mobile);
    flex-direction: column;
    gap: var(--space-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    z-index: 99;
    overflow-y: auto;
  }
  .mobile-nav-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-nav-drawer .nav-link {
    font-size: 20px;
    font-family: var(--font-serif);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transition: color 0.2s ease, opacity 0.2s ease;
  }
  .mobile-nav-drawer .nav-link:hover,
  .mobile-nav-drawer .nav-link.active {
    color: #ffffff;
    opacity: 1;
  }
  .mobile-nav-drawer .btn-pill-dark {
    background-color: #ffffff !important;
    color: #1a1714 !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14) !important;
    text-align: center;
    justify-content: center;
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--brand-orange);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border: 1px solid var(--brand-orange);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(9, 19, 31, 0.18);
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-orange) 50%, var(--brand-yellow) 50%, var(--brand-yellow) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.25);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background-color: #ffffff;
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-none);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.btn-secondary:hover {
  background-color: var(--surface-low);
  border-color: var(--outline);
}

.btn-tertiary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: transparent;
  border: none;
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.btn-tertiary::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-tertiary:hover {
  color: var(--rust);
}

.btn-tertiary:hover::after {
  opacity: 1;
}

/* Eyebrows & Section Labels */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background-color: transparent;
  border: none;
  color: var(--on-surface-variant);
  border-radius: var(--radius-none);
}

.chip-sage {
  background-color: transparent;
  color: var(--sage);
  border: none;
}

.chip-rust {
  background-color: transparent;
  color: var(--secondary);
  border: none;
}

/* Card Hover Lift */
.card-hover {
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border-color: var(--outline);
}

/* Forms & Inputs */
.input-field,
.form-input {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-none);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--on-surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-field:focus,
.form-input:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 1px var(--rust);
}

.input-field::placeholder,
.form-input::placeholder {
  color: var(--on-surface-variant);
  opacity: 0.7;
}

label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--on-surface-variant);
  margin-bottom: var(--space-xs);
}

/* Accordion */
.accordion-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-toggle,
.accordion-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  background: transparent;
  border: none;
  color: var(--on-surface);
  text-align: left;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-toggle:hover,
.accordion-toggle:hover {
  color: var(--primary-fixed);
}

.faq-toggle .material-symbols-outlined,
.accordion-toggle .material-symbols-outlined {
  transition: transform var(--transition-smooth);
}

.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-smooth);
}

.accordion-content[data-open="true"],
.accordion-content.open {
  grid-template-rows: 1fr;
}

.accordion-inner {
  overflow: hidden;
}

.accordion-inner p {
  padding-bottom: var(--space-lg);
  color: var(--on-surface-variant);
  font-size: 16px;
  line-height: 1.6;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(20, 23, 22, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
  padding: var(--space-lg);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background-color: #ffffff;
  border: 1px solid var(--outline-variant);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-none);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-body {
  padding: var(--space-xl);
  overflow-y: auto;
  color: var(--on-surface-variant);
}

.modal-body h4 {
  color: var(--on-surface);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  font-size: 18px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--on-surface-variant);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: var(--on-surface);
}

#formStatus {
  margin-top: 1rem;
}

.form-status-panel {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(160, 162, 157, 0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 243, 239, 0.96));
  box-shadow: 0 14px 32px rgba(15, 19, 22, 0.06);
  animation: form-status-in 0.26s ease;
}

.form-status-panel.success {
  border-color: rgba(51, 120, 93, 0.28);
  background: linear-gradient(135deg, rgba(64, 120, 96, 0.08), rgba(255, 255, 255, 0.98));
}

.form-status-panel.error {
  border-color: rgba(176, 71, 51, 0.25);
  background: linear-gradient(135deg, rgba(176, 71, 51, 0.06), rgba(255, 255, 255, 0.98));
}

.form-status-icon {
  width: 2.2rem;
  height: 2.2rem;
  min-width: 2.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-navy));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(28, 44, 36, 0.16);
}

.error-icon {
  background: linear-gradient(135deg, var(--brand-orange), #c64f38);
}

.form-status-copy {
  flex: 1;
  min-width: 0;
}

.form-status-copy strong {
  display: block;
  margin: 0 0 0.25rem;
  color: var(--on-surface);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.form-status-copy p {
  margin: 0;
  color: var(--on-surface-variant);
  line-height: 1.55;
  font-size: 0.95rem;
}

.form-status-copy a {
  color: var(--brand-orange);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

@keyframes form-status-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer (Matching Golden Kraft Hero) */
footer.institutional-footer {
  width: 100%;
  background: linear-gradient(135deg,
    var(--brand-navy) 0%,
    var(--brand-navy) 35%,
    var(--brand-orange) 65%,
    var(--brand-yellow) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--space-5xl) var(--gutter-desktop);
  margin-top: auto;
  color: #ffffff;
  position: relative;
}

footer.institutional-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.3;
  pointer-events: none;
}

footer.institutional-footer h4,
footer.institutional-footer .label-sm,
footer.institutional-footer .font-serif {
  color: #ffffff !important;
}

footer.institutional-footer a,
footer.institutional-footer p,
footer.institutional-footer li,
footer.institutional-footer span {
  color: rgba(255, 255, 255, 0.92) !important;
}

footer.institutional-footer a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  footer.institutional-footer {
    padding: var(--space-4xl) var(--gutter-tablet);
  }
}

@media (max-width: 640px) {
  footer.institutional-footer {
    padding: var(--space-3xl) var(--gutter-mobile);
  }
}

/* Progress bar */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-yellow));
  z-index: 200;
  transition: width 0.1s linear;
}

/* Typography Serif Utilities */
.font-serif {
  font-family: var(--font-serif);
}

.display-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.statement-serif {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.8vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 400;
}

/* Luxury Qrate Hero Canvas with subtle motion */
.hero-kraft {
  background: radial-gradient(circle at 85% 25%, rgba(255, 107, 53, 0.32) 0%, transparent 55%),
              radial-gradient(circle at 15% 75%, rgba(255, 220, 80, 0.16) 0%, transparent 45%),
              linear-gradient(145deg, #09131f 0%, #0d1b2a 45%, #08111c 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .hero-kraft {
    padding-top: 5.5rem;
    padding-bottom: 1.25rem;
  }
}

@media (max-width: 640px) {
  .hero-kraft {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    padding-top: 5rem;
    padding-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-kraft .max-w-2xl {
    max-width: 100%;
  }

  .hero-kraft h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
  }

  .hero-kraft p {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-kraft .btn-consultation-flip {
    min-width: 100%;
    width: 100%;
  }
}

.hero-kraft::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 2;
}

.hero-kraft::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--brand-navy) 0%, var(--brand-navy) 100%);
  transform: translateX(-101%);
  z-index: 3;
  pointer-events: none;
}

.hero-kraft.is-animated::after {
  animation: hero-swipe-dark 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.12s;
}

.hero-kraft.is-animated::before {
  animation: hero-grid-settle 1.5s ease-out forwards;
}

@keyframes hero-swipe-dark {
  0% {
    transform: translateX(-101%);
    opacity: 1;
  }
  35% {
    transform: translateX(-28%);
    opacity: 1;
  }
  100% {
    transform: translateX(0%);
    opacity: 1;
  }
}

@keyframes hero-grid-settle {
  0% {
    transform: translateX(10px) scale(1.02);
    opacity: 0.35;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 0.12;
  }
}

/* Dynamic Navbar Scroll Transition for Hero */
.header-dynamic {
  background-color: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-dynamic .brand-logo {
  color: #ffffff;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-dynamic .nav-center-links a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  transition: color 0.2s ease;
}

.header-dynamic .nav-center-links a:hover {
  color: #ffffff;
}

.header-dynamic .action-btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.header-dynamic .mobile-nav-toggle span {
  background-color: #ffffff;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled State: Qrate navy/orange brand navbar */
.header-dynamic.scrolled {
  background: linear-gradient(90deg, rgba(9, 19, 31, 0.96) 0%, rgba(9, 19, 31, 0.96) 40%, rgba(255, 107, 53, 0.94) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(9, 19, 31, 0.18);
}

.header-dynamic.scrolled .brand-logo {
  color: #ffffff !important;
}

.header-dynamic.scrolled .nav-center-links a {
  color: rgba(255, 255, 255, 0.9) !important;
}

.header-dynamic.scrolled .nav-center-links a:hover {
  color: #ffffff !important;
}

.header-dynamic.scrolled .action-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header-dynamic .nav-center-links a.active,
.header-dynamic.scrolled .nav-center-links a.active {
  color: #ffffff !important;
  border-bottom: 2px solid var(--brand-yellow) !important;
  padding-bottom: 2px;
}

.header-dynamic.scrolled .mobile-nav-toggle span {
  background-color: #ffffff !important;
}

html {
  scrollbar-color: var(--brand-orange) var(--brand-white);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--brand-orange) var(--brand-white);
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: var(--brand-white);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-orange) 0%, var(--brand-yellow) 100%);
  border-radius: 999px;
  border: 2px solid var(--brand-white);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-orange) 100%);
}

/* Animated Flip Nav Action Button (Start Project -> Good choice) */
.nav-action-flip {
  outline: 0;
  border: 1px solid rgba(255, 255, 255, 0.95);
  display: inline-flex;
  flex-direction: column;
  height: 38px;
  min-width: 142px;
  max-width: 142px;
  border-radius: 5px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  vertical-align: middle;
  background-color: #ffffff;
  user-select: none;
  padding: 0 !important;
}

.nav-action-flip .flip-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  transform: translateY(0px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-action-flip .flip-slide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  width: 100%;
  box-sizing: border-box;
}

.nav-action-flip .flip-default {
  background: var(--brand-orange);
  color: #ffffff;
}

.nav-action-flip.is-animated .flip-default,
.btn-consultation-flip.is-animated .flip-default {
  animation: cta-slide-brand 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

.nav-action-flip.is-animated .flip-default .flip-label,
.btn-consultation-flip.is-animated .flip-default .flip-label {
  color: #ffffff;
}

.nav-action-flip .flip-default .flip-label {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

@keyframes cta-slide-brand {
  0% {
    background: var(--brand-orange);
  }
  35% {
    background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-yellow) 100%);
  }
  100% {
    background: var(--brand-orange);
  }
}

.nav-action-flip .flip-hover {
  background: linear-gradient(135deg, var(--brand-yellow) 0%, var(--brand-orange) 55%, var(--brand-navy) 100%);
  color: #1a140b;
}

.nav-action-flip .flip-hover .flip-label {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  color: #1a140b;
  letter-spacing: 0.01em;
}

.nav-action-flip svg {
  flex-shrink: 0;
  display: block;
}

.nav-action-flip:hover {
  box-shadow: 0 6px 20px rgba(164, 137, 106, 0.4);
}

.nav-action-flip:hover .flip-inner {
  transform: translateY(-38px);
}

.nav-action-flip:active {
  transform: scale(0.96);
}

/* Universal Dual-Slide Flip Button Component */
.btn-flip {
  outline: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: inline-flex;
  flex-direction: column;
  height: 48px;
  min-height: 48px;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  vertical-align: middle;
  background-color: #ffffff;
  user-select: none;
  padding: 0 !important;
}

.btn-flip.btn-flip-pill {
  border-radius: 9999px;
}

.btn-flip.btn-flip-primary {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(138, 110, 80, 0.22);
}

.btn-flip.btn-flip-dark {
  border-color: rgba(0, 0, 0, 0.2);
}

.btn-flip .flip-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  transform: translateY(0px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-flip .flip-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  min-height: 48px;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
}

/* 1. Default Slide States */
.btn-flip.btn-flip-primary .flip-default {
  background: var(--brand-orange);
  color: #ffffff;
}

.btn-flip.btn-flip-primary .flip-default .flip-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.btn-flip.btn-flip-secondary .flip-default {
  background: var(--brand-orange);
  color: #ffffff;
}

.btn-flip.btn-flip-secondary .flip-default .flip-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.btn-flip.btn-flip-dark .flip-default {
  background: var(--brand-orange);
  color: #ffffff;
}

.btn-flip.btn-flip-dark .flip-default .flip-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

/* 2. Hover Slide: Brand Accent Gradient */
.btn-flip .flip-hover {
  background: linear-gradient(135deg, var(--brand-yellow) 0%, var(--brand-orange) 55%, var(--brand-navy) 100%);
  color: var(--brand-navy);
}

.btn-flip .flip-hover .flip-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #1a140b;
  letter-spacing: 0.01em;
}

.btn-flip svg {
  flex-shrink: 0;
  display: block;
}

/* Hover & Active Actions */
.btn-flip:hover {
  box-shadow: 0 8px 24px rgba(138, 110, 80, 0.35);
  transform: translateY(-1px);
}

.btn-flip:hover .flip-inner {
  transform: translateY(-48px);
}

.btn-flip:active {
  transform: scale(0.97);
}

/* Animated Flip Consultation Button */
.btn-consultation-flip {
  outline: 0;
  border: 1px solid rgba(255, 255, 255, 0.95);
  display: inline-flex;
  flex-direction: column;
  height: 52px;
  min-width: 252px;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  vertical-align: middle;
  background-color: #ffffff;
  user-select: none;
}

.btn-consultation-flip .flip-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  transform: translateY(0px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-consultation-flip .flip-slide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 52px;
  min-height: 52px;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

/* 1. Default Slide: Crisp White */
.btn-consultation-flip .flip-default {
  background: var(--brand-orange);
  color: #ffffff;
}

.btn-consultation-flip .flip-default .flip-label {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* 2. Hover Slide: Brand Accent Gradient with high contrast */
.btn-consultation-flip .flip-hover {
  background: linear-gradient(135deg, var(--brand-yellow) 0%, var(--brand-orange) 55%, var(--brand-navy) 100%);
  color: #1a140b;
}

.btn-consultation-flip .flip-hover .flip-label {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  color: #1a140b;
  letter-spacing: 0.01em;
}

.btn-consultation-flip svg {
  flex-shrink: 0;
  display: block;
}

/* Hover Actions */
.btn-consultation-flip:hover {
  box-shadow: 0 10px 28px rgba(164, 137, 106, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.btn-consultation-flip:hover .flip-inner {
  transform: translateY(-52px);
}

/* Active Click Action */
.btn-consultation-flip:active {
  transform: scale(0.96);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Reference Mockup White Button */
.btn-reference-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brand-orange);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 4px;
  border: 1px solid var(--brand-orange);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.btn-reference-white:hover {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #ff8c42 55%, var(--brand-yellow) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25);
  color: #ffffff;
}

/* Partner Wordmarks in Bottom Left */
.partner-wordmark-item {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.partner-wordmark-item:hover {
  opacity: 1;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Golden Interactive Feature Stage & Tab Workflow */
.forest-stage {
  background: radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.22) 0%, transparent 60%),
              linear-gradient(145deg, #09131f 0%, #112033 60%, #0d1b2a 100%);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(9, 19, 31, 0.12);
  position: relative;
  overflow: hidden;
}

.forest-tab-btn {
  text-align: left;
  padding: 18px 22px;
  border-radius: 10px;
  border-left: 3px solid transparent;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.forest-tab-btn:hover {
  background: rgba(164, 137, 106, 0.08);
}

.forest-tab-btn.active {
  border-left-color: var(--brand-orange);
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.12), 0 0 0 1px rgba(255, 107, 53, 0.12);
}

.forest-tab-btn .phase-tag {
  transition: color 0.3s ease;
}

.forest-tab-btn.active .phase-tag {
  color: var(--brand-orange) !important;
}

.stage-slide {
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
}

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

/* Pill Buttons */
.btn-pill-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-orange);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 9999px;
  border: 1px solid var(--brand-orange);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.btn-pill-white:hover {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #ff8c42 55%, var(--brand-yellow) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.25);
  color: #ffffff;
}

.btn-pill-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-orange);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 9999px;
  border: 1px solid var(--brand-orange);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-pill-dark:hover {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #ff8c42 55%, var(--brand-yellow) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.25);
  color: #ffffff;
}

.btn-pill-rust {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-orange);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 9999px;
  border: 1px solid var(--brand-orange);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(9, 19, 31, 0.18);
}

.btn-pill-rust:hover {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #ff8c42 55%, var(--brand-yellow) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.25);
  color: #ffffff;
}

/* Comparison Spec Matrix */
.spec-matrix-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 20px 0;
  border-bottom: 1px solid var(--outline-variant);
  gap: 24px;
}

@media (max-width: 768px) {
  .spec-matrix-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Integration Tile */
.integration-tile {
  background-color: #ffffff;
  border: 1px solid var(--outline-variant);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 6px;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.integration-tile:hover {
  border-color: var(--rust);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Pull-Quote Testimonial */
.pull-quote-box {
  background-color: #ffffff;
  border: 1px solid var(--outline-variant);
  padding: clamp(32px, 5vw, 64px);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04);
  position: relative;
}

/* Horizontal Logo Marquee / Ticker (Full Color) */
.logo-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: logo-scroll 28s linear infinite;
}

.logo-marquee-track:hover {
  animation-play-state: paused;
}

.logo-marquee-item {
  flex-shrink: 0;
  width: 210px;
  height: 110px;
  background-color: #ffffff;
  border: 1px solid var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-none);
}

.logo-marquee-item:hover {
  border-color: var(--rust);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.logo-marquee-img {
  max-height: 60px;
  max-width: 90%;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
  transition: transform var(--transition-fast);
}

.logo-marquee-item:hover .logo-marquee-img {
  transform: scale(1.06);
}

@keyframes logo-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 10px));
  }
}

/* Monogram Avatars */
.avatar-monogram {
  width: 48px;
  height: 48px;
  background-color: var(--surface-low);
  border: 1px solid var(--outline-variant);
  color: var(--primary-fixed);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-none);
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.card-hover:hover .avatar-monogram {
  border-color: var(--rust);
  color: #ffffff;
  background-color: var(--rust);
}

/* Tool Pill */
.tool-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background-color: #ffffff;
  border: 1px solid var(--outline-variant);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--on-surface-variant);
  transition: border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.tool-pill:hover {
  border-color: var(--rust);
  color: var(--primary-fixed);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   Cookie & Privacy Consent Banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 440px;
  width: calc(100% - 48px);
  background: #ffffff;
  border: 1px solid rgba(138, 110, 80, 0.35);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(255, 107, 53, 0.28);
  padding: 22px 24px;
  z-index: 99999;
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--primary-fixed);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner-text {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--on-surface-variant);
  margin-bottom: 16px;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cookie-btn-accept {
  background: var(--brand-orange);
  color: #ffffff;
  border: 1px solid var(--brand-orange);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.18);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-btn-accept:hover {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(9, 19, 31, 0.18);
}

.cookie-btn-essential {
  background: #ffffff;
  color: #1a1714;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-btn-essential:hover {
  background: #f7f5ef;
  border-color: rgba(0, 0, 0, 0.25);
}

.cookie-policy-link {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--brand-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: auto;
  transition: color 0.2s ease;
}

.cookie-policy-link:hover {
  color: var(--brand-navy);
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    right: 16px;
    left: 16px;
    width: auto;
    padding: 18px 20px;
  }
}

/* ============================================================
   Universal Responsive & Mobile Device Enhancements
   ============================================================ */

/* 1. Fluid Mobile Layout & Container Safety */
@media (max-width: 768px) {
  :root {
    --gutter-desktop: 20px;
    --gutter-tablet: 16px;
    --gutter-mobile: 16px;
  }

  /* Prevent text collision and overflow */
  h1, h2, h3 {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .statement-serif {
    font-size: clamp(22px, 5.5vw, 32px);
    line-height: 1.3;
  }

  /* Hero adjustments for small mobile viewports */
  .hero-kraft {
    min-height: auto;
    padding-top: 100px !important;
    padding-bottom: 48px !important;
  }

  .btn-consultation-flip {
    min-width: 0;
    width: 100%;
    max-width: 320px;
    height: 48px;
    min-height: 48px;
  }

  .btn-consultation-flip .flip-slide {
    height: 48px;
    min-height: 48px;
    padding: 0 18px;
  }

  .btn-consultation-flip:hover .flip-inner {
    transform: translateY(-48px);
  }

  /* Interactive Feature Stage Stack on Mobile */
  .forest-tab-btn {
    padding: 14px 16px;
  }

  .forest-tab-btn p {
    font-size: 13px;
  }

  /* Touch Scroll for Tables & Horizontal Data */
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }

  /* Modals on Mobile */
  .modal-box {
    max-height: 85vh;
    width: 94%;
    padding: 24px 20px;
    margin: 16px auto;
  }

  /* Marquee sizing on mobile */
  .logo-marquee-item {
    width: 160px;
    height: 85px;
    padding: 12px 16px;
  }

  .logo-marquee-img {
    max-height: 45px;
  }
}

/* 2. Extra Small Phones (320px - 380px) */
@media (max-width: 380px) {
  .hero-kraft h1 {
    font-size: 2.25rem !important;
    line-height: 1.15 !important;
  }

  .btn-flip .flip-slide {
    padding: 0 16px;
    font-size: 13px;
  }

  .partner-wordmark-item span {
    font-size: 1rem !important;
  }
}

/* 3. High-Density Retina & Safe Area Insets */
@supports (padding: max(0px)) {
  .header-dynamic {
    padding-left: max(var(--gutter-mobile), env(safe-area-inset-left));
    padding-right: max(var(--gutter-mobile), env(safe-area-inset-right));
  }

  .institutional-footer {
    padding-bottom: max(3rem, env(safe-area-inset-bottom));
  }
}
