/* style.css — JNI Studio Component Styles */

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 100;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-4);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: var(--space-4) var(--space-6);
  background: oklch(0.1 0.02 240 / 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), backdrop-filter 0.35s var(--ease-out);
}
.site-header.scrolled {
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
.site-header.hidden {
  transform: translateY(-100%);
}
.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
/* Header over hero needs light text */
.site-header:not(.scrolled) .logo {
  color: #F5F2ED;
}
.site-header:not(.scrolled) .nav-desktop a {
  color: oklch(0.85 0.01 60 / 0.75);
}
.site-header:not(.scrolled) .nav-desktop a:hover {
  color: #F5F2ED;
}
.site-header:not(.scrolled) .theme-toggle {
  color: oklch(0.85 0.01 60 / 0.75);
}
.site-header:not(.scrolled) .theme-toggle:hover {
  color: #F5F2ED;
  background: oklch(0.85 0.01 60 / 0.1);
}
.logo svg,
.logo .logo-mark {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}
.logo-img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}
.logo-img--footer {
  height: 56px;
}
/* Light cream header (after scroll) needs a dark backdrop so the
   white wordmark in the horizontal logo stays legible. Over the
   hero the header is transparent on a dark image, so no pill. */
.site-header.scrolled .logo {
  background: #0B1623;
  color: #F5F2ED;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}
.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  position: relative;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-interactive);
}
.nav-desktop a:hover {
  color: var(--color-text);
}
.nav-desktop a:hover::after {
  width: 100%;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-6);
  transition: background var(--transition-interactive), color var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  padding: var(--space-2) 0;
}
.btn-ghost:hover {
  color: var(--color-accent-hover);
}
.btn-header {
  display: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { bottom: -7px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 49;
  padding: calc(var(--space-16) + var(--space-8)) var(--space-6) var(--space-8);
  flex-direction: column;
  gap: var(--space-4);
  overflow-y: auto;
}
.nav-mobile.active {
  display: flex;
}
.nav-mobile a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}
.nav-mobile a:hover {
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .btn-header { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    oklch(0.1 0.02 240 / 0.82) 0%,
    oklch(0.08 0.02 240 / 0.75) 50%,
    oklch(0.06 0.03 240 / 0.9) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-32) var(--space-6) var(--space-16);
  width: 100%;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #F5F2ED;
  max-width: 14ch;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: var(--text-lg);
  color: oklch(0.85 0.01 60);
  max-width: 52ch;
  margin-bottom: var(--space-8);
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.hero .btn-primary {
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}
.hero .btn-secondary {
  color: #F5F2ED;
  border-color: oklch(0.85 0.01 60 / 0.35);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}
.hero .btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: oklch(0.85 0.01 60 / 0.6);
  animation: bounce-down 2s var(--ease-in-out) infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== SECTION COMMON ===== */
.section {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) var(--space-6);
}
.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  max-width: 20ch;
}
.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-bottom: var(--space-12);
}

/* ===== PROBLEM SECTION ===== */
.problem {
  background: var(--color-surface);
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}
.problem-text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.problem-stat-callout {
  padding: var(--space-8);
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.problem-stat-callout .big-stat {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.problem-stat-callout p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-divider);
}
.stat-item {
  text-align: left;
  padding: var(--space-4);
}
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .problem-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .stats-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.service-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}
.service-card.featured {
  background: var(--color-navy);
  border-color: transparent;
  color: #F5F2ED;
}
[data-theme='dark'] .service-card.featured {
  background: var(--color-surface-2);
  border-color: var(--color-accent);
}
.service-card.featured .service-title {
  color: #F5F2ED;
}
.service-card.featured .service-desc {
  color: oklch(0.8 0.01 60);
}
.service-card.featured .service-icon {
  color: var(--color-accent);
}
[data-theme='dark'] .service-card.featured .service-title {
  color: var(--color-text);
}
[data-theme='dark'] .service-card.featured .service-desc {
  color: var(--color-text-muted);
}
.service-icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}
.service-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.service-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
  }
  .service-card.featured {
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ===== PORTFOLIO ===== */
.portfolio-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: clamp(var(--space-12), 6vw, var(--space-20));
  align-items: center;
}
.portfolio-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.portfolio-item:hover .portfolio-img img {
  transform: scale(1.03);
}
.portfolio-info {
  padding: var(--space-4) 0;
}
.portfolio-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.portfolio-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.portfolio-result {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-amber);
  margin-bottom: var(--space-3);
}
.portfolio-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}
.portfolio-cta {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-top: var(--space-2);
}
.portfolio-cta a {
  color: var(--color-amber);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.portfolio-cta a:hover { opacity: 0.7; }
.portfolio-item:last-child {
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .portfolio-item {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .portfolio-item.reversed {
    direction: rtl;
  }
  .portfolio-item.reversed > * {
    direction: ltr;
  }
  .portfolio-item.full-width {
    grid-template-columns: 1fr;
    max-width: 900px;
  }
  .portfolio-item.full-width .portfolio-img {
    aspect-ratio: 16/9;
  }
}

/* ===== PROCESS ===== */
.process {
  position: relative;
  overflow: hidden;
}
.process-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.process-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.process-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: oklch(0.1 0.02 240 / 0.88);
}
.process .section-inner {
  position: relative;
  z-index: 1;
}
.process .section-heading,
.process .section-label {
  color: #F5F2ED;
}
.process .section-heading {
  color: #F5F2ED;
}
.process-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  position: relative;
  margin-top: var(--space-4);
}
.process-step {
  position: relative;
  padding-left: var(--space-10);
}
.process-step::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 42px;
  bottom: -32px;
  width: 2px;
  background: oklch(0.85 0.01 60 / 0.2);
}
.process-step:last-child::before {
  display: none;
}
.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-xs);
}
.step-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: #F5F2ED;
  margin-bottom: var(--space-2);
}
.step-desc {
  font-size: var(--text-sm);
  color: oklch(0.8 0.01 60);
  line-height: 1.6;
  max-width: 40ch;
}
@media (min-width: 768px) {
  .process-timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
  .process-step {
    padding-left: 0;
    padding-top: var(--space-12);
    text-align: left;
  }
  .process-step::before {
    left: 42px;
    top: 14px;
    bottom: auto;
    width: calc(100% - 14px);
    height: 2px;
  }
  .step-number {
    position: relative;
    left: auto;
    top: auto;
    margin-bottom: var(--space-5);
  }
}

/* ===== RESULTS / SOCIAL PROOF ===== */
.results {
  position: relative;
  overflow: hidden;
}
.results-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.results-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.results-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: oklch(0.08 0.03 240 / 0.92);
}
.results .section-inner {
  position: relative;
  z-index: 1;
}
.results .section-heading,
.results .section-label {
  color: #F5F2ED;
}
.results-counters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: clamp(var(--space-12), 5vw, var(--space-20));
}
.counter-item {
  text-align: left;
}
.counter-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.counter-label {
  font-size: var(--text-sm);
  color: oklch(0.75 0.01 60);
}
@media (min-width: 768px) {
  .results-counters {
    grid-template-columns: repeat(4, 1fr);
  }
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.testimonial-card {
  padding: var(--space-8);
  background: oklch(0.15 0.02 240 / 0.6);
  border: 1px solid oklch(0.85 0.01 60 / 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}
.testimonial-stars {
  color: var(--color-amber);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
}
.testimonial-quote {
  font-size: var(--text-base);
  color: oklch(0.88 0.01 60);
  line-height: 1.6;
  margin-bottom: var(--space-5);
  font-style: italic;
}
.testimonial-author {
  font-weight: 600;
  color: #F5F2ED;
  font-size: var(--text-sm);
}
.testimonial-role {
  color: oklch(0.65 0.01 60);
  font-size: var(--text-xs);
}
@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== PRICING ===== */
.pricing {
  background: var(--color-surface);
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: stretch;
}
.pricing-card {
  padding: var(--space-8);
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}
.pricing-card.popular {
  border-color: var(--color-accent);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.pricing-badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pricing-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.pricing-price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.pricing-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
  flex-grow: 1;
}
.pricing-features li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.pricing-features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: var(--color-accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.pricing-card .btn {
  width: 100%;
}
@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pricing-card.popular {
    transform: scale(1.04);
  }
}

/* ===== AUDIT FORM ===== */
.audit {
  background: var(--color-surface-warm);
}
.audit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}
.audit-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.form-group input,
.form-group select {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px oklch(from var(--color-accent) l c h / 0.15);
}
.form-group input::placeholder {
  color: var(--color-text-faint);
}
.form-group .error-message {
  font-size: var(--text-xs);
  color: #dc2626;
  display: none;
}
.form-group.has-error input,
.form-group.has-error select {
  border-color: #dc2626;
}
.form-group.has-error .error-message {
  display: block;
}
.audit-trust {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-8);
}
.form-success.active {
  display: block;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
@media (min-width: 768px) {
  .audit-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
}
.faq-item {
  border-bottom: 1px solid var(--color-divider);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
}
.faq-question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform 0.3s var(--ease-out);
}
.faq-item.active .faq-question svg {
  transform: rotate(45deg);
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: var(--space-5);
}
.faq-answer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-navy);
  color: #F5F2ED;
  padding: clamp(var(--space-12), 5vw, var(--space-20)) var(--space-6) var(--space-6);
}
[data-theme='dark'] .site-footer {
  background: var(--color-surface);
}
.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid oklch(0.85 0.01 60 / 0.12);
}
.footer-brand .logo {
  color: #F5F2ED;
  margin-bottom: var(--space-4);
}
[data-theme='dark'] .footer-brand .logo {
  color: var(--color-text);
}
.footer-tagline {
  font-size: var(--text-sm);
  color: oklch(0.7 0.01 60);
  max-width: 36ch;
  margin-bottom: var(--space-5);
  line-height: 1.6;
}
.footer-social {
  display: flex;
  gap: var(--space-3);
}
.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: oklch(0.7 0.01 60);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.footer-social a:hover {
  color: var(--color-accent);
  background: oklch(0.85 0.01 60 / 0.08);
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}
.footer-nav-col h3,
.footer-nav-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #F5F2ED;
  margin-bottom: var(--space-4);
}
[data-theme='dark'] .footer-nav-col h3,
[data-theme='dark'] .footer-nav-col h4 {
  color: var(--color-text);
}
.footer-nav-col a {
  display: block;
  font-size: var(--text-sm);
  color: oklch(0.65 0.01 60);
  text-decoration: none;
  padding: var(--space-1) 0;
}
.footer-nav-col a:hover {
  color: var(--color-accent);
}
.footer-newsletter {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: oklch(0.85 0.01 60 / 0.06);
  border-radius: var(--radius-lg);
}
.footer-newsletter h3,
.footer-newsletter h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #F5F2ED;
  margin-bottom: var(--space-3);
}
[data-theme='dark'] .footer-newsletter h3,
[data-theme='dark'] .footer-newsletter h4 {
  color: var(--color-text);
}
.newsletter-form {
  display: flex;
  gap: var(--space-2);
}
.newsletter-form input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: oklch(0.85 0.01 60 / 0.08);
  border: 1px solid oklch(0.85 0.01 60 / 0.15);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: #F5F2ED;
}
[data-theme='dark'] .newsletter-form input {
  background: var(--color-surface-offset);
  border-color: var(--color-border);
  color: var(--color-text);
}
.newsletter-form input::placeholder {
  color: oklch(0.55 0.01 60);
}
.newsletter-form .btn-primary {
  padding: var(--space-3) var(--space-5);
  flex-shrink: 0;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: oklch(0.55 0.01 60);
  text-align: center;
}
.footer-bottom a {
  color: #F5F2ED;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid oklch(0.85 0.01 60 / 0.25);
  transition: color var(--transition-interactive), border-color var(--transition-interactive);
}
.footer-bottom a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.footer-brand .brand-slogan {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: #F5F2ED;
  margin-bottom: var(--space-3);
  letter-spacing: 0.01em;
}
.footer-legal {
  display: flex;
  gap: var(--space-4);
}
.footer-legal a {
  color: oklch(0.55 0.01 60);
  text-decoration: none;
  border-bottom: none;
  font-weight: 400;
}
.footer-legal a:hover {
  color: var(--color-accent);
}
@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.2fr 1fr;
  }
  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== MOBILE STICKY CTA ===== */
.mobile-sticky-cta {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: var(--space-3) var(--space-4);
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-divider);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-out);
}
.mobile-sticky-cta.visible {
  transform: translateY(0);
}
.mobile-sticky-cta .btn {
  width: 100%;
  padding: var(--space-3) var(--space-6);
}
@media (min-width: 768px) {
  .mobile-sticky-cta {
    display: none;
  }
}

/* ===== EXIT POPUP ===== */
.exit-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: oklch(0 0 0 / 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.exit-popup-overlay.active {
  display: flex;
}
.exit-popup {
  background: var(--color-surface-2);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
}
.exit-popup-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.exit-popup-close:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.exit-popup h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.exit-popup p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}
.exit-popup-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.exit-popup-form input {
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-sm);
}
.exit-popup-form input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px oklch(from var(--color-accent) l c h / 0.15);
}
.exit-popup-dismiss {
  text-align: center;
  margin-top: var(--space-4);
}
.exit-popup-dismiss button {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: underline;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 1;
}
@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}
@keyframes reveal-fade {
  to { opacity: 1; }
}

/* Section CTA links */
.section-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-decoration: none;
  margin-top: var(--space-8);
  transition: gap var(--transition-interactive), color var(--transition-interactive);
}
.section-cta:hover {
  gap: var(--space-3);
  color: var(--color-accent-hover);
}
.section-cta svg {
  width: 18px;
  height: 18px;
}
.hero-slogan .slogan-line { display: block; }
@media (min-width: 768px) {
  .hero-slogan .slogan-line { display: inline; }
}
}
