:root {
  --bg: #f6f0e5;
  --surface: rgba(255, 253, 248, 0.92);
  --text: #18372c;
  --text-soft: #597066;
  --line: rgba(24, 55, 44, 0.1);
  --line-strong: rgba(24, 55, 44, 0.2);
  --brand: #174f3f;
  --brand-soft: #dce9e2;
  --accent: #c6892c;
  --good: #246b4b;
  --warn: #9f5f18;
  --danger: #a24f39;
  --shadow: 0 20px 48px rgba(24, 55, 44, 0.1);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #f7f2e8 0%, #eee4d4 56%, #e7dac8 100%);
}

/* 2026-08-09: paid tax ladder and current-regime comparison */
.current-rent-regime-field {
  padding: 16px;
  border: 1px solid rgba(174, 106, 25, 0.42);
  border-radius: 14px;
  background: rgba(255, 246, 229, 0.72);
}

.result-card__badge--applicable {
  color: #075c46;
  background: #dff3ea;
}

.result-card__badge--conditional {
  color: #7a470a;
  background: #fff0cf;
}

.result-card__badge--excluded {
  color: #8d302a;
  background: #f9dfdc;
}

.personal-upgrade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.42fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: stretch;
  margin-top: 24px;
  padding: clamp(26px, 4vw, 48px);
  color: #f9f7ef;
  background: #124f40;
  border-color: transparent;
  box-shadow: 0 22px 50px rgba(15, 65, 52, 0.19);
}

.personal-upgrade__copy h2 {
  max-width: 19ch;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.personal-upgrade__copy p,
.personal-upgrade__copy li {
  color: rgba(249, 247, 239, 0.84);
  font-size: 1rem;
  line-height: 1.62;
}

.personal-upgrade__copy p { max-width: 70ch; }
.personal-upgrade__copy ul { margin: 20px 0 0; padding-left: 20px; }
.personal-upgrade__copy li + li { margin-top: 8px; }

.personal-upgrade__action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 14px;
  background: #f9f4e8;
  color: #17372f;
}

.personal-upgrade__action > span { font-size: 0.9rem; }
.personal-upgrade__action > strong {
  margin: 4px 0 18px;
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.personal-upgrade__action .button {
  min-height: 58px;
  white-space: normal;
  text-align: center;
}

.personal-upgrade__action small {
  margin-top: 12px;
  color: #5d6d67;
  line-height: 1.45;
}

.mobile-tax-sticky { display: none; }

@media (max-width: 760px) {
  .personal-upgrade { grid-template-columns: 1fr; }

  .mobile-tax-sticky:not(.is-hidden) {
    position: fixed;
    z-index: 120;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: #123f35;
    box-shadow: 0 16px 40px rgba(14, 49, 41, 0.32);
  }

  .mobile-tax-sticky span {
    padding-left: 4px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
  }

  .mobile-tax-sticky button {
    min-height: 48px;
    border: 0;
    border-radius: 11px;
    background: #dff35a;
    color: #152319;
    font: inherit;
    font-weight: 800;
  }

  .site-footer { padding-bottom: 92px; }
}

/* 2026-08-23: ready-answer commercial concept for the tax selector. */
.page-shell--tax-concept {
  --tax-concept-paper: #f5efe2;
  --tax-concept-surface: rgba(255, 252, 247, 0.98);
  --tax-concept-ink: #18372c;
  --tax-concept-muted: #5e7269;
  --tax-concept-green: #174f3f;
  --tax-concept-green-deep: #10392d;
  --tax-concept-accent: #c6892c;
  --tax-concept-accent-hover: #a96d19;
  --tax-concept-line: rgba(24, 55, 44, 0.16);
  --tax-concept-shadow: 0 24px 60px rgba(24, 55, 44, 0.12);
  color: var(--tax-concept-ink);
  background: var(--tax-concept-paper);
}

.page-shell--tax-concept .hero {
  padding-bottom: 32px;
}

.page-shell--tax-concept .topbar {
  margin-bottom: 24px;
}

.page-shell--tax-concept .main-content > .container {
  padding-top: 0;
}

.tax-concept-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 0.55fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  min-height: 560px;
  padding: clamp(56px, 8vw, 96px) clamp(28px, 6vw, 72px);
  color: #f7f1e7;
  background: var(--tax-concept-green-deep);
  border-radius: 24px;
  box-shadow: var(--tax-concept-shadow);
}

.tax-concept-hero__copy {
  display: grid;
  justify-items: start;
}

.tax-concept-hero h1 {
  max-width: none;
  margin: 0;
  color: inherit;
  font-family: "Spectral", Georgia, serif;
  font-size: clamp(50px, 5.5vw, 65px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.tax-concept-hero h1 span {
  display: block;
}

@media (min-width: 761px) {
  .tax-concept-hero h1 span {
    white-space: nowrap;
  }
}

.tax-concept-hero__copy > p {
  max-width: 64ch;
  margin: 28px 0 0;
  color: rgba(247, 241, 231, 0.84);
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.58;
}

.tax-concept-hero__copy > small {
  max-width: 62ch;
  margin-top: 18px;
  color: rgba(247, 241, 231, 0.7);
  font-size: 14px;
  line-height: 1.55;
}

.tax-concept-hero__copy > small a {
  color: #ffe0a3;
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tax-concept-hero__copy > small a:hover {
  color: #fff4dc;
}

.tax-concept-hero__proof {
  padding-top: 24px;
  border-top: 1px solid rgba(247, 241, 231, 0.3);
}

.tax-concept-hero__proof strong {
  color: #f7f1e7;
  font-size: 17px;
}

.tax-concept-hero__proof ul {
  margin: 16px 0 0;
  padding-left: 22px;
  color: rgba(247, 241, 231, 0.82);
  line-height: 1.55;
}

.tax-concept-hero__proof li + li {
  margin-top: 12px;
}

.tax-concept-button {
  min-height: 54px;
  padding: 14px 22px;
  border: 0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease-out, background-color 160ms ease-out, box-shadow 160ms ease-out;
}

.tax-concept-button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.tax-concept-button:focus-visible,
.tax-concept-choice__row:focus-visible,
.tax-concept-details summary:focus-visible {
  outline: 3px solid rgba(198, 137, 44, 0.75);
  outline-offset: 4px;
}

.tax-concept-button--accent {
  margin-top: 32px;
  color: #fffdf8;
  background: var(--tax-concept-accent);
  box-shadow: 0 14px 30px rgba(82, 48, 8, 0.24);
}

.tax-concept-button--accent:hover,
.tax-concept-button--action:hover {
  color: #fffdf8;
  background: var(--tax-concept-accent-hover);
}

.tax-paths,
.tax-concept-choice,
.tax-concept-details {
  margin-top: 28px;
  padding: clamp(34px, 5vw, 64px);
  background: var(--tax-concept-surface);
  border: 1px solid var(--tax-concept-line);
  border-radius: 24px;
  box-shadow: var(--tax-concept-shadow);
}

.tax-concept-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 36px;
  align-items: end;
}

.tax-concept-intro h2,
.tax-concept-result h2,
.tax-concept-steps h2,
.tax-concept-risk h2 {
  margin: 0;
  color: var(--tax-concept-ink);
  font-family: "Spectral", Georgia, serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.tax-concept-intro p {
  margin: 0;
  color: var(--tax-concept-muted);
  font-size: 17px;
  line-height: 1.62;
}

.tax-paths__list {
  margin-top: 40px;
  border-top: 1px solid var(--tax-concept-line);
}

.tax-paths__list article {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) 130px minmax(300px, 1.25fr);
  gap: 28px;
  align-items: start;
  padding: 24px 18px;
  border-bottom: 1px solid var(--tax-concept-line);
}

.tax-paths__list h3 {
  margin: 0;
  color: inherit;
  font-family: "Spectral", Georgia, serif;
  font-size: 22px;
  line-height: 1.16;
}

.tax-paths__list strong {
  color: #8a5914;
}

.tax-paths__list p {
  margin: 0;
  color: var(--tax-concept-muted);
  font-size: 16px;
  line-height: 1.55;
}

.tax-paths__list span {
  grid-column: 3;
  color: var(--tax-concept-ink);
  font-size: 14px;
  font-weight: 800;
}

.tax-paths__list .tax-paths__selected {
  color: #f7f1e7;
  background: var(--tax-concept-green);
  border-bottom-color: var(--tax-concept-green);
}

.tax-paths__selected strong {
  color: #efc47e;
}

.tax-paths__selected p {
  color: rgba(247, 241, 231, 0.82);
}

.tax-paths__selected span {
  color: #f7f1e7;
  font-size: 18px;
  line-height: 1.45;
}

.tax-concept-choice__list {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}

.tax-concept-choice__row {
  display: grid;
  grid-template-columns: 24px minmax(250px, 1.15fr) minmax(210px, 0.8fr) auto;
  gap: 20px;
  align-items: center;
  width: 100%;
  padding: 22px;
  color: var(--tax-concept-ink);
  border: 1px solid var(--tax-concept-line);
  border-radius: 14px;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}

.tax-concept-choice__row:hover {
  background: #f8f3e9;
}

.tax-concept-choice__row.is-selected {
  color: #f7f1e7;
  background: var(--tax-concept-green);
  border-color: var(--tax-concept-green);
}

.tax-concept-choice__check {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.72;
}

.tax-concept-choice__row.is-selected .tax-concept-choice__check {
  background: #f7f1e7;
  box-shadow: inset 0 0 0 5px var(--tax-concept-green);
  opacity: 1;
}

.tax-concept-choice__copy {
  display: grid;
}

.tax-concept-choice__copy strong {
  font-size: 17px;
}

.tax-concept-choice__copy small {
  margin-top: 6px;
  color: var(--tax-concept-muted);
  font-size: 14px;
  line-height: 1.5;
}

.tax-concept-choice__row.is-selected .tax-concept-choice__copy small {
  color: rgba(247, 241, 231, 0.76);
}

.tax-concept-choice__outcome {
  font-size: 15px;
  font-weight: 700;
}

.tax-concept-choice__price {
  font-family: "Spectral", Georgia, serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.tax-concept-choice__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--tax-concept-line);
}

.tax-concept-choice__action p {
  max-width: 60ch;
  margin: 0;
  color: var(--tax-concept-muted);
  font-size: 15px;
  line-height: 1.55;
}

.tax-concept-button--action {
  flex: 0 0 auto;
  min-width: 300px;
  color: #fffdf8;
  background: var(--tax-concept-accent);
}

.tax-concept-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.75fr);
  gap: 48px;
  align-items: center;
  margin-top: 28px;
  padding: clamp(34px, 5vw, 56px);
  color: #f7f1e7;
  background: var(--tax-concept-green);
  border-radius: 24px;
}

.tax-concept-result h2 {
  max-width: 18ch;
  color: #f7f1e7;
}

.tax-concept-result p {
  max-width: 65ch;
  margin: 16px 0 0;
  color: rgba(247, 241, 231, 0.8);
  line-height: 1.6;
}

.tax-concept-result__example {
  display: grid;
  padding-left: 32px;
  border-left: 1px solid rgba(247, 241, 231, 0.3);
}

.tax-concept-result__example small {
  color: rgba(247, 241, 231, 0.7);
}

.tax-concept-result__example strong {
  margin-top: 8px;
  color: #f7f1e7;
  font-family: "Spectral", Georgia, serif;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.04;
}

.tax-concept-result__example span {
  margin-top: 12px;
  color: rgba(247, 241, 231, 0.72);
  font-size: 14px;
}

.tax-concept-steps {
  padding: clamp(44px, 7vw, 80px) clamp(18px, 5vw, 52px);
}

.tax-concept-steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 64px);
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: tax-concept-steps;
}

.tax-concept-steps li {
  padding-top: 18px;
  border-top: 1px solid var(--tax-concept-line);
  counter-increment: tax-concept-steps;
}

.tax-concept-steps li::before {
  content: counter(tax-concept-steps);
  display: block;
  margin-bottom: 20px;
  color: #8a5914;
  font-weight: 800;
}

.tax-concept-steps strong,
.tax-concept-steps span {
  display: block;
}

.tax-concept-steps strong {
  font-size: 17px;
}

.tax-concept-steps span {
  margin-top: 8px;
  color: var(--tax-concept-muted);
  font-size: 15px;
  line-height: 1.55;
}

.tax-concept-details > details {
  margin-top: 28px;
  border-top: 1px solid var(--tax-concept-line);
  border-bottom: 1px solid var(--tax-concept-line);
}

.tax-concept-details summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
}

.tax-concept-details summary::-webkit-details-marker {
  display: none;
}

.tax-concept-details summary span {
  color: var(--tax-concept-ink);
  font-family: "Spectral", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.tax-concept-details summary strong,
.tax-concept-source a {
  color: var(--tax-concept-green);
  font-size: 14px;
  font-weight: 800;
}

.tax-concept-details details > p {
  max-width: 75ch;
  margin: 0;
  padding: 0 4px 24px;
  color: var(--tax-concept-muted);
  line-height: 1.65;
}

.tax-concept-source {
  margin: 20px 0 0;
  color: var(--tax-concept-muted);
  font-size: 14px;
}

.tax-concept-risk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin: 28px 0;
  padding: clamp(28px, 5vw, 46px);
  color: #5d3915;
  background: #f2dfbf;
  border-radius: 24px;
}

.tax-concept-risk h2 {
  color: #5d3915;
  font-size: clamp(28px, 3vw, 40px);
}

.tax-concept-risk p {
  max-width: 66ch;
  margin: 10px 0 0;
  color: #765538;
  line-height: 1.58;
}

.tax-concept-button--risk {
  flex: 0 0 auto;
  color: #f7f1e7;
  background: #8a4d17;
}

.tax-concept-button--risk:hover {
  color: #f7f1e7;
  background: #6f3b10;
}

.page-shell--tax-concept .tax-seo-faq {
  margin: 28px 0;
  padding: clamp(34px, 5vw, 56px);
  background: var(--tax-concept-surface);
  border: 1px solid var(--tax-concept-line);
  border-radius: 24px;
}

.page-shell--tax-concept .tax-seo-faq h2 {
  max-width: none;
  font-size: clamp(30px, 4vw, 44px);
}

.page-shell--tax-concept .legal-band {
  margin-top: 28px;
}

@media (max-width: 980px) {
  .tax-concept-hero,
  .tax-concept-result {
    grid-template-columns: 1fr;
  }

  .tax-concept-hero {
    min-height: auto;
  }

  .tax-concept-hero__proof {
    max-width: 620px;
  }

  .tax-concept-choice__row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }

  .tax-concept-choice__outcome {
    grid-column: 2 / -1;
  }

  .tax-concept-result__example {
    padding: 24px 0 0;
    border-top: 1px solid rgba(247, 241, 231, 0.3);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .page-shell--tax-concept .hero {
    padding: 10px 0 14px;
  }

  .page-shell--tax-concept .topbar {
    margin-bottom: 12px;
  }

  .page-shell--tax-concept .topbar__actions {
    display: none;
  }

  .page-shell--tax-concept .brand__title {
    font-size: 24px;
  }

  .page-shell--tax-concept .brand__subtitle {
    font-size: 15px;
  }

  .tax-concept-hero {
    gap: 40px;
    padding: 52px 22px 32px;
    border-radius: 24px;
  }

  .tax-concept-hero h1 {
    font-size: clamp(48px, 14vw, 66px);
  }

  .tax-concept-hero__copy > p {
    margin-top: 22px;
    font-size: 17px;
  }

  .tax-concept-button--accent {
    width: 100%;
  }

  .tax-paths,
  .tax-concept-choice,
  .tax-concept-details,
  .page-shell--tax-concept .tax-seo-faq {
    margin-top: 14px;
    padding: 30px 20px;
    border-radius: 18px;
  }

  .tax-concept-intro {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tax-concept-intro h2,
  .tax-concept-result h2,
  .tax-concept-steps h2 {
    font-size: clamp(29px, 8vw, 36px);
  }

  .tax-paths__list,
  .tax-concept-choice__list {
    margin-top: 28px;
  }

  .tax-paths__list article {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 18px;
    padding: 20px 8px;
  }

  .tax-paths__list p,
  .tax-paths__list span {
    grid-column: 1 / -1;
  }

  .tax-concept-choice__row {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 16px;
  }

  .tax-concept-choice__outcome,
  .tax-concept-choice__price {
    grid-column: 2;
  }

  .tax-concept-choice__price {
    font-size: 26px;
  }

  .tax-concept-choice__action {
    display: grid;
  }

  .tax-concept-button--action {
    width: 100%;
    min-width: 0;
  }

  .tax-concept-result {
    gap: 30px;
    margin-top: 14px;
    padding: 32px 22px;
    border-radius: 18px;
  }

  .tax-concept-steps {
    padding: 44px 20px;
  }

  .tax-concept-steps ol {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 30px;
  }

  .tax-concept-steps li::before {
    margin-bottom: 10px;
  }

  .tax-concept-details summary {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0;
  }

  .tax-concept-risk {
    display: grid;
    margin-top: 14px;
    padding: 30px 22px;
    border-radius: 18px;
  }

  .tax-concept-button--risk {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tax-concept-button,
  .tax-concept-choice__row {
    transition-duration: 0.01ms;
  }
}

a { color: var(--brand); }
button, input, select { font: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.page-shell--dossier {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-shell--dossier > * {
  position: relative;
  z-index: 1;
}
.page-shell--dossier::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(24, 55, 44, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 55, 44, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.56), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.34), transparent 28%);
  background-size: 120px 120px, 120px 120px, auto, auto;
  background-position: center top, center top, center top, center top;
  opacity: 0.68;
}
.page-shell--dossier::after {
  content: "";
  position: fixed;
  inset: 18px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) left top / 54px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) left top / 1px 54px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) right top / 54px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) right top / 1px 54px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) left bottom / 54px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) left bottom / 1px 54px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) right bottom / 54px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) right bottom / 1px 54px no-repeat;
}
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }

.hero { position: relative; overflow: hidden; padding: 28px 0 40px; }
.hero__backdrop { display: none; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; padding: 12px 0; }
.topbar__actions { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  flex: 0 0 78px;
}
.brand__title { font-family: "Spectral", Georgia, serif; font-size: 28px; font-weight: 700; line-height: 1; }
.brand__subtitle { margin-top: 8px; color: var(--accent); font-size: 21px; font-weight: 800; line-height: 1.1; }
.topbar__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 251, 244, 0.82);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(24, 55, 44, 0.06);
}
.topbar__link--ghost {
  background: rgba(255, 248, 240, 0.78);
  color: var(--brand);
}
.topbar__link.is-authenticated {
  background: rgba(23,79,63,0.16);
  border-color: rgba(23,79,63,0.22);
}

.topbar__auth-row {
  flex: 0 0 100%;
  order: 999;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-top: 2px;
}

.topbar__auth-row [data-auth-entry] {
  max-width: min(100%, 360px);
  margin-left: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.button--primary {
  background: #0d6b63;
  color: #fff;
}

.button--accent {
  background: #0d6b63;
  color: #fff;
}

.hero__grid { display: grid; grid-template-columns: 1.5fr 0.5fr; gap: 24px; }
.hero__copy, .hero__aside .aside-card, .panel, .note-block {
  position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 48px rgba(24, 55, 44, 0.08); border-radius: var(--radius-xl);
}
.hero__copy { padding: 44px; }
.eyebrow {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 999px; color: var(--brand);
  background: var(--brand-soft); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
}

h1, h2, h3 { font-family: "Spectral", Georgia, serif; margin: 0; }
h1 { margin-top: 18px; font-size: clamp(40px, 5vw, 64px); line-height: 0.98; max-width: none; }
.hero__grid--calculator h1 {
  width: 100%;
  max-width: none;
  font-size: clamp(38px, 4.2vw, 54px);
  line-height: 1.06;
}
.hero__lead { margin: 22px 0 0; font-size: 18px; line-height: 1.7; max-width: 88ch; color: var(--text-soft); }
.hero__aside { display: grid; gap: 18px; }
.aside-card { padding: 28px; }
.aside-card--warm { background: linear-gradient(180deg, rgba(255,248,236,0.94) 0%, rgba(255,253,248,0.94) 100%); }
.aside-card__label {
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--warn); margin-bottom: 14px;
}
.aside-card p, .aside-list { margin: 0; color: var(--text-soft); line-height: 1.65; }
.aside-list { padding-left: 20px; }

.main-content { padding: 10px 0 36px; flex: 1 0 auto; }
.calculator { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; }
.panel { padding: 32px; }
.panel__header { margin-bottom: 22px; }
.panel__header--tight { margin-bottom: 18px; }
.panel__header p { margin: 10px 0 0; color: var(--text-soft); line-height: 1.65; }

.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.field {
  display: grid;
  grid-template-rows: minmax(40px, auto) auto auto;
  gap: 10px;
  align-content: start;
}
.field--wide { grid-column: 1 / -1; }
.field--span-3 { grid-column: span 3; }
.field--span-4 { grid-column: span 4; }
.field--span-5 { grid-column: span 5; }
.field--span-6 { grid-column: span 6; }
.field--span-7 { grid-column: span 7; }
.field--span-12 { grid-column: 1 / -1; }
.field__label { font-size: 14px; font-weight: 800; }
.field__label {
  display: flex;
  align-items: flex-end;
}
.field input, .field select {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(24, 55, 44, 0.14);
  background: rgba(255,255,255,0.94);
  color: var(--text);
}
.field input:focus, .field select:focus {
  outline: none; border-color: rgba(23,79,63,0.5); box-shadow: 0 0 0 4px rgba(23,79,63,0.08);
}
.field--compact input,
.field--compact select {
  min-height: 52px;
}
.field--compact .field__label {
  min-height: 2.8em;
}
.field--input-half input {
  width: 50%;
  min-width: 140px;
}
.field__label--left {
  justify-content: flex-start;
  align-items: flex-start;
}
.patent-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 16px;
  align-items: start;
}
.field--patent-cost input {
  text-align: left;
}
.field input[data-money-input="true"] {
  font-variant-numeric: tabular-nums;
}
.field select {
  appearance: auto;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,240,229,0.95) 100%);
  cursor: pointer;
}
.field select.select--searchable-native {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.searchable-select {
  position: relative;
  width: 100%;
  min-width: 0;
}
.searchable-select__input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(24, 55, 44, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,240,229,0.95) 100%);
  color: var(--text);
}
.searchable-select__input:focus {
  outline: none;
  border-color: rgba(23,79,63,0.5);
  box-shadow: 0 0 0 4px rgba(23,79,63,0.08);
}
.searchable-select__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(24, 55, 44, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(24,55,44,0.16);
}
.searchable-select.is-open .searchable-select__list {
  display: grid;
  gap: 4px;
}
.searchable-select__option {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  line-height: 1.25;
  cursor: pointer;
}
.searchable-select__option:hover,
.searchable-select__option.is-active {
  background: rgba(23,79,63,0.08);
}
.searchable-select__empty {
  padding: 10px 12px;
  color: var(--text-soft);
  line-height: 1.3;
}
.searchable-select.is-disabled {
  opacity: 0.65;
}
.field__hint { color: var(--text-soft); line-height: 1.4; }
.field__hint--region-note {
  display: block;
  margin-top: -4px;
  color: #7a6548;
}
.field__inline-hint {
  margin-top: -4px;
}
.field__example-note {
  margin-top: -2px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(198,137,44,0.22);
  background: linear-gradient(180deg, rgba(244,225,191,0.36) 0%, rgba(255,253,248,0.92) 100%);
  color: var(--text-soft);
  line-height: 1.55;
}
.field__example-note strong {
  color: var(--text);
}
.is-hidden { display: none !important; }

.toggle {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px; border-radius: 14px;
  border: 1px solid rgba(24, 55, 44, 0.14); background: rgba(255,255,255,0.88); width: 100%;
}
.toggle input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.toggle__track {
  position: relative; width: 54px; height: 30px; border-radius: 999px; background: rgba(24,55,44,0.16); transition: background 0.2s ease;
}
.toggle__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.18); transition: transform 0.2s ease;
}
.toggle input:checked + .toggle__track { background: var(--brand); }
.toggle input:checked + .toggle__track::after { transform: translateX(24px); }
.toggle__text { font-weight: 700; }
.field--utility-toggle .field__hint,
.field--utility-amount .field__hint {
  margin-top: auto;
}

.field--ndfl-toggle {
  width: 130%;
}

.deductions-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
}
.deductions-row .field {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  grid-template-rows: none;
  width: max-content;
  margin: 0;
}
.deductions-row .field .field__label {
  min-height: auto;
  white-space: nowrap;
  align-items: center;
  margin: 0;
}
.deductions-row .field input {
  width: 132px;
  min-height: 42px;
  text-align: right;
}

.deductions-row.field--span-8 {
  grid-column: 7 / -1;
  justify-self: stretch;
  margin-left: auto;
  max-width: 420px;
}

.status-banner {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.45;
}
.status-banner--loading {
  color: #fff;
  background: linear-gradient(145deg, var(--accent) 0%, #d79a38 100%);
  box-shadow: 0 12px 26px rgba(198,137,44,0.28);
  animation: statusPulse 1.2s ease-in-out infinite;
}
.status-banner--error {
  color: #fff;
  background: linear-gradient(145deg, #b55a42 0%, #cc7453 100%);
  box-shadow: 0 12px 26px rgba(162,79,57,0.22);
}
.status-banner--success {
  color: #fff;
  background: linear-gradient(145deg, #1b6a4b 0%, #2d8a64 100%);
  box-shadow: 0 12px 26px rgba(36,107,75,0.24);
  margin-bottom: 18px;
}

.calculation-result-section #patentStatusBanner {
  margin-top: 18px;
}
@keyframes statusPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

.segmented { display: inline-grid; grid-auto-flow: column; gap: 10px; }
.segmented__item { position: relative; }
.segmented__item input { position: absolute; opacity: 0; pointer-events: none; }
.segmented__item span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(24,55,44,0.14);
  background: rgba(255,255,255,0.88); font-weight: 700; cursor: pointer;
}
.segmented__item input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }

.mode-picker { margin-top: 26px; }
.mode-picker__title { font-size: 14px; font-weight: 800; margin-bottom: 14px; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mode-card {
  position: relative; display: grid; gap: 6px; min-height: 126px; padding: 18px 18px 18px 56px; border-radius: var(--radius-lg); border: 1px solid rgba(24,55,44,0.12); background: rgba(255,255,255,0.9); cursor: pointer;
}
.mode-card--unavailable {
  background: rgba(249, 242, 238, 0.92);
  border-color: rgba(162,79,57,0.18);
  cursor: not-allowed;
}
.mode-card--unavailable .mode-card__title { color: var(--text-soft); }
.mode-card--unavailable .mode-card__meta { color: var(--danger); }
.mode-card--unavailable .mode-card__tick {
  background: rgba(162,79,57,0.08);
  border-color: rgba(162,79,57,0.22);
}
.mode-card__tick { position: absolute; left: 18px; top: 18px; width: 24px; height: 24px; border-radius: 8px; border: 1px solid rgba(24,55,44,0.2); background: rgba(255,255,255,0.95); }
.mode-checkbox { position: absolute; opacity: 0; pointer-events: none; }
.mode-checkbox:checked ~ .mode-card__tick { background: linear-gradient(145deg, var(--brand) 0%, #205a49 100%); border-color: var(--brand); }
.mode-checkbox:checked ~ .mode-card__tick::after {
  content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(40deg);
}
.mode-card__title { font-size: 18px; font-weight: 800; }
.mode-card__meta { color: var(--text-soft); line-height: 1.5; }

.panel--sticky { position: sticky; top: 18px; }
.summary-card { padding: 24px; border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--brand) 0%, #205847 100%); color: #fff; }
.summary-card__eyebrow { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; }
.summary-card__title { margin-top: 12px; font-family: "Spectral", Georgia, serif; font-size: 34px; line-height: 1.1; }
.summary-card__value { margin-top: 14px; font-size: 34px; font-weight: 800; }
.summary-card__text { margin-top: 12px; line-height: 1.6; opacity: 0.9; }
.metric-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.metric { padding: 18px; border-radius: var(--radius-lg); background: rgba(23,79,63,0.06); border: 1px solid rgba(23,79,63,0.1); }
.metric__label { color: var(--text-soft); font-size: 13px; font-weight: 700; }
.metric__value { margin-top: 8px; font-size: 28px; font-weight: 800; }
.note-card {
  margin-top: 18px; padding: 18px 20px; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(244,225,191,0.4) 0%, rgba(255,253,248,0.9) 100%); border: 1px solid rgba(198,137,44,0.18); line-height: 1.65; color: var(--text-soft);
}

.results, .lead-capture { margin-top: 24px; }
.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.result-card {
  padding: 22px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.9); border: 1px solid rgba(24,55,44,0.12); min-height: 250px; display: flex; flex-direction: column;
}
.result-card--best { border-color: rgba(23,79,63,0.28); box-shadow: 0 18px 34px rgba(23,79,63,0.1); }
.result-card--disabled { background: rgba(255,250,246,0.9); border-color: rgba(162,79,57,0.16); }
.result-card--locked {
  border-color: rgba(13, 90, 70, 0.18);
  background:
    linear-gradient(180deg, rgba(239,250,246,0.94) 0%, rgba(255,255,255,0.96) 100%);
}
.result-card__button {
  width: 100%;
  margin-top: auto;
}

.results-grid--locked {
  grid-template-columns: minmax(0, 1fr);
}

.results-grid--locked .result-card {
  width: 100%;
  min-height: 0;
}

.result-card__saving-label {
  display: block;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 800;
}

.result-card .button--savings {
  width: min(100%, 460px);
  min-height: 56px;
  margin-top: 24px;
  color: var(--text);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 14px 26px rgba(198, 137, 44, 0.22);
}

.result-card .button--savings:hover {
  filter: brightness(1.08);
  box-shadow: 0 16px 30px rgba(198, 137, 44, 0.28);
}

.result-card .button--savings:focus-visible {
  outline: 3px solid rgba(23, 79, 63, 0.3);
  outline-offset: 3px;
}

.results-purchase {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid rgba(24, 55, 44, 0.12);
}

.results-purchase .paid-report__copy h3 {
  max-width: none;
  margin: 0;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.16;
}

.results-purchase .paid-report__lead {
  margin-top: 10px;
  color: var(--text-soft);
  line-height: 1.62;
}

.results-purchase .paid-report__included {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

.results-purchase .paid-report__included ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 26px;
  margin: 0;
  padding-left: 20px;
}

.results-purchase .paid-inline-order {
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius-md);
  box-shadow: none;
}

@media (max-width: 760px) {
  .results-purchase {
    margin-top: 22px;
    padding-top: 22px;
  }

  .results-purchase .paid-report__included ul {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .result-card .button--savings {
    width: 100%;
  }
}
.result-card__badge {
  display: inline-flex; align-items: center; align-self: flex-start; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; background: var(--brand-soft); color: var(--brand);
}
.result-card__title { margin-top: 14px; font-size: 23px; line-height: 1.2; }
.result-card__tax { margin-top: 18px; font-size: 30px; font-weight: 800; }
.result-card__month { margin-top: 8px; color: var(--text-soft); }
.result-card__net { margin-top: 16px; color: var(--good); font-weight: 800; }
.result-card__hint { margin-top: 12px; padding-top: 0; color: var(--text-soft); line-height: 1.55; }

.delivery-stack {
  display: grid;
  gap: 14px;
}
.delivery-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(24,55,44,0.12);
}
.delivery-row--email {
  grid-template-columns: 280px minmax(0, 0.5fr) auto;
}
.delivery-row--max-button {
  grid-template-columns: 1fr;
  justify-items: start;
}
.delivery-row__label {
  font-weight: 800;
}
.delivery-row__input input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(24,55,44,0.14);
  background: rgba(255,255,255,0.98);
}
.delivery-row__input input:focus {
  outline: none;
  border-color: rgba(23,79,63,0.5);
  box-shadow: 0 0 0 4px rgba(23,79,63,0.08);
}
.delivery-row__max-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(24,55,44,0.14);
  background: rgba(255,255,255,0.98);
}
.delivery-row__max-logo {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 8px;
}
.delivery-row__max-text {
  color: var(--text-soft);
  line-height: 1.4;
}
.delivery-row__button {
  min-height: 56px; padding: 0 26px; border: 0; border-radius: 999px; background: linear-gradient(145deg, var(--accent) 0%, #d49c49 100%); color: #1f241f; font-weight: 800; cursor: pointer; box-shadow: 0 16px 30px rgba(198,137,44,0.24);
}
.delivery-row__button--max {
  background: linear-gradient(145deg, #2f47ff 0%, #8e2be2 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(82,72,228,0.28);
}
.delivery-row--max-button .delivery-row__button--max {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.lead-status { min-height: 24px; margin-top: 14px; font-weight: 700; }
.lead-status--success { color: var(--good); }
.lead-status--error { color: var(--danger); }

.next-steps {
  margin-top: 24px;
}

.bridge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bridge-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(24,55,44,0.12);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 24px rgba(24, 55, 44, 0.05);
}

.bridge-card--accent {
  background: linear-gradient(180deg, rgba(255,248,236,0.96) 0%, rgba(255,253,248,0.96) 100%);
  border-color: rgba(198,137,44,0.2);
}

.bridge-card__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(198, 137, 44, 0.16);
  color: var(--warn);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bridge-card h3 {
  margin-top: 16px;
  font-size: 28px;
}

.bridge-card p {
  margin: 14px 0 0;
  line-height: 1.65;
  color: var(--text-soft);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.notes { display: grid; grid-template-columns: 3fr 1fr; gap: 18px; margin-top: 24px; padding-bottom: 24px; }
.note-block { padding: 24px; }
.note-block h3 { margin-bottom: 12px; font-size: 24px; }
.note-block p, .note-block li { line-height: 1.65; color: var(--text-soft); }
.note-block ul { margin: 0; padding-left: 20px; }
.note-block--source a { font-weight: 700; }

@media (max-width: 1100px) {
  .hero__grid, .calculator, .notes, .results-grid, .bridge-grid { grid-template-columns: 1fr; }
  .mode-grid, .form-grid { grid-template-columns: 1fr; }
  .patent-row { grid-template-columns: 1fr; }
  .deductions-row { grid-template-columns: 1fr; }
  .delivery-row,
  .delivery-row--email,
  .delivery-row--max-button { grid-template-columns: 1fr; }
  .field--input-half input { width: 100%; min-width: 0; }
  .field--span-3,
  .field--span-4,
  .field--span-5,
  .field--span-6,
  .field--span-7,
  .field--span-12 { grid-column: auto; }
  .panel--sticky { position: static; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .hero__copy, .panel, .note-block, .aside-card { padding: 22px; }
  h1 { font-size: 36px; }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
  }
  .brand { gap: 12px; }
  .brand__mark {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
  }
  .brand__title { font-size: 24px; }
  .brand__subtitle {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.35;
  }
  .topbar__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }
  .topbar__actions > * { min-width: 0; }
  .topbar__link {
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 10px 14px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .topbar__auth-row {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
  .topbar__auth-row [data-auth-entry] {
    width: 100%;
    max-width: none;
    margin-left: 0;
    justify-content: center;
  }
  .segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    min-width: 0;
  }
  .segmented__item {
    min-width: 0;
  }
  .segmented__item span {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 8px 10px;
    font-size: 14px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .lead-capture {
    overflow: hidden;
  }
  .delivery-inline__email-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }
  .delivery-inline__email-form .delivery-row__input,
  .delivery-inline__email-form .delivery-row__input input,
  .delivery-row__button--email,
  .delivery-inline__max {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .delivery-inline__max {
    min-height: 52px;
    padding: 12px;
    gap: 8px;
    font-size: 16px;
  }
  .delivery-inline__max-logo {
    width: min(112px, 30vw);
    height: 34px;
  }
  .metric-strip { grid-template-columns: 1fr; }
}

.brand__mark {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  flex: 0 0 78px;
}
.brand__mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 0;
}







/* Layout tuning: region/municipality row */
.region-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  align-items: start;
}
.region-row__region,
.region-row__municipality {
  min-width: 0;
}

/* Layout tuning: delivery one-line row */
.delivery-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.delivery-inline__email-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(24,55,44,0.12);
  background: rgba(255,255,255,0.92);
}
.delivery-inline__email-form .delivery-row__input input {
  width: min(440px, 48vw);
  min-height: 44px;
}
.delivery-row__button--email {
  min-height: 42px;
  padding: 0 20px;
}
.delivery-inline__max {
  min-height: 58px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 340px;
  flex: 0 0 340px;
  margin-left: 90px;
  font-size: 18px;
  line-height: 1;
}
.delivery-inline__max span {
  text-align: center;
}
.delivery-inline__max-logo {
  width: 132px;
  height: 38px;
  object-fit: contain;
  display: block;
}

@media (max-width: 1100px) {
  .region-row { grid-template-columns: 1fr; }
  .field--ndfl-toggle { width: 100%; }
  .deductions-row.field--span-8 { grid-column: auto; }
  .delivery-inline {
    flex-direction: column;
    align-items: stretch;
  }
  .delivery-inline__email-form {
    width: 100%;
  }
  .delivery-inline__email-form .delivery-row__input input {
    width: 100%;
  }
  .delivery-inline__max {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .delivery-inline__email-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 10px;
  }

  .delivery-inline__email-form .delivery-row__input,
  .delivery-inline__email-form .delivery-row__input input,
  .delivery-row__button--email {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .delivery-inline__email-form .delivery-row__input input {
    min-height: 46px;
  }

  .delivery-row__button--email {
    min-height: 48px;
    padding: 0 14px;
    white-space: normal;
  }

  .delivery-inline__max {
    flex: 0 1 auto;
  }
}

.site-footer {
  margin-top: auto;
  padding: 8px 0 28px;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  flex-wrap: wrap;
}

.site-footer__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
  order: 3;
}

.site-footer__app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 197px;
  height: 40px;
  flex-shrink: 0;
  text-decoration: none;
  background: center / contain no-repeat url("https://www.rustore.ru/help/icons/logo-color-light.svg");
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-footer__app-button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.site-footer__app-image {
  display: none;
}

.site-footer__text {
  margin: 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
  order: 1;
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
  order: 2;
}

.site-footer__nav .site-footer__link {
  font-size: inherit;
}

.site-footer__link {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.site-footer__link:hover {
  text-decoration: underline;
}

@media print {
  .site-footer {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .site-footer .container {
    gap: 10px;
  }

  .site-footer__text,
  .site-footer__nav {
    text-align: center;
  }
}
.calc-fold {
  border: 1px dashed rgba(24, 55, 44, 0.18);
  border-radius: 22px;
  background: rgba(251, 248, 241, 0.8);
  padding: 14px 16px 16px;
}

.calc-fold summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: var(--brand);
}

.calc-fold summary::-webkit-details-marker {
  display: none;
}

.calc-fold__lead {
  margin: 8px 0 16px;
  color: var(--muted);
}

.calc-divider {
  display: grid;
  gap: 6px;
  padding-top: 4px;
  margin-top: 4px;
  border-top: 1px solid rgba(24, 55, 44, 0.12);
}

.calc-divider strong {
  color: var(--brand);
}

.calc-divider p {
  margin: 0;
  color: var(--muted);
}

.hero__grid--calculator {
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
  align-items: stretch;
}

.hero__aside--calculator {
  display: grid;
  align-content: stretch;
}

.aside-card--calculator {
  display: grid;
  align-content: start;
  gap: 18px;
  height: 100%;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98) 0%, rgba(244, 239, 229, 0.95) 100%);
  border: 1px solid rgba(24, 55, 44, 0.08);
  box-shadow: 0 16px 34px rgba(24, 55, 44, 0.06);
}

.tax-side-lead {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.65;
}

.tax-side-rows {
  display: grid;
  gap: 12px;
}

.tax-side-row {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(24, 55, 44, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.tax-side-row:first-child {
  border-top: 1px solid rgba(24, 55, 44, 0.08);
  padding-top: 14px;
}

.tax-side-row strong {
  font-size: 18px;
  line-height: 1.3;
}

.tax-side-row span {
  color: var(--text-soft);
  line-height: 1.55;
}

.tax-side-summary {
  padding: 14px 16px;
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  background: rgba(23, 79, 63, 0.07);
  color: var(--brand);
  font-weight: 800;
  line-height: 1.5;
}

.calculator--finance .panel {
  border-radius: 26px;
  box-shadow: 0 16px 32px rgba(24, 55, 44, 0.07);
}

.calculator--finance .calculator__left {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(251, 247, 240, 0.94) 100%);
}

/* Dense data-entry layout: related values share a row and controls follow content capacity. */
.calculator--finance .panel {
  padding: 28px;
}

.calculator--finance .panel__header {
  margin-bottom: 16px;
}

.calculator--finance .form-grid--quick {
  gap: 14px 18px;
}

.calculator--finance .form-grid--quick .field {
  grid-template-rows: auto auto auto;
  gap: 7px;
}

.calculator--finance .field__label,
.calculator--finance .field--compact .field__label {
  min-height: 0;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.28;
}

.calculator--finance .field input,
.calculator--finance .field select,
.calculator--finance .searchable-select__input {
  min-height: 50px;
  padding-inline: 15px;
  font-size: 18px;
  line-height: 1.2;
}

.calculator--finance .field__hint,
.calculator--finance .field__example-note {
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.36;
}

.quick-overview-row {
  display: grid;
  grid-template-columns: 15rem 15rem 15rem minmax(20rem, 1fr);
  grid-template-areas:
    "rent months area utilities"
    ". . . utility-amount";
  align-items: start;
  gap: 10px 18px;
}

.quick-overview-row .field {
  width: 100%;
  min-width: 0;
}

.quick-overview-row .field--capacity-rent { grid-area: rent; }
.quick-overview-row .field--capacity-months { grid-area: months; }
.quick-overview-row .field--capacity-area { grid-area: area; }
.quick-overview-row .field--utility-toggle { grid-area: utilities; }
.quick-overview-row .field--utility-amount { grid-area: utility-amount; width: min(100%, 15rem); }

.quick-overview-row .field--capacity-rent input { width: min(100%, 14rem); }
.quick-overview-row .field--capacity-months input { width: 7rem; }
.quick-overview-row .field--capacity-area input { width: 8rem; }
.quick-overview-row .field--utility-toggle .toggle { width: min(100%, 31rem); }

.quick-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 22px;
}

.quick-status-row > .field {
  min-width: 0;
}

.quick-status-row__tenant,
.quick-status-row__resident {
  max-width: 100%;
}

.quick-status-row__tenant { width: 17rem; }
.quick-status-row__resident { width: 11rem; }

.quick-registration-row__business {
  width: min(100%, 19rem);
}

.quick-registration-row__regime {
  width: min(100%, 20rem);
}

.quick-income-row {
  display: grid;
  grid-template-columns: 18rem 18rem;
  align-items: start;
  justify-content: start;
  gap: 18px;
}

.quick-income-row .field {
  width: 100%;
  min-width: 0;
}

.calculator--finance .field--capacity-money,
.calculator--finance .field--capacity-income {
  width: min(100%, 18rem);
  justify-self: start;
}

.calculator--finance .segmented {
  width: max-content;
  max-width: 100%;
}

.calculator--finance .segmented__item span {
  min-height: 50px;
  padding-inline: 16px;
  font-size: 16px;
}

.calculator--finance .toggle {
  min-height: 50px;
  padding-inline: 14px;
  font-size: 16px;
}

.calculator--finance .region-patent-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 18px;
}

.calculator--finance .region-patent-grid > .field {
  min-width: 0;
}

.calculator--finance .region-row__region {
  width: min(100%, 26rem);
}

.calculator--finance .region-row__municipality {
  width: min(100%, 29rem);
}

.calculator--finance #patentOptionField {
  width: min(100%, 36rem);
}

.calculator--finance .field--patent-period {
  width: min(100%, 11.5rem);
}

.calculator--finance .field--patent-cost {
  width: min(100%, 14rem);
}

.calculator--finance .region-patent-grid input,
.calculator--finance .region-patent-grid select:not(.select--searchable-native) {
  width: 100%;
  min-width: 0;
}

.field-hint-details {
  margin-top: -1px;
  color: var(--muted);
  font-size: 13px;
}

.field-hint-details summary {
  width: max-content;
  max-width: 100%;
  cursor: pointer;
  color: var(--brand);
  font-weight: 750;
}

.field-hint-details .field__hint {
  display: block;
  margin-top: 6px;
}

.calculator--finance .field--ndfl-toggle {
  width: 100%;
}

@media (max-width: 1120px) {
  .quick-overview-row {
    grid-template-columns: 15rem 15rem 15rem;
    grid-template-areas:
      "rent months area"
      "utilities utilities utility-amount";
  }

}

@media (min-width: 761px) {
  .calculator--finance .current-rent-regime-field {
    padding: 0 0 0 14px;
    border: 0;
    border-left: 3px solid rgba(174, 106, 25, 0.7);
    border-radius: 0;
    background: transparent;
  }

  .calculator--finance .mode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .calculator--finance .mode-card {
    min-height: 0;
    padding: 14px 14px 14px 46px;
    border-radius: 14px;
  }

  .calculator--finance .mode-card__tick {
    left: 14px;
    top: 14px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
  }

  .calculator--finance .mode-checkbox:checked ~ .mode-card__tick::after {
    left: 7px;
    top: 3px;
  }

  .calculator--finance .mode-card__title {
    font-size: 18px;
    line-height: 1.22;
  }

  .calculator--finance .mode-card__meta {
    font-size: 14px;
    line-height: 1.36;
  }
}

@media (max-width: 760px) {
  .quick-overview-row,
  .quick-income-row,
  .calculator--finance .region-patent-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
    gap: 14px;
  }

  .quick-overview-row {
    display: grid;
  }

  .calculator--finance .region-patent-grid {
    display: grid;
  }

  .quick-overview-row .field--capacity-rent,
  .quick-overview-row .field--capacity-months,
  .quick-overview-row .field--capacity-area,
  .quick-overview-row .field--utility-toggle,
  .quick-overview-row .field--utility-amount {
    grid-area: auto;
  }

  .quick-overview-row .field--capacity-rent input,
  .quick-overview-row .field--capacity-months input,
  .quick-overview-row .field--capacity-area input,
  .quick-overview-row .field--utility-toggle .toggle {
    width: 100%;
  }

  .quick-status-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .quick-overview-row .field,
  .quick-status-row .field,
  .quick-income-row .field,
  .calculator--finance .field--capacity-money,
  .calculator--finance .field--capacity-income,
  .calculator--finance #patentOptionField,
  .calculator--finance .field--patent-period,
  .calculator--finance .field--patent-cost,
  .calculator--finance .region-row__region,
  .calculator--finance .region-row__municipality,
  .calculator--finance .segmented {
    width: 100%;
    max-width: none;
  }

  .calculator--finance .panel {
    padding: 18px;
  }
}

.calculator--finance {
  grid-template-columns: minmax(0, 1fr);
}

.calculation-result-section {
  margin-top: 24px;
}

.calculation-result-section .panel {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98) 0%, rgba(243, 238, 229, 0.94) 100%);
  border-radius: 26px;
  box-shadow: 0 16px 32px rgba(24, 55, 44, 0.07);
}

.calculator--finance .panel__header h2,
.results .panel__header h2,
.lead-capture .panel__header h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
}

.calculator--finance .panel__header p,
.results .panel__header p,
.lead-capture .panel__header p {
  width: 100%;
  max-width: none;
  font-size: 17px;
}

.calculator--finance .field input,
.calculator--finance .field select,
.calculator--finance .toggle,
.calculator--finance .segmented,
.lead-capture .delivery-inline__email-form {
  border-radius: 16px;
}

.calculator--finance .mode-picker {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(24, 55, 44, 0.08);
}

.quick-calculation-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 20px;
  align-items: center;
  margin-top: 8px;
  padding: 20px;
  border: 1px solid rgba(23, 79, 63, 0.18);
  border-radius: 18px;
  background: rgba(232, 244, 239, 0.72);
}

.quick-calculation-action p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.quick-calculation-action .button {
  min-width: 280px;
}

.quick-calculation-action .lead-status {
  grid-column: 1 / -1;
  margin: 0;
}

.calculator--finance .mode-picker__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.calculator--finance .mode-grid {
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.calculator--finance .mode-card {
  min-height: 0;
  padding: 18px 18px 18px 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(24, 55, 44, 0.1);
  box-shadow: none;
}

.calculator--finance .mode-card__title {
  font-size: 20px;
  line-height: 1.3;
}

.calculator--finance .mode-card__meta {
  line-height: 1.55;
}

.decision-panel {
  display: grid;
  gap: 16px;
}

.decision-panel__head {
  display: grid;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(24, 55, 44, 0.08);
}

.decision-panel__step {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-panel__head h2 {
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.08;
}

.decision-panel__head p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.decision-card {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98) 0%, rgba(245, 239, 229, 0.94) 100%);
  border: 1px solid rgba(24, 55, 44, 0.12);
  box-shadow: 0 16px 28px rgba(24, 55, 44, 0.08);
}

.decision-card__label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.decision-card__mode {
  margin-top: 10px;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.05;
  font-weight: 800;
}

.decision-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.decision-card__button {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
}

.decision-card__metric {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(23, 79, 63, 0.05);
  border: 1px solid rgba(23, 79, 63, 0.09);
}

.decision-card__metric span {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.decision-card__metric strong {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
}

.decision-card__text {
  margin: 16px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.metric-strip {
  gap: 12px;
}

.metric {
  border-radius: 18px;
  background: rgba(23, 79, 63, 0.05);
}

.metric__value {
  font-size: 30px;
}

.decision-note {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 248, 233, 0.94) 0%, rgba(255, 253, 248, 0.92) 100%);
  border: 1px solid rgba(198, 137, 44, 0.18);
}

.decision-note--risk {
  background: linear-gradient(180deg, rgba(239, 250, 246, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%);
  border-color: rgba(13, 90, 70, 0.18);
}

.decision-note--plan {
  background: linear-gradient(180deg, rgba(255, 248, 233, 0.94) 0%, rgba(255, 253, 248, 0.92) 100%);
}

.decision-note strong {
  display: block;
}

.decision-note__list {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  line-height: 1.6;
}

.decision-note__list--checks {
  padding-left: 0;
  list-style: none;
}

.decision-note__list--checks li {
  position: relative;
  padding-left: 24px;
}

.decision-note__list--checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid var(--brand);
  background: rgba(13, 90, 70, 0.08);
}

.decision-note__button {
  width: 100%;
  margin-top: 16px;
  min-height: 50px;
}

.decision-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(13, 90, 70, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.decision-check__marker {
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(13, 90, 70, 0.11);
}

.decision-check__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.decision-check strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1.3;
}

.decision-check p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.decision-check--ok {
  border-color: rgba(13, 90, 70, 0.2);
  background: linear-gradient(180deg, rgba(239, 250, 246, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.decision-check--review {
  border-color: rgba(198, 137, 44, 0.24);
  background: linear-gradient(180deg, rgba(255, 248, 233, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.decision-check--review .decision-check__marker {
  background: #C6892C;
  box-shadow: 0 0 0 6px rgba(198, 137, 44, 0.13);
}

.decision-check--no {
  border-color: rgba(164, 54, 54, 0.22);
  background: linear-gradient(180deg, rgba(255, 243, 240, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.decision-check--no .decision-check__marker {
  background: #A43636;
  box-shadow: 0 0 0 6px rgba(164, 54, 54, 0.12);
}

.tax-reserve,
.source-note {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(13, 90, 70, 0.14);
  background: rgba(239, 250, 246, 0.72);
}

.tax-reserve {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.tax-reserve span,
.source-note strong {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
}

.tax-reserve strong {
  display: block;
  margin-top: 4px;
  color: var(--brand);
  font-size: 30px;
  line-height: 1;
}

.tax-reserve p,
.source-note p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.source-note {
  background: rgba(255, 255, 255, 0.88);
}

.source-note strong {
  margin-bottom: 6px;
  color: var(--text);
}

.decision-note--complex {
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.96) 0%, rgba(255, 255, 255, 0.94) 100%);
  border-color: rgba(64, 99, 148, 0.18);
}

.complex-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.complex-case-grid label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(18, 35, 31, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.complex-case-grid input {
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--brand);
}

.complex-case-summary {
  margin: 12px 0 0;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.results,
.lead-capture {
  margin-top: 20px;
  border-radius: 26px;
  box-shadow: 0 16px 32px rgba(24, 55, 44, 0.07);
}

.tax-contract-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 22px;
  align-items: start;
  margin-top: 20px;
  border-radius: 26px;
  box-shadow: 0 16px 32px rgba(24, 55, 44, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(239, 250, 246, 0.92) 100%);
}

.tax-contract-bridge h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
}

.tax-contract-bridge p {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.65;
}

.tax-contract-bridge__list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  line-height: 1.55;
}

.tax-contract-bridge__list li {
  position: relative;
  padding-left: 24px;
}

.tax-contract-bridge__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(13, 90, 70, 0.1);
}

.tax-contract-bridge__action {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(13, 90, 70, 0.18);
  background: rgba(255, 255, 255, 0.78);
}

.tax-contract-bridge__action strong {
  display: block;
  color: var(--brand);
  font-size: 22px;
  line-height: 1.25;
}

.tax-contract-bridge__action .button {
  width: 100%;
  margin-top: 18px;
}

.tax-contract-bridge__action .button--secondary {
  color: #6f4b12;
  border-color: rgba(198, 137, 44, 0.42);
  background: linear-gradient(180deg, rgba(255, 248, 233, 0.98), rgba(247, 229, 194, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 24px rgba(198, 137, 44, 0.13);
}

.tax-contract-bridge__action .button--secondary:hover {
  border-color: rgba(198, 137, 44, 0.62);
  background: linear-gradient(180deg, rgba(255, 244, 219, 0.98), rgba(241, 220, 181, 0.96));
}

.results-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.results--cards .panel__header {
  margin-bottom: 18px;
}

.results-grid--cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.results-ledger-head {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(120px, 0.62fr) minmax(120px, 0.56fr) minmax(150px, 0.7fr) minmax(220px, 1fr);
  gap: 18px;
  padding: 0 18px 12px;
  border-bottom: 1px solid rgba(24, 55, 44, 0.08);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.results-grid--ledger {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.result-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(120px, 0.62fr) minmax(120px, 0.56fr) minmax(150px, 0.7fr) minmax(220px, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-bottom: 1px solid rgba(24, 55, 44, 0.08);
}

.result-row:last-child {
  border-bottom: none;
}

.result-row--best {
  background: rgba(23, 79, 63, 0.05);
}

.result-row--disabled {
  opacity: 0.8;
}

.result-row__mode {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.result-row__rank {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(23, 79, 63, 0.08);
  border: 1px solid rgba(23, 79, 63, 0.12);
  color: var(--brand);
  font-weight: 800;
}

.result-row__mode-copy {
  display: grid;
  gap: 8px;
}

.result-row__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(23, 79, 63, 0.1);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-row__title {
  font-size: 21px;
  line-height: 1.28;
}

.result-row__metric,
.result-row__submetric {
  display: grid;
  gap: 8px;
  align-content: start;
}

.result-row__metric-label {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-row__metric strong,
.result-row__submetric strong {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
}

.result-row__submetric strong {
  font-size: 20px;
}

.result-row__submetric--net strong {
  color: var(--good);
}

.result-row__hint {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  line-height: 1.55;
}

.result-row__hint strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.result-row--empty {
  grid-template-columns: 1fr;
  padding: 22px 18px;
}

.result-row--empty .result-row__title {
  font-size: 24px;
}

.result-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 246, 239, 0.94) 100%);
  border: 1px solid rgba(24, 55, 44, 0.12);
  box-shadow: 0 14px 28px rgba(24, 55, 44, 0.045);
}

.result-card--best {
  border-color: rgba(23, 79, 63, 0.34);
  box-shadow: 0 18px 34px rgba(23, 79, 63, 0.1);
}

.result-card--best::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--brand) 0%, #d79a37 100%);
}

.result-card--disabled {
  opacity: 0.82;
  border-color: rgba(162, 79, 57, 0.18);
  background: rgba(255, 250, 246, 0.92);
}

.result-card--locked {
  opacity: 1;
  border-color: rgba(13, 90, 70, 0.18);
  background:
    linear-gradient(180deg, rgba(239, 250, 246, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.result-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.result-card__rank {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(23, 79, 63, 0.1);
  color: var(--brand);
  font-weight: 800;
}

.result-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: center;
}

.result-card__title {
  margin-top: 16px;
  font-size: 24px;
  line-height: 1.18;
}

.result-card__tax {
  margin-top: 18px;
  color: var(--brand);
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.result-card__month {
  margin-top: 6px;
  color: var(--text-soft);
  font-weight: 700;
}

.result-card__net {
  margin-top: 16px;
  color: var(--good);
  font-weight: 800;
}

.result-card__comparison {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(23, 79, 63, 0.07);
  color: var(--brand);
  font-weight: 800;
  line-height: 1.45;
}

.result-card__hint {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(24, 55, 44, 0.08);
  color: var(--text-soft);
  line-height: 1.55;
}

.result-card__button {
  width: 100%;
  margin-top: auto;
}

.tax-next-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.tax-next-step__copy h2 {
  margin: 8px 0 10px;
}

.tax-next-step__copy p {
  margin: 0;
  max-width: 760px;
  color: var(--text-soft);
  line-height: 1.55;
}

.lead-capture .delivery-inline {
  gap: 14px;
}

.lead-capture .delivery-inline__email-form {
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.lead-capture .delivery-row__button--email,
.lead-capture .delivery-inline__max {
  border-radius: 14px;
}

@media (max-width: 1100px) {
  .hero__grid--calculator,
  .calculator,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .results-grid--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .decision-card__metrics {
    grid-template-columns: 1fr;
  }

  .tax-next-step {
    grid-template-columns: 1fr;
  }

  .tax-next-step .button {
    width: 100%;
  }

  .results-ledger-head {
    display: none;
  }

  .result-row,
  .result-row--empty {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .result-row__mode {
    grid-template-columns: 1fr;
  }

  .calculator--finance .mode-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .results-grid--cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero__grid--calculator h1 {
    font-size: clamp(32px, 9vw, 36px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .hero__copy,
  .aside-card,
  .panel {
    min-width: 0;
  }

  .delivery-inline__max {
    width: 100%;
    max-width: 100%;
    flex: 0 1 auto;
    margin-left: 0;
  }
}

.page-shell--dossier {
  overflow: hidden;
}

.site-footer {
  padding-bottom: 14px;
}

.topbar__auth-row .topbar__link.is-authenticated,
.page-shell .topbar__link.is-authenticated,
.page-shell--dossier .topbar__link.is-authenticated {
  background: rgba(23, 79, 63, 0.16);
  border-color: rgba(23, 79, 63, 0.22);
  color: var(--brand);
}

/* DD365 tax product layer */
.page-shell--dd365-tax {
  --bg: #f4f8f6;
  --surface: rgba(255, 255, 255, 0.94);
  --text: #142823;
  --text-soft: #52655f;
  --line: rgba(20, 40, 35, 0.11);
  --line-strong: rgba(20, 40, 35, 0.2);
  --brand: #0d5a46;
  --brand-soft: #dff0ea;
  --accent: #b8791f;
  background:
    linear-gradient(180deg, #f6faf8 0%, #eef5f1 48%, #f8f3e9 100%);
}

.page-shell--dd365-tax::before {
  background:
    linear-gradient(rgba(13, 90, 70, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 90, 70, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(223, 240, 234, 0.5) 0%, transparent 42%),
    linear-gradient(225deg, rgba(235, 210, 164, 0.28) 0%, transparent 36%);
  background-size: 120px 120px, 120px 120px, auto, auto;
}

.brand--dd365-tax {
  color: var(--text);
  text-decoration: none;
}

.brand--dd365-tax .brand__subtitle {
  display: block;
}

.brand__tax-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 20px;
  box-shadow: 0 18px 32px rgba(13, 90, 70, 0.16);
  overflow: hidden;
}

.brand__tax-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__grid--dd365-tax {
  grid-template-columns: minmax(0, 1fr);
}

.page-shell--dd365-tax .hero {
  padding-top: 22px;
  padding-bottom: 28px;
}

.page-shell--dd365-tax .topbar {
  margin-bottom: 14px;
}

.page-shell--dd365-tax .hero__copy {
  padding: 28px 40px;
}

.page-shell--dd365-tax .hero__copy--product {
  padding: 36px 44px 34px;
}

.page-shell--dd365-tax .hero__grid--calculator h1 {
  font-size: clamp(34px, 3.25vw, 42px);
  line-height: 1.04;
}

.page-shell--dd365-tax .hero__lead {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.58;
}

.hero-product-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(20, 40, 35, 0.12);
}

.hero-product-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 2px 20px 0 0;
}

.hero-product-step + .hero-product-step {
  padding-left: 20px;
  border-left: 1px solid rgba(20, 40, 35, 0.1);
}

.hero-product-step__number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(13, 90, 70, 0.1);
  color: var(--brand);
  font-weight: 900;
}

.hero-product-step h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.25;
}

.hero-product-step p {
  margin: 7px 0 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.45;
}

.hero__value-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero__value-chain span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(13, 90, 70, 0.16);
  border-radius: 8px;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.page-shell--dd365-tax .hero__actions {
  margin-top: 22px;
}

.page-shell--dd365-tax .aside-card--calculator {
  gap: 12px;
  padding: 24px;
}

.page-shell--dd365-tax .tax-side-lead {
  line-height: 1.5;
}

.page-shell--dd365-tax .tax-side-rows {
  gap: 10px;
}

.page-shell--dd365-tax .tax-side-row {
  gap: 6px;
  padding: 12px 14px;
}

.page-shell--dd365-tax .tax-side-row strong {
  font-size: 17px;
}

.page-shell--dd365-tax .tax-side-row span {
  line-height: 1.42;
}

.page-shell--dd365-tax .tax-side-summary {
  padding: 12px 14px;
  line-height: 1.42;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button--secondary {
  color: #124f43;
  background: #e5f2ee;
  border-color: #6fa497;
}

.button--primary:hover,
.button--accent:hover {
  background: #09574f;
}

.button--secondary:hover {
  color: #124f43;
  background: #d2e8e1;
  border-color: #4d887a;
}

.button:focus-visible {
  outline: 3px solid rgba(13, 107, 99, 0.3);
  outline-offset: 3px;
}

.aside-card--product {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 246, 242, 0.96) 100%);
}

.section-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.paid-report,
.sample-report,
.legal-band {
  margin-top: 24px;
  border-radius: 26px;
  box-shadow: 0 16px 32px rgba(20, 40, 35, 0.07);
}

.paid-report {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: 22px;
  align-items: stretch;
}

.paid-report--plan {
  display: block;
}

.paid-plan-offer {
  display: grid;
  gap: 24px;
}

.paid-report__copy h2,
.legal-band h2 {
  margin-top: 10px;
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.06;
}

.paid-report__copy p,
.legal-band p {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.65;
}

.paid-report__dynamic {
  padding: 14px 16px;
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  background: rgba(13, 90, 70, 0.07);
  color: var(--brand) !important;
  font-weight: 800;
}

.paid-report__included {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(13, 90, 70, 0.14);
  background: rgba(239, 250, 246, 0.72);
}

.paid-report__included p {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
}

.paid-report__included ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.paid-report__included li::marker {
  color: var(--brand);
}

.paid-report__included strong {
  color: var(--brand);
}

.paid-preview {
  margin-top: 22px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(13, 90, 70, 0.14);
  background: linear-gradient(180deg, rgba(239, 250, 246, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.paid-preview__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  justify-content: space-between;
}

.paid-preview__head span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.paid-preview__head strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.paid-preview__summary {
  margin: 12px 0 0 !important;
  color: var(--text) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.paid-preview__table {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.paid-preview-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(112px, 0.7fr) minmax(130px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 35, 31, 0.08);
  color: var(--text);
  font-size: 14px;
}

.paid-preview-row--head {
  background: transparent;
  border-color: transparent;
  padding-top: 0;
  padding-bottom: 0;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.paid-preview-row--best {
  border-color: rgba(13, 90, 70, 0.28);
  box-shadow: 0 10px 24px rgba(13, 90, 70, 0.08);
}

.paid-preview-row strong {
  color: var(--brand);
  font-size: 15px;
}

.paid-preview-row em {
  color: var(--text-soft);
  font-style: normal;
}

.paid-plan-body {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.paid-plan-body h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.25;
}

.paid-plan-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  line-height: 1.5;
}

.paid-plan-list li {
  position: relative;
  padding-left: 20px;
}

.paid-plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
}

.paid-plan-list strong {
  color: var(--text);
}

.paid-plan-offer__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(13, 90, 70, 0.18);
  background:
    linear-gradient(180deg, rgba(239, 250, 246, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.paid-plan-offer__price {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.paid-plan-offer__price strong {
  color: var(--brand);
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1;
}

.paid-plan-offer__price span {
  color: var(--text-soft);
  font-weight: 800;
  line-height: 1.45;
}

.paid-plan-offer__footer .button {
  width: 100%;
}

.paid-report__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(20, 40, 35, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
}

.product-card--primary {
  border-color: rgba(13, 90, 70, 0.26);
  background:
    linear-gradient(180deg, rgba(239, 250, 246, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.product-card__price {
  color: var(--brand);
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
}

.product-card__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card h3 {
  font-size: 25px;
  line-height: 1.15;
}

.product-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.58;
}

.product-card .button {
  width: 100%;
  margin-top: 6px;
}

.sample-report__pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sample-page {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 520px;
  padding: 28px;
  border: 1px solid rgba(20, 40, 35, 0.13);
  border-radius: 10px;
  background:
    linear-gradient(180deg, #fff 0%, #fbfcfb 100%);
  box-shadow: 0 14px 28px rgba(20, 40, 35, 0.05);
}

.sample-page__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(20, 40, 35, 0.12);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sample-page h3 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
}

.sample-page p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.sample-page__notice {
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: rgba(184, 121, 31, 0.09);
  color: #5f4a2c !important;
  font-weight: 700;
}

.sample-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sample-summary-grid div {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(13, 90, 70, 0.06);
}

.sample-summary-grid span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sample-summary-grid strong {
  font-size: 20px;
  line-height: 1.2;
}

.report-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  line-height: 1.58;
}

.report-list li::marker {
  color: var(--brand);
  font-weight: 800;
}

.source-grid {
  display: grid;
  gap: 10px;
}

.source-grid a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(13, 90, 70, 0.13);
  border-radius: 12px;
  color: var(--brand);
  background: rgba(13, 90, 70, 0.05);
  font-weight: 800;
  text-decoration: none;
}

.source-grid a:hover {
  text-decoration: underline;
}

.legal-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 24px;
  align-items: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 246, 242, 0.92) 100%);
}

.legal-band__links {
  display: grid;
  gap: 10px;
}

.legal-band__links a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(20, 40, 35, 0.12);
  border-radius: 14px;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-decoration: none;
}

.legal-band__links a:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .hero__grid--dd365-tax,
  .paid-report,
  .tax-contract-bridge,
  .legal-band {
    grid-template-columns: 1fr;
  }

  .hero-product-flow {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-product-step,
  .hero-product-step + .hero-product-step {
    padding: 0;
    border-left: 0;
  }

  .hero-product-step + .hero-product-step {
    padding-top: 14px;
    border-top: 1px solid rgba(20, 40, 35, 0.1);
  }

  .paid-report__grid {
    grid-template-columns: 1fr;
  }

  .paid-plan-body,
  .paid-plan-offer__footer {
    grid-template-columns: 1fr;
  }

  .paid-plan-offer__footer .button {
    justify-self: stretch;
  }

  .sample-report__pages {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .brand__tax-mark {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    border-radius: 16px;
    font-size: 20px;
  }

  .hero__actions,
  .hero__actions .button {
    width: 100%;
  }

  .sample-page {
    min-height: 0;
    padding: 22px;
  }

  .sample-summary-grid {
    grid-template-columns: 1fr;
  }

  .sample-page__head {
    flex-direction: column;
  }

  .page-shell--dd365-tax .topbar__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-shell--dd365-tax .hero__copy {
    padding: 18px;
  }

  .page-shell--dd365-tax .hero__grid--calculator h1 {
    font-size: 26px;
    line-height: 1.08;
  }

  .page-shell--dd365-tax .hero__lead {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.45;
  }

  .hero-product-flow {
    margin-top: 18px;
    padding-top: 16px;
  }

  .hero-product-step {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .hero-product-step__number {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .hero-product-step h2 {
    font-size: 16px;
  }

  .hero-product-step p {
    font-size: 14px;
    line-height: 1.42;
  }

  .paid-plan-body {
    gap: 16px;
    margin-top: 18px;
  }

  .paid-plan-offer__footer {
    gap: 14px;
    padding: 16px;
  }

  .paid-plan-offer__price {
    align-items: flex-start;
  }

  .hero__value-chain {
    margin-top: 14px;
  }

  .hero__value-chain span {
    min-height: 32px;
    font-size: 13px;
  }

  .page-shell--dd365-tax .hero__actions {
    margin-top: 16px;
  }

  .page-shell--dd365-tax .hero__actions .button--secondary {
    display: none;
  }

  .page-shell--dd365-tax .hero__aside--calculator {
    display: none;
  }
}

.doc-page {
  min-height: 100vh;
  padding: 42px 0;
}

.doc-panel {
  max-width: 920px;
  padding: 36px;
}

.doc-panel h1 {
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
}

.doc-panel h2 {
  margin: 28px 0 10px;
  font-size: 28px;
  line-height: 1.15;
}

.doc-panel p {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.7;
}

/* Mobile v2: phone-first calculation path */
.mobile-step-marker,
.mobile-result-compact {
  display: none;
}

@media (max-width: 760px) {
  html,
  body,
  .page-shell--dossier {
    overflow-x: clip;
  }

  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .page-shell--dd365-tax .hero {
    padding: 10px 0 8px;
  }

  .page-shell--dd365-tax .topbar {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 6px 0;
  }

  .brand--dd365-tax {
    min-width: 0;
  }

  .brand__tax-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 14px;
  }

  .brand__title {
    font-size: 22px;
  }

  .brand__subtitle {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.2;
  }

  .page-shell--dd365-tax .topbar__actions {
    display: none;
  }

  .hero__grid,
  .hero__grid--dd365-tax,
  .hero__grid--calculator {
    display: block;
  }

  .page-shell--dd365-tax .hero__copy {
    padding: 6px 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .eyebrow {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 10px;
    letter-spacing: 0.06em;
    line-height: 1.2;
  }

  .page-shell--dd365-tax .hero__grid--calculator h1 {
    margin-top: 10px;
    max-width: 11em;
    font-size: clamp(28px, 8.2vw, 34px);
    line-height: 1.04;
    overflow-wrap: normal;
  }

  .page-shell--dd365-tax .hero__lead {
    margin-top: 10px;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero__value-chain {
    display: none;
  }

  .page-shell--dd365-tax .hero__actions {
    margin-top: 12px;
  }

  .hero__actions .button {
    min-height: 48px;
    border-radius: 14px;
  }

  .main-content {
    padding-top: 4px;
  }

  .calculator {
    gap: 12px;
  }

  .calculator--finance .calculator__left,
  .calculation-result-section .panel,
  .results,
  .lead-capture,
  .paid-report,
  .sample-report,
  .legal-band {
    border-radius: 20px;
  }

  .quick-calculation-action {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .quick-calculation-action .button {
    width: 100%;
    min-width: 0;
  }

  .hero__copy,
  .panel,
  .note-block,
  .aside-card {
    padding: 16px;
  }

  .panel__header {
    margin-bottom: 14px;
  }

  .calculator--finance .panel__header h2,
  .results .panel__header h2,
  .lead-capture .panel__header h2,
  .paid-report__copy h2,
  .legal-band h2 {
    font-size: 25px;
    line-height: 1.08;
  }

  .calculator--finance .panel__header p,
  .results .panel__header p,
  .lead-capture .panel__header p,
  .paid-report__copy p,
  .legal-band p {
    font-size: 14px;
    line-height: 1.48;
  }

  .mobile-result-compact {
    display: none;
  }

  .mobile-result-compact__label {
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-result-compact__mode {
    color: var(--brand);
    font-size: 26px;
    line-height: 1.05;
    font-weight: 800;
  }

  .mobile-result-compact__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-result-compact__grid div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px;
    border-radius: 12px;
    background: rgba(13, 90, 70, 0.06);
  }

  .mobile-result-compact__grid span {
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-result-compact__grid strong {
    min-width: 0;
    font-size: 18px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .mobile-result-compact__wide {
    grid-column: 1 / -1;
  }

  .mobile-result-compact__trust {
    margin: 0;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.42;
  }

  .mobile-result-compact__status {
    display: grid;
    gap: 5px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(13, 90, 70, 0.15);
    background: rgba(239, 250, 246, 0.84);
  }

  .mobile-result-compact__status strong {
    color: var(--brand);
    font-size: 14px;
    line-height: 1.25;
  }

  .mobile-result-compact__status span {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.38;
  }

  .mobile-result-compact__link {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, var(--brand) 0%, #1c6f57 100%);
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.18;
    text-align: center;
    text-decoration: none;
  }

  .mobile-compare,
  .mobile-complex {
    border-top: 1px solid rgba(13, 90, 70, 0.12);
    padding-top: 10px;
  }

  .mobile-compare summary,
  .mobile-complex summary {
    cursor: pointer;
    color: var(--brand);
    font-weight: 800;
    line-height: 1.25;
  }

  .complex-case-grid--mobile {
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .mobile-compare__list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
  }

  .mobile-compare__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 10px;
    border: 1px solid rgba(13, 90, 70, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
  }

  .mobile-compare__row--best {
    border-color: rgba(13, 90, 70, 0.24);
    background: rgba(13, 90, 70, 0.07);
  }

  .mobile-compare__row--muted {
    opacity: 0.82;
  }

  .mobile-compare__mode,
  .mobile-compare__value {
    min-width: 0;
    line-height: 1.2;
  }

  .mobile-compare__mode {
    font-weight: 800;
  }

  .mobile-compare__value {
    color: var(--brand);
    white-space: nowrap;
  }

  .mobile-compare__note {
    grid-column: 1 / -1;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.35;
  }

  .mobile-compare__empty {
    color: var(--text-soft);
    font-size: 13px;
  }

  .form-grid {
    gap: 12px;
  }

  .mobile-step-marker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 2px;
    padding: 10px 0 2px;
  }

  .mobile-step-marker span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 10px;
    color: #fff;
    background: var(--brand);
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-step-marker strong {
    font-size: 16px;
    line-height: 1.2;
  }

  .mobile-step-marker--inline {
    padding: 0;
  }

  .mobile-step-marker--outside {
    margin: 0 0 10px;
    padding: 0;
  }

  .calc-divider > strong {
    display: none;
  }

  .calc-divider {
    gap: 8px;
    padding-top: 12px;
    margin-top: 0;
  }

  .calc-divider p {
    font-size: 13px;
    line-height: 1.42;
  }

  .field {
    grid-template-rows: auto auto auto;
    gap: 7px;
  }

  .field__label,
  .field--compact .field__label {
    min-height: 0;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.3;
  }

  .field input,
  .field select,
  .searchable-select__input,
  .toggle {
    min-height: 48px;
    padding: 0 13px;
    border-radius: 12px;
  }

  .field__hint,
  .field__example-note {
    font-size: 12px;
    line-height: 1.38;
  }

  .field__hint--region-note {
    display: none;
  }

  .searchable-select__list {
    position: static;
    max-height: 236px;
    margin-top: 6px;
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(24, 55, 44, 0.12);
  }

  .searchable-select__option {
    padding: 12px;
  }

  .segmented__item span {
    min-height: 48px;
    border-radius: 12px;
  }

  .toggle {
    justify-content: space-between;
  }

  .toggle__text {
    font-size: 14px;
  }

  .calc-fold {
    padding: 12px;
    border-radius: 16px;
  }

  .calc-fold__lead {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.42;
  }

  .calculator--finance .mode-picker {
    display: none;
  }

  .calculator--finance .mode-picker__title {
    font-size: 12px;
  }

  .calculator--finance .mode-grid {
    gap: 8px;
  }

  .calculator--finance .mode-card {
    min-height: 0;
    padding: 13px 12px 13px 44px;
    border-radius: 14px;
  }

  .mode-card__tick {
    left: 12px;
    top: 13px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
  }

  .mode-checkbox:checked ~ .mode-card__tick::after {
    left: 7px;
    top: 3px;
  }

  .calculator--finance .mode-card__title {
    font-size: 16px;
    line-height: 1.25;
  }

  .calculator--finance .mode-card__meta {
    font-size: 12px;
    line-height: 1.36;
  }

  .calculation-result-section {
    margin-top: 12px;
  }

  .calculation-result-section #patentStatusBanner {
    margin-top: 12px;
  }

  .decision-card {
    padding: 16px;
    border-radius: 18px;
  }

  .decision-card__mode {
    font-size: 28px;
  }

  .decision-card__metrics {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .decision-card__metric {
    padding: 12px;
    border-radius: 14px;
  }

  .decision-card__metric strong {
    font-size: 22px;
  }

  .decision-card__text,
  .decision-note__list {
    font-size: 13px;
    line-height: 1.45;
  }

  .decision-note {
    padding: 14px;
    border-radius: 16px;
  }

  .metric-strip {
    display: none;
  }

  .results,
  .lead-capture,
  .paid-report,
  .sample-report,
  .legal-band {
    margin-top: 14px;
  }

  .results .panel__header p {
    display: none;
  }

  .results {
    display: block;
    padding: 16px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 246, 239, 0.96) 100%);
  }

  .results-grid,
  .results-grid--cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .result-card {
    padding: 16px;
    border-radius: 18px;
    min-height: 0;
  }

  .result-card__topline {
    align-items: flex-start;
  }

  .result-card__rank {
    min-width: 36px;
    height: 30px;
  }

  .result-card__badge {
    min-height: 28px;
    padding: 0 9px;
    font-size: 10px;
  }

  .result-card__title {
    margin-top: 12px;
    font-size: 23px;
  }

  .result-card__tax {
    margin-top: 12px;
    font-size: 34px;
  }

  .result-card__month {
    font-size: 14px;
  }

  .result-card__net {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.35;
  }

  .result-card__hint,
  .result-card__comparison {
    font-size: 13px;
    line-height: 1.42;
  }

  .result-card__hint {
    display: block;
    padding-top: 10px;
  }

  .paid-report {
    gap: 14px;
  }

  .product-card {
    padding: 16px;
    border-radius: 18px;
  }

  .product-card__price {
    font-size: 36px;
  }

  .sample-page {
    padding: 16px;
  }

  .sample-page h3 {
    font-size: 24px;
  }

  .sample-page p,
  .report-list {
    font-size: 13px;
    line-height: 1.45;
  }

  .delivery-inline {
    gap: 10px;
  }

  .delivery-inline__email-form {
    padding: 8px;
    border-radius: 14px;
  }

  .delivery-row__button,
  .delivery-row__button--email,
  .delivery-inline__max {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    border-radius: 12px;
  }

  .delivery-inline__max {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 10px 12px;
    gap: 8px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.15;
  }

  .delivery-inline__max span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .delivery-inline__max-logo {
    width: min(96px, 28vw);
    height: 30px;
  }

  .legal-band__links a,
  .source-grid a,
  .site-footer__text,
  .site-footer__nav {
    overflow-wrap: anywhere;
  }

  .legal-band__links a {
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .container {
    width: min(calc(100% - 16px), var(--container));
  }

  .page-shell--dd365-tax .hero__grid--calculator h1 {
    font-size: 27px;
  }

  .mobile-result-compact__grid {
    grid-template-columns: 1fr;
  }

  .calculator--finance .mode-card__meta {
    display: none;
  }
}

.report-payment-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 10px;
  width: 100%;
}

.report-payment-form .delivery-row__input {
  min-width: 0;
}

.report-payment-form .delivery-row__input input {
  width: 100%;
}

.report-payment-form .field__label {
  display: block;
  margin: 0 0 7px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 800;
}

.lead-capture .paid-report__ready-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.lead-capture #paidReportDownloadLink,
.lead-capture #paidReportMaxLink {
  width: fit-content;
}

@media (max-width: 980px) {
  .report-payment-form {
    grid-template-columns: 1fr;
  }

  .delivery-inline {
    align-items: stretch;
  }
}

.checkout-flow.report-payment-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  width: 100%;
}

.checkout-step {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(24, 55, 44, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.checkout-step__head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.checkout-step__number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(23, 79, 63, 0.1);
  color: var(--brand);
  font-weight: 900;
}

.checkout-step h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.checkout-step p {
  margin: 6px 0 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.checkout-fields {
  display: grid;
  gap: 12px;
  justify-content: start;
}

.checkout-fields--account {
  grid-template-columns: minmax(248px, 320px) minmax(200px, 260px);
}

.checkout-email {
  display: block;
  width: 100%;
}

.checkout-flow .delivery-row__input {
  min-width: 0;
}

.checkout-flow .field__label {
  display: block;
  margin: 0 0 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.checkout-flow .delivery-row__input input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(24, 55, 44, 0.14);
  background: rgba(255, 255, 255, 0.98);
}

.checkout-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.delivery-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.delivery-option {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(24, 55, 44, 0.13);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(24, 55, 44, 0.06);
}

.delivery-option--email {
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.98), rgba(255, 255, 255, 0.96));
}

.delivery-option--max {
  background: linear-gradient(180deg, rgba(248, 246, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.delivery-option__head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.delivery-option__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(199, 135, 24, 0.12);
  color: #8a5b0c;
  font-weight: 900;
  font-size: 18px;
}

.delivery-option__mark--max {
  background: rgba(73, 64, 245, 0.11);
  color: #4038c8;
  font-size: 11px;
  letter-spacing: 0;
}

.delivery-option h4 {
  margin: 0;
  color: var(--brand-dark);
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.2;
}

.delivery-option p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.45;
}

.delivery-option .delivery-row__button {
  align-self: end;
  margin-top: auto;
}

.field__hint--warning {
  color: var(--danger);
  font-weight: 800;
}

.decision-note__summary {
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.55;
}

@media (max-width: 820px) {
  .tax-reserve,
  .complex-case-grid,
  .paid-preview-row {
    grid-template-columns: 1fr;
  }

  .paid-preview-row--head {
    display: none;
  }
}

@media (max-width: 560px) {
  .decision-check,
  .tax-reserve,
  .source-note,
  .paid-preview {
    border-radius: 16px;
    padding: 14px;
  }

  .complex-case-grid label {
    font-size: 12px;
  }

  .tax-reserve strong {
    font-size: 25px;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-actions .button {
  min-height: 50px;
}

.paid-report--conversion {
  margin-top: 24px;
}

.tax-value-proof {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 26px;
  margin: 8px 0 28px;
  padding: 30px;
  border-color: rgba(13, 90, 70, 0.16);
  background: rgba(255, 253, 248, 0.96);
}

.tax-value-proof__intro h2 {
  max-width: 760px;
  margin: 8px 0 10px;
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.08;
}

.tax-value-proof__intro > p {
  max-width: 820px;
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.58;
}

.tax-value-proof__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.tax-value-proof__cards article {
  padding: 17px;
  border: 1px solid rgba(13, 90, 70, 0.12);
  border-radius: 18px;
  background: #f7faf7;
}

.tax-value-proof__cards article > span {
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.tax-value-proof__cards strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.tax-value-proof__cards p {
  margin: 7px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.48;
}

.tax-analysis-example {
  align-self: stretch;
  padding: 24px;
  border-radius: 24px;
  color: #f9f7ef;
  background: linear-gradient(145deg, #174f3f, #0d5a46);
  box-shadow: 0 20px 42px rgba(23, 79, 63, 0.18);
}

.tax-analysis-example__head {
  display: grid;
  gap: 4px;
}

.tax-analysis-example__head span {
  color: #e7bd72;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tax-analysis-example__head strong {
  font-family: "Spectral", Georgia, serif;
  font-size: 27px;
}

.tax-analysis-example__case,
.tax-analysis-example__note {
  color: rgba(249, 247, 239, 0.78);
  font-size: 14px;
  line-height: 1.52;
}

.tax-analysis-example__rows {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.tax-analysis-example__rows > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
}

.tax-analysis-example__rows span {
  font-weight: 800;
}

.tax-status {
  font-size: 12px;
  text-align: right;
}

.tax-status--ok { color: #aee4c4; }
.tax-status--review { color: #f5ce86; }
.tax-status--no { color: #efb3a6; }

.tax-analysis-example .button {
  width: 100%;
  margin-top: 8px;
  color: #fff;
  background: #0d6b63;
  border-color: #0d6b63;
}

.tax-analysis-example .button:hover {
  color: #fff;
  background: #09574f;
  border-color: #09574f;
}

.decision-diagnostic {
  display: grid;
  gap: 13px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(198, 137, 44, 0.26);
  border-radius: 20px;
  background: linear-gradient(180deg, #fffaf0, #f8f1e4);
}

.decision-diagnostic__head {
  display: grid;
  gap: 3px;
}

.decision-diagnostic__head span {
  color: #94641e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.decision-diagnostic__head strong {
  font-size: 18px;
}

.decision-diagnostic__facts,
.decision-diagnostic__note {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.decision-diagnostic__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.decision-diagnostic__grid > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.decision-diagnostic__grid strong {
  overflow-wrap: anywhere;
  color: var(--brand);
  font-size: 18px;
}

.decision-diagnostic__grid span {
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.35;
}

.mobile-diagnostic {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(198, 137, 44, 0.22);
  border-radius: 15px;
  background: #fff8ea;
}

.mobile-diagnostic > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.45;
}

.mobile-diagnostic__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mobile-diagnostic__grid > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
}

.mobile-diagnostic__grid strong {
  overflow-wrap: anywhere;
  color: var(--brand);
  font-size: 15px;
}

.mobile-diagnostic__grid span {
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.25;
}

.paid-conversion-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.88fr);
  gap: 22px;
  align-items: start;
}

.paid-report--conversion .paid-report__copy {
  min-width: 0;
}

.paid-report--conversion .paid-preview {
  grid-row: span 2;
  margin-top: 0;
  align-self: stretch;
}

@media (max-width: 1040px) {
  .tax-value-proof {
    grid-template-columns: 1fr;
  }

  .paid-conversion-grid {
    grid-template-columns: 1fr;
  }

  .paid-report--conversion .paid-preview {
    grid-column: auto;
    grid-row: auto;
  }
}

.paid-report--unified {
  display: block;
}

.paid-unified-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "copy";
  gap: 24px;
  align-items: start;
}

.paid-report--unified .paid-report__copy {
  grid-area: copy;
  min-width: 0;
}

.paid-report--unified .paid-report__copy p {
  max-width: none;
}

.paid-report__lead {
  max-width: none !important;
}

.paid-report__lead--secondary {
  margin-top: 8px !important;
}

.paid-report--unified .paid-report__included ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-left: 18px;
}

.paid-report--unified .paid-report__included li:last-child {
  grid-column: 1 / -1;
}

.paid-report--unified .paid-report__dynamic {
  margin-top: 14px;
}

.paid-report--unified .paid-preview {
  grid-area: preview;
  align-self: auto;
  margin-top: 0;
}

.paid-inline-order {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(13, 90, 70, 0.16);
  background:
    linear-gradient(180deg, rgba(239, 250, 246, 0.96) 0%, rgba(255, 253, 248, 0.98) 100%);
  box-shadow: 0 16px 34px rgba(24, 55, 44, 0.08);
}

.paid-inline-order__head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.paid-inline-order__head div {
  display: grid;
  gap: 4px;
  justify-items: center;
  flex: 0 0 auto;
}

.paid-inline-order__head span {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.paid-inline-order__head strong {
  color: var(--brand);
  font-size: clamp(42px, 6vw, 58px);
  line-height: 0.95;
}

.paid-inline-order__head p {
  max-width: 440px !important;
  margin: 0 !important;
  color: var(--text-soft) !important;
  font-size: 14px;
  line-height: 1.42;
}

.paid-inline-order .delivery-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.paid-inline-order .delivery-options:has(.delivery-option--max.is-hidden) {
  grid-template-columns: 1fr;
}

.paid-inline-order .delivery-options:has(.delivery-option--max.is-hidden) .delivery-option--email {
  grid-column: 1 / -1;
}

.paid-inline-order .delivery-option {
  gap: 12px;
  padding: 14px;
  box-shadow: none;
}

.paid-inline-order .delivery-option h4 {
  font-family: var(--font-sans);
  font-size: 17px;
}

.paid-inline-order .delivery-option p {
  font-size: 13px;
}

.paid-inline-order .delivery-option__field {
  width: 100%;
  min-width: 0;
}

.paid-inline-order .delivery-option__field input {
  width: 100%;
}

.paid-report--unified .paid-report__ready-actions {
  justify-content: center;
  margin-top: 0;
}

.paid-report--unified #paidReportDownloadLink,
.paid-report--unified #paidReportMaxLink {
  width: fit-content;
  margin-top: 0;
}

.payment-return-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 18px 0 22px;
  padding: 18px 20px;
  border: 1px solid rgba(13, 90, 70, 0.24);
  border-radius: 16px;
  background: #eef7f3;
  scroll-margin-top: 18px;
}

.payment-return-panel__marker { width: 16px; height: 16px; border: 3px solid rgba(13,90,70,.22); border-top-color: var(--brand); border-radius: 50%; }
.payment-return-panel.is-waiting .payment-return-panel__marker { animation: payment-return-spin .85s linear infinite; }
.payment-return-panel.is-success { border-color: var(--brand); background: var(--brand); color: #fff; }
.payment-return-panel.is-success .payment-return-panel__marker { border: 0; background: var(--lime, #e0f85b); box-shadow: inset 0 0 0 5px var(--brand), 0 0 0 2px var(--lime, #e0f85b); }
.payment-return-panel strong { display: block; font-size: 18px; }
.payment-return-panel p { margin: 3px 0 0; color: var(--text-soft); line-height: 1.5; }
.payment-return-panel.is-success p { color: rgba(255,255,255,.78); }
.payment-return-panel__retry { white-space: nowrap; }
@keyframes payment-return-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .payment-return-panel.is-waiting .payment-return-panel__marker { animation: none; }
}

.report-save-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
  padding: 26px 30px;
  border: 2px solid var(--brand);
  border-radius: 24px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 18px 40px rgba(13, 90, 70, 0.2);
}

.report-save-panel__copy { display: flex; align-items: center; gap: 18px; }
.report-save-panel__icon { flex: 0 0 auto; display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid rgba(255,255,255,.34); border-radius: 16px; background: rgba(255,255,255,.1); color: var(--lime, #e0f85b); font-size: 15px; font-weight: 900; letter-spacing: .08em; }
.report-save-panel .eyebrow { margin: 0 0 6px; color: var(--lime, #e0f85b); }
.report-save-panel h2 { margin: 0; color: #fff; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; }
.report-save-panel p:last-child { margin: 8px 0 0; color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.55; }
.button--download { min-width: 250px; min-height: 58px; padding: 16px 24px; border: 0; background: var(--lime, #e0f85b); color: #263112; font-size: 17px; font-weight: 900; box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.button--download:hover { transform: translateY(-1px); filter: brightness(1.04); }

@media (max-width: 760px) {
  .payment-return-panel { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .payment-return-panel__retry { grid-column: 1 / -1; width: 100%; }
  .report-save-panel { grid-template-columns: 1fr; gap: 20px; padding: 22px 18px; }
  .report-save-panel__copy { align-items: flex-start; }
  .report-save-panel__icon { width: 52px; height: 52px; }
  .report-save-panel .button--download { width: 100%; min-width: 0; }
}

@media (max-width: 1040px) {
  .paid-unified-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "preview";
  }
}

@media (max-width: 760px) {
  .tax-value-proof {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .tax-value-proof__cards {
    grid-template-columns: 1fr;
  }

  .tax-analysis-example {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .paid-report--unified .paid-report__included ul {
    grid-template-columns: 1fr;
  }

  .paid-report--unified .paid-report__included li:last-child {
    grid-column: auto;
  }

  .paid-inline-order {
    padding: 16px;
    border-radius: 20px;
  }

  .paid-inline-order__head {
    display: grid;
  }

  .paid-inline-order__head strong {
    font-size: 42px;
  }

  .paid-inline-order .delivery-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }
}

.page-shell--dd365-tax .hero {
  padding-bottom: 30px;
}

.hero__grid--lean {
  display: block;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hero__grid--lean .hero__copy--product {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding-left: max(20px, calc((100vw - var(--container)) / 2));
  padding-right: max(20px, calc((100vw - var(--container)) / 2));
}

.page-shell--dd365-tax .hero__grid--lean h1 {
  max-width: var(--container);
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.04;
}

.hero__grid--lean .hero__lead {
  width: 100%;
  max-width: var(--container);
  margin-top: 20px;
  padding: 18px 22px;
  border: 1px solid rgba(230, 243, 92, 0.56);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(18px, 1.9vw, 23px);
  font-weight: 650;
  line-height: 1.44;
  background: #0d5a46;
  box-shadow: 0 14px 30px rgba(13, 90, 70, 0.18);
}

.hero__grid--lean .hero__lead strong {
  color: #e6f35c;
  font-weight: 900;
  white-space: nowrap;
}

.hero__grid--lean .hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: var(--container);
  margin-top: 18px;
}

.hero__grid--lean .hero-actions .button {
  width: 100%;
}

.hero__grid--lean .hero-actions .button--secondary {
  color: #6f4b12;
  border-color: rgba(198, 137, 44, 0.42);
  background: linear-gradient(180deg, rgba(255, 248, 233, 0.98), rgba(247, 229, 194, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 24px rgba(198, 137, 44, 0.13);
}

.hero__grid--lean .hero-actions .button--secondary:hover {
  border-color: rgba(198, 137, 44, 0.62);
  background: linear-gradient(180deg, rgba(255, 244, 219, 0.98), rgba(241, 220, 181, 0.96));
}

.tax-product-choice {
  margin: 28px 0;
  padding: 32px;
  border: 1px solid rgba(13, 90, 70, 0.14);
  border-radius: 28px;
  background: #fffdf8;
  box-shadow: 0 20px 50px rgba(30, 43, 37, 0.08);
}

.page-shell--dd365-tax .hero__lead > span {
  display: block;
}

.page-shell--dd365-tax .hero__lead > span + span {
  margin-top: 4px;
}

.tax-product-choice__head {
  width: 100%;
  max-width: none;
}

.tax-product-card__kicker {
  color: #0d5a46;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tax-product-choice__head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.tax-product-choice__head p {
  margin: 0;
  color: #66716b;
}

.tax-product-choice__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.tax-product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid #dedbd1;
  border-radius: 22px;
  background: #fff;
}

.tax-product-card--primary {
  border-color: #0d5a46;
  background: #eaf3ef;
}

.tax-product-card h3 {
  margin: 8px 0 2px;
  font-size: clamp(23px, 3vw, 31px);
}

.tax-product-card__price {
  display: block;
  margin-bottom: 16px;
  color: #0d5a46;
  font-size: 36px;
  line-height: 1.15;
}

.tax-product-card p {
  margin: 12px 0 0;
  color: #53605a;
}

.tax-product-card ul {
  flex: 1;
  margin: 16px 0 22px;
  padding-left: 20px;
}

.tax-product-card li + li {
  margin-top: 7px;
}

.tax-product-card .button {
  width: 100%;
}

.tax-product-card__action {
  min-height: 68px;
  padding: 16px 20px;
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
}

.tax-product-card__action--express {
  color: #124f43;
  border-color: #6fa497;
  background: #e5f2ee;
}

.tax-product-card__action--express:hover {
  color: #103f36;
  border-color: #4d887a;
  background: #d2e8e1;
}

.tax-product-card__action--personal {
  color: #fff;
  font-size: 16px;
  border-color: #0d6b63;
  background: #0d6b63;
  box-shadow: 0 12px 28px rgba(13, 107, 99, 0.22);
}

.tax-product-card__action--personal:hover {
  color: #fff;
  border-color: #09574f;
  background: #09574f;
}

.tax-selector__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #0d5a46;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tax-product-choice--selector {
  margin-top: 6px;
}

.tax-product-choice--selector .tax-product-card {
  min-height: 100%;
}

.tax-product-card .tax-product-card__duration {
  margin: 0;
  color: #0d5a46;
  font-size: 13px;
  font-weight: 800;
}

.tax-selector__privacy {
  margin: 20px 0 0;
  padding: 15px 18px;
  border-radius: 16px;
  color: #244f43;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  text-align: center;
  background: #edf5f1;
}

.tax-seo-faq {
  margin: 42px 0;
}

.tax-seo-faq h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
}

.tax-seo-faq__intro {
  max-width: 75ch;
  margin: 14px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.tax-seo-faq__list {
  margin-top: 22px;
  border-top: 1px solid rgba(13, 90, 70, 0.18);
}

.tax-seo-faq details {
  border-bottom: 1px solid rgba(13, 90, 70, 0.18);
}

.tax-seo-faq summary {
  position: relative;
  padding: 20px 42px 20px 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.tax-seo-faq summary::-webkit-details-marker {
  display: none;
}

.tax-seo-faq summary:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(198, 137, 44, 0.55);
  outline-offset: 4px;
}

.tax-seo-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 8px;
  color: var(--brand);
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
}

.tax-seo-faq details[open] summary::after {
  content: "-";
}

.tax-seo-faq details p {
  max-width: 75ch;
  margin: -2px 42px 20px 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.tax-risk-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 8px 0 22px;
  padding: 20px 26px;
  border: 1px solid #d99b45;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff8eb, #fbe8ca);
  box-shadow: 0 16px 34px rgba(111, 59, 16, 0.09);
}

.tax-risk-teaser span,
.risk-page-kicker {
  display: block;
  color: #8c531a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tax-risk-teaser p {
  max-width: 790px;
  margin: 0;
  color: #72502e;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.5;
}

.tax-risk-button {
  min-width: 300px;
  color: #fff;
  border-color: #8f4d16;
  background: #8f4d16;
  box-shadow: 0 12px 26px rgba(111, 59, 16, 0.2);
}

.tax-risk-button:hover {
  border-color: #713a0e;
  background: #713a0e;
}

.tax-product-card__boundary {
  margin: 0 0 18px !important;
  padding: 12px 14px;
  border-left: 3px solid #c6892c;
  border-radius: 0 10px 10px 0;
  background: rgba(198, 137, 44, 0.09);
  font-size: 13px;
  line-height: 1.45;
}

.page-shell--dd365-tax .legal-band__links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tax-action-cta {
  margin: 24px 0 30px;
  padding: 30px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #113f33, #0d5a46);
  box-shadow: 0 20px 44px rgba(13, 90, 70, 0.18);
}

.tax-action-cta > span {
  color: #e6f35c;
}

.tax-action-cta h2 {
  width: 100%;
  max-width: none;
  margin: 7px 0 8px;
  color: #fff;
  font-size: clamp(27px, 3.8vw, 42px);
  line-height: 1.08;
}

.tax-action-cta p {
  width: 100%;
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.tax-action-cta__links {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 12px;
  margin-top: 22px;
}

.tax-action-cta__links .button {
  width: 100%;
  min-height: 56px;
  padding-inline: 20px;
  text-align: center;
}

.tax-action-cta .button--primary {
  color: #fff;
  background: #0d6b63;
  border-color: #0d6b63;
  box-shadow: 0 12px 28px rgba(13, 107, 99, 0.2);
}

.tax-action-cta .button--secondary {
  color: #124f43;
  border-color: #6fa497;
  background: #e5f2ee;
}

.tax-action-cta .button--primary:hover {
  color: #fff;
  border-color: #09574f;
  background: #09574f;
}

.tax-action-cta .button--secondary:hover {
  color: #124f43;
  border-color: #4d887a;
  background: #d2e8e1;
}

.page-shell--dd365-tax .legal-band {
  grid-template-columns: 1fr;
}

.page-shell--dd365-tax .legal-band h2 {
  font-size: clamp(30px, 3vw, 38px);
}

@media (min-width: 761px) {
  .tax-product-choice__head h2,
  .tax-product-choice__head p,
  .legal-band h2,
  .legal-band p {
    width: 100%;
    max-width: none;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
  }
}

@media (min-width: 761px) and (max-width: 1200px) {
  .tax-product-choice__head h2,
  .tax-action-cta h2 {
    font-size: 35px;
  }

  .page-shell--dd365-tax .legal-band h2 {
    font-size: 32px;
  }
}

.page-shell--tax-risks .hero__grid--lean {
  width: 100%;
  margin-inline: 0;
}

.page-shell--tax-risks .hero__copy--product {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 36px 44px 34px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.page-shell--tax-risks .hero__lead {
  width: 100%;
  max-width: none;
}

.risk-summary {
  margin: 8px 0 24px;
  padding: 28px;
  border: 1px solid rgba(143, 77, 22, 0.22);
  border-radius: 24px;
  background: #fffaf0;
}

.risk-summary h2,
.risk-detection h2,
.risk-next-step h2 {
  margin: 7px 0 9px;
  font-size: clamp(27px, 3.8vw, 40px);
  line-height: 1.1;
}

.risk-summary > p,
.risk-detection > p,
.risk-next-step > p {
  width: 100%;
  max-width: none;
  color: #5d665f;
  line-height: 1.6;
}

.page-shell--tax-risks .hero__lead,
.risk-summary > p,
.risk-consequence-card p,
.risk-consequence-card li,
.risk-detection > p,
.risk-detection-list p,
.risk-law-update,
.risk-next-step > p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.risk-consequence-card p,
.risk-consequence-card li,
.risk-detection-list p,
.risk-law-update {
  width: 100%;
  max-width: none;
}

.risk-consequence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.risk-consequence-card {
  padding: 24px;
  border: 1px solid #ded8cc;
  border-radius: 20px;
  background: #fff;
}

.risk-consequence-card__number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #8f4d16;
  font-weight: 800;
}

.risk-consequence-card h3 {
  margin: 14px 0 8px;
  font-size: 23px;
}

.risk-consequence-card p,
.risk-consequence-card li {
  color: #56615b;
  line-height: 1.55;
}

.risk-consequence-card ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.risk-caveat {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #6b4a21 !important;
  background: #fff3dc;
  font-size: 13px;
}

.risk-detection,
.risk-next-step,
.risk-sources {
  margin: 24px 0;
  padding: 30px;
  border: 1px solid rgba(13, 90, 70, 0.14);
  border-radius: 26px;
  background: #fffdf8;
}

.risk-detection-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.risk-detection-list article {
  padding: 18px;
  border-radius: 16px;
  background: #eef5f1;
}

.risk-detection-list strong {
  display: block;
  color: #0d5a46;
}

.risk-detection-list p {
  margin: 7px 0 0;
  color: #56615b;
  font-size: 14px;
  line-height: 1.5;
}

.risk-law-update {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 4px solid #c6892c;
  border-radius: 0 14px 14px 0;
  background: #fff6e6;
}

.risk-law-update strong {
  color: #6f3b10;
}

.risk-next-step {
  color: #fff;
  background: linear-gradient(135deg, #123e33, #0d5a46);
}

.risk-next-step .risk-page-kicker { color: #e6f35c; }
.risk-next-step h2 { color: #fff; }
.risk-next-step > p { color: rgba(255, 255, 255, 0.78); }
.risk-next-step .button { margin-top: 12px; color: #263112; background: #e6f35c; border-color: #e6f35c; }

.risk-sources h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.risk-sources ul {
  margin: 0;
  padding-left: 20px;
}

.risk-sources li + li { margin-top: 8px; }
.risk-sources a { color: #0d5a46; font-weight: 700; }

.paid-report--conversion .paid-report__dynamic {
  margin-top: 16px;
}

.paid-report--conversion .paid-report__copy p {
  max-width: 760px;
}

@media (max-width: 760px) {
  .tax-action-cta__links {
    grid-template-columns: 1fr;
  }

  .tax-risk-teaser {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .tax-risk-button {
    width: 100%;
    min-width: 0;
  }

  .tax-action-cta,
  .risk-summary,
  .risk-detection,
  .risk-next-step,
  .risk-sources {
    padding: 22px 16px;
    border-radius: 22px;
  }

  .risk-consequence-grid,
  .risk-detection-list {
    grid-template-columns: 1fr;
  }

  .risk-consequence-card { padding: 20px 16px; }

  .tax-product-choice {
    padding: 22px 16px;
    border-radius: 22px;
  }

  .tax-product-choice__grid {
    grid-template-columns: 1fr;
  }

  .page-shell--dd365-tax .legal-band__links {
    grid-template-columns: 1fr;
  }

  .page-shell--dd365-tax .hero {
    padding-bottom: 18px;
  }

  .page-shell--dd365-tax .hero__grid--lean h1 {
    max-width: 100%;
    font-size: clamp(28px, 8vw, 34px);
  }

  .hero__grid--lean .hero__lead {
    font-size: 15px;
    line-height: 1.45;
    margin-top: 14px;
    padding: 16px;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  .hero__grid--lean .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero__grid--lean .hero__copy--product {
    padding: 10px 18px 6px;
  }
}

.checkout-flow .delivery-row__button {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  border-radius: 16px;
  white-space: normal;
  line-height: 1.2;
}

.checkout-flow .delivery-inline__max {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  flex: initial;
  margin-left: 0;
  padding: 0 18px;
  gap: 12px;
}

.checkout-flow .delivery-inline__max-logo {
  width: 118px;
  height: 38px;
}

@media (max-width: 760px) {
  .checkout-step {
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .checkout-step__head {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .checkout-step__number {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .checkout-step h3 {
    font-size: 18px;
  }

  .checkout-step p {
    font-size: 13px;
    line-height: 1.38;
  }

  .checkout-fields--account,
  .checkout-actions,
  .delivery-options {
    grid-template-columns: 1fr;
  }

  .checkout-fields {
    gap: 10px;
  }

  .checkout-email {
    width: 100%;
  }

  .checkout-flow .delivery-row__input input {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 13px;
    font-size: 16px;
  }

  .delivery-options {
    gap: 12px;
  }

  .delivery-option {
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .delivery-option__head {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .delivery-option__mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 16px;
  }

  .delivery-option__mark--max {
    font-size: 10px;
  }

  .delivery-option h4 {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.18;
  }

  .delivery-option p {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.34;
  }

  .checkout-flow .delivery-row__button {
    min-height: 52px;
    padding: 10px 14px;
    font-size: 16px;
  }

  .checkout-flow .delivery-inline__max {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 7px;
    padding: 11px 14px;
  }

  .checkout-flow .delivery-inline__max span {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
  }

  .checkout-flow .delivery-inline__max-logo {
    width: min(86px, 30vw);
    height: auto;
  }
}

.panel.personal-upgrade {
  color: #f9f7ef;
  background: #124f40;
  border-color: transparent;
}

.result-card__badge.result-card__badge--applicable { color: #075c46; background: #dff3ea; }
.result-card__badge.result-card__badge--conditional { color: #7a470a; background: #fff0cf; }
.result-card__badge.result-card__badge--excluded { color: #8d302a; background: #f9dfdc; }

/* 2026-08-10: final mobile guard for the legal block.
   Kept at the end so desktop typography cannot override it later in the cascade. */
@media (max-width: 760px) {
  .page-shell--dd365-tax .legal-band {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 20px 16px;
    overflow: hidden;
  }

  .page-shell--dd365-tax .legal-band > div,
  .page-shell--dd365-tax .legal-band__links {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .page-shell--dd365-tax .legal-band h2 {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    font-size: clamp(24px, 7vw, 27px);
    line-height: 1.1;
    text-align: left;
    text-align-last: auto;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
  }

  .page-shell--dd365-tax .legal-band p {
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
    text-align-last: auto;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
  }

  .page-shell--dd365-tax .legal-band__links a {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
  }
}

/* 2026-08-11: locked quick-result conversion flow. Kept last so the
   three-column unlocked comparison cannot override the single summary. */
.results-grid--cards.results-grid--locked {
  grid-template-columns: minmax(0, 1fr);
}

/* Compact optional settings, direct submit action and field-level validation. */
.calc-fold:not([open]) {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.calc-fold:not([open]) summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--brand);
  border-radius: 12px;
  background: rgba(232, 244, 239, 0.92);
  color: var(--brand);
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(13, 90, 70, 0.08);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.calc-fold:not([open]) summary:hover {
  border-color: var(--brand-dark);
  background: rgba(218, 238, 230, 0.98);
  transform: translateY(-1px);
}

.calc-fold:not([open]) summary::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background:
    linear-gradient(var(--brand), var(--brand)) center / 12px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 2px 12px no-repeat;
}

.calc-fold[open] {
  width: 100%;
}

.quick-calculation-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.quick-calculation-action .button {
  min-width: 280px;
}

.quick-calculation-action .lead-status {
  flex: 1 1 100%;
  margin: 0;
  text-align: center;
}

.quick-calculation-action .lead-status:empty {
  display: none;
}

.decision-card__button,
.result-card .button--savings,
.checkout-flow .delivery-row__button,
#personalUpgradeButton {
  height: auto;
  min-height: 52px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.paid-inline-order .delivery-option__field > span {
  display: block;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

#quickCalculationForm .field--invalid .field__label {
  color: var(--danger);
}

#quickCalculationForm .field--invalid input:not([type="radio"]),
#quickCalculationForm .field--invalid select,
#quickCalculationForm .field--invalid .segmented__item span {
  border-color: rgba(162, 79, 57, 0.78);
  background: rgba(255, 244, 241, 0.96);
  box-shadow: 0 0 0 3px rgba(162, 79, 57, 0.09);
}

#quickCalculationForm .mode-picker--invalid .mode-picker__title {
  color: var(--danger);
}

#quickCalculationForm .mode-picker--invalid .mode-grid {
  padding: 8px;
  border: 1px solid rgba(162, 79, 57, 0.55);
  border-radius: 14px;
  background: rgba(255, 244, 241, 0.55);
}

@media (min-width: 761px) {
  .quick-status-row {
    display: grid;
    grid-template-columns: 9.5rem 10rem minmax(17rem, 1fr) minmax(19rem, 1fr);
    gap: 18px;
    align-items: start;
  }

  .quick-status-row__tenant,
  .quick-status-row__resident,
  .quick-registration-row__business,
  .quick-registration-row__regime {
    width: 100%;
  }

  .quick-status-row__tenant .segmented {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 8px;
  }

  .quick-status-row__tenant .segmented__item span {
    width: 100%;
  }

  .calculator--finance .form-grid--quick #patentOptionField,
  .calculator--finance .form-grid--quick .field--patent-period,
  .calculator--finance .form-grid--quick .field--patent-cost {
    display: grid;
    grid-template-rows: 44px 50px auto;
  }

  .calculator--finance .field--patent-cost {
    width: 12rem;
  }
}

@media (max-width: 760px) {
  .quick-status-row__tenant .segmented {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Final desktop density pass: keep comparison controls compact after legacy overrides. */
@media (min-width: 761px) {
  .calculator--finance .mode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .calculator--finance .mode-card {
    min-height: 0;
    padding: 14px 14px 14px 46px;
    border-radius: 14px;
  }

  .calculator--finance .mode-card__title {
    font-size: 18px;
    line-height: 1.22;
  }

  .calculator--finance .mode-card__meta {
    font-size: 14px;
    line-height: 1.36;
  }
}

/* 2026-08-11: proportional typography scale for the calculator selector page. */
.page-shell--tax-selector {
  font-size: 18px;
}

.page-shell--tax-selector .brand__title {
  font-size: 31px;
}

.page-shell--tax-selector .brand__subtitle {
  font-size: 23px;
}

.page-shell--tax-selector .hero__grid--lean h1 {
  font-size: clamp(38px, 4.7vw, 58px);
}

.page-shell--tax-selector .hero__grid--lean .hero__lead {
  font-size: clamp(20px, 2.1vw, 26px);
}

.page-shell--tax-selector .tax-risk-teaser p {
  font-size: 19px;
}

.page-shell--tax-selector .tax-product-choice__head h2 {
  font-size: clamp(32px, 4.5vw, 47px);
}

.page-shell--tax-selector .tax-product-card__action {
  font-size: 20px;
}

.page-shell--tax-selector .tax-product-card__action--personal {
  font-size: 18px;
}

.page-shell--tax-selector .tax-product-card .tax-product-card__duration {
  font-size: 15px;
}

.page-shell--tax-selector .tax-selector__privacy {
  font-size: 19px;
}

.page-shell--tax-selector .legal-band h2 {
  font-size: clamp(36px, 3.4vw, 43px);
  text-align: left;
  text-align-last: auto;
  text-justify: auto;
}

.page-shell--tax-selector .legal-band p {
  font-size: 19px;
  text-align: left;
  text-align-last: auto;
  text-justify: auto;
}

.page-shell--tax-selector .site-footer__text {
  font-size: 16px;
}

.page-shell--tax-selector .site-footer__nav {
  font-size: 15px;
}

@media (max-width: 760px) {
  .page-shell--tax-selector {
    font-size: 17px;
  }

  .page-shell--tax-selector .brand__title {
    font-size: 27px;
  }

  .page-shell--tax-selector .brand__subtitle {
    font-size: 17px;
  }

  .page-shell--tax-selector .hero__grid--lean h1 {
    font-size: clamp(31px, 8.8vw, 38px);
  }

  .page-shell--tax-selector .hero__grid--lean .hero__lead {
    font-size: 17px;
  }

  .page-shell--tax-selector .tax-product-choice__head h2 {
    font-size: clamp(30px, 8vw, 36px);
  }

  .page-shell--tax-selector .tax-product-card__action,
  .page-shell--tax-selector .tax-product-card__action--personal {
    font-size: 18px;
  }

  .page-shell--tax-selector .legal-band h2 {
    font-size: clamp(28px, 7.8vw, 32px);
  }

  .page-shell--tax-selector .legal-band p {
    font-size: 17px;
  }

  .tax-seo-faq {
    margin: 30px 0;
  }

  .tax-seo-faq h2 {
    font-size: clamp(28px, 7.8vw, 34px);
  }

  .tax-seo-faq summary {
    padding: 18px 36px 18px 0;
  }

  .tax-seo-faq details p {
    margin-right: 0;
    font-size: 16px;
  }
}
