/* ============================================================
   SITE-SPECIFIC LAYOUT STYLES
   Supplements the design system tokens & components
   ============================================================ */


/* ============================================================
   RESPONSIVE PADDING
   ============================================================ */
.container,
.container--narrow,
.container--standard,
.container--large,
.container--max {
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .container,
  .container--narrow,
  .container--standard,
  .container--large,
  .container--max {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1024px) {
  .container,
  .container--narrow,
  .container--standard,
  .container--large,
  .container--max {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (min-width: 1440px) {
  .container,
  .container--narrow,
  .container--standard,
  .container--large,
  .container--max {
    padding-left: 64px;
    padding-right: 64px;
  }
}

@media (min-width: 1600px) {
  .container,
  .container--narrow,
  .container--standard,
  .container--large,
  .container--max {
    padding-left: 80px;
    padding-right: 80px;
  }
}


/* ============================================================
   GENERAL SECTIONS
   ============================================================ */
.section {
  padding: var(--space-32) 0;
  position: relative;
}

.section + .section {
  padding-top: var(--space-32);
}

.section__body {
  max-width: 720px;
}

.section__body p {
  margin-bottom: var(--space-4);
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 90vh;
  min-height: 90dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(60px + var(--space-16)) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -20%;
  left: 30%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: var(--gradient-hero);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-12);
  position: relative;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__kicker {
  font-family: var(--font-annotation);
  font-size: 1.35rem;
  color: var(--secondary);
  transform: rotate(-1.5deg);
  display: inline-block;
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

.hero__headline {
  font-size: var(--text-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
}

.hero__subheadline {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* --- Hero visuals: image stack --- */
.hero__visuals {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.hero__image-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__image {
  position: absolute;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.hero__image--1 {
  width: 47%;
  aspect-ratio: 360 / 280;
  background: url('/images/hero-sample-1-top.jpg') center / cover no-repeat;
  top: 0;
  left: 37%;
  z-index: 1;
}

.hero__image--2 {
  width: 62%;
  aspect-ratio: 500 / 360;
  background: url('/images/hero-sample-2-middle.jpg') center / cover no-repeat;
  top: 22%;
  left: 4%;
  z-index: 2;
}

.hero__image--3 {
  width: 46%;
  aspect-ratio: 320 / 260;
  background: url('/images/hero-sample-3-middle.jpg') center / cover no-repeat;
  top: 57%;
  left: 34%;
  z-index: 3;
}

/* --- Hero annotations (SVG arrows) --- */
.hero__annotation {
  position: absolute;
  z-index: 10;
  white-space: nowrap;
}

/* Reach Over: text top, arrow below — positioned top-right of image 1 */
.hero__annotation--1 {
  top: -6%;
  right: 5%;
  text-align: right;
}

.hero__annotation--1 .annotation__text {
  display: block;
  margin-bottom: var(--space-1);
}

/* Swoop Down: text top, arrow below — positioned left of image 2 */
.hero__annotation--2 {
  top: 30%;
  left: -6%;
}

.hero__annotation--2 .annotation__text {
  display: block;
  margin-bottom: var(--space-1);
}

/* Overtop Right: arrow above, text below — positioned bottom-left of image 3 */
.hero__annotation--3 {
  bottom: 0;
  left: 16%;
}

.hero__annotation--3 .annotation__text {
  display: block;
  margin-top: var(--space-1);
}

/* --- Hero animation loop --- */

/* Shapes start hidden, transition in/out */
.hero__image {
  opacity: 0;
  transition: opacity 800ms ease-out;
}

.hero__image.is-visible {
  opacity: 1;
}

.hero__image.is-fading-out {
  opacity: 0;
  transition: opacity 600ms ease-in;
}

/* Override base annotation CSS animations — JS controls hero annotations */
.hero__annotation svg path {
  animation: none;
}

.hero__annotation svg polyline {
  animation: none;
}

/* Annotations start fully hidden — JS controls everything */
.hero__annotation .annotation__text {
  opacity: 0;
  transform: rotate(-3deg) translateY(8px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.hero__annotation .annotation__text.is-visible {
  opacity: 1;
  transform: rotate(-3deg) translateY(0);
}

.hero__annotation .annotation__text.is-fading-out {
  opacity: 0;
  transform: rotate(-3deg) translateY(0);
  transition: opacity 600ms ease-in;
}

.hero__annotation svg path {
  transition: stroke-dashoffset 500ms ease-out;
}

.hero__annotation svg polyline {
  opacity: 0;
  transition: opacity 200ms ease-out;
}

.hero__annotation svg polyline.is-visible {
  opacity: 1;
}

.hero__annotation svg.is-fading-out path,
.hero__annotation svg.is-fading-out polyline {
  opacity: 0;
  transition: opacity 600ms ease-in;
}

/* --- Hero responsive --- */
@media (max-width: 1023px) {
  .hero {
    padding-bottom: calc(var(--space-16) + 60px);
  }

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

  .hero__visuals {
    max-width: 500px;
    margin: var(--space-8) auto 0;
  }

  /* Reposition annotations for single-column layout */
  .hero__annotation {
    white-space: normal;
  }

  .hero__annotation--1 {
    top: -4%;
    right: 2%;
  }

  .hero__annotation--2 {
    top: 28%;
    left: -2%;
  }

  .hero__annotation--3 {
    bottom: -2%;
    left: 10%;
  }

  .hero__annotation svg {
    max-width: 80px;
  }

  .hero__annotation .annotation__text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero__annotation {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__subheadline {
    font-size: var(--text-body);
  }
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  z-index: 1;
}

.hero__scroll-text {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}


/* ============================================================
   SECTION BACKGROUNDS
   ============================================================ */
.section--problem {
  background: var(--bg-deep);
  overflow: hidden;
}

.section--diy {
  background: var(--bg-surface);
}

/* ============================================================
   SOLUTION SECTION (formerly Unlock)
   ============================================================ */
.section--solution {
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

/* Full-bleed background image */
.solution__bg {
  position: absolute;
  inset: 0;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

.solution__bg-slideshow {
  position: absolute;
  inset: 0;
}

.solution__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
}

.solution__bg-image.is-active {
  opacity: 1;
}

.solution__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 15, 0.75);
  z-index: 1;
}

.solution__bg-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(6, 6, 15, 1) 0%, rgba(6, 6, 15, 0.85) 35%, rgba(6, 6, 15, 0) 55%);
}

/* Two-column grid */
.solution__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: stretch;
}

/* Left column */
.solution__content {
  display: flex;
  flex-direction: column;
}

.solution__content .section-header {
  margin-bottom: var(--space-6);
}

.solution__subtitle {
  font-size: 22px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: var(--space-6);
}

.solution__body {
  margin-top: var(--space-6);
}

.solution__body p {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

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

/* Compact 2-col stats */
.solution__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.solution__stat {
  text-align: left;
}

.solution__stat-number {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.05;
  margin-bottom: var(--space-1);
}

.solution__stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Built by experts */
.solution__experts {
  margin-top: var(--space-12);
}

.solution__experts-title {
  font-family: var(--font-headline);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
}

.solution__headshots {
  display: flex;
  gap: var(--space-8);
}

.solution__experts--centered {
  text-align: center;
  margin-bottom: var(--space-12);
}

.solution__experts--centered .solution__headshots {
  justify-content: center;
}

.solution__headshot-ring {
  width: 108px;
  height: 108px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    linear-gradient(135deg, #818CF8, #5EEAD4) border-box;
  padding: 6px 0 0 0;
  flex-shrink: 0;
}

.solution__headshot {
  width: 100%;
  height: 100%;
  background: var(--bg-elevated);
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Right column: vertically centered pills */
.solution__pills {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  padding-left: 25%;
}

.solution__pill {
  border-radius: var(--radius-full);
  background: rgba(6, 6, 15, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  font-size: 0.8em;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}

/* Wider stagger delays for pills */
.solution__pills.stagger-children > .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.solution__pills.stagger-children > .animate-on-scroll:nth-child(2) { transition-delay: 200ms; }
.solution__pills.stagger-children > .animate-on-scroll:nth-child(3) { transition-delay: 400ms; }
.solution__pills.stagger-children > .animate-on-scroll:nth-child(4) { transition-delay: 600ms; }

/* Wider stagger delays for headshot circles */
.solution__headshots.stagger-children > .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.solution__headshots.stagger-children > .animate-on-scroll:nth-child(2) { transition-delay: 150ms; }
.solution__headshots.stagger-children > .animate-on-scroll:nth-child(3) { transition-delay: 300ms; }
.solution__headshots.stagger-children > .animate-on-scroll:nth-child(4) { transition-delay: 450ms; }
.solution__headshots.stagger-children > .animate-on-scroll:nth-child(5) { transition-delay: 600ms; }

/* Responsive: mobile */
@media (max-width: 767px) {
  .solution__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .solution__pills {
    padding-left: 0;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .solution__headshot-ring {
    width: 72px;
    height: 72px;
  }

  .solution__headshots {
    gap: var(--space-4);
  }
}

.section--what-you-get {
  background: var(--bg-surface);
}

.section--samples {
  background: var(--bg-deep);
}

/* ============================================================
   SECTIONS BRIDGE — Calculator → FAQ → Who Builds
   Continuous gradient background with parallax glow blobs
   ============================================================ */
.sections-bridge {
  position: relative;
  background: linear-gradient(
    to bottom,
    var(--bg-surface) 0%,
    var(--bg-surface) 30%,
    var(--bg-deep) 50%,
    #1a1a4a 65%,
    #4a5fa0 80%,
    #818CF8 92%,
    #5EEAD4 100%
  );
  contain: paint;
}

/* Parallax glow blobs — positioned behind content, animated via JS */
.sections-bridge__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  filter: blur(80px);
  opacity: 0.35;
}

.sections-bridge__glow--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5), transparent 70%);
  top: 40%;
  left: -5%;
}

.sections-bridge__glow--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.45), transparent 70%);
  top: 65%;
  right: -5%;
}

.sections-bridge .section--calculator {
  background: transparent;
  position: relative;
  z-index: 1;
}

.sections-bridge .section--faq {
  background: transparent;
  position: relative;
  z-index: 2;
}

.sections-bridge .section--who-builds {
  background: transparent;
  position: relative;
  z-index: 1;
  padding-top: calc(500px + var(--space-32));
}

.section--cta {
  padding: 0;
}


/* ============================================================
   PROBLEM SECTION — INTRO + TAB SYSTEM
   ============================================================ */

/* Centered heading */
.problem__intro {
  margin-bottom: var(--space-16);
}

.section-header--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Centered lead paragraph */
.problem__lead {
  font-size: 22px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 640px;
  margin: var(--space-12) auto 0;
  padding-top: var(--space-10);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

/* Four-column icon grid */
.problem__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.problem__grid-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.problem__grid-item i {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.problem__grid-item span {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .problem__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* Tab system wrapper */
.problem-tabs {
  position: relative;
  padding: var(--space-20) 0;
}

/* Full-bleed background images */
.problem-tabs__bg {
  position: absolute;
  inset: 0;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

.problem-tabs__bg-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
}

.problem-tabs__bg-image.is-active {
  opacity: 1;
}

/* Tab background images — one per tab (placeholders until all are supplied) */
.problem-tabs__bg-image--0 { background: linear-gradient(135deg, #0a0a1a 0%, #12122a 100%); }
.problem-tabs__bg-image--1 { background: linear-gradient(135deg, #0d0d20 0%, #1a1a35 100%); }
.problem-tabs__bg-image--2 { background: linear-gradient(135deg, #0b0b1e 0%, #161630 100%); }
.problem-tabs__bg-image--3 { background: linear-gradient(135deg, #08081a 0%, #141428 100%); }

/* Dark overlay for text readability */
.problem-tabs__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 15, 0.75);
  z-index: 1;
}

/* Tab inner layout */
.problem-tabs__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.3fr 0.7fr;
  gap: var(--space-12);
  align-items: start;
}

/* Tab navigation (left) */
.problem-tabs__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.problem-tabs__tab {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-body);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.problem-tabs__tab:hover {
  color: var(--text-secondary);
}

.problem-tabs__tab.is-active {
  color: var(--text-primary);
  border-left-color: var(--accent);
  background: rgba(99, 102, 241, 0.06);
}

/* Tab panels (right) */
.problem-tabs__panels {
  position: relative;
  min-height: 160px;
}

.problem-tabs__panel {
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.problem-tabs__panel.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
  pointer-events: auto;
}

.problem-tabs__title {
  font-family: var(--font-headline);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.problem-tabs__description {
  font-size: var(--text-body-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

/* Mobile tabs */
@media (max-width: 767px) {
  .problem-tabs__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .problem-tabs__nav {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0;
  }

  .problem-tabs__tab {
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    flex-shrink: 0;
  }

  .problem-tabs__tab.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
    background: none;
  }

  .problem-tabs {
  }
}


/* ============================================================
   WHAT YOU GET
   ============================================================ */

/* Centered subtitle */
.wyg__subtitle {
  font-size: 22px;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-16);
}

/* 50/50 grid */
.wyg__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

/* Left column: feature list */
.wyg__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.wyg__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.wyg__feature i {
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.wyg__feature p {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.wyg__feature strong {
  color: var(--text-primary);
  font-weight: 600;
}

.wyg__col-title {
  font-family: var(--font-headline);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}

/* Process section — below the grid */
.wyg__process {
  margin-top: var(--space-32);
}

.wyg__process-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.wyg__process-title {
  font-family: var(--font-headline);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}

/* Horizontal steps row */
.wyg__steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-12);
}

/* Individual step — vertical stack: icon, label, text */
.wyg__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 240px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.wyg__step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wyg__step-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: var(--accent-light);
  background: var(--bg-elevated);
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 0;
}

/* Comet gradient border — behind the icon */
.wyg__step-icon::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--comet-angle, 0deg),
    transparent 0%, transparent 80%,
    var(--accent) 85%, var(--tertiary) 88%,
    var(--secondary) 91%, var(--rose) 94%,
    transparent 97%
  );
  z-index: -2;
  opacity: 0;
  animation: none;
}

/* Mask center to reveal only 1px border */
.wyg__step-icon::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--bg-elevated);
  z-index: -1;
}

/* Trigger comet when step becomes visible — restarts on each cycle */
.wyg__step.is-visible .wyg__step-icon::before {
  animation: comet-chase-once 1.2s linear 1 forwards;
}

@keyframes comet-chase-once {
  0%   { --comet-angle: 0deg; opacity: 1; }
  85%  { --comet-angle: 306deg; opacity: 1; }
  100% { --comet-angle: 360deg; opacity: 0; }
}

.wyg__step-icon i {
  position: relative;
  z-index: 1;
}

.wyg__step-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.wyg__step p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Connecting line between steps */
.wyg__step-connector {
  flex-shrink: 0;
  width: 40px;
  height: 1px;
  background: var(--border-subtle);
  margin-top: 40px;
}

/* Timeline text */
.wyg__timeline {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: center;
}

.wyg__timeline strong {
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 767px) {
  .wyg__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .wyg__steps-row {
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
  }

  .wyg__step {
    max-width: 100%;
  }

  .wyg__step-connector {
    width: 1px;
    height: 24px;
    margin-top: 0;
  }
}


/* ============================================================
   SAMPLES — GRID
   ============================================================ */
.samples__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-6);
}

/* Make sample cards look clickable as buttons */
button.card--sample {
  font: inherit;
  text-align: left;
  cursor: pointer;
}


/* ============================================================
   SAMPLE MODAL
   ============================================================ */
.sample-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

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

.sample-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 15, 0.5);
  backdrop-filter: blur(8px);
}

.sample-modal__container {
  position: relative;
  width: 90vw;
  height: 90vh;
  height: 90dvh;
  max-width: 1600px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: clip;
  overflow-clip-margin: 22px;
  transform: translateY(12px);
  transition: transform var(--transition-base);
}

.sample-modal.is-open .sample-modal__container {
  transform: translateY(0);
}

.sample-modal__close {
  position: absolute;
  top: -22px;
  right: -22px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.sample-modal__close:hover {
  background: var(--bg-overlay);
  color: var(--text-primary);
}

.sample-modal__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.sample-modal__info {
  text-align: left;
}

.sample-modal__title {
  font-family: 'Sora', sans-serif;
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.sample-modal__desc {
  font-size: var(--text-body);
  color: var(--text-secondary);
  margin: var(--space-2) 0 0;
}

.sample-modal__action {
  text-align: right;
}

.sample-modal__body {
  flex: 1;
  min-height: 0;
}

.sample-modal__iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: var(--bg-deep);
}

/* Mobile: full-screen modal, single-column header */
@media (max-width: 767px) {
  .sample-modal__container {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }

  .sample-modal__header {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding: var(--space-4);
  }

  .sample-modal__action {
    text-align: left;
  }
}


/* ============================================================
   CALCULATOR + FIT ASSESSMENT (combined section)
   ============================================================ */

.calc__subtitle {
  font-size: 22px;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-16);
}

/* 62/38 wrapper grid */
.calc__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .calc__wrapper {
    grid-template-columns: 62fr 38fr;
    gap: var(--space-24);
    align-items: start;
  }
}

/* Left column */
.calc__left {
  min-width: 0;
}

/* Right column — sticky results */
.calc__right {
  min-width: 0;
}

@media (min-width: 768px) {
  .calc__right {
    position: sticky;
    top: 92px;
  }
}

/* Input groups */
.calc__input-group {
  position: relative;
  margin-bottom: var(--space-16);
}

.calc__input-group:last-child {
  margin-bottom: 0;
}

.calc__input-group .form-label {
  margin-bottom: var(--space-3);
}

/* Slider + number input row */
.calc__slider-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.calc__slider-col {
  flex: 1;
  min-width: 0;
}

.calc__slider-col .slider-track {
  width: 100%;
  flex: none;
}

.calc__slider-col .slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Number input (typed value) */
.calc__number-input {
  width: 80px;
  flex-shrink: 0;
  align-self: flex-end;
  background: var(--bg-surface);
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 0 8px 2px;
  margin-bottom: 24px;
  font-family: var(--font-headline);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  outline: none;
  transition: border-color var(--transition-fast);
  -moz-appearance: textfield;
}

.calc__number-input::-webkit-outer-spin-button,
.calc__number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc__number-input:focus {
  border-bottom-color: var(--accent);
}

/* Results panel */
.calc__results {
  background: var(--bg-elevated);
  padding: var(--space-8);
  border: 1px solid var(--border-subtle);
}

.calc__comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.calc__column--current {
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border-subtle);
}

.calc__column h3 {
  font-family: var(--font-headline);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.calc__cost {
  font-family: var(--font-headline);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.calc__column--express .calc__cost {
  color: var(--tertiary);
}

.calc__detail {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.calc__savings {
  padding: var(--space-6) 0;
  margin-bottom: var(--space-6);
  font-size: var(--text-body-lg);
  color: var(--text-primary);
}

.calc__savings strong {
  color: var(--secondary);
}

.calc__cta {
  text-align: center;
}

/* Fixed bottom-left error badges */
.calc__validation {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--text-sm);
  border: 1px solid var(--rose);
}

/* Teal courses message — absolutely positioned below its input */
.calc__courses-msg {
  position: absolute;
  bottom: -28px;
  left: 0;
  display: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--text-sm);
  border: 1px solid var(--tertiary);
  z-index: 1;
}

.calc__validation.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.calc__courses-msg.is-visible {
  display: inline-block;
}

.calc__courses-msg a {
  color: var(--tertiary-light);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.calc__courses-msg a:hover {
  color: var(--text-primary);
}

/* 128px spacer between calculator and fit */
.calc__spacer {
  height: var(--space-32);
}

/* Fit Assessment (within calculator section) */
.calc__fit-subtitle {
  font-size: 22px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-10);
}

.calc__fit-group {
  margin-bottom: var(--space-10);
}

.calc__fit-label {
  font-family: var(--font-headline);
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.calc__fit-label--yes {
  color: var(--tertiary);
}

.calc__fit-label--no {
  color: var(--rose);
}

.calc__fit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.calc__fit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.calc__fit-item i {
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 1rem;
}

.calc__fit-item--yes i {
  color: var(--tertiary);
}

.calc__fit-item--no i {
  color: var(--rose);
}

.calc__fit-item span {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.7;
}

.calc__fit-note {
  padding: var(--space-6);
  background: var(--bg-accent-subtle);
  border-left: 4px solid var(--accent);
}

.calc__fit-note p {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.calc__fit-note a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.calc__fit-note a:hover {
  color: var(--text-primary);
}

/* Mobile: unstick results */
@media (max-width: 767px) {
  .calc__wrapper {
    gap: var(--space-8);
  }
}


/* ============================================================
   FAQ — 30/70 LAYOUT IN CRÈME CONTAINER
   ============================================================ */

/* Crème container */
.faq__container {
  background: rgba(183, 183, 214, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: var(--space-20) var(--space-16);
  margin-bottom: -500px;
  position: relative;
  z-index: 2;
}

/* Dark text overrides for light background */
.faq__container .section-header h2 {
  color: #06060F;
}

.faq__badge {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-dark);
}

/* Groups stack vertically */
.faq__groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

/* Each group: 30/70 grid */
.faq__group {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  min-width: 0;
}

@media (min-width: 768px) {
  .faq__group {
    grid-template-columns: 30fr 70fr;
    gap: var(--space-24);
  }
}

/* Left column: sticky icon + H3 */
.faq__group-left {
  min-width: 0;
}

@media (min-width: 768px) {
  .faq__group-left {
    position: sticky;
    top: 92px;
    align-self: start;
  }
}

.faq__group-header {
  margin-bottom: 0;
}

.faq__group-header i {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.faq__group-title {
  font-family: var(--font-headline);
  font-size: var(--text-h3);
  font-weight: 600;
  color: #1a1a2e;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Right column */
.faq__group-right {
  min-width: 0;
}

/* Remove max-width constraint on accordion within FAQ */
.faq__group .accordion {
  max-width: none;
}

/* Dark text for accordion on light background */
.faq__group .accordion-item {
  border-bottom-color: rgba(6, 6, 15, 0.1);
}

.faq__group .accordion-trigger__text {
  font-size: var(--text-body-lg);
  font-weight: 500;
  color: #1a1a2e;
}

.faq__group .accordion-trigger__icon {
  color: rgba(6, 6, 15, 0.4);
}

.faq__group .accordion-panel__content,
.faq__group .accordion-panel__content p {
  color: rgba(6, 6, 15, 0.7);
}

/* Hover + open states — background on the whole item */
.faq__group .accordion-item {
  border-radius: var(--radius-xs);
  transition: background var(--transition-fast);
}

.faq__group .accordion-trigger {
  padding: var(--space-8) var(--space-4) var(--space-6) var(--space-4);
  transition: color var(--transition-fast);
}

.faq__group .accordion-item:hover {
  background: rgba(255, 255, 255, 0.5);
}

.faq__group .accordion-item:hover .accordion-trigger__text {
  color: #06060F;
}

.faq__group .accordion-item:hover .accordion-trigger__icon {
  color: var(--accent);
}

.faq__group .accordion-item.is-open {
  background: rgba(255, 255, 255, 0.5);
}

.faq__group .accordion-item.is-open .accordion-trigger__icon {
  color: var(--accent);
}

/* Match answer padding to question */
.faq__group .accordion-panel__content {
  padding: 0 var(--space-4) var(--space-6);
}

/* Stagger delays for FAQ groups */
.faq__groups.stagger-children > .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.faq__groups.stagger-children > .animate-on-scroll:nth-child(2) { transition-delay: 120ms; }
.faq__groups.stagger-children > .animate-on-scroll:nth-child(3) { transition-delay: 240ms; }
.faq__groups.stagger-children > .animate-on-scroll:nth-child(4) { transition-delay: 360ms; }
.faq__groups.stagger-children > .animate-on-scroll:nth-child(5) { transition-delay: 480ms; }

/* Mobile */
@media (max-width: 767px) {
  .faq__container {
    padding: var(--space-12) var(--space-6);
    border-radius: 16px;
    margin-bottom: -300px;
  }
}

/* Reduce who-builds overlap on mobile */
@media (max-width: 767px) {
  .sections-bridge .section--who-builds {
    padding-top: calc(300px + var(--space-32));
  }
}


/* ============================================================
   WHO BUILDS — 50/50 GRID
   ============================================================ */

/* Dark text on gradient background */
.section--who-builds .section-header h2 {
  color: #06060F;
}

.section--who-builds .badge {
  background: rgba(6, 6, 15, 0.12);
  color: #06060F;
}

/* 50/50 grid */
.who-builds__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (min-width: 768px) {
  .who-builds__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

/* Left column */
.who-builds__content {
  min-width: 0;
}

.who-builds__subtitle {
  font-size: 22px;
  color: rgba(6, 6, 15, 0.7);
  line-height: 1.5;
  margin-top: var(--space-6);
}

.who-builds__body {
  margin-top: var(--space-6);
}

.who-builds__body p {
  font-size: var(--text-body);
  color: rgba(6, 6, 15, 0.7);
  line-height: 1.7;
  margin: 0;
}

/* Process list */
.who-builds__process {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.who-builds__process-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.who-builds__process-item i {
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  font-size: 1.125rem;
  color: #06060F;
  margin-top: 3px;
}

.who-builds__process-item p {
  font-size: var(--text-body);
  color: rgba(6, 6, 15, 0.7);
  line-height: 1.7;
  margin: 0;
}

.who-builds__process-item strong {
  color: #06060F;
  font-weight: 600;
}



/* Right column: team showcase 3x3 grid */
.who-builds__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.who-builds__showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  width: 100%;
  padding: 0 80px;
}

@media (min-width: 768px) {
  .who-builds__visual {
    align-self: center;
  }
}

.who-builds__showcase-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.who-builds__showcase-number {
  font-family: 'Sora', sans-serif;
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.1;
  color: #06060F;
}

.who-builds__showcase-label {
  font-family: 'Figtree', sans-serif;
  font-size: var(--text-sm);
  color: rgba(6, 6, 15, 0.6);
  font-weight: 500;
  text-align: center;
}

.who-builds__showcase-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.who-builds__showcase-photo.is-visible {
  opacity: 1;
  transform: scale(1);
}

.who-builds__photo-ring {
  position: relative;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    linear-gradient(135deg, #818CF8, #5EEAD4) border-box;
  padding: 8px 0 0 0;
  flex-shrink: 0;
}

/* Comet orbits outside the frame */
.who-builds__photo-ring::before {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid;
  border-image: conic-gradient(
    from var(--comet-angle, 0deg),
    transparent 0%, transparent 80%,
    var(--accent) 85%, var(--tertiary) 88%,
    var(--secondary) 91%, var(--rose) 94%,
    transparent 97%
  ) 1;
  opacity: 0;
  animation: none;
}

.who-builds__photo-ring.comet-active::before {
  animation: comet-chase-once 1.2s linear 1 forwards;
}

.who-builds__photo-ring img {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bg-elevated);
  object-fit: cover;
  border-radius: var(--radius-sm);
}

@media (max-width: 767px) {
  .who-builds__showcase {
    max-width: 340px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .who-builds__photo-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
  }

  .who-builds__photo-ring img {
    border-radius: 50%;
  }

  .who-builds__showcase-number {
    font-size: var(--text-h3);
  }

  .who-builds__showcase-label {
    font-size: var(--text-xs);
  }
}

/* ============================================================
   CTA — FULL-WIDTH BANNER
   ============================================================ */
.section--cta {
  padding: var(--space-32) 0;
  background: var(--bg-deep);
}

.section--cta .cta-banner {
  background: var(--bg-deep);
  padding: 0 var(--space-8);
}

.section--cta .cta-banner p {
  font-size: 22px;
  line-height: 1.5;
}

/* Centered spotlight behind title */
.section--cta .cta-banner::before {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.2) 0%, transparent 65%);
}

/* Footer: faint separator, matching background */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
}


/* ============================================================
   SHARED PAGE HERO BANNER
   ============================================================ */
.section--page-hero {
  padding-top: calc(60px + var(--space-16));
  padding-bottom: var(--space-12);
  background: var(--gradient-cool);
}

.page-hero__title {
  font-size: var(--text-h1);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: var(--space-4);
  color: #06060F;
}


/* ============================================================
   CONTACT US PAGE
   ============================================================ */
.section--contact {
  padding-top: var(--space-16);
  padding-bottom: var(--space-24);
  background: var(--bg-deep);
}

.contact__grid {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: var(--space-16);
}

.contact__sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
}

.contact__badges {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact__badges .badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
}

.contact__badges .badge i {
  font-size: 1rem;
}

.contact__reassurance {
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.contact__email-alt {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.contact__email-alt a {
  color: var(--accent-light);
  text-decoration: none;
}

.contact__email-alt a:hover {
  color: var(--text-primary);
}

.contact__subtitle {
  font-size: 1.375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-10);
}

.contact__form {
  min-height: 400px;
  max-width: 80%;
}

.contact__disclaimer {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 1023px) {
  .contact__form {
    max-width: 100%;
  }

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

  .contact__sidebar {
    position: static;
    order: 1;
  }

  .contact__badges {
    flex-direction: row;
    flex-wrap: wrap;
  }
}


/* ============================================================
   SUCCESS PAGE
   ============================================================ */
.section--success {
  padding-top: var(--space-16);
  padding-bottom: var(--space-24);
  background: var(--bg-deep);
}

.success__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}

.success__content h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.success__content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.success__links-title {
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.success__links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.success__links li {
  color: var(--text-secondary);
  font-size: var(--text-body);
}

.success__links a {
  color: var(--accent-light);
  text-decoration: none;
}

.success__links a:hover {
  color: var(--text-primary);
}

.success__links a i {
  font-size: 0.75em;
  margin-left: var(--space-1);
  opacity: 0.7;
}

@media (max-width: 1023px) {
  .success__grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   PRIVACY POLICY PAGE
   ============================================================ */
.section--privacy {
  padding-top: var(--space-16);
  padding-bottom: var(--space-24);
  background: var(--bg-deep);
}

.privacy__grid {
  display: grid;
  grid-template-columns: 1fr 28%;
  gap: var(--space-16);
}

.privacy__sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
}

.privacy__sidebar-title {
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.privacy__sidebar-intro {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.privacy__contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.privacy__contact-item {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.privacy__contact-item i {
  color: var(--accent-light);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.privacy__contact-item a {
  color: var(--accent-light);
  text-decoration: none;
}

.privacy__contact-item a:hover {
  color: var(--text-primary);
}

@media (max-width: 1023px) {
  .privacy__grid {
    grid-template-columns: 1fr;
  }

  .privacy__sidebar {
    position: static;
  }
}


/* ============================================================
   LEGAL CONTENT (shared text styles)
   ============================================================ */
.legal__content {
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal__content h2 {
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.legal__content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.legal__content p {
  margin-bottom: var(--space-4);
}

.legal__content ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal__content ul ul {
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}

.legal__content li {
  margin-bottom: var(--space-2);
}

.legal__content a {
  color: var(--accent-light);
  text-decoration: none;
}

.legal__content a:hover {
  color: var(--text-primary);
}


/* ============================================================
   MOBILE NAV
   ============================================================ */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

@media (max-width: 767px) {
  .nav__hamburger {
    display: flex;
    margin-left: auto;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #06060F;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-8);
    gap: var(--space-6);
    margin: 0;
    z-index: 100;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__link {
    font-size: var(--text-body-lg);
  }

  .nav__cta {
    display: none;
  }

  /* CTA inside mobile nav link list — hidden on desktop, visible on mobile */
  .nav__links-cta {
    margin-top: auto;
    padding-top: var(--space-6);
    width: 100%;
  }

  .nav__links-cta .btn-primary-pill {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: var(--radius-xs);
    padding: 14px 24px;
  }

  /* Hamburger open state */
  .nav__hamburger.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav__hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }
  .nav__hamburger.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}


/* ============================================================
   FOOTER RESPONSIVE OVERRIDES
   ============================================================ */
.footer {
  background: var(--bg-deep);
}

.footer .container {
  padding-top: var(--space-16);
}

@media (max-width: 767px) {
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   LINK DEFAULTS
   ============================================================ */
a {
  color: inherit;
  text-decoration: none;
}
