:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  background: #0b0f1a;
  color: #e2e8f0;
  --bg: #0b0f1a;
  --panel: #111827;
  --panel-strong: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --brand: #6366f1;
  --brand-dark: #4338ca;
  --accent: #14b8a6;
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
  /* Spacing tokens */
  --space-section: 4rem;
  --space-heading: 0.75rem;
  --space-stack: 1.25rem;
}

/* Icon system */
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

img.icon {
  display: block;
  max-width: none;
}

/* Colored icons for specific contexts */
.stage-header img.icon {
  filter: brightness(0) saturate(100%) invert(67%) sepia(91%) saturate(500%) hue-rotate(142deg) brightness(95%);
}

.tool-flow-item img.icon {
  filter: brightness(0) saturate(100%) invert(47%) sepia(93%) saturate(1352%) hue-rotate(228deg) brightness(100%);
}

.icon-row img.icon {
  filter: brightness(0) saturate(100%) invert(47%) sepia(93%) saturate(1352%) hue-rotate(228deg) brightness(100%);
}

.timeline-icon img.icon {
  filter: brightness(0) saturate(100%) invert(47%) sepia(93%) saturate(1352%) hue-rotate(228deg) brightness(100%);
}

.icon-lg {
  width: 32px;
  height: 32px;
}

.icon-sm {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  :root {
    /* ~40px mobile section padding */
    --space-section: 2.5rem;
    /* slightly tighter vertical rhythm on small screens */
    --space-stack: 1rem;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.container p,
.container li {
  max-width: 680px;
}

.text-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.text-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.header {
  position: sticky;
  top: 0;
  background: rgba(11, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: auto;
  padding: 0.5rem 0;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}

.footer .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer .brand span {
  display: none;
}

/* Header logo - consistent sizing across all pages - MUST override everything */
.header .brand img,
.header-content .brand img,
.brand img,
a.brand img {
  height: 72px !important;
  width: auto !important;
  max-width: 280px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.12));
  flex-shrink: 0;
}

/* Footer logo - consistent sizing across all pages - MUST override everything */
.footer .brand img,
.footer-brand .brand img,
.footer .footer-brand .brand img,
.footer-inner .brand img {
  height: 64px !important;
  width: auto !important;
  max-width: 250px !important;
  min-width: 120px !important;
  object-fit: contain !important;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

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

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown > a::after {
  content: "▼";
  font-size: 0.7rem;
  opacity: 0.7;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0;
  min-width: 200px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--muted);
  white-space: normal;
}

.nav-dropdown-menu a:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.mobile-menu-toggle:hover {
  color: var(--accent);
}

.mobile-menu-toggle::before {
  content: "☰";
  display: block;
  font-size: 1.5rem;
}

.mobile-menu-toggle[aria-expanded="true"]::before {
  content: "✕";
}

.mobile-nav {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  padding: 0.625rem 0.875rem;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.06);
  font-size: 0.95rem;
}

.mobile-nav .nav-dropdown-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  margin-top: 0.5rem;
  margin-left: 1rem;
  box-shadow: none;
  border: none;
  background: transparent;
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  margin-bottom: 2rem;
}

.header .nav-cta {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .nav-cta {
    margin-bottom: 1.5rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav {
    display: none;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.button.primary {
  background: var(--brand);
  color: white;
  box-shadow: var(--shadow);
}

.button.primary:hover {
  background: var(--brand-dark);
}

.button.secondary {
  border-color: var(--border);
  color: var(--text);
}

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  padding: var(--space-section) 0;
  background: radial-gradient(circle at top, rgba(99, 102, 241, 0.18), transparent 55%),
    radial-gradient(circle at 30% 30%, rgba(20, 184, 166, 0.15), transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.hero-grid .card {
  margin-top: 0;
}

.hero .nav-cta {
  margin-bottom: 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0.5rem 0 1rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 1rem;
}

.section > .container > h2 {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .section > .container > h2 {
    margin-bottom: 1.25rem;
  }
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 var(--space-heading);
}

p {
  color: var(--muted);
  margin: 0 0 var(--space-stack);
}

.section {
  padding: var(--space-section) 0;
}

.section.alt {
  background: var(--panel);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-stack);
  margin-top: 1rem;
}

.card {
  padding: 1.25rem 1.5rem;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.card .button {
  margin-top: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.4);
}

/* Help grid - Ways we can help section */
.help-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .help-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.help-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.5);
  min-height: 180px;
}

.help-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.help-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  flex-grow: 1;
}

.help-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.help-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.help-cta:hover {
  opacity: 1;
  text-decoration: none;
}

/* Visual Components */

/* Stage Ladder */
.stage-ladder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.stage-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stage-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stage-header .icon {
  color: var(--accent);
}

.stage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.2);
  color: var(--accent);
  font-size: 0.85rem;
}

.stage-result {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Tool Flow Diagram */
.tool-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.tool-flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 80px;
}

.tool-flow-item .icon {
  color: var(--brand);
}

.tool-flow-item span {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.tool-flow-arrow {
  color: var(--muted);
  opacity: 0.5;
}

@media (max-width: 768px) {
  .tool-flow {
    padding: 1.25rem 1rem;
  }
  
  .tool-flow-item {
    min-width: 60px;
  }
  
  .tool-flow-arrow {
    transform: rotate(90deg);
  }
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.timeline-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  border: 2px solid var(--brand);
  color: var(--brand);
  flex-shrink: 0;
}

.timeline-item h3 {
  margin: 0;
  font-size: 1rem;
}

.timeline-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Before/After Block */
.before-after {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.3);
  border-radius: 12px;
}

.before-block,
.after-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.before-block h4,
.after-block h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.before-block h4 {
  color: #ef4444;
}

.after-block h4 {
  color: var(--accent);
}

.before-block ul,
.after-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.before-block li,
.after-block li {
  padding: 0.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.5rem;
}

.before-block li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #ef4444;
}

.after-block li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Icon Rows (replaces cards) */
.icon-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.icon-row:last-child {
  border-bottom: none;
}

.icon-row .icon {
  color: var(--brand);
  margin-top: 0.25rem;
}

.icon-row-content {
  flex: 1;
}

.icon-row-content h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.icon-row-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Mock UI Panels */
.mock-panel {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

.mock-panel-header {
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.mock-panel-content {
  color: var(--muted);
}

.mock-panel-highlight {
  color: var(--text);
  background: rgba(20, 184, 166, 0.1);
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.list li {
  padding: 0.5rem 0;
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.metric {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(99, 102, 241, 0.12);
}

.faq {
  display: grid;
  gap: 1rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.4);
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.form {
  display: grid;
  gap: 1rem;
}

/* Wizard forms should be single column */
.form-wizard {
  display: block;
  grid-template-columns: none;
}

/* Single column forms (book page, etc.) */
.form-single-column {
  display: block;
  grid-template-columns: none;
}

.form-single-column > button {
  margin-top: 1rem;
  width: auto;
}

@media (min-width: 1024px) {
  .form:not(.form-wizard):not(.form-single-column) {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .form:not(.form-wizard):not(.form-single-column) > .form-row {
    grid-column: 1 / -1;
  }
  
  .form:not(.form-wizard):not(.form-single-column) > button {
    grid-column: 3;
    justify-self: end;
  }
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
  font-size: 1rem;
  font-family: inherit;
}

.form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.8);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.form-wizard .form-row {
  margin-top: 1.5rem;
}

.form-status {
  margin-top: 1rem;
}

.form-status[data-state="error"] {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fecaca;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: center;
}

.download-link {
  margin-top: 0.75rem;
  display: inline-flex;
}

/* Download blocks - compact layout */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.download-block {
  padding: 1.25rem 1.5rem;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.download-info {
  margin-bottom: 1rem;
}

.download-info strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.download-info span {
  color: var(--muted);
  font-size: 0.9rem;
}

.download-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.download-form input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  font-size: 0.9rem;
}

.download-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.download-form .button {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.download-form .download-link {
  font-size: 0.875rem;
  color: var(--accent);
}

/* Footer - condensed text-based design */
.footer {
  padding: 2rem 0 1rem;
  border-top: 1px solid var(--border);
  background: #070b14;
  font-size: 0.875rem;
}

.footer-inner {
  max-width: 900px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand .brand {
  margin-bottom: 0.25rem;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-brand a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-brand a:hover {
  color: var(--text);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col strong {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.6;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  align-items: center;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}

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

@media (max-width: 900px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 2.5rem 0 1.5rem;
  }
  
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .footer-brand {
    gap: 0.625rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
  }
  
  
  .footer-brand p {
    font-size: 0.95rem;
  }
  
  .footer-brand a {
    font-size: 0.95rem;
  }
  
  .footer-col {
    gap: 0.75rem;
  }
  
  .footer-col strong {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .footer-col a {
    font-size: 0.9rem;
    padding: 0.25rem 0;
  }
  
  .footer-legal {
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    padding-top: 1.5rem;
  }
}

.badge {
  display: inline-flex;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

.notice {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.35);
  color: #c7f9f2;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.result-badge {
  color: var(--accent);
  margin-top: 0.75rem;
  font-weight: 500;
}

.card.promise {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.35);
}

.list.plain {
  background: transparent;
  border: none;
}

.list.plain li {
  background: transparent;
  border: none;
  padding: 0.5rem 0;
}

.roadmap {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin: 3rem 0;
  position: relative;
  align-items: flex-start;
  overflow-x: auto;
  padding: 2rem 0;
}

.roadmap::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 2rem;
  right: 2rem;
  height: 4px;
  background: linear-gradient(to right, var(--brand), var(--accent));
  z-index: 0;
  border-radius: 2px;
}

.roadmap-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 250px;
}

.roadmap-step::after {
  content: '→';
  position: absolute;
  top: 2.25rem;
  right: -1.5rem;
  font-size: 1.5rem;
  color: var(--brand);
  z-index: 2;
  font-weight: bold;
}

.roadmap-step:last-child::after {
  display: none;
}

.roadmap-number {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  border: 4px solid var(--bg);
  position: relative;
  z-index: 3;
}

.roadmap-content {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: 1rem;
}

.roadmap-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
}

.roadmap-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.roadmap-connector {
  display: none;
}

@media (max-width: 1024px) {
  .roadmap {
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
  }
  
  .roadmap::before {
    display: none;
  }
  
  .roadmap-step {
    display: flex;
    gap: 1.5rem;
    text-align: left;
    max-width: 100%;
    min-width: auto;
  }
  
  .roadmap-step::after {
    display: none;
  }
  
  .roadmap-number {
    margin: 0;
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.3rem;
  }
  
  .roadmap-content {
    flex: 1;
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .roadmap-number {
    width: 3rem;
    height: 3rem;
    font-size: 1.1rem;
  }
  
  .roadmap-content {
    padding: 1rem;
  }
}

h3.subsequent {
  margin-top: 1rem;
}

.text-small {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

h1, h2, h3 {
  color: var(--text);
}

h1 {
  line-height: 1.2;
}

h2 {
  line-height: 1.3;
}

h3 {
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-content {
    flex-wrap: wrap;
    min-height: auto;
    gap: 1rem;
    padding: 0.75rem 0;
  }

  .nav-cta {
    width: 100%;
    order: 5;
    justify-content: center;
  }

  .header .brand img,
  .header-content .brand img,
  .brand img,
  a.brand img {
    height: 72px !important;
    width: auto !important;
    max-width: 280px !important;
    object-fit: contain !important;
  }

  .mobile-nav {
    order: 10;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .header-content {
    min-height: auto;
    padding: 0.75rem 0;
    gap: 0.75rem;
  }

  .header .brand img,
  .header-content .brand img,
  .brand img,
  a.brand img {
    height: 64px !important;
    width: auto !important;
    max-width: 280px !important;
    object-fit: contain !important;
  }
  
  .nav-cta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .nav-cta .button {
    width: 100%;
    justify-content: center;
  }
  
  .nav-cta .text-link {
    text-align: center;
    width: 100%;
  }

  .button {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
  }
}

/* Health Checkup Styles */
.health-checkup-grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 2rem;
  align-items: start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* On desktop, mobile pyramid should not take up grid space */
.health-pyramid-mobile {
  display: none !important;
}

.health-map-mobile {
  display: none;
}

.health-form-panel {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.health-map-desktop {
  grid-column: 2;
  grid-row: 1;
  display: none;
  min-width: 0;
  width: 100%;
}

.health-pyramid-desktop {
  grid-column: 2;
  grid-row: 1;
  display: block;
  min-width: 300px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .health-checkup-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  
  .health-pyramid-mobile {
    display: block !important;
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 1.5rem;
  }
  
  .health-map-mobile {
    display: block;
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 1.5rem;
  }
  
  .health-form-panel {
    grid-column: 1;
    grid-row: 2;
  }
  
  .health-map-desktop {
    display: none;
  }
  
  .health-pyramid-desktop {
    display: none;
  }
}

.health-form-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Wizard Styles */
.form-wizard {
  position: relative;
  display: block;
}

.form-wizard .wizard-panels {
  display: block;
}

.wizard-progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.wizard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.2s;
}

.wizard-dot.active {
  background: var(--brand);
  width: 24px;
  border-radius: 4px;
}

.wizard-dot.completed {
  background: var(--accent);
}

.wizard-panels {
  position: relative;
  min-height: 400px;
}

.wizard-panel {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-panel h3 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  margin-top: 0;
}

.wizard-panel > label:first-of-type {
  margin-top: 0;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.wizard-actions-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wizard-step-text {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Form Label Styles */
.form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

.form label:not(.choice) {
  margin-bottom: 0.75rem;
}

/* Question Styles */
.question {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.question legend {
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: 1rem;
  display: block;
  width: 100%;
}

.choice-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
  flex: 1;
  min-width: 100px;
  background: rgba(15, 23, 42, 0.4);
  font-size: 0.95rem;
}

.choice:hover {
  border-color: var(--brand);
  background: rgba(99, 102, 241, 0.1);
}

.choice input[type="radio"] {
  margin: 0;
  cursor: pointer;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--brand);
}

.choice input[type="radio"]:checked + span {
  color: var(--brand);
  font-weight: 500;
}

.choice:has(input[type="radio"]:checked) {
  border-color: var(--brand);
  background: rgba(99, 102, 241, 0.15);
}

.choice span {
  flex: 1;
  text-align: center;
  user-select: none;
}

/* Business Map/Pyramid Styles */
.business-map-card,
.business-pyramid-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  position: sticky;
  top: 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.business-map-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.map-metrics,
.pyramid-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.map-metric,
.pyramid-metric {
  text-align: center;
}

.map-metric .badge,
.pyramid-metric .badge {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.map-value,
.pyramid-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

/* Pillar Chart */
.pillar-chart {
  margin-top: 1.5rem;
}

.pillar-row {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.pillar-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.pillar-icon {
  font-size: 1.2rem;
}

.pillar-name {
  font-weight: 500;
}

.pillar-bar-container {
  position: relative;
  height: 24px;
  background: var(--panel-strong);
  border-radius: 4px;
  overflow: hidden;
}

.pillar-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease, background 0.3s ease;
  background: var(--muted);
}

.pillar-expected-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--text);
  opacity: 0.5;
  transform: translateX(-50%);
}

.pillar-status {
  font-size: 0.85rem;
  font-weight: 500;
  text-align: right;
}

.map-footnote,
.pyramid-footnote {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Pyramid Layers */
.pyramid-layers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.pyramid-layer {
  background: var(--panel-strong);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.pyramid-layer.current {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.pyramid-layer.expected {
  border-color: var(--accent);
  border-style: dashed;
}

.layer-header {
  margin-bottom: 0.75rem;
}

.layer-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.layer-focus {
  font-size: 0.85rem;
  color: var(--muted);
}

.layer-systems,
.layer-lanes {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.pyramid-lane {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: 6px;
  background: var(--panel-strong);
  min-width: 70px;
  flex: 1;
  transition: all 0.2s ease;
}

.lane-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}

.pyramid-lane.lane-good {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pyramid-lane.lane-weak {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pyramid-lane.lane-unknown {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  opacity: 0.6;
}

.pyramid-lane.lane-not-required {
  background: transparent;
  border: 1px solid transparent;
  opacity: 0.3;
}

.lane-icon {
  font-size: 1.2rem;
}

.lane-status {
  font-size: 1rem;
}

.system-icon {
  font-size: 1.25rem;
  transition: transform 0.2s ease;
  cursor: help;
}

.system-icon:hover {
  transform: scale(1.2);
}

.system-icon.unknown {
  opacity: 0.4;
}

/* Recommendations */
.recommendations-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
  position: sticky;
  top: calc(2rem + 500px); /* Below pyramid card */
}

.pyramid-recommendations h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text);
  margin-top: 0;
}

.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recommendation-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--panel-strong);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.rec-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.rec-content {
  flex: 1;
}

.rec-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.rec-why {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.rec-link {
  font-size: 0.85rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.rec-link:hover {
  text-decoration: underline;
}

.no-recommendations {
  color: var(--accent);
  font-weight: 500;
  text-align: center;
  padding: 1rem;
}

/* Validation errors */
.validation-error {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Quick Check vs Full Check Toggle */
.checkup-mode-toggle {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
  background: var(--border);
  border-radius: 13px;
  transition: background 0.3s;
}

.toggle-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch {
  background: var(--brand);
}

.toggle-switch::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: transform 0.3s;
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch::after {
  transform: translateX(24px);
}

.toggle-text {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
}

.toggle-option {
  transition: opacity 0.3s;
}

.toggle-label input[type="checkbox"]:not(:checked) ~ .toggle-text .toggle-option:last-child,
.toggle-label input[type="checkbox"]:checked ~ .toggle-text .toggle-option:first-child {
  opacity: 0.5;
}

/* Mobile pyramid summary */
.pyramid-collapsible summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.pyramid-collapsible summary::-webkit-details-marker {
  display: none;
}

.pyramid-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pyramid-summary-main {
  flex: 1;
}

.pyramid-summary-level {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.pyramid-summary-status {
  font-size: 0.9rem;
  color: var(--muted);
}

.pyramid-summary-link {
  color: var(--brand);
  font-size: 0.9rem;
}

.pyramid-collapsible[open] .pyramid-summary-link::after {
  content: " (hide)";
}

.pyramid-collapsible:not([open]) .pyramid-summary-link::after {
  content: " →";
}

/* Mobile Business Map - margin handled in media query */

.map-collapsible summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.map-collapsible summary::-webkit-details-marker {
  display: none;
}

.map-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-summary-main {
  flex: 1;
}

.map-summary-level {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.map-summary-lagging {
  font-size: 0.9rem;
  color: var(--muted);
}

.map-summary-link {
  color: var(--brand);
  font-size: 0.9rem;
}

.map-collapsible[open] .map-summary-link::after {
  content: " (hide)";
}

.map-collapsible:not([open]) .map-summary-link::after {
  content: " →";
}

/* Health Results */
.health-results {
  margin-top: 2rem;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.score-grid h3 {
  font-size: 2rem;
  margin: 0.5rem 0 0 0;
}

.health-results h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.health-results h3:first-of-type {
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .health-form-panel {
    padding: 1.5rem;
    max-width: 100%;
  }
  
  .wizard-panel h3 {
    font-size: 1.1rem;
  }
  
  .choice-row {
    flex-direction: column;
  }
  
  .choice {
    min-width: auto;
  }
  
  .pillar-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .pillar-bar-container {
    order: 2;
  }
  
  .pillar-status {
    order: 3;
    text-align: left;
  }
  
  .map-metrics,
  .pyramid-metrics {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .score-grid {
    grid-template-columns: 1fr;
  }
  
  .recommendations-card {
    position: static;
  }
}

/* Problems Picker Interactive Component */
.section-intro {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.problems-picker {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  margin: 2rem 0;
  align-items: start;
}

.problems-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: sticky;
  top: 100px;
}

.problem-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
}

.problem-item:hover {
  background: var(--panel-strong);
  border-color: var(--accent);
  transform: translateX(4px);
}

.problem-item:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.problem-item.active {
  background: var(--panel-strong);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.problem-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}

.problem-title {
  flex: 1;
}

.problems-detail {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  min-height: 400px;
}

.problem-detail-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.problem-detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.problem-symptom,
.problem-solution,
.problem-result {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.problem-symptom h4,
.problem-solution h4,
.problem-result h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  margin: 0;
}

.problem-symptom p {
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

.problem-we-do {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.problem-we-do li {
  color: var(--text);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.problem-we-do li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.problem-result {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.result-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.problem-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.problem-ctas .text-link {
  text-align: center;
}

.done-for-you-block {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.done-for-you-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

.done-for-you-block p {
  color: var(--muted);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile: Stack layout */
@media (max-width: 768px) {
  .problems-picker {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .problems-list {
    position: static;
    order: 1;
  }

  .problems-detail {
    order: 2;
    min-height: auto;
    padding: 1.5rem;
  }

  .problem-detail-title {
    font-size: 1.25rem;
  }

  .problem-item {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .problem-ctas {
    flex-direction: column;
  }

  .done-for-you-block {
    padding: 1.25rem;
  }

  .done-for-you-block h3 {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .problems-detail {
    padding: 1.25rem;
  }

  .problem-detail-title {
    font-size: 1.125rem;
  }

  .problem-item {
    padding: 0.625rem;
    font-size: 0.85rem;
    margin-top: 1.5rem;
  }
}
