@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..24,400,0,0");

:root {
  --theme-bg: #ffffff;
  --theme-bg-soft: #f8fafc;
  --theme-surface: #ffffff;
  --theme-surface-raised: #f1f5f9;
  --theme-text: #020617;
  --theme-muted: #475569;
  --theme-subtle: #64748b;
  --theme-line: #e2e8f0;
  --theme-accent: #00687a;
  --theme-accent-bright: #06b6d4;
  --theme-header: rgba(255, 255, 255, .94);
  --theme-shadow: 0 18px 50px rgba(2, 6, 23, .09);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --theme-bg: #020617;
  --theme-bg-soft: #07111f;
  --theme-surface: #0f172a;
  --theme-surface-raised: #162033;
  --theme-text: #f8fafc;
  --theme-muted: #cbd5e1;
  --theme-subtle: #94a3b8;
  --theme-line: #334155;
  --theme-accent: #22d3ee;
  --theme-accent-bright: #67e8f9;
  --theme-header: rgba(7, 17, 31, .94);
  --theme-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  --bg: var(--theme-bg);
  --surface: var(--theme-surface);
  --surface-soft: var(--theme-bg-soft);
  --line: var(--theme-line);
  --text: var(--theme-text);
  --muted: var(--theme-muted);
  --primary: #22d3ee;
  --primary-strong: #67e8f9;
  --primary-soft: rgba(34, 211, 238, .12);
  --success: #2dd4bf;
  --warning: #fbbf24;
  --danger: #fb7185;
  --shadow: var(--theme-shadow);
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.shared-theme-toggle,
.guide-theme-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--theme-line);
  border-radius: 6px;
  background: var(--theme-surface);
  color: var(--theme-text);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.shared-theme-toggle:hover,
.shared-theme-toggle:focus-visible,
.guide-theme-toggle:hover,
.guide-theme-toggle:focus-visible {
  border-color: var(--theme-accent-bright);
  color: var(--theme-accent);
  transform: translateY(-1px);
}

.shared-theme-toggle .material-symbols-outlined,
.guide-theme-toggle .material-symbols-outlined {
  font-size: 22px;
}

html[data-theme="dark"] body {
  background-color: var(--theme-bg) !important;
  background-image:
    radial-gradient(circle at top left, rgba(34, 211, 238, .07), transparent 28%),
    linear-gradient(180deg, #020617 0%, #07111f 100%) !important;
  color: var(--theme-text) !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] label,
html[data-theme="dark"] strong {
  color: var(--theme-text);
}

html[data-theme="dark"] p,
html[data-theme="dark"] li {
  color: var(--theme-muted);
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .cyan,
html[data-theme="dark"] .text-link,
html[data-theme="dark"] .number {
  color: var(--theme-accent);
}

html[data-theme="dark"] .section,
html[data-theme="dark"] .method-step + .method-step,
html[data-theme="dark"] .aido-fix-list,
html[data-theme="dark"] .aido-fix-list article,
html[data-theme="dark"] .principle,
html[data-theme="dark"] .principle:nth-child(even),
html[data-theme="dark"] .lane + .lane,
html[data-theme="dark"] .credential,
html[data-theme="dark"] .method-rail article + article {
  border-color: var(--theme-line);
}

html[data-theme="dark"] .section-soft {
  background: var(--theme-bg-soft);
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .about-hero,
html[data-theme="dark"] .method-hero {
  background: var(--theme-bg);
}

html[data-theme="dark"] .hero::before,
html[data-theme="dark"] .about-hero::before,
html[data-theme="dark"] .method-hero::before {
  opacity: .12;
  filter: brightness(1.45) saturate(.9);
}

html[data-theme="dark"] .method-stack::after {
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .08));
}

html[data-theme="dark"] .step-mark {
  color: var(--theme-text);
  background: var(--theme-surface);
  box-shadow: 0 0 0 8px rgba(34, 211, 238, .1);
}

html[data-theme="dark"] .pullquote,
html[data-theme="dark"] .personal-grid article,
html[data-theme="dark"] .service-map article {
  border-color: var(--theme-line);
  background: var(--theme-surface);
  box-shadow: var(--theme-shadow);
}

html[data-theme="dark"] .pullquote p,
html[data-theme="dark"] .personal-grid article,
html[data-theme="dark"] .service-map article {
  color: var(--theme-text);
}

html[data-theme="dark"] .issue,
html[data-theme="dark"] .lane ul,
html[data-theme="dark"] .credential {
  color: var(--theme-muted);
}

html[data-theme="dark"] .personal-grid {
  border-color: var(--theme-line);
  background: var(--theme-line);
}

html[data-theme="dark"] .button-secondary {
  border-color: var(--theme-line);
  background: var(--theme-surface);
  color: var(--theme-text);
}

html[data-theme="dark"] .button:hover,
html[data-theme="dark"] .button:focus-visible,
html[data-theme="dark"] .button-secondary:hover,
html[data-theme="dark"] .button-secondary:focus-visible {
  background: #164e63;
  color: #ffffff;
}

html[data-theme="dark"] .text-link:hover {
  color: var(--theme-accent-bright);
}

html[data-theme="dark"] .proof {
  border-color: var(--theme-line);
  background: var(--theme-surface);
}

html[data-theme="dark"] .proof-copy strong {
  color: var(--theme-text);
}

html[data-theme="dark"] .proof-copy span {
  color: var(--theme-muted);
}

.scenario-list {
  display: grid;
  gap: 14px;
}

.scenario-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid rgba(0, 131, 158, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 16px 40px -28px rgba(15, 23, 42, .35);
}

.scenario-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, .12);
  color: #00687a;
}

.scenario-item h3 {
  margin: 0 0 6px;
  color: #020617;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.scenario-item p {
  margin: 0;
  color: #475569;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
}

.faq-accordion {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 16px 40px -30px rgba(15, 23, 42, .35);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  cursor: pointer;
  color: #020617;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, .12);
  color: #00687a;
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 28px 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, .08);
  color: #475569;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
}

.hero-title-match {
  font-size: clamp(48px, 6.2vw, 82px) !important;
  line-height: .98 !important;
  letter-spacing: -.035em;
}

.discovery-hero {
  padding-top: clamp(15rem, 18vw, 18rem) !important;
}

.audit-consent {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 24px !important;
  border-radius: 28px !important;
}

.audit-consent input[type="checkbox"] {
  position: static !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  margin: 4px 0 0 !important;
}

.audit-consent span {
  min-width: 0;
}

@media (max-width: 640px) {
  .scenario-item {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .faq-item summary {
    padding: 22px;
  }

  .faq-item p {
    margin: 0 22px 22px;
  }

  .audit-consent {
    gap: 12px !important;
    padding: 18px !important;
    border-radius: 22px !important;
  }

  .discovery-hero {
    padding-top: 14rem !important;
  }
}

html[data-theme="dark"] .scenario-item,
html[data-theme="dark"] .faq-item {
  border-color: var(--theme-line);
  background: var(--theme-surface);
  box-shadow: var(--theme-shadow);
}

html[data-theme="dark"] .scenario-icon,
html[data-theme="dark"] .faq-item summary::after {
  background: rgba(34, 211, 238, .14);
  color: var(--theme-accent);
}

html[data-theme="dark"] .scenario-item h3,
html[data-theme="dark"] .faq-item summary {
  color: var(--theme-text);
}

html[data-theme="dark"] .scenario-item p,
html[data-theme="dark"] .faq-item p {
  color: var(--theme-muted);
}

html[data-theme="dark"] .faq-item p {
  border-top-color: var(--theme-line);
}

html[data-theme="dark"] .assessment-band,
html[data-theme="dark"] .dark-section,
html[data-theme="dark"] .cta-panel {
  background-color: #020617;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-white\/80,
html[data-theme="dark"] .bg-white\/90,
html[data-theme="dark"] .bg-white\/95,
html[data-theme="dark"] .bg-surface {
  background-color: var(--theme-surface) !important;
}

html[data-theme="dark"] .bg-white\/5,
html[data-theme="dark"] .bg-white\/10,
html[data-theme="dark"] .bg-slate-50,
html[data-theme="dark"] .bg-surface-container-low,
html[data-theme="dark"] .bg-primary\/5 {
  background-color: var(--theme-bg-soft) !important;
}

html[data-theme="dark"] .bg-slate-100,
html[data-theme="dark"] .bg-surface-container-highest {
  background-color: var(--theme-surface-raised) !important;
}

html[data-theme="dark"] .text-on-surface,
html[data-theme="dark"] .text-slate-950,
html[data-theme="dark"] .text-slate-900,
html[data-theme="dark"] .text-slate-800,
html[data-theme="dark"] .text-slate-700 {
  color: var(--theme-text) !important;
}

html[data-theme="dark"] .text-on-surface-variant,
html[data-theme="dark"] .text-slate-600,
html[data-theme="dark"] .text-slate-500 {
  color: var(--theme-muted) !important;
}

html[data-theme="dark"] .text-slate-400,
html[data-theme="dark"] .text-slate-300 {
  color: var(--theme-subtle) !important;
}

html[data-theme="dark"] .text-primary,
html[data-theme="dark"] .text-primary-container,
html[data-theme="dark"] .text-cyan-700,
html[data-theme="dark"] .text-cyan-600,
html[data-theme="dark"] .text-cyan-500,
html[data-theme="dark"] .hover\:text-primary:hover,
html[data-theme="dark"] .hover\:text-primary-container:hover,
html[data-theme="dark"] .hover\:text-on-surface:hover {
  color: var(--theme-accent) !important;
}

html[data-theme="dark"] .border-slate-100,
html[data-theme="dark"] .border-slate-200,
html[data-theme="dark"] .border-slate-200\/60,
html[data-theme="dark"] .border-outline-variant\/10,
html[data-theme="dark"] .border-primary\/10,
html[data-theme="dark"] .border-primary-container\/10 {
  border-color: var(--theme-line) !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  border-color: var(--theme-line) !important;
  background: var(--theme-surface-raised) !important;
  color: var(--theme-text) !important;
}

html[data-theme="dark"] .opt.selected {
  border-color: var(--theme-accent) !important;
  background: rgba(34, 211, 238, .12) !important;
  color: var(--theme-accent) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: var(--theme-subtle) !important;
  opacity: 1;
}

html[data-theme="dark"] select option {
  background: var(--theme-surface);
  color: var(--theme-text);
}

html[data-theme="dark"] .pillar-card,
html[data-theme="dark"] .signal-card,
html[data-theme="dark"] .outcome-card,
html[data-theme="dark"] .bento-card {
  border-color: var(--theme-line) !important;
  background: rgba(15, 23, 42, .94) !important;
  box-shadow: var(--theme-shadow);
}

html[data-theme="dark"] .topbar {
  border-color: var(--theme-line);
  background: var(--theme-header);
}

html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .personalization-card,
html[data-theme="dark"] .score-card,
html[data-theme="dark"] .signal-card,
html[data-theme="dark"] .fix-card,
html[data-theme="dark"] details.category-card,
html[data-theme="dark"] details.faq-card,
html[data-theme="dark"] .ladder-card,
html[data-theme="dark"] .principles {
  border-color: var(--theme-line) !important;
  background: var(--theme-surface) !important;
  box-shadow: var(--theme-shadow);
}

html[data-theme="dark"] .category-card.priority-high,
html[data-theme="dark"] .signal-card.priority-high,
html[data-theme="dark"] .fix-card.priority-high {
  border-color: rgba(251, 113, 133, .42) !important;
  background: linear-gradient(180deg, rgba(251, 113, 133, .12), var(--theme-surface)) !important;
}

html[data-theme="dark"] .category-card.priority-medium,
html[data-theme="dark"] .signal-card.priority-medium,
html[data-theme="dark"] .fix-card.priority-medium {
  border-color: rgba(251, 191, 36, .38) !important;
  background: linear-gradient(180deg, rgba(251, 191, 36, .1), var(--theme-surface)) !important;
}

html[data-theme="dark"] .chip,
html[data-theme="dark"] .toggle,
html[data-theme="dark"] .btn-secondary {
  border-color: var(--theme-line);
  background: var(--theme-surface-raised);
  color: var(--theme-text);
}

html[data-theme="dark"] .ladder-card.good,
html[data-theme="dark"] .ladder-card.better,
html[data-theme="dark"] .ladder-card.best {
  background: linear-gradient(180deg, rgba(34, 211, 238, .1), var(--theme-surface)) !important;
}

html[data-theme="dark"] .circuit-bg {
  opacity: .06;
  filter: invert(1);
}

@media (max-width: 1080px) {
  .shared-theme-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shared-theme-toggle,
  .guide-theme-toggle {
    transition: none;
  }
}

@media print {
  .shared-theme-toggle,
  .guide-theme-toggle {
    display: none !important;
  }

  html[data-theme="dark"] {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --line: #dbe4ee;
    --text: #020617;
    --muted: #475569;
    --primary: #00839e;
    --primary-strong: #00687a;
  }

  html[data-theme="dark"] body {
    background: #ffffff !important;
    color: #020617 !important;
  }
}
