:root {
  --dlc-font-main: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --dlc-font-display: "Space Grotesk", "Sora", "Avenir Next", sans-serif;

  --dlc-bg: #edf4fb;
  --dlc-surface: #ffffff;
  --dlc-surface-soft: #f6faff;
  --dlc-border: #d3e1ef;
  --dlc-border-strong: #9bbad7;

  --dlc-text: #12283d;
  --dlc-text-muted: #4c657e;
  --dlc-brand: #0a74b4;
  --dlc-brand-strong: #084c74;
  --dlc-accent: #2f9bd8;

  --dlc-success: #14593a;
  --dlc-warning: #7a4a1c;
  --dlc-danger: #8f2434;

  --dlc-radius-2xl: 28px;
  --dlc-radius-xl: 20px;
  --dlc-radius-lg: 16px;
  --dlc-radius-md: 12px;

  --dlc-shadow-xl: 0 34px 72px rgba(7, 28, 47, 0.2);
  --dlc-shadow-lg: 0 18px 40px rgba(8, 31, 51, 0.13);
  --dlc-shadow-md: 0 10px 24px rgba(8, 31, 51, 0.1);
  --dlc-shadow-sm: 0 6px 15px rgba(8, 31, 51, 0.08);
}

html,
body {
  scrollbar-gutter: stable;
}

body {
  overflow-y: scroll;
}

.page-title-wrapper .space90 {
  height: 0;
}

.page-title-wrapper.image-wrapper {
  position: relative;
  isolation: isolate;
}

.page-title-wrapper.image-wrapper::before {
  content: none;
}

.page-title-wrapper.image-wrapper::after {
  content: none;
}

.page-title-wrapper.image-wrapper .inner {
  position: relative;
  z-index: 2;
  padding: 6.1rem 0 5.6rem;
}

.page-title-wrapper.image-wrapper .inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(960px, 92vw);
  height: min(360px, 56vw);
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(9, 20, 30, 0.62), rgba(9, 20, 30, 0));
  z-index: 0;
  pointer-events: none;
}

.page-title-wrapper .page-title,
.page-title-wrapper .lead,
.deferred-levy-tool {
  font-family: var(--dlc-font-main);
}

.page-title-wrapper .page-title {
  max-width: 960px;
  margin: 0 auto 0.95rem;
  color: #f4fbff;
  line-height: 1.02;
  letter-spacing: -0.028em;
  text-wrap: balance;
  font-family: var(--dlc-font-display);
  font-size: clamp(2.45rem, 2.45vw + 1.25rem, 3.3rem);
  position: relative;
  z-index: 1;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.page-title-wrapper .lead {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(235, 247, 255, 0.95);
  line-height: 1.5;
  font-size: clamp(0.98rem, 0.34vw + 0.89rem, 1.12rem);
  position: relative;
  z-index: 1;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.42);
}

.deferred-levy-tool {
  position: relative;
  z-index: 3;
  max-width: 820px;
  margin: -4rem auto 0;
  border: 1px solid var(--dlc-border);
  border-radius: var(--dlc-radius-2xl);
  background:
    radial-gradient(circle at 100% -10%, rgba(107, 185, 233, 0.2), transparent 39%),
    radial-gradient(circle at 0 100%, rgba(147, 205, 241, 0.18), transparent 40%),
    linear-gradient(180deg, #fcfeff, #f4f9ff);
  box-shadow: var(--dlc-shadow-xl);
  color: var(--dlc-text);
  padding: 1.5rem;
}

.dlc-shell {
  display: block;
  align-items: start;
}

.dlc-main {
  display: grid;
  gap: 1.14rem;
  align-content: start;
  max-width: none;
  margin: 0;
}

.dlc-status {
  border: 1px solid #c9dcec;
  border-left: 5px solid var(--dlc-border-strong);
  border-radius: var(--dlc-radius-md);
  background: #f5f9ff;
  color: var(--dlc-text);
  box-shadow: var(--dlc-shadow-sm);
  padding: 0.88rem 1rem;
  line-height: 1.46;
  font-size: 0.95rem;
}

.dlc-status-footer {
  margin-top: 0.2rem;
}

.dlc-status strong {
  font-weight: 800;
}

.dlc-state--insufficient {
  border-color: #bfd2e4;
  background: #f5f9ff;
}

.dlc-state--applicable {
  border-color: #9ed6b7;
  background: #edf9f2;
}

.dlc-state--not_applicable {
  border-color: #b7ccde;
  background: #eef4fb;
}

.dlc-state--out_of_scope {
  border-color: #e8c5a3;
  background: #fff7ef;
}

.dlc-section {
  border: 1px solid var(--dlc-border);
  border-radius: var(--dlc-radius-xl);
  background: var(--dlc-surface);
  box-shadow: var(--dlc-shadow-lg);
}

.dlc-section {
  padding: 1.2rem;
}

.dlc-section-title + .dlc-question-block {
  margin-top: 0.9rem;
}

.dlc-question-block label {
  margin-bottom: 0.65rem;
}

.dlc-section-gate {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.dlc-section-inputs {
  background:
    radial-gradient(circle at 100% 0, rgba(142, 204, 242, 0.2), transparent 44%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.dlc-section-results {
  background:
    radial-gradient(circle at 100% -5%, rgba(130, 195, 237, 0.22), transparent 46%),
    linear-gradient(180deg, #ffffff, #f8fcff);
}

.dlc-step-label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  border: 1px solid #c8dcf0;
  border-radius: 999px;
  background: #ecf6ff;
  color: #1e5885;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 0.27rem 0.56rem;
}

.dlc-section-title {
  margin: 0.5rem 0 0;
  color: var(--dlc-text);
  line-height: 1.13;
  letter-spacing: -0.014em;
  text-wrap: balance;
  font-family: var(--dlc-font-display);
  font-size: clamp(1.36rem, 0.58vw + 1.12rem, 1.68rem);
}

.dlc-step-copy {
  margin: 0.44rem 0 0;
  color: var(--dlc-text-muted);
  line-height: 1.5;
  font-size: 0.94rem;
}

.dlc-micro-note {
  margin: 0.5rem 0 0.94rem;
  color: #355d7e;
  line-height: 1.44;
  font-size: 0.85rem;
  font-weight: 700;
}

.dlc-question-block {
  border: 1px solid #d7e7f6;
  border-radius: 14px;
  background: var(--dlc-surface-soft);
  padding: 0.9rem;
}

.dlc-gate-progressive {
  margin-top: 0.74rem;
}

.dlc-disclosure {
  margin: 0 0 0.85rem;
}

.dlc-disclosure summary {
  list-style: none;
}

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

.dlc-disclosure summary::marker {
  content: "";
}

.dlc-disclosure-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  cursor: pointer;
  user-select: none;
  color: #1f4d73;
  line-height: 1.2;
  font-size: 0.92rem;
  font-weight: 900;
  padding: 0.25rem 0.15rem;
}

.dlc-disclosure-summary:focus-visible {
  outline: 2px solid rgba(10, 116, 180, 0.28);
  outline-offset: 4px;
  border-radius: 10px;
}

.dlc-disclosure-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  position: relative;
}

.dlc-disclosure-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid #37658a;
  border-bottom: 2px solid #37658a;
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 0.16s ease;
}

.dlc-disclosure[open] .dlc-disclosure-icon::after {
  transform: rotate(-135deg);
}

.dlc-disclosure-body {
  margin-top: 0.55rem;
  padding-left: 0.95rem;
  border-left: 3px solid #d7e7f6;
}

.dlc-disclosure-body ul {
  margin: 0;
  padding: 0 0 0 0.2rem;
  color: #355d80;
  display: grid;
  gap: 0.42rem;
  line-height: 1.42;
  font-size: 0.86rem;
}

.dlc-fieldset {
  margin: 0;
}

.dlc-fieldset legend {
  width: auto;
  margin: 0;
  padding: 0;
  color: var(--dlc-text);
  line-height: 1.38;
  font-size: 0.95rem;
  font-weight: 700;
}

.dlc-section label {
  margin-bottom: 0.36rem;
  color: var(--dlc-text);
  line-height: 1.36;
  font-size: 0.93rem;
  font-weight: 700;
}

.dlc-section .form-group {
  margin-bottom: 0.9rem;
}

.dlc-section .form-control {
  min-height: 50px;
  border: 1px solid var(--dlc-border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--dlc-text);
  box-shadow: none;
  font-size: 0.95rem;
}

.dlc-section .form-control::placeholder {
  color: #6d87a2;
}

.dlc-section .form-control:focus {
  border-color: var(--dlc-brand);
  box-shadow: 0 0 0 0.22rem rgba(12, 117, 179, 0.16);
}

.dlc-radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.56rem;
  margin-top: 0.74rem;
}

.dlc-choice-pill {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--dlc-border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--dlc-text);
  margin: 0;
  padding: 0.44rem 0.84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  font-size: 0.89rem;
  font-weight: 700;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dlc-choice-pill input[type="radio"] {
  margin: 0;
  accent-color: var(--dlc-brand);
}

.dlc-choice-pill input[type="radio"]:checked + span {
  color: #114a73;
}

.dlc-choice-pill:has(input:checked) {
  border-color: var(--dlc-brand);
  background: #eaf5ff;
  box-shadow: 0 0 0 0.14rem rgba(12, 117, 179, 0.16);
  transform: translateY(-1px);
}

.dlc-choice-pill:focus-within {
  outline: 2px solid rgba(12, 117, 179, 0.24);
  outline-offset: 1px;
}

.dlc-hint {
  display: block;
  margin-top: 0.35rem;
  color: var(--dlc-text-muted);
  line-height: 1.4;
  font-size: 0.84rem;
}

.dlc-actions {
  margin-top: 0.96rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.58rem;
}

.dlc-btn-primary,
.dlc-btn-secondary,
.dlc-btn-ghost {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.58rem 1.06rem;
  line-height: 1.1;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.dlc-btn-primary {
  color: #fff;
  background: linear-gradient(136deg, var(--dlc-brand), var(--dlc-brand-strong));
  box-shadow: 0 10px 24px rgba(12, 117, 179, 0.26);
}

.dlc-btn-primary:hover,
.dlc-btn-primary:focus {
  color: #fff;
  background: linear-gradient(136deg, #0a6297, #073d5d);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(12, 117, 179, 0.3);
}

.dlc-btn-secondary {
  color: #fff;
  background: linear-gradient(136deg, #184f78, #112f49);
}

.dlc-btn-secondary:hover,
.dlc-btn-secondary:focus {
  color: #fff;
  background: linear-gradient(136deg, #114567, #0d2538);
  transform: translateY(-1px);
}

.dlc-btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dlc-btn-ghost {
  color: var(--dlc-text);
  border-color: var(--dlc-border-strong);
  background: #fff;
}

.dlc-btn-ghost:hover,
.dlc-btn-ghost:focus {
  color: var(--dlc-text);
  background: #f2f8ff;
  transform: translateY(-1px);
}

.deferred-levy-result-card {
  border: 1px solid #cfdeeb;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% -16%, rgba(142, 203, 241, 0.3), transparent 44%),
    linear-gradient(180deg, #f8fcff, #ffffff);
  padding: 1rem;
}

.dlc-label {
  margin: 0;
  color: #4d6e8d;
  text-transform: uppercase;
  letter-spacing: 0.085em;
  line-height: 1.24;
  font-size: 0.67rem;
  font-weight: 760;
}

.dlc-total-block {
  margin-top: 0.86rem;
  border: 1px solid #b9d4ea;
  border-radius: 15px;
  background:
    radial-gradient(circle at 100% 0, rgba(100, 181, 233, 0.35), transparent 45%),
    linear-gradient(140deg, #0f679d, #0b3e60);
  text-align: left;
  padding: 0.66rem 0.82rem;
}

.dlc-total-block .dlc-label {
  color: rgba(231, 245, 255, 0.84);
}

.dlc-total-value {
  margin: 0.23rem 0 0;
  color: #f4faff;
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-family: var(--dlc-font-display);
  font-size: clamp(1.72rem, 1.2vw + 1.1rem, 2.14rem);
  font-weight: 800;
}

.dlc-metric-grid {
  margin-bottom: 0.8rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.dlc-metric-card {
  margin: 0;
  border: 1px solid #d7e5f2;
  border-radius: 11px;
  background: #fff;
  padding: 0.58rem 0.64rem;
}

.dlc-metric-card p {
  margin: 0;
  color: #4a6b88;
  line-height: 1.28;
  font-size: 0.75rem;
}

.dlc-metric-card strong {
  display: block;
  margin-top: 0.28rem;
  color: var(--dlc-text);
  line-height: 1.2;
  font-size: 0.95rem;
  font-weight: 800;
}

.dlc-result-grid {
  border: 1px solid #d0e1ef;
  border-radius: 12px;
  background: #fff;
}

.dlc-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.68rem;
  align-items: center;
  padding: 0.68rem 0.78rem;
}

.dlc-result-row + .dlc-result-row {
  border-top: 1px solid #d4e3f0;
}

.dlc-result-row span {
  color: var(--dlc-text-muted);
  font-size: 0.9rem;
}

.dlc-result-row strong {
  color: var(--dlc-text);
  text-align: right;
  font-size: 0.93rem;
}

#dlc-warnings {
  margin-top: 0.88rem;
  border-radius: 12px;
  border-color: #ebcfae;
  background: #fff8ee;
  color: var(--dlc-warning);
}

#dlc-errors {
  margin-top: 0.4rem;
  margin-bottom: 0;
  border-radius: 12px;
  color: var(--dlc-danger);
}

#dlc-errors ul,
#dlc-warnings ul {
  margin: 0;
  padding-left: 1rem;
}

.dlc-share-feedback {
  color: var(--dlc-success);
  line-height: 1.4;
  font-size: 0.84rem;
  font-weight: 700;
}

@media (max-width: 1240px) {
  .deferred-levy-tool {
    margin-top: -3.5rem;
    padding: 1.3rem;
  }
}

@media (max-width: 991px) {
  .page-title-wrapper.image-wrapper .inner {
    padding: 5.1rem 0 3.9rem;
  }

  .deferred-levy-tool {
    margin-top: -1.15rem;
    padding: 1rem;
  }

  .dlc-intro {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 767px) {
  .page-title-wrapper.image-wrapper .inner {
    padding: 4.2rem 0 3rem;
  }

  .page-title-wrapper .page-title {
    max-width: 330px;
    font-size: clamp(1.8rem, 6.6vw, 2.1rem);
    line-height: 1.06;
  }

  .page-title-wrapper .lead {
    max-width: 330px;
    line-height: 1.44;
    font-size: 0.9rem;
  }

  .deferred-levy-tool {
    margin-top: -0.08rem;
    border-radius: 18px;
    padding: 0.8rem;
    box-shadow: 0 16px 34px rgba(8, 31, 51, 0.16);
  }

  .dlc-intro-main,
  .dlc-section {
    border-radius: 14px;
    padding: 0.86rem;
  }

  .dlc-intro-title {
    font-size: 1.48rem;
  }

  .deferred-levy-intro {
    margin-top: 0.54rem;
    line-height: 1.5;
    font-size: 0.93rem;
  }

  .dlc-question-block {
    padding: 0.76rem;
  }

  .dlc-step-copy {
    font-size: 0.92rem;
  }

  .dlc-fieldset legend,
  .dlc-section label {
    font-size: 0.93rem;
  }

  .dlc-radio-group {
    gap: 0.48rem;
  }

  .dlc-choice-pill {
    border-radius: 12px;
  }

  .dlc-total-block {
    margin-top: 0.72rem;
  }

  .dlc-total-value {
    font-size: 1.88rem;
  }

  .dlc-result-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .dlc-result-row strong {
    text-align: left;
  }

  .dlc-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .dlc-actions .btn {
    width: 100%;
  }

  .dlc-share-feedback {
    text-align: center;
  }

}

@media (max-width: 520px) {
  .page-title-wrapper.image-wrapper .inner {
    padding: 3.85rem 0 2.5rem;
  }

  .page-title-wrapper .page-title {
    max-width: 290px;
    font-size: clamp(1.55rem, 8vw, 1.9rem);
  }

  .page-title-wrapper .lead {
    max-width: 290px;
    font-size: 0.84rem;
  }

  .deferred-levy-tool {
    padding: 0.66rem;
  }

  .dlc-intro-main,
  .dlc-section {
    padding: 0.76rem;
  }

  .dlc-metric-grid {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  .deferred-levy-tool,
  .dlc-btn-primary,
  .dlc-btn-secondary,
  .dlc-btn-ghost,
  .dlc-choice-pill {
    animation: none;
    transition: none;
  }
}
