/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
  /* Brand colors from logo */
  --deep-plum: #402f40;
  --muted-purple: #806a80;
  --lavender: #baa5ba;
  --sage-green: #7EB079;
  --dark-sage: #5a8a55;
  --earth-cream: #E0D6CC;
  --warm-taupe: #A69A8E;

  /* Neutrals */
  --near-black: #2A2320;
  --off-white: #FAF8F5;
  --warm-white: #F5F0EB;
  --light-cream: #EDE8E2;

  /* Typography */
  --font: 'Raleway', sans-serif;

  /* Spacing */
  --section-pad: 100px;
  --content-max: 1100px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--near-black);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* Subtle grain texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ========================================
   UTILITIES
   ======================================== */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-green);
  margin-bottom: 16px;
}

.hero .section-label {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

/* Scroll animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 1px 20px rgba(42, 35, 32, 0.06);
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo svg {
  width: 54px;
  height: 54px;
  transition: width 0.3s ease, height 0.3s ease;
}

nav.scrolled .nav-logo svg {
  width: 42px;
  height: 42px;
}

.nav-wordmark {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: font-size 0.3s ease;
}

nav.scrolled .nav-wordmark {
  font-size: 20px;
}
.nav-wordmark .pebble { color: var(--deep-plum); }
.nav-wordmark .works { color: var(--muted-purple); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-purple);
  transition: color 0.2s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--deep-plum);
}

.nav-links a.btn-primary {
  color: white;
  padding: 10px 22px;
}

.nav-links a.btn-primary:hover {
  color: white;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--sage-green);
  color: white;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(126, 176, 121, 0.25);
}

.btn-primary:hover {
  background: var(--dark-sage);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(126, 176, 121, 0.35);
}

.btn-secondary {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted-purple);
  border-bottom: 1px solid var(--lavender);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  color: var(--deep-plum);
  border-color: var(--deep-plum);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--section-pad) 0;
  padding-top: 140px;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

/* Organic divider between hero and problem */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--warm-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 50px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--deep-plum);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero .subline {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted-purple);
  margin-bottom: 6px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero .subline-punch {
  font-weight: 500;
  color: var(--deep-plum);
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.hero-graphic {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  z-index: 1;
}

.hero-graphic svg {
  width: 600px;
  height: 600px;
}

/* ========================================
   THE PROBLEM
   ======================================== */
.problem {
  padding: var(--section-pad) 0;
  background: var(--warm-white);
  position: relative;
  overflow: hidden;
}

.problem-graphic {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.06;
  z-index: 1;
  pointer-events: none;
}

.problem-graphic svg {
  width: 550px;
  height: 550px;
}

.problem .container {
  position: relative;
  z-index: 2;
}

.problem-text {
  max-width: 760px;
}

.problem-text h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--deep-plum);
  margin-bottom: 24px;
}

.problem-text p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--near-black);
  opacity: 0.85;
  margin-bottom: 16px;
}

.problem-text p:last-child {
  margin-bottom: 0;
}

.problem-lead {
  font-size: 20px !important;
  font-weight: 500;
  color: var(--deep-plum) !important;
  opacity: 1 !important;
  margin-bottom: 20px !important;
}

.problem-closer {
  font-size: 20px !important;
  font-weight: 500;
  color: var(--deep-plum) !important;
  opacity: 1 !important;
  margin-top: 24px !important;
}

.problem-finale {
  font-size: 22px !important;
  font-weight: 500;
  color: var(--deep-plum) !important;
  opacity: 1 !important;
  margin-top: 28px !important;
}

.highlight-green {
  color: var(--dark-sage);
  font-weight: 600;
}

.problem-text h2 em {
  font-style: italic;
  color: var(--sage-green);
}

.headline-break {
  display: block;
  height: 10px;
}

.problem-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px 0;
}

.problem-list li {
  font-size: 18px;
  line-height: 1.8;
  color: var(--near-black);
  opacity: 0.85;
  padding-left: 24px;
  position: relative;
}

.problem-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage-green);
}

/* ========================================
   TWO LEVELS
   ======================================== */
/* Framework section — contained split with slider */
.two-levels {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.two-levels .framework-intro {
  max-width: var(--content-max);
  margin: 0 auto 48px;
  padding: 0 40px;
}

.two-levels h2 {
  font-size: 36px;
  font-weight: 600;
  color: var(--deep-plum);
  margin-bottom: 16px;
}

.two-levels .framework-intro > p {
  font-size: 18px;
  color: var(--muted-purple);
  max-width: 600px;
}

/* The slider container */
.framework-slider {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 40px;
}

.framework-slider-inner {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(64, 47, 64, 0.08);
}

/* Panels */
.level-panel {
  flex: 1;
  padding: 48px 40px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
}

.level-panel-content {
  flex: 0 0 auto;
  width: 340px;
}

.level-panel--light {
  background: var(--warm-white);
}

.level-panel--dark {
  background: var(--deep-plum);
  color: white;
}

.level-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.level-panel--light .level-icon {
  background: rgba(126, 176, 121, 0.12);
  color: var(--dark-sage);
}

.level-panel--dark .level-icon {
  background: rgba(126, 176, 121, 0.15);
  color: var(--sage-green);
}

.level-panel h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.level-panel--light h3 { color: var(--deep-plum); }
.level-panel--dark h3 { color: white; }

.level-panel p {
  font-size: 16px;
  line-height: 1.7;
}

.level-panel--light p { color: var(--near-black); opacity: 0.8; }
.level-panel--dark p { color: var(--lavender); }

.level-items {
  list-style: none;
  margin-top: 20px;
}

.level-items li {
  font-size: 15px;
  padding: 7px 0;
  padding-left: 22px;
  position: relative;
}

.level-panel--light .level-items li { color: var(--near-black); opacity: 0.75; }
.level-panel--dark .level-items li { color: rgba(255,255,255,0.7); }

.level-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-green);
}

.level-panel--light .level-items li::before { opacity: 0.5; }
.level-panel--dark .level-items li::before { opacity: 0.7; }

/* The draggable slider handle */
.framework-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 40px;
  transform: translateX(-50%);
  z-index: 10;
  cursor: col-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-user-select: none;
  user-select: none;
}

.framework-handle-bar {
  width: 4px;
  height: 100%;
  max-height: 420px;
  background: var(--sage-green);
  border-radius: 2px;
  position: relative;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.framework-handle:hover .framework-handle-bar,
.framework-handle.dragging .framework-handle-bar {
  opacity: 1;
}

.framework-handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(126, 176, 121, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.framework-handle:hover .framework-handle-grip,
.framework-handle.dragging .framework-handle-grip {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 4px 20px rgba(126, 176, 121, 0.5);
}

.framework-handle-grip svg {
  width: 16px;
  height: 16px;
  color: white;
}

/* Hint text */
/* Animated wheel — revealed laterally by panel expansion */
.level-wheel {
  position: relative;
  width: 200px;
  height: 200px;
  flex: 0 0 auto;
  align-self: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.level-wheel.active { opacity: 1; }

.wheel-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wheel-ring {
  fill: none;
  stroke-width: 1;
}

.level-panel--light .wheel-ring { stroke: rgba(64, 47, 64, 0.08); }
.level-panel--dark .wheel-ring { stroke: rgba(255, 255, 255, 0.08); }

.wheel-arc {
  fill: none;
  stroke: var(--sage-green);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  opacity: 0.12;
  transition: opacity 0.5s, stroke-width 0.5s;
  animation: wheel-flow 4s linear infinite;
}

.wheel-arc.lit {
  opacity: 0.55;
  stroke-width: 2;
}

.wheel-cross {
  stroke: var(--sage-green);
  stroke-width: 0.8;
  stroke-dasharray: 3 6;
  opacity: 0.06;
}

.wheel-dot {
  fill: var(--sage-green);
  opacity: 0.2;
  transition: opacity 0.5s;
}

.wheel-dot.lit { opacity: 0.75; }

@keyframes wheel-flow {
  to { stroke-dashoffset: -30; }
}

.wheel-node {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.level-panel--light .wheel-node {
  border: 1.5px solid rgba(64, 47, 64, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.level-panel--dark .wheel-node {
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.wheel-node.lit {
  border-color: var(--sage-green);
  transform: translate(-50%, -50%) scale(1.12);
}

.level-panel--light .wheel-node.lit {
  background: rgba(126, 176, 121, 0.1);
  box-shadow: 0 0 20px rgba(126, 176, 121, 0.25), 0 0 50px rgba(126, 176, 121, 0.08);
}

.level-panel--dark .wheel-node.lit {
  background: rgba(126, 176, 121, 0.15);
  box-shadow: 0 0 24px rgba(126, 176, 121, 0.3), 0 0 60px rgba(126, 176, 121, 0.1);
}

.wheel-node svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: opacity 0.5s, color 0.5s;
}

.level-panel--light .wheel-node svg { color: var(--deep-plum); opacity: 0.4; }
.level-panel--dark .wheel-node svg { color: rgba(255, 255, 255, 0.9); opacity: 0.35; }
.wheel-node.lit svg { opacity: 0.9; }
.level-panel--light .wheel-node.lit svg { color: var(--sage-green); }
.level-panel--dark .wheel-node.lit svg { color: var(--sage-green); }

.wheel-label {
  position: absolute;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transition: color 0.5s, opacity 0.5s;
}

.level-panel--light .wheel-label { color: rgba(64, 47, 64, 0.35); }
.level-panel--dark .wheel-label { color: rgba(255, 255, 255, 0.3); }
.wheel-node.lit .wheel-label { color: var(--sage-green); }

/* ========================================
   HOW WE DO IT
   ======================================== */
.process {
  padding: var(--section-pad) 0;
  padding-top: calc(var(--section-pad) + 30px);
  background: var(--deep-plum);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Organic top edge */
.process::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--warm-white);
  clip-path: ellipse(55% 100% at 50% 0%);
}

/* Organic bottom edge */
.process::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--off-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.approach-layout {
  display: flex;
  align-items: center;
  gap: 80px;
}

.approach-text {
  flex: 0 0 340px;
}

.approach-text h2 {
  font-size: 34px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
  line-height: 1.25;
}

.approach-text > p {
  font-size: 18px;
  color: var(--lavender);
}

.approach-text .section-label {
  color: var(--sage-green);
}

/* Cycle Wheel */
.cycle-wheel {
  position: relative;
  width: 620px;
  height: 620px;
  flex-shrink: 0;
  margin-right: -60px;
}

.cycle-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cycle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 240px;
}

.cycle-gear {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  opacity: 0.07;
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.cycle-center-title {
  font-size: 22px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
  transition: opacity 0.35s;
}

.cycle-center-desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  transition: opacity 0.35s;
}

.cycle-node {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,0.15);
  background: var(--deep-plum);
  cursor: pointer;
  transition: all 0.4s;
}

.cycle-num {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  transition: color 0.4s;
}

.cycle-node.active {
  border-color: var(--sage-green);
  background: rgba(126, 176, 121, 0.12);
  box-shadow: 0 0 24px rgba(126, 176, 121, 0.25), 0 0 60px rgba(126, 176, 121, 0.08);
}

.cycle-node.active .cycle-num {
  color: white;
}

.cycle-node:hover:not(.active) {
  border-color: rgba(255,255,255,0.35);
}

.cycle-node:hover:not(.active) .cycle-num {
  color: rgba(255,255,255,0.7);
}

.cycle-node-label {
  position: absolute;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  transition: color 0.4s;
  pointer-events: none;
}

.cycle-node.active .cycle-node-label {
  color: var(--sage-green);
}

/* ========================================
   WHAT'S INCLUDED (AGENT SUITE)
   ======================================== */
.managed {
  padding: var(--section-pad) 0;
  background: var(--warm-white);
}

.managed h2 {
  font-size: 36px;
  font-weight: 600;
  color: var(--deep-plum);
  margin-bottom: 12px;
}

.managed > .container > p {
  font-size: 18px;
  color: var(--muted-purple);
  margin-bottom: 48px;
  max-width: 620px;
}

.managed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.managed-card {
  background: var(--off-white);
  border-radius: 14px;
  padding: 28px 30px;
  border: 1px solid var(--earth-cream);
}

.managed-card-icon {
  color: var(--sage-green);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.managed-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--deep-plum);
  margin-bottom: 8px;
}

.managed-card-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

.managed-bonus {
  padding: 24px 30px;
  background: var(--off-white);
  border-radius: 14px;
  border: 1px solid var(--earth-cream);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow 0.3s;
}

.managed-bonus-header {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  width: 100%;
}

.managed-bonus-header:hover .managed-bonus-toggle {
  background: rgba(126, 176, 121, 0.2);
}

.managed-bonus-icon {
  color: var(--sage-green);
  flex-shrink: 0;
}

.managed-bonus-text {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  flex: 1;
}

.managed-bonus-text strong {
  color: var(--deep-plum);
  font-weight: 600;
}

.managed-bonus-toggle {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(126, 176, 121, 0.1);
  color: var(--sage-green);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
}

.managed-bonus.open .managed-bonus-toggle {
  transform: rotate(180deg);
}

/* Accordion body */
.managed-bonus-accordion {
  max-height: 0;
  overflow: hidden;
  width: 100%;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
  opacity: 0;
}

.managed-bonus.open .managed-bonus-accordion {
  max-height: 2000px;
  opacity: 1;
}

/* Agent grid inside accordion */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--earth-cream);
}

.agent-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--earth-cream);
  transition: transform 0.2s, box-shadow 0.2s;
}

.agent-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(64, 47, 64, 0.06);
}

.agent-card-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #ffffff;
}

.agent-card-info {
  flex: 1;
  min-width: 0;
}

.agent-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--deep-plum);
  margin-bottom: 2px;
}

.agent-card-role {
  font-size: 12px;
  font-weight: 500;
  color: var(--sage-green);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.agent-card-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.agent-loading {
  text-align: center;
  padding: 32px 24px;
  color: var(--muted-purple);
  font-size: 14px;
  grid-column: 1 / -1;
}

/* ========================================
   PRICING
   ======================================== */
.pricing {
  padding: var(--section-pad) 0;
  background: var(--deep-plum);
  color: white;
  position: relative;
}

.pricing::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--warm-white);
  clip-path: ellipse(55% 100% at 50% 0%);
  z-index: 1;
}

.pricing::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--warm-white);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 1;
}

.pricing h2 {
  font-size: 36px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.pricing > .container > p {
  font-size: 18px;
  color: var(--lavender);
  margin-bottom: 48px;
  max-width: 550px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 36px 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}


.pricing-weeks {
  font-size: 14px;
  font-weight: 500;
  color: var(--lavender);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pricing-amount {
  font-size: 44px;
  font-weight: 700;
  color: var(--sage-green);
  line-height: 1;
  margin-bottom: 16px;
}

.pricing-detail {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.pricing-footnotes {
  max-width: 600px;
}

.pricing-footnotes p {
  font-size: 15px;
  color: var(--lavender);
  margin-bottom: 8px;
}

.pricing-footnotes strong {
  color: white;
}

.pricing-cta {
  margin-top: 40px;
  text-align: center;
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  padding: var(--section-pad) 0;
  background: var(--warm-white);
  position: relative;
  overflow: hidden;
}

.about-graphic {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.06;
  z-index: 1;
  pointer-events: none;
}

.about-graphic svg {
  width: 550px;
  height: 550px;
}

.about .container {
  position: relative;
  z-index: 2;
}

.about-content {
  max-width: 700px;
}

.about h2 {
  font-size: 36px;
  font-weight: 600;
  color: var(--deep-plum);
  margin-bottom: 24px;
}

.about p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--near-black);
  opacity: 0.85;
  margin-bottom: 20px;
}

.about .highlight {
  font-weight: 600;
  color: var(--deep-plum);
  opacity: 1;
}

/* ========================================
   FINAL CTA
   ======================================== */
.final-cta {
  padding: var(--section-pad) 0;
  padding-top: calc(var(--section-pad) + 30px);
  background: var(--deep-plum);
  text-align: center;
  position: relative;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--warm-white);
  clip-path: ellipse(55% 100% at 50% 0%);
}

.final-cta h2 {
  font-size: 36px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta p {
  font-size: 18px;
  color: var(--lavender);
  margin-bottom: 36px;
}

.final-cta .btn-primary {
  padding: 16px 36px;
  font-size: 16px;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  padding: 40px 0;
  background: var(--deep-plum);
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-size: 14px;
}

.footer-brand .company {
  font-weight: 500;
  color: var(--earth-cream);
  margin-bottom: 4px;
}

.footer-brand .details {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.7;
}

.footer-brand .details a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-brand .details a:hover {
  color: white;
  opacity: 1;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
}

.footer-links a {
  color: var(--warm-taupe);
  transition: color 0.2s;
}

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

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.footer-social a {
  color: var(--lavender);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: white;
}

/* ========================================
   CONTACT MODAL
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 35, 32, 0.6);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--off-white);
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 36px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 24px 80px rgba(64, 47, 64, 0.25);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--warm-taupe);
  font-size: 22px;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--earth-cream);
  color: var(--deep-plum);
}

.modal-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.modal-heading svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.modal h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--deep-plum);
  margin-bottom: 0;
}

.modal .modal-sub {
  font-size: 14px;
  color: var(--warm-taupe);
  margin-bottom: 28px;
}

.modal-field {
  margin-bottom: 18px;
}

.modal-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--deep-plum);
  margin-bottom: 6px;
}

.modal-field label .req {
  color: var(--sage-green);
  margin-left: 2px;
}

.modal-field input,
.modal-field textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  color: var(--near-black);
  background: #ffffff;
  border: 1px solid var(--earth-cream);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.modal-field input:focus,
.modal-field textarea:focus {
  border-color: var(--sage-green);
  box-shadow: 0 0 0 3px rgba(126, 176, 121, 0.15);
}

.modal-field textarea {
  resize: vertical;
  min-height: 90px;
}

.modal-field input.error,
.modal-field textarea.error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.modal-submit {
  width: 100%;
  padding: 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--deep-plum);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.modal-submit:hover {
  background: var(--muted-purple);
}

.modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-success {
  text-align: center;
  padding: 20px 0;
}

.modal-success .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(126, 176, 121, 0.12);
  color: var(--sage-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

.modal-success h3 {
  margin-bottom: 8px;
}

.modal-success p {
  font-size: 15px;
  color: var(--warm-taupe);
  line-height: 1.6;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  :root {
    --section-pad: 72px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero .subline {
    font-size: 18px;
  }

  .framework-slider { padding: 0 16px; }
  .two-levels .framework-intro { padding: 0 16px; }

  .framework-slider-inner {
    flex-direction: column;
    border-radius: 12px;
  }

  .level-panel { padding: 32px 24px; }

  .framework-handle,
  .framework-connections,
  .framework-bridge,
  .framework-hint { display: none; }

  .approach-layout {
    flex-direction: column;
    text-align: center;
  }

  .approach-text {
    flex: none;
  }

  .cycle-wheel {
    width: 340px;
    height: 340px;
  }

  .cycle-node {
    width: 52px;
    height: 52px;
  }

  .cycle-num {
    font-size: 16px;
  }

  .cycle-center {
    width: 170px;
  }

  .cycle-center-title {
    font-size: 17px;
  }

  .cycle-center-desc {
    font-size: 12px;
  }

  .cycle-node-label {
    font-size: 10px;
  }

  .managed-grid {
    grid-template-columns: 1fr;
  }

  .agent-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none; /* Hamburger TODO for mobile */
  }

  .hero-graphic {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 24px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .agent-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}