:root {
  --starter-ink: #18263a;
  --starter-muted: #5e7087;
  --starter-line: rgba(24, 38, 58, 0.12);
  --starter-surface: rgba(255, 255, 255, 0.95);
  --starter-surface-soft: rgba(255, 255, 255, 0.82);
  --starter-brand: #0f6abf;
  --starter-brand-2: #13a39a;
  --starter-brand-deep: #0b345f;
  --starter-accent: #f08a38;
  --starter-shadow: 0 24px 54px rgba(16, 33, 58, 0.08);
  --starter-radius: 20px;
  --starter-radius-lg: 28px;
  --tone-lower: #e6f5ef;
  --tone-lower-ink: #12684f;
  --tone-moderate: #eef5ff;
  --tone-moderate-ink: #0f5f9e;
  --tone-stretched: #fff1e8;
  --tone-stretched-ink: #955526;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(19, 163, 154, 0.14), transparent 34%),
    radial-gradient(circle at 100% 10%, rgba(15, 106, 191, 0.14), transparent 38%),
    linear-gradient(180deg, #eef5ff 0%, #f7f9fc 42%, #f9f7f1 100%);
}

.dti-shell,
.dti-shell input,
.dti-shell select,
.dti-shell textarea,
.dti-shell button {
  font: inherit;
}

.dti-shell {
  width: min(1220px, 94vw);
  margin: 24px auto 48px;
  color: var(--starter-ink);
}

.dti-shell a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
}

.hero-dti {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  margin-top: 16px;
  padding: 28px;
  border-radius: var(--starter-radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(240, 138, 56, 0.18), transparent 30%),
    linear-gradient(135deg, var(--starter-brand-deep), var(--starter-brand) 56%, var(--starter-brand-2));
  box-shadow: var(--starter-shadow);
}

.hero-dti > [data-simplekit-header] {
  grid-column: 1 / -1;
}

.hero-dti .site-topbar {
  margin-bottom: 0;
}

.hero-copy,
.hero-side,
.hero-highlight,
.hero-mini-grid,
.results-stack,
.counted-summary,
.guided-progress,
.calculator-card,
.input-card,
.form-toolbar,
.feature-grid,
.info-grid,
.related-grid,
.results-detail-grid,
.comparison-grid,
.faq-list {
  display: grid;
  gap: 12px;
}

.hero-copy,
.hero-side {
  min-width: 0;
}

.eyebrow,
.section-kicker,
.step-kicker,
.mini-kicker,
.trust-label {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.mini-kicker {
  opacity: 0.86;
}

.section-kicker,
.step-kicker,
.trust-label {
  color: var(--starter-brand);
}

.hero-dti h1,
.panel h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Baskerville", "Georgia", serif;
}

.hero-dti h1 {
  font-size: clamp(2.5rem, 4.8vw, 4.9rem);
  line-height: 1.02;
  max-width: 10ch;
}

.hero-subtitle,
.hero-proof,
.muted,
.small-copy,
.panel-header p,
.results-block-head p,
.detail-copy {
  margin: 0;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  max-width: 56ch;
}

.hero-proof,
.panel-header p,
.results-block-head p,
.feature-grid p,
.info-card p,
.related-card p,
.comparison-card p,
.detail-copy,
.faq-list p {
  line-height: 1.6;
}

.hero-actions,
.toolbar-actions,
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mode-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-mode {
  min-height: 40px;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  border: 0;
}

.btn-mode.is-active {
  background: rgba(255, 255, 255, 0.22);
}

.hero-trust-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-trust-row span,
.hero-mini-grid div,
.hero-highlight {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(7px);
}

.hero-trust-row span,
.hero-mini-grid div {
  padding: 10px 12px;
  font-size: 0.88rem;
}

.hero-highlight {
  padding: 20px;
}

.hero-highlight strong {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1;
}

.hero-highlight p {
  margin: 0;
}

.mini-summary-label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
}

.panel,
.results-shell,
.results-status,
.feature-grid article,
.info-card,
.detail-card,
.comparison-card,
.related-card {
  border: 1px solid var(--starter-line);
  border-radius: var(--starter-radius);
  background: var(--starter-surface);
  box-shadow: 0 10px 30px rgba(16, 33, 58, 0.04);
}

.page-flow {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.panel {
  padding: 18px;
}

.panel-header,
.results-block-head,
.input-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-header > div,
.results-block-head > div,
.input-card-head > div {
  flex: 0 1 320px;
  min-width: 220px;
}

.panel-header > p,
.results-block-head > p,
.input-card-head > p {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 62ch;
}

.feature-grid,
.info-grid,
.result-grid,
.related-grid,
.comparison-grid,
.results-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid,
.info-grid,
.related-grid,
.faq-list {
  margin-top: 12px;
}

.feature-grid article,
.info-card,
.result-card,
.comparison-card,
.related-card,
.detail-card {
  padding: 16px;
}

.feature-grid strong,
.info-card h3,
.result-card strong,
.comparison-card strong,
.related-card h3 {
  display: block;
  margin-bottom: 8px;
}

.calculator-layout {
  display: block;
  margin-top: 14px;
}

.guided-shell {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.guided-sidebar {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 18px;
}

.guided-sidebar-home {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--starter-line);
  background:
    radial-gradient(circle at 100% 0%, rgba(19, 163, 154, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(15, 106, 191, 0.06), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 30px rgba(16, 33, 58, 0.04);
}

.guided-sidebar-home strong {
  font-size: 1.25rem;
  line-height: 1.1;
}

.guided-sidebar-home p {
  margin: 0;
  color: var(--starter-muted);
  line-height: 1.5;
  font-size: 0.94rem;
}

.calculator-card {
  align-content: start;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--starter-line);
  background: var(--starter-surface-soft);
}

.form-toolbar {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 14px;
  padding-bottom: 4px;
}

.form-toolbar > div:first-child {
  max-width: 54ch;
}

.guided-main .toolbar-actions {
  gap: 10px;
  align-items: center;
}

.guided-main .mode-toggle {
  padding: 5px;
  border-radius: 16px;
  background: rgba(15, 106, 191, 0.06);
  border: 1px solid rgba(15, 106, 191, 0.12);
}

.guided-main .btn-mode {
  min-height: 38px;
  padding-inline: 14px;
  color: var(--starter-muted);
  border-radius: 12px;
}

.guided-main .btn-mode.is-active {
  color: var(--starter-ink);
  background: #fff;
  border: 1px solid rgba(15, 106, 191, 0.12);
  box-shadow: 0 8px 20px rgba(16, 33, 58, 0.06);
}

.setup-link-row {
  margin: 0;
}

.mode-summary,
.mode-inline-note {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 106, 191, 0.1);
  background: rgba(15, 106, 191, 0.04);
  color: var(--starter-muted);
  line-height: 1.5;
}

.mode-summary strong,
.mode-inline-note strong {
  color: var(--starter-ink);
}

.mode-inline-note {
  margin: 0;
}

.input-card {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--starter-line);
}

.counted-summary {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 106, 191, 0.12);
  background: linear-gradient(180deg, rgba(15, 106, 191, 0.07), rgba(255, 255, 255, 0.92));
}

.counted-summary strong,
.primary-answer strong {
  display: block;
}

.guided-progress {
  gap: 8px;
  padding: 2px 0 6px;
}

.guided-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 106, 191, 0.12);
  overflow: hidden;
}

.guided-progress-fill {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--starter-brand), var(--starter-brand-2));
  transition: width 180ms ease;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.progress-steps-sidebar {
  grid-template-columns: 1fr;
  gap: 10px;
}

.progress-step {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 8px;
  border-radius: 18px;
  border: 1px solid var(--starter-line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--starter-muted);
}

.progress-steps-sidebar .progress-step {
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-items: start;
  text-align: left;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(16, 33, 58, 0.03);
}

.progress-step span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 106, 191, 0.08);
  font-weight: 800;
  color: var(--starter-brand-deep);
}

.progress-step small {
  font-size: 0.78rem;
  font-weight: 700;
}

.progress-steps-sidebar .progress-step small {
  font-size: 0.98rem;
  line-height: 1.1;
}

.progress-step.is-active,
.progress-step.is-complete {
  color: var(--starter-ink);
  border-color: rgba(15, 106, 191, 0.2);
}

.progress-steps-sidebar .progress-step.is-active {
  background: linear-gradient(90deg, rgba(15, 106, 191, 0.11), rgba(19, 163, 154, 0.09));
  transform: translateX(4px);
}

.progress-step.is-active span,
.progress-step.is-complete span {
  background: linear-gradient(180deg, rgba(15, 106, 191, 0.18), rgba(19, 163, 154, 0.2));
}

.progress-steps-sidebar .progress-step.is-complete {
  background: rgba(255, 255, 255, 0.96);
}

.guided-step {
  display: none;
}

.guided-step.is-active {
  display: grid;
}

.step-explainer {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 106, 191, 0.05);
  border: 1px solid rgba(15, 106, 191, 0.08);
}

.step-explainer summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--starter-brand-deep);
  list-style: none;
}

.step-explainer summary::-webkit-details-marker {
  display: none;
}

.step-explainer summary::after {
  content: "+";
  float: right;
  color: var(--starter-brand);
}

.step-explainer[open] summary::after {
  content: "\2212";
}

.step-explainer p {
  margin: 10px 0 0;
  color: var(--starter-muted);
}

.form-grid-single {
  grid-template-columns: 1fr;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guided-main .input-card-head {
  align-items: end;
}

.guided-main .input-card {
  gap: 12px;
  padding: 16px;
}

.guided-main .input-card-head > div {
  flex-basis: 280px;
}

.guided-main .input-card-head > p {
  flex-basis: 360px;
  color: var(--starter-muted);
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field span {
  font-weight: 700;
}

.form-field small,
.toggle-card small {
  color: var(--starter-muted);
  line-height: 1.45;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--starter-line);
  border-radius: 14px;
  color: var(--starter-ink);
  background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.btn:focus,
.text-link:focus,
summary:focus {
  outline: 3px solid rgba(240, 138, 56, 0.32);
  outline-offset: 2px;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.toggle-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--starter-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 106, 191, 0.04), rgba(255, 255, 255, 0.96));
}

.toggle-card input {
  margin-top: 3px;
}

.toggle-card span {
  display: grid;
  gap: 4px;
}

.toggle-card-inline {
  min-height: 100%;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.wizard-actions-right {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.wizard-step-counter {
  color: var(--starter-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.results-stack {
  align-content: start;
}

.results-stack-full {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.results-status,
.results-shell {
  padding: 16px;
}

.results-status {
  background: linear-gradient(135deg, rgba(15, 106, 191, 0.08), rgba(19, 163, 154, 0.08));
}

.results-status.is-lower {
  background: linear-gradient(135deg, rgba(18, 104, 79, 0.08), rgba(230, 245, 239, 0.85));
}

.results-status.is-moderate {
  background: linear-gradient(135deg, rgba(15, 106, 191, 0.08), rgba(238, 245, 255, 0.85));
}

.results-status.is-stretched,
.results-status.is-warning {
  background: linear-gradient(135deg, rgba(240, 138, 56, 0.12), rgba(255, 241, 232, 0.88));
}

.status-note {
  margin: 8px 0 0;
  color: var(--starter-muted);
  font-size: 0.92rem;
}

.result-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.result-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.primary-answer {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--starter-line);
  background:
    radial-gradient(circle at 100% 0%, rgba(19, 163, 154, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(11, 52, 95, 0.98), rgba(15, 106, 191, 0.94));
  color: #fff;
}

.primary-answer-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.primary-answer-value {
  font-family: "Iowan Old Style", "Baskerville", "Georgia", serif;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 0.95;
}

.primary-answer p {
  margin: 0;
  line-height: 1.55;
}

.primary-answer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.primary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.88rem;
}

.result-card {
  border-radius: 18px;
  border: 1px solid var(--starter-line);
  background: linear-gradient(180deg, rgba(15, 106, 191, 0.05), rgba(255, 255, 255, 0.9));
}

.result-card-lower {
  background: linear-gradient(180deg, rgba(18, 104, 79, 0.08), rgba(255, 255, 255, 0.95));
}

.result-card-moderate {
  background: linear-gradient(180deg, rgba(15, 106, 191, 0.08), rgba(255, 255, 255, 0.95));
}

.result-card-stretched {
  background: linear-gradient(180deg, rgba(240, 138, 56, 0.12), rgba(255, 255, 255, 0.95));
}

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

.detail-card {
  background: rgba(255, 255, 255, 0.94);
}

.comparison-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.comparison-card {
  background: rgba(255, 255, 255, 0.94);
}

.comparison-card-up {
  background: linear-gradient(180deg, rgba(240, 138, 56, 0.08), rgba(255, 255, 255, 0.95));
}

.comparison-card-down {
  background: linear-gradient(180deg, rgba(18, 104, 79, 0.08), rgba(255, 255, 255, 0.95));
}

.panel-collapsible {
  padding: 0;
  overflow: hidden;
}

.panel-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

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

.panel-summary h2 {
  margin: 4px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.panel-summary-hint {
  flex: 0 0 auto;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--starter-muted);
}

.panel-summary-hint::after {
  content: " +";
  color: var(--starter-brand);
}

.panel-collapsible[open] .panel-summary-hint::after {
  content: " -";
}

.panel-collapsible-body {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
  border-top: 1px solid rgba(15, 106, 191, 0.08);
}

.panel-collapsible-intro {
  margin: 0;
  color: var(--starter-muted);
  line-height: 1.55;
  max-width: 74ch;
}

.faq-list details {
  padding: 14px 16px;
  border: 1px solid var(--starter-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

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

.faq-list p {
  margin: 12px 0 0;
}

.related-card {
  display: grid;
  gap: 8px;
}

.related-card h3 {
  margin: 0;
}

.text-link {
  font-weight: 700;
  color: var(--starter-brand);
  text-decoration: none;
}

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

.disclaimer-panel p {
  max-width: 70ch;
}

@media (max-width: 980px) {
  .hero-dti,
  .feature-grid,
  .info-grid,
  .result-grid,
  .results-detail-grid,
  .comparison-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .guided-shell {
    grid-template-columns: 1fr;
  }

  .guided-sidebar {
    position: static;
  }

  .progress-steps-sidebar {
    grid-template-columns: repeat(5, minmax(90px, 1fr));
    overflow-x: auto;
  }

  .progress-steps-sidebar .progress-step {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 6px;
  }

  .panel-header,
  .results-block-head,
  .input-card-head,
  .form-toolbar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .form-grid,
  .toggle-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dti-shell {
    width: min(100%, 100vw);
    margin: 0;
    padding: 12px;
  }

  .hero-dti,
  .panel,
  .results-shell,
  .results-status,
  .calculator-card {
    padding: 16px;
  }

  .hero-dti h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-actions,
  .toolbar-actions,
  .form-actions,
  .wizard-actions,
  .wizard-actions-right {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-answer-top {
    display: grid;
  }

  .progress-steps {
    grid-template-columns: repeat(5, minmax(70px, 1fr));
    overflow-x: auto;
  }

  .mode-toggle {
    justify-content: stretch;
  }

  .btn-mode {
    flex: 1 1 0;
  }
}
