:root {
  --orange: #F26A21;
  --orange-dark: #dd5d19;
  --yellow: #F6B300;
  --charcoal: #2F343A;
  --charcoal-soft: #5d636b;
  --silver: #E6E8EC;
  --silver-2: #f5f6f8;
  --cream: #fbf8f2;
  --peach: #fff3eb;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(47, 52, 58, 0.12);
  --shadow-soft: 0 12px 30px rgba(47, 52, 58, 0.08);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--charcoal);
  background:
    linear-gradient(rgba(18,11,8,0.16), rgba(25,14,9,0.24)),
    url('/quiz/network-bg.svg') center center / cover no-repeat fixed,
    #17100c;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(47,52,58,0.08);
}
.header-inner, .footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}
.brand img { width: 190px; height: auto; }
.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 0.94rem;
}
.desktop-nav a {
  color: var(--charcoal-soft);
  font-weight: 600;
}
.desktop-nav a:hover,
.desktop-nav a.active { color: var(--orange); }
.mobile-nav-toggle {
  display: none;
  border: 1px solid rgba(47,52,58,0.12);
  background: var(--white);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  color: var(--charcoal);
}
.mobile-nav {
  display: none;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 16px;
  border: 1px solid rgba(47,52,58,0.1);
  background: var(--white);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow-soft);
}
.mobile-nav.open { display: grid; }
.mobile-nav a {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--charcoal-soft);
  font-weight: 600;
}
.mobile-nav a.active,
.mobile-nav a:hover { background: var(--peach); color: var(--orange); }

.quiz-main {
  padding: 28px 0 56px;
}
.quiz-shell {
  width: min(100%, calc(var(--max) + 32px));
  margin: 0 auto;
  padding: 0 16px;
}

.panel {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(47,52,58,0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.panel::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--yellow) 100%);
}
.panel-inner {
  padding: 28px;
}
.hero-layout {
  min-height: calc(100vh - 188px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-grid {
  display: block;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.hero-copy { padding-right: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--orange);
}
.eyebrow .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
}
.hero-title, .screen-title, .result-title {
  margin: 0 0 14px;
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--charcoal);
}
.hero-title { font-size: clamp(2.2rem, 4vw, 3.8rem); }
.hero-subtitle {
  margin: 0 auto 26px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--charcoal-soft);
  max-width: 720px;
}
.hero-support {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 28px;
  color: var(--charcoal-soft);
  font-size: 0.96rem;
  font-weight: 600;
}
.hero-support span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--silver-2);
}
.hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.benefit-card, .snapshot-card, .insight-card, .step-card {
  background: linear-gradient(180deg, var(--white) 0%, #fffdfa 100%);
  border: 1px solid rgba(47,52,58,0.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 6px 14px rgba(47,52,58,0.05);
}
.benefit-card h3, .snapshot-card h3, .insight-card h3, .step-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.25;
}
.benefit-card p, .snapshot-card p, .insight-card p, .step-card p, .content-section p, .content-section li {
  margin: 0;
  color: var(--charcoal-soft);
  line-height: 1.62;
  font-size: 0.98rem;
}
.build-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.tile {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  font-weight: 800;
  color: var(--charcoal);
  background: linear-gradient(180deg, #fff 0%, #fff7ef 100%);
  border: 1px solid rgba(47,52,58,0.08);
  box-shadow: 0 10px 25px rgba(47,52,58,0.08);
  position: relative;
}
.tile::after {
  content: '';
  position: absolute;
  inset: auto 16px 10px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  opacity: 0.75;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn, .secondary-btn, .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  transition: 0.18s ease;
  text-decoration: none;
}
.btn {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  padding: 15px 22px;
  border-radius: 14px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(242,106,33,0.22);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.secondary-btn {
  background: var(--white);
  color: var(--charcoal);
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid rgba(47,52,58,0.12);
}
.secondary-btn:hover { border-color: var(--orange); color: var(--orange); }
.ghost-btn {
  color: var(--charcoal-soft);
  padding: 6px 0;
  font-weight: 700;
  background: transparent;
}
.ghost-btn:hover { color: var(--orange); }
.note-line {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--charcoal-soft);
}

.question-layout {
  min-height: calc(100vh - 188px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.question-panel,
.lead-panel {
  width: min(940px, 100%);
  margin: 0 auto;
}
.question-panel .panel-inner,
.lead-panel .panel-inner { padding: 24px 26px; }
.question-panel .panel-inner {
  min-height: 540px;
  display: flex;
  flex-direction: column;
}
.question-panel .screen-title {
  min-height: 72px;
  display: flex;
  align-items: flex-end;
}
.question-panel .options-grid {
  flex: 1;
  align-content: center;
}
.progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  font-weight: 600;
  margin-bottom: 14px;
}
.progress-top strong { color: var(--orange); }
.progress-bar {
  height: 10px;
  width: 100%;
  background: var(--silver-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--yellow) 100%);
  transition: width 0.28s ease;
}
.screen-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--orange);
  margin-bottom: 10px;
}
.screen-title { font-size: clamp(1.55rem, 2.4vw, 2.35rem); margin-bottom: 18px; max-width: 840px; }
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.option-card {
  border: 1px solid rgba(47,52,58,0.12);
  border-radius: 18px;
  background: var(--white);
  min-height: 92px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}
.option-card:hover {
  border-color: rgba(242,106,33,0.45);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(47,52,58,0.08);
}
.option-card.selected {
  border-color: var(--orange);
  background: linear-gradient(180deg, #fffaf6 0%, #fff3e8 100%);
  box-shadow: 0 14px 28px rgba(242,106,33,0.14);
}
.option-marker {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(47,52,58,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--charcoal);
  background: var(--white);
  flex: 0 0 auto;
}
.option-card.selected .option-marker {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}
.option-text {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--charcoal);
  font-weight: 600;
}
.question-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.action-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.inline-error {
  margin: 14px 0 0;
  color: #b42318;
  font-weight: 600;
  font-size: 0.93rem;
}

.lead-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 22px;
}
.lead-intro p {
  color: var(--charcoal-soft);
  line-height: 1.68;
  margin: 0 auto;
}
.lead-form {
  max-width: 780px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--charcoal);
}
.field input {
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(47,52,58,0.15);
  background: var(--white);
}
.field input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(242,106,33,0.12);
}
.form-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.small-print {
  color: var(--charcoal-soft);
  font-size: 0.85rem;
  line-height: 1.55;
  max-width: 520px;
}

.result-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.result-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  align-items: center;
}
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--peach);
  color: var(--orange);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  margin-bottom: 14px;
}
.result-title {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  margin-bottom: 10px;
}
.result-summary {
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--charcoal-soft);
  margin: 0 0 18px;
}
.result-side-card {
  border-radius: 22px;
  background: linear-gradient(180deg, #fff9f4 0%, #fff 100%);
  border: 1px solid rgba(47,52,58,0.08);
  padding: 22px;
  box-shadow: 0 14px 28px rgba(47,52,58,0.06);
}
.result-side-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}
.result-side-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.result-side-card li {
  position: relative;
  padding-left: 18px;
  color: var(--charcoal-soft);
  line-height: 1.55;
}
.result-side-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
}
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.snapshot-card h3, .insight-card h3 {
  color: var(--charcoal);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.snapshot-card {
  border-top: 4px solid var(--orange);
}
.insight-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.content-section {
  border: 1px solid rgba(47,52,58,0.08);
  border-radius: 22px;
  background: rgba(255,255,255,0.96);
  padding: 22px;
}
.content-section h2 {
  margin: 0 0 10px;
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 1.28rem;
  line-height: 1.15;
}
.content-section h3 {
  margin: 16px 0 8px;
  font-size: 1rem;
}
.content-section ul {
  margin: 12px 0 0 0;
  padding-left: 20px;
  color: var(--charcoal-soft);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.step-card {
  border-top: 4px solid var(--yellow);
}
.step-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--peach);
  color: var(--orange);
  font-weight: 800;
  margin-bottom: 12px;
}
.build-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.flow-item {
  border-radius: 18px;
  border: 1px solid rgba(47,52,58,0.08);
  background: var(--silver-2);
  padding: 16px 12px;
  text-align: center;
}
.flow-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.93rem;
}
.flow-item span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--charcoal-soft);
}
.flow-item.active {
  background: linear-gradient(180deg, #fff7ef 0%, #fff 100%);
  border-color: rgba(242,106,33,0.25);
  box-shadow: 0 10px 24px rgba(242,106,33,0.08);
}
.cta-panel {
  background: linear-gradient(135deg, #2f343a 0%, #434a53 100%);
  color: var(--white);
  border-radius: 26px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
}
.cta-panel h2 {
  margin: 0 0 12px;
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
.cta-panel p { color: rgba(255,255,255,0.82); margin: 0; line-height: 1.7; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.cta-panel .secondary-btn {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}
.cta-panel .secondary-btn:hover { border-color: var(--white); color: var(--white); }
.cta-panel .btn { box-shadow: none; }

.site-footer {
  border-top: 1px solid rgba(47,52,58,0.08);
  background: rgba(255,255,255,0.8);
}
.footer-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--charcoal-soft);
  font-size: 0.94rem;
}
.footer-logo { width: 170px; }

@media (max-width: 1100px) {
  .hero-grid,
  .result-hero,
  .cta-panel { grid-template-columns: 1fr; }
  .hero-copy { padding-right: 0; }
  .hero-benefits,
  .card-grid-4,
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-actions { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .mobile-nav-toggle { display: inline-flex; }
  .options-grid,
  .form-grid,
  .build-flow { grid-template-columns: 1fr; }
  .question-layout,
  .hero-layout { min-height: auto; }
  .result-layout { gap: 18px; }
  .question-actions,
  .form-footer,
  .footer-inner { flex-direction: column; align-items: stretch; }
  .action-right { width: 100%; justify-content: space-between; }
  .footer-inner { padding: 18px 0; }
}

@media (max-width: 720px) {
  .quiz-main { padding: 18px 0 42px; }
  .panel-inner,
  .question-panel .panel-inner,
  .lead-panel .panel-inner { padding: 20px 18px; }
  .hero-benefits,
  .card-grid-4,
  .steps-grid { grid-template-columns: 1fr; }
  .build-tiles { gap: 8px; }
  .tile { border-radius: 18px; }
  .hero-title { font-size: 2.05rem; }
  .screen-title { font-size: 1.45rem; }
  .result-title { font-size: 2rem; }
  .btn, .secondary-btn { width: 100%; }
  .btn-row, .cta-actions { width: 100%; }
  .site-header { position: static; }
  .site-footer { margin-top: 24px; }
}

.hero-grid .btn-row { justify-content: center; }
.hero-grid .note-line { text-align: center; }
.hero-grid .eyebrow { justify-content: center; }
.hero-grid .hero-title { max-width: 760px; margin-left: auto; margin-right: auto; }
.hero-grid .hero-subtitle { max-width: 720px; }
.panel { background: rgba(255,255,255,0.97); }
@media (max-width: 900px) { body { background-attachment: scroll; } }


@media print {
  body { background: #fff !important; }
  .site-header, .site-footer, .btn, .secondary-btn, .ghost-btn, .result-badge + .result-title + .result-summary + .btn-row { display: none !important; }
  .quiz-main { padding: 0 !important; }
  .quiz-shell { width: 100% !important; max-width: none !important; padding: 0 !important; }
  .panel, .snapshot-card, .insight-card, .content-section, .step-card, .result-side-card, .cta-panel {
    box-shadow: none !important;
    break-inside: avoid;
  }
  .cta-panel { background: #fff !important; color: #000 !important; border: 1px solid #ccc !important; }
  .cta-panel p { color: #333 !important; }
  .result-layout { gap: 12px !important; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .steps-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* Result delivery should never be blocked by a temporary form submission problem. */
.submission-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(47,52,58,0.10);
  color: var(--charcoal-soft);
  box-shadow: 0 10px 22px rgba(47,52,58,0.07);
}
.submission-notice-error {
  border-color: rgba(242,106,33,0.28);
  background: #fff8f3;
  color: var(--charcoal);
}
.submission-notice-error strong { color: var(--orange-dark); }
.submission-notice .secondary-btn { flex: 0 0 auto; }

@media (max-width: 720px) {
  .submission-notice {
    align-items: stretch;
    flex-direction: column;
  }
}

@media print {
  .submission-notice { display: none !important; }
}
