/* ==========================================================================
   Eccentric Systems - Design System & Master Stylesheet
   Typography: Inter only (400, 500, 600, 700)
   Color Ratio: 60% Cream (#F0EDE8), 30% Deep Ink (#1C1C17), 10% Teal (#2DC4B0)
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  --color-cream: #F0EDE8;
  --color-ink: #1C1C17;
  --color-teal: #2DC4B0;
  --color-teal-hover: #26a899;
  --color-faq-bg: #E8E4DE;
  --color-alt-cream: #E8E4DE;
  --color-ink-75: rgba(28, 28, 23, 0.75);
  --color-ink-50: rgba(28, 28, 23, 0.50);
  --color-ink-40: rgba(28, 28, 23, 0.40);
  --color-ink-30: rgba(28, 28, 23, 0.30);
  --color-ink-10: rgba(28, 28, 23, 0.10);
  --color-ink-08: rgba(28, 28, 23, 0.08);
  --color-ink-07: rgba(28, 28, 23, 0.07);
  --color-cream-90: rgba(240, 237, 232, 0.90);
  --color-cream-75: rgba(240, 237, 232, 0.75);
  --color-cream-40: rgba(240, 237, 232, 0.40);
  --color-cream-30: rgba(240, 237, 232, 0.30);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --line-height-body: 1.75;
  --container-max-width: 1200px;
  --content-max-width: 800px;
  --narrow-max-width: 760px;
  --legal-max-width: 700px;
  --nav-height: 64px;
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  background-color: var(--color-cream);
  color: var(--color-ink);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: 18px;
  line-height: var(--line-height-body);
  color: var(--color-ink-75);
  background-color: var(--color-cream);
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--color-ink);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 24px;
}

h1 {
  font-size: 60px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 42px;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 16px;
}

p {
  font-size: 18px;
  line-height: var(--line-height-body);
  color: var(--color-ink-75);
  margin-bottom: 24px;
  max-width: 680px;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-teal-hover);
}

/* --- Labels --- */
.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

/* --- Hero Highlight Effect --- */
.hero-highlight {
  position: relative;
  display: inline;
}

.hero-highlight::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -4px;
  right: -4px;
  height: 40%;
  background: #2DC4B0;
  opacity: 0.3;
  z-index: -1;
  transform: rotate(-1deg);
  border-radius: 2px;
}

/* --- Buttons & CTAs --- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  min-height: 48px;
  min-width: 44px;
  padding: 12px 28px;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  line-height: 1.2;
}

.cta-primary {
  background-color: var(--color-teal);
  color: var(--color-ink);
}

.cta-primary:hover {
  background-color: var(--color-teal-hover);
  color: var(--color-ink);
  transform: translateY(-1px);
}

.cta-secondary {
  background-color: transparent;
  color: var(--color-teal);
  padding: 12px 16px;
}

.cta-secondary:hover {
  color: var(--color-teal-hover);
}

.cta-secondary .arrow {
  margin-left: 6px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.cta-secondary:hover .arrow {
  transform: translateX(3px);
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

/* --- Glassmorphic Panels --- */
.glass {
  background: rgba(240, 237, 232, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 24px rgba(28, 28, 23, 0.08);
  position: relative;
  border-radius: 16px;
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}

.glass-card,
.glass-dark {
  background: rgba(240, 237, 232, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  border-radius: 16px;
  padding: 40px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* S3 Dark Section CTAs */
.s3-card .cta-link,
.glass-card .cta-link,
.card-cta,
.dark-section .card-cta {
  color: #2DC4B0;
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid rgba(45, 196, 176, 0.4);
  padding-bottom: 2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  min-height: 44px;
  line-height: 1.2;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.s3-card .cta-link:hover,
.glass-card .cta-link:hover,
.card-cta:hover,
.dark-section .card-cta:hover {
  border-bottom-color: #2DC4B0;
  color: #ffffff;
}

.glass-card:hover,
.dark-section .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* --- Scroll Animations --- */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* --- Navigation --- */
header[role="banner"] {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.nav {
  height: var(--nav-height);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: var(--color-cream);
  box-shadow: 0 2px 16px rgba(28, 28, 23, 0.05);
}

.nav-wordmark {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-ink);
  text-transform: uppercase;
  text-decoration: none;
}

.nav-wordmark:hover {
  color: var(--color-ink);
  opacity: 0.8;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 9999px;
  background-color: var(--color-teal);
  color: var(--color-ink);
  text-decoration: none;
  min-height: 40px;
  min-width: 44px;
  transition: background-color 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--color-teal-hover);
  color: var(--color-ink);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 60px 60px;
}

.hero picture,
.hero-img,
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}

.hero-content,
.hero-text {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 48px;
  margin-left: 8%;
}

.hero-content h1 {
  margin-bottom: 20px;
}

.hero-content .subline,
.hero-subline {
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-ink-75);
  margin-bottom: 0;
  max-width: 600px;
}

/* Service Page Hero Variant & Gradient Overlay */
.hero-service,
.hero-investment {
  padding: 100px 60px 60px;
}

.hero-service::after,
.hero-investment::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(240, 237, 232, 0.88) 0%,
    rgba(240, 237, 232, 0.55) 55%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-service .hero-content,
.hero-investment .hero-content {
  position: relative;
  z-index: 2;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.hero-service .hero-content::before,
.hero-investment .hero-content::before {
  display: none;
}

/* --- Background Letterforms & Number Watermarks --- */
.bg-letterform,
.bg-number,
.s2-section::before,
.s3-section::before,
.dark-section::before,
.s4-section::before,
.about-section::before {
  white-space: nowrap;
  overflow: hidden;
  font-size: clamp(80px, 14vw, 220px);
  pointer-events: none;
  user-select: none;
  position: absolute;
  z-index: 0;
}

/* --- Section Layouts & Rhythm --- */
.section,
.s2-section,
.s3-section,
.dark-section,
.s4-section,
.about-section,
.faq-section,
.numbered-section,
.form-section,
.legal-page,
.notfound-page {
  padding: 120px 5% 120px;
}

.section-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* S2 What We Do */
.s2-section {
  position: relative;
  background-color: var(--color-cream);
  overflow: hidden;
}

.s2-section::before {
  content: 'SYSTEM';
  font-family: var(--font-family);
  font-weight: 700;
  color: #2DC4B0;
  opacity: 0.04;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.s2-grid {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 60px;
  max-width: var(--container-max-width);
  margin: 0 auto;
  align-items: start;
  position: relative;
  z-index: 1;
}

.s2-left {
  max-width: 480px;
}

.s2-left p {
  margin-bottom: 32px;
  font-size: 18px;
  line-height: 1.75;
}

.s2-right {
  display: flex;
  flex-direction: column;
}

.outcome-card {
  position: relative;
  overflow: hidden;
  background: #F0EDE8;
  border: 1px solid #D8D4CE;
  border-top: 3px solid #2DC4B0;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(28, 28, 23, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.outcome-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(28, 28, 23, 0.08);
}

.outcome-card:last-child {
  margin-bottom: 0;
}

.card-number {
  position: absolute;
  top: 10px;
  right: 20px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: clamp(80px, 14vw, 160px);
  line-height: 1;
  color: #2DC4B0;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

.outcome-card h3,
.outcome-card ul {
  position: relative;
  z-index: 1;
}

.outcome-card h3 {
  font-weight: 600;
  font-size: 20px;
  color: #1C1C17;
  margin-bottom: 16px;
}

.outcome-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.outcome-card ul li {
  font-size: 16px;
  color: rgba(28, 28, 23, 0.75);
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.outcome-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: #2DC4B0;
  border-radius: 50%;
  transform: translateY(-50%);
}

/* S3 Dark Section: Who This Is For */
.s3-section,
.dark-section {
  position: relative;
  background-color: var(--color-ink);
  color: var(--color-cream);
  overflow: hidden;
}

.s3-section::before,
.dark-section::before {
  content: 'GROWTH';
  font-family: var(--font-family);
  font-weight: 700;
  color: #F0EDE8;
  opacity: 0.03;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.dark-section .section-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.dark-section h2 {
  color: var(--color-cream);
}

.dark-section p {
  color: var(--color-cream-75);
}

.cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}

.dark-section .card h3 {
  color: var(--color-cream);
}

/* S4 About Section */
.s4-section,
.about-section {
  position: relative;
  background-color: var(--color-cream);
  overflow: hidden;
}

.s4-section::before,
.about-section::before {
  content: 'ECCENTRIC';
  font-family: var(--font-family);
  font-weight: 700;
  color: #1C1C17;
  opacity: 0.04;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
  position: relative;
  z-index: 1;
}

.founders {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.founder-card {
  padding: 28px 32px;
  border-radius: 14px;
}

.founder-card h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.founder-card p {
  font-size: 15px;
  color: var(--color-ink-50);
  margin-bottom: 16px;
}

.founder-card a {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-teal);
}

/* S5 FAQ Section (Two-Column Layout & #E8E4DE Background) */
.faq-section {
  background-color: var(--color-faq-bg);
  position: relative;
  z-index: 1;
}

.faq-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

.faq-label-column {
  position: sticky;
  top: 120px;
}

.faq-label-column h2 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 38px;
  color: #1C1C17;
  margin-bottom: 0;
}

.faq-label-column::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #2DC4B0;
  margin-top: 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--color-ink-08);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 18px;
  color: #1C1C17;
  margin-bottom: 12px;
}

.faq-item p {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-ink-75);
  margin-bottom: 0;
  max-width: 680px;
}

/* Numbered Section (Service Page) */
.numbered-section {
  position: relative;
  background-color: var(--color-cream);
  overflow: hidden;
}

.block-02 {
  background: linear-gradient(180deg, rgba(45, 196, 176, 0.06) 0%, rgba(45, 196, 176, 0.02) 100%);
}

.numbered-section .section-container {
  position: relative;
  z-index: 2;
  max-width: var(--narrow-max-width);
  margin: 0 auto;
}

.bg-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: clamp(80px, 14vw, 220px);
  line-height: 1;
  color: #2DC4B0;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.numbered-section p {
  margin-bottom: 36px;
}

/* --- Multi-Step Interactive Form Section --- */
.form-section {
  background-color: var(--color-cream);
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.form-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-ink-10);
  transition: all 0.3s ease;
}

.progress-dot.active {
  background-color: var(--color-teal);
  transform: scale(1.3);
}

.progress-dot.completed {
  background-color: var(--color-teal);
  opacity: 0.6;
}

.form-step {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.form-nav-back {
  background: none;
  border: none;
  color: var(--color-ink-50);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.form-nav-back:hover {
  color: var(--color-ink);
}

.form-question {
  font-size: 32px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 28px;
  text-align: center;
}

.form-input-wrapper {
  margin-bottom: 32px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-ink-30);
  font-family: var(--font-family);
  font-size: 24px;
  color: var(--color-ink);
  padding: 12px 0;
  outline: none;
  transition: border-color 0.2s ease;
  text-align: center;
}

.form-input:focus,
.form-textarea:focus {
  border-bottom-color: var(--color-teal);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  text-align: left;
  font-size: 20px;
  border: 1px solid var(--color-ink-30);
  border-radius: 8px;
  padding: 16px;
}

.form-actions {
  display: flex;
  justify-content: center;
}

.form-completion-screen {
  text-align: center;
  padding: 40px 0;
}

.form-completion-screen h2 {
  font-size: 36px;
  margin-bottom: 24px;
}

.form-completion-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.form-completion-decline {
  background: none;
  border: none;
  color: var(--color-ink-50);
  font-size: 16px;
  cursor: pointer;
  text-decoration: underline;
  padding: 12px 16px;
}

.form-completion-decline:hover {
  color: var(--color-ink);
}

.form-submitted-message {
  font-size: 20px;
  color: var(--color-teal);
  font-weight: 500;
}

/* Service page back link */
.back-link {
  text-align: center;
  padding: 24px 0 60px;
  font-size: 15px;
  color: var(--color-ink-50);
}

.back-link a {
  color: var(--color-ink);
  font-weight: 500;
  text-decoration: underline;
}

/* --- Footer --- */
footer[role="contentinfo"] {
  background-color: var(--color-ink);
  color: var(--color-cream);
  padding: 60px 40px;
}

.footer-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-wordmark {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-cream);
  text-transform: uppercase;
}

.footer-copy {
  font-size: 13px;
  color: var(--color-cream-40);
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-cream-75);
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s ease;
}

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

.footer-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-legal {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--color-cream-40);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--color-cream);
}

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-ink);
  color: var(--color-cream);
  padding: 20px 40px;
  z-index: 999;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

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

.cookie-banner-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner p {
  font-size: 14px;
  color: var(--color-cream-90);
  margin-bottom: 0;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal.visible {
  display: flex;
}

.cookie-modal-card {
  background: var(--color-cream);
  color: var(--color-ink);
  max-width: 500px;
  width: 100%;
  padding: 36px;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.cookie-modal-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.cookie-preference-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-ink-10);
}

.cookie-preference-label {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.cookie-preference-desc {
  font-size: 13px;
  color: var(--color-ink-50);
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .toggle-slider {
  background-color: var(--color-teal);
}

.cookie-toggle input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* --- Legal Pages --- */
.legal-page,
.notfound-page {
  padding: 140px 24px 100px;
  background-color: var(--color-cream);
  min-height: 80vh;
}

.legal-container,
.notfound-container {
  max-width: var(--legal-max-width);
  margin: 0 auto;
}

.legal-container h1 {
  font-size: 44px;
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 14px;
  color: var(--color-ink-50);
  margin-bottom: 36px;
}

.legal-container h2 {
  font-size: 24px;
  margin-top: 36px;
  margin-bottom: 16px;
}

.legal-container ul {
  margin-left: 24px;
  margin-bottom: 24px;
}

.legal-container li {
  margin-bottom: 8px;
  color: var(--color-ink-75);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.legal-table th,
.legal-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-ink-10);
}

.legal-table th {
  font-weight: 600;
  color: var(--color-ink);
  background-color: var(--color-alt-cream);
}

.notfound-container {
  text-align: center;
  padding: 60px 0;
}

.notfound-container h1 {
  font-size: 96px;
  color: var(--color-teal);
  margin-bottom: 16px;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .section,
  .s2-section,
  .s3-section,
  .dark-section,
  .s4-section,
  .about-section,
  .faq-section,
  .numbered-section,
  .form-section,
  .legal-page,
  .notfound-page {
    padding: 100px 5% 100px;
  }

  .hero-content,
  .hero-text {
    margin-left: 4%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 18px;
  }

  body, p {
    font-size: 16px;
  }

  .subline,
  .hero-subline {
    font-size: 17px;
    max-width: 100%;
  }

  .nav {
    padding: 0 20px;
  }

  .hero {
    height: 100svh;
    min-height: 100svh;
    padding: 100px 24px 60px;
  }

  .hero picture,
  .hero-img,
  .hero-image {
    object-fit: cover;
    object-position: center center;
    background-color: transparent;
  }

  .hero-service::after,
  .hero-investment::after {
    width: 100%;
    background: rgba(240, 237, 232, 0.65);
  }

  .hero-content,
  .hero-text {
    margin-left: 0;
    padding: 24px 16px;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section,
  .s2-section,
  .s3-section,
  .dark-section,
  .s4-section,
  .about-section,
  .faq-section,
  .numbered-section,
  .form-section,
  .legal-page,
  .notfound-page {
    padding: 80px 24px 80px;
  }

  .two-col-grid,
  .s2-grid,
  .cards-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-label-column {
    position: static;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
