:root {
  color: #0f172a;
  background: #eef4f8;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html,
body,
#root,
.app-shell,
.app-container {
  overflow-anchor: none;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 34rem),
    linear-gradient(180deg, #f8fafc 0%, #e9f0f5 100%);
}

button,
input,
select,
a.button {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.app-shell {
  min-height: 100vh;
  padding: 2rem 1rem 3rem;
  overflow-anchor: none;
}

.scroll-reset-sentinel {
  display: block;
  height: 0;
  scroll-margin-top: 0;
}

.app-container {
  width: min(100%, 72rem);
  margin: 0 auto;
}

.app-hero,
.app-panel,
.step-navigation,
.result-card {
  border: 1px solid #dbe4ee;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.app-hero,
.app-panel,
.step-navigation {
  border-radius: 1.5rem;
}

.app-hero {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.app-hero p:first-child {
  margin: 0;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.app-hero h1 {
  max-width: 54rem;
  margin: 0.75rem 0 0;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.app-hero p:last-child {
  max-width: 48rem;
  margin: 1rem 0 0;
  color: #475569;
  font-size: 1rem;
}

.step-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding: 0.85rem;
}

.step-tab {
  appearance: none;
  min-height: 2.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  padding: 0.6rem 1rem;
  font-size: 0.92rem;
  font-weight: 750;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease,
    color 160ms ease, transform 160ms ease;
}

.step-tab:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #64748b;
  background: #f8fafc;
}

.step-tab--active,
.step-tab[aria-current='step'] {
  border-color: #123255;
  background: linear-gradient(135deg, #123255, #1e4973);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(18, 50, 85, 0.26);
}

.app-panel {
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.app-panel h2,
.app-panel legend {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.app-panel h3 {
  margin-top: 0;
}

.app-panel p {
  color: #475569;
}

fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset > legend {
  grid-column: 1 / -1;
  margin-bottom: 0.35rem;
}

label.block,
label[class~='block'] {
  display: block;
}

label span:first-child {
  display: block;
  color: #1e293b;
  font-size: 0.93rem;
  font-weight: 750;
  line-height: 1.35;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input:not([type]),
select {
  display: block;
  width: 100%;
  min-height: 2.85rem;
  margin-top: 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.9rem;
  background: #ffffff;
  color: #0f172a;
  padding: 0.7rem 0.85rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

select {
  padding-right: 2.25rem;
}

input[type='checkbox'] {
  width: 1rem;
  height: 1rem;
  accent-color: #123255;
}

input:focus,
select:focus,
button:focus-visible {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.flow-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.button,
.results-cta button,
.results-cta .calendly-link {
  appearance: none;
  min-height: 2.8rem;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-weight: 800;
  letter-spacing: 0.005em;
}

.button--primary {
  border: 1px solid #123255;
  background: linear-gradient(135deg, #123255, #0f172a);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.button--secondary {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.button:hover:not(:disabled),
.results-cta button:hover:not(:disabled),
.results-cta .calendly-link:hover {
  transform: translateY(-1px);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.result-card {
  border-radius: 1.15rem;
  padding: 1.25rem;
}

.result-card--highlight {
  border-color: #bfd0e2;
  background: #f8fafc;
}

.result-card > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.result-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.12rem;
  line-height: 1.35;
}

.classification-badge {
  display: inline-flex;
  width: fit-content;
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #eef4fb;
  color: #27415f;
  padding: 0.32rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-value {
  margin-top: 1rem;
  border-radius: 0.9rem;
  background: #f8fafc;
  padding: 1rem;
}

.result-value--prominent {
  border: 1px solid #cbd5e1;
  background: #ffffff;
}

.result-value p:first-child,
.result-card ul + p,
.result-card p[class*='uppercase'] {
  margin: 0;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-value p:last-child {
  margin: 0.25rem 0 0;
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 850;
}

.result-value--prominent p:last-child {
  font-size: 1.8rem;
}

.result-card ul {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}

.result-card li {
  margin-top: 0.5rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #475569;
  padding: 0.65rem 0.75rem;
}

.results-cta {
  margin-top: 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #102a43, #123255 60%, #1e4973);
  color: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

.results-cta h3,
.results-cta p {
  color: #ffffff;
}

.results-cta p {
  max-width: 52rem;
  opacity: 0.88;
}

.results-cta button,
.results-cta .calendly-link {
  border: 0;
  background: #ffffff;
  color: #123255;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
  text-decoration: none;
}

.summary-section h3,
.full-report-section h3 {
  margin: 0;
  color: #0f172a;
}

.checklist-list,
.question-list,
.documents-list {
  padding-left: 1.1rem;
}

.email-gate__fields {
  align-items: start;
}

.consent-row input {
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .app-shell {
    padding: 1rem 0.75rem 2rem;
  }

  fieldset,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .flow-actions {
    flex-direction: column-reverse;
  }

  .button,
  .results-cta button,
  .results-cta .calendly-link {
    width: 100%;
  }

  .result-card > div:first-child {
    flex-direction: column;
  }
}

.intro-step {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.intro-step > p:not(.disclaimer-card) {
  max-width: 42rem;
  margin: 0.75rem auto 0;
  font-size: 1rem;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9rem;
  max-width: 36rem;
  margin: 1.5rem auto 0;
  border: 1px dashed #94a3b8;
  border-radius: 1.25rem;
  background: #f8fafc;
  color: #475569;
  font-weight: 750;
}

.disclaimer-card,
.results-header > p {
  border-radius: 1rem;
  background: #f8fafc;
  color: #475569;
  padding: 1rem;
  font-size: 0.82rem;
  line-height: 1.65;
}

.disclaimer-card {
  max-width: 44rem;
  margin: 1.5rem auto 0;
  text-align: left;
}

.path-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.path-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid #dbe4ee;
  border-radius: 1rem;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.path-option:hover {
  transform: translateY(-1px);
  border-color: #64748b;
}

.path-option--selected {
  border-color: #123255;
  background: #f1f7fd;
  box-shadow: 0 14px 24px rgba(18, 50, 85, 0.15);
}

.path-option input[type='radio'] {
  margin-top: 0.25rem;
  accent-color: #123255;
}

.support-panel {
  grid-column: 1 / -1;
  border: 1px solid #dbe4ee;
  border-radius: 1rem;
  background: #f8fafc;
  padding: 1rem;
}

.results-header {
  border-bottom: 1px solid #dbe4ee;
  padding-bottom: 1.25rem;
}

.results-header > p {
  max-width: 54rem;
  margin: 0.75rem 0 0;
}

@media (max-width: 760px) {
  .path-options {
    grid-template-columns: 1fr;
  }
}

.calculator-notice-footer,
.privacy-notice,
.acceptable-use-notice,
.report-footer {
  font-size: 0.78rem;
}

.calculator-notice-footer {
  text-align: center;
}

.privacy-notice {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.acceptable-use-notice {
  border-color: #e2e8f0;
}

.report-footer {
  letter-spacing: 0.08em;
}

@media print {
  .flow-actions,
  .calculator-notice-footer,
  .step-navigation {
    display: none;
  }

  .report-footer {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

.protected-report {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.protected-report :is(button, input, select, textarea, a, [role='button']) {
  user-select: auto;
  -webkit-user-select: auto;
}

.report-watermark {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  max-width: 100%;
  margin-bottom: 1rem;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
  color: #64748b;
  padding: 0.45rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.report-watermark p {
  margin: 0;
}

.report-watermark p:first-child {
  color: #334155;
  text-transform: uppercase;
}

.report-use-notice {
  max-width: 54rem;
}

.report-footer {
  display: grid;
  gap: 0.35rem;
}

.report-footer__watermark {
  color: #334155;
}

@media (max-width: 760px) {
  .report-watermark {
    display: grid;
    width: 100%;
    border-radius: 1rem;
    gap: 0.2rem;
  }
}

@media print {
  .step-navigation,
  .flow-actions,
  .results-cta button,
  .results-cta .calendly-link {
    display: none !important;
  }

  .app-shell,
  .app-container,
  .app-panel,
  .protected-report,
  .result-card,
  .results-cta,
  .report-footer,
  .results-header > p,
  .report-use-notice,
  .report-watermark {
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .protected-report {
    color: #0f172a;
  }

  .report-watermark,
  .results-header > p,
  .report-use-notice,
  .report-footer {
    display: block !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
  }

  .report-footer,
  .report-watermark {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
