@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap");

:root {
  --bg: #f8fafc;
  --bg-alt: #eef4f8;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --ink: #1b365d;
  --muted: #64748b;
  --line: rgba(27, 54, 93, 0.08);
  --brand: #1b365d;
  --brand-deep: #122845;
  --brand-soft: rgba(0, 229, 255, 0.12);
  --accent: #00e5ff;
  --accent-soft: rgba(0, 229, 255, 0.18);
  --net: #1b365d;
  --tax: #0369a1;
  --ni: #0f766e;
  --loans: #7c3aed;
  --pension: #d97706;
  --shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(0, 229, 255, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(27, 54, 93, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef4f8 100%);
}

.home-page {
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(27, 54, 93, 0.06);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-size: 1.08rem;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  margin-top: 6px;
}

.brand-mark {
  display: inline-block;
  width: 64px;
  height: 52px;
  background: url("brand-mark.svg") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  flex-shrink: 0;
}

.site-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a,
.footer-nav a {
  color: var(--muted);
  font-weight: 500;
}

.site-nav a:hover,
.footer-nav a:hover,
.guide-card:hover,
.guide-card:focus-visible {
  color: var(--brand-deep);
}

.hero,
.signal-strip,
.calculator-section,
.results-section,
.breakdown-section,
.content-section,
.guides-section,
.faq-section,
.article-section {
  padding: 58px 0;
}

.hero-grid,
.calculator-grid,
.content-grid,
.breakdown-grid,
.article-grid,
.footer-grid {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
  align-items: start;
}

.hero-copy h1,
.section-heading h2,
.summary-card h2,
.hero-panel h2,
.article-page h1,
.content-card h2 {
  margin: 0;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.045em;
  line-height: 0.94;
  font-weight: 800;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5.2rem);
}

.hero-text,
.section-heading p,
.summary-copy,
.content-card p,
.article-content p,
.faq-card p,
.guide-card p,
.footer-copy,
.signal-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow,
.panel-label {
  margin: 0 0 12px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow {
  color: var(--brand);
}

.panel-label {
  color: var(--brand);
}

.hero-actions,
.trust-list,
.content-list {
  margin-top: 24px;
}

.privacy-hero,
.calculator-privacy-lock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(27, 54, 93, 0.06);
  border: 1px solid rgba(27, 54, 93, 0.08);
}

.privacy-hero-icon,
.calculator-privacy-lock-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(27, 54, 93, 0.08);
  color: var(--brand);
  flex-shrink: 0;
}

.privacy-hero-icon svg,
.calculator-privacy-lock-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.privacy-hero-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--brand);
  font-family: "Inter", sans-serif;
}

.privacy-hero-copy p,
.calculator-privacy-lock p {
  margin: 0;
  color: var(--brand-deep);
  line-height: 1.55;
  font-family: "Inter", sans-serif;
}

.security-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 16px 24px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  border: 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: white;
  box-shadow: 0 18px 36px rgba(27, 54, 93, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow:
    0 0 15px rgba(0, 229, 255, 0.5),
    0 18px 36px rgba(27, 54, 93, 0.18);
}

.button-secondary {
  border: 1px solid rgba(27, 54, 93, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand);
}

.button-full {
  width: 100%;
  cursor: pointer;
  min-height: 58px;
  font-size: 1rem;
}

.button-disclaimer {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.button-disclaimer a {
  color: var(--brand);
  font-weight: 700;
}

.calculator-privacy-lock {
  margin-top: 0;
}

.trust-list,
.feature-mini-list,
.content-list,
.article-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.trust-list li,
.feature-mini-list li,
.content-list li,
.article-list li {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(27, 54, 93, 0.06);
}

.hero-panel,
.card,
.guide-card,
.faq-card,
.signal-grid article {
  border: 0;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 26px;
  background: linear-gradient(180deg, #1b365d 0%, #122845 100%);
  color: white;
}

.hero-panel .feature-mini-list li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.signal-grid article,
.card,
.guide-card,
.faq-card,
.content-card,
.featured-guide,
.notice-card {
  padding: 28px;
  background: var(--surface);
}

.signal-grid h2,
.content-card h2,
.faq-card h3,
.guide-card h3,
.result-card h3,
.metric-grid h3 {
  margin: 0;
}

.signal-grid h2,
.faq-card h3,
.guide-card h3,
.result-card h3,
.content-card h2 {
  font-size: 1.28rem;
}

.calculator-grid,
.breakdown-grid,
.content-grid,
.footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 42px;
  padding: 36px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(239, 244, 248, 0.96) 100%);
}

.calculator-card,
.summary-card {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.calculator-card {
  padding: 0;
}

.calculator-form,
.field-grid {
  display: grid;
  gap: 16px;
}

.mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  margin-bottom: 14px;
  border-radius: 22px;
  background: rgba(27, 54, 93, 0.06);
}

.mode-button {
  border: 0;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.mode-button:hover,
.mode-button:focus-visible {
  color: var(--brand);
  transform: translateY(-1px);
}

.mode-button.is-active {
  background: white;
  color: var(--brand);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.mode-copy {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

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

.field {
  display: grid;
  gap: 10px;
}

.field span:first-child {
  font-weight: 700;
}

.location-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  border-radius: 20px;
  background: var(--bg-alt);
  border: 1px solid rgba(27, 54, 93, 0.08);
}

.location-button {
  border: 1px solid transparent;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  background: white;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.location-button:hover,
.location-button:focus-visible {
  transform: translateY(-1px);
  color: var(--brand);
}

.location-button.is-active {
  color: var(--brand);
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(0, 229, 255, 0.28),
    0 16px 32px rgba(15, 23, 42, 0.06);
}

.field-hint {
  color: var(--muted);
  line-height: 1.6;
}

.currency-field,
.input-with-suffix,
input,
select,
textarea {
  border-radius: 20px;
  border: 1px solid rgba(27, 54, 93, 0.08);
  background: #f8fafc;
}

input,
select,
textarea {
  width: 100%;
  padding: 16px 18px;
  color: var(--ink);
}

.currency-field,
.input-with-suffix {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
}

.currency-field input,
.input-with-suffix input {
  border: 0;
  background: transparent;
  padding: 16px 0;
  outline: none;
}

.input-with-suffix span,
.currency-field span {
  color: var(--brand);
  font-weight: 700;
}

.toggle-list {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-top: 2px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid rgba(27, 54, 93, 0.08);
  border-radius: 20px;
  background: #f8fafc;
}

.toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

input:focus,
select:focus,
.button:focus-visible {
  outline: 3px solid rgba(0, 229, 255, 0.22);
  outline-offset: 2px;
}

.validation-message {
  min-height: 24px;
  color: #b44911;
  font-weight: 700;
}

.notice-stack {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.notice-card {
  display: grid;
  gap: 10px;
}

.notice-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.notice-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.notice-card-neutral {
  border: 1px solid rgba(27, 54, 93, 0.08);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.09) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.notice-card-warning {
  border: 1px solid rgba(217, 119, 6, 0.12);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.notice-card-alert {
  border: 1px solid rgba(220, 38, 38, 0.12);
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.12) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.summary-card {
  display: grid;
  align-content: start;
  gap: 22px;
  position: relative;
  min-height: 760px;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, #1b365d 0%, #122845 100%);
  color: white;
  overflow: hidden;
}

.summary-top,
.summary-main,
.result-disclaimer {
  display: grid;
  gap: 14px;
}

.summary-shell {
  display: grid;
  gap: 22px;
  transition: opacity 220ms ease;
}

.summary-card.is-loading .summary-shell {
  opacity: 0.3;
}

.summary-skeleton {
  position: absolute;
  inset: 30px;
  display: grid;
  align-content: start;
  gap: 16px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease;
}

.summary-card.is-loading .summary-skeleton {
  opacity: 1;
  visibility: visible;
}

.summary-skeleton-chip,
.summary-skeleton-figure,
.summary-skeleton-line,
.summary-skeleton-box {
  display: block;
  border-radius: 18px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.24) 48%,
      rgba(255, 255, 255, 0.1) 100%
    );
  background-size: 220% 100%;
  animation: summary-shimmer 1.25s linear infinite;
}

.summary-skeleton-chip {
  width: 110px;
  height: 14px;
}

.summary-skeleton-figure {
  width: min(320px, 78%);
  height: 88px;
}

.summary-skeleton-line {
  width: min(360px, 88%);
  height: 18px;
}

.summary-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.summary-skeleton-box {
  min-height: 92px;
}

@keyframes summary-shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -20% 0;
  }
}

.summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.summary-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  font-weight: 600;
}

.summary-utility {
  min-height: 44px;
  padding: 10px 16px;
  padding-right: 46px;
  min-width: 156px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: white;
  position: relative;
  overflow: hidden;
}

.summary-utility::after {
  content: "✓";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 0.82rem;
  line-height: 1;
  transform: translateY(-50%) scale(0.55);
  opacity: 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.summary-utility.is-success::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  background: rgba(0, 229, 255, 0.22);
}

.summary-utility-label {
  pointer-events: none;
}

.view-toggle {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.view-button {
  border: 0;
  min-height: 44px;
  border-radius: 16px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.view-button:hover,
.view-button:focus-visible {
  color: white;
  transform: translateY(-1px);
}

.view-button.is-active {
  background: white;
  color: var(--brand);
}

.summary-card h2 {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(3.35rem, 8vw, 5.6rem);
  color: white;
  margin: 0;
}

.summary-main {
  min-height: 158px;
  align-content: start;
}

.summary-estimate-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.summary-copy {
  max-width: 38ch;
}

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

.metric-grid article {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.result-card dl div {
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(27, 54, 93, 0.06);
}

.metric-grid h3 {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.metric-grid p,
.result-card dd {
  margin: 8px 0 0;
  font-size: 1.16rem;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.summary-actions .button-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: white;
}

.affiliate-cta-panel {
  display: grid;
  gap: 18px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.affiliate-cta-header {
  display: grid;
  gap: 10px;
}

.affiliate-cta-header h3,
.affiliate-cta-card h4 {
  margin: 0;
}

.affiliate-cta-header p:last-child,
.affiliate-cta-card p {
  margin: 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.76);
}

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

.affiliate-cta-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.affiliate-cta-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.64);
}

.affiliate-cta-button {
  justify-self: start;
}

.affiliate-cta-disclosure {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.6;
}

.result-disclaimer {
  padding: 18px 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-card .summary-copy,
.summary-card .panel-label {
  color: rgba(255, 255, 255, 0.74);
}

.summary-card .panel-label {
  color: rgba(255, 255, 255, 0.82);
}

.result-disclaimer p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.result-disclaimer a {
  color: white;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.results-grid,
.guide-grid,
.faq-grid {
  display: grid;
  gap: 18px;
}

.comparison-section {
  padding: 0 0 58px;
}

.comparison-grid,
.comparison-delta-grid {
  display: grid;
  gap: 18px;
}

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

.comparison-card,
.comparison-delta-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.comparison-card-emphasis {
  background: linear-gradient(180deg, rgba(27, 54, 93, 0.96) 0%, rgba(18, 40, 69, 0.98) 100%);
  color: white;
}

.comparison-kicker,
.comparison-copy {
  margin: 0;
}

.comparison-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
}

.comparison-card h3 {
  margin: 14px 0 10px;
  font-size: 1.35rem;
}

.comparison-figure {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.comparison-copy {
  color: var(--muted);
  line-height: 1.7;
}

.comparison-card-emphasis .comparison-copy,
.comparison-card-emphasis h3 {
  color: rgba(255, 255, 255, 0.78);
}

.comparison-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}

.comparison-metrics div,
.comparison-delta-grid article {
  padding: 16px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(27, 54, 93, 0.06);
}

.comparison-card-emphasis .comparison-metrics div {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.comparison-metrics dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.comparison-card-emphasis .comparison-metrics dt {
  color: rgba(255, 255, 255, 0.7);
}

.comparison-metrics dd,
.comparison-delta-grid p {
  margin: 8px 0 0;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 1.05rem;
}

.comparison-delta-card {
  margin-top: 18px;
}

.comparison-delta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.comparison-delta-grid h3 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.breakdown-visuals {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 26px;
}

.donut-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.donut-chart {
  width: 100%;
  max-width: 220px;
  overflow: visible;
}

.donut-base,
.donut-segment {
  fill: none;
  stroke-width: 16;
}

.donut-base {
  stroke: rgba(27, 54, 93, 0.08);
}

.donut-segment {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dasharray 220ms ease, stroke-dashoffset 220ms ease;
}

.donut-segment-net {
  stroke: var(--brand);
}

.donut-segment-tax {
  stroke: var(--tax);
}

.donut-segment-ni {
  stroke: var(--ni);
}

.donut-segment-loans {
  stroke: var(--loans);
}

.donut-segment-pension {
  stroke: var(--pension);
}

.donut-center {
  position: absolute;
  display: grid;
  gap: 6px;
  text-align: center;
}

.donut-center strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.25rem;
}

.donut-center span {
  color: var(--muted);
  font-size: 0.84rem;
}

.donut-legend {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.donut-legend li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 500;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.legend-net {
  background: var(--brand);
}

.legend-tax {
  background: var(--tax);
}

.legend-ni {
  background: var(--ni);
}

.legend-loans {
  background: var(--loans);
}

.legend-pension {
  background: var(--pension);
}

.results-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.result-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(27, 54, 93, 0.06);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.result-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.42);
  box-shadow:
    0 0 0 2px rgba(0, 229, 255, 0.18),
    var(--shadow);
}

.result-card dl {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.result-card dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.guide-grid,
.faq-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.featured-guide-section {
  padding: 0 0 44px;
}

.featured-guide,
.notice-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.featured-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
  gap: 20px;
  align-items: center;
}

.featured-guide h2,
.notice-card p {
  margin: 0;
}

.featured-guide h2 {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.featured-guide p,
.notice-card p {
  color: var(--muted);
  line-height: 1.7;
}

.featured-guide-actions,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.share-tools {
  margin-top: 18px;
  padding-top: 4px;
}

.notice-card a {
  color: var(--brand-deep);
  font-weight: 700;
}

.guide-card {
  display: block;
  transition: transform 160ms ease, border-color 160ms ease;
}

.guide-card:hover,
.guide-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(15, 106, 103, 0.25);
}

.breakdown-grid .card {
  height: 100%;
}

.compact {
  margin-bottom: 18px;
}

.bar-stack {
  display: grid;
  gap: 16px;
}

.bar-row {
  display: grid;
  gap: 10px;
}

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

.bar-track {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(31, 42, 47, 0.08);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 260ms ease;
}

.bar-fill-net {
  background: linear-gradient(90deg, #0f6a67 0%, #24a39e 100%);
}

.bar-fill-tax {
  background: linear-gradient(90deg, #d97633 0%, #c55a11 100%);
}

.bar-fill-ni {
  background: linear-gradient(90deg, #1aa0c3 0%, #1a7f9d 100%);
}

.bar-fill-loans {
  background: linear-gradient(90deg, #8a5de0 0%, #6c40ba 100%);
}

.bar-fill-pension {
  background: linear-gradient(90deg, #cc5d8b 0%, #ad3f6d 100%);
}

.assumption-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.assumption-list li {
  padding: 15px 16px;
  border-radius: 16px;
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2,
.article-page h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.article-page .section-heading p,
.article-content p {
  max-width: 70ch;
}

.article-page {
  min-height: 100vh;
}

.article-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
}

.article-content,
.article-sidebar,
.content-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 28px;
}

.article-image {
  width: 100%;
  margin-bottom: 22px;
  border-radius: 22px;
  border: 1px solid rgba(31, 42, 47, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.article-content h2 {
  font-family: "Inter", sans-serif;
  margin: 26px 0 12px;
  font-size: 1.8rem;
  font-weight: 800;
}

.article-content h3 {
  margin: 20px 0 10px;
  font-size: 1.2rem;
}

.article-sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.article-sidebar nav {
  display: grid;
  gap: 10px;
}

.article-sidebar a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(31, 42, 47, 0.08);
}

.site-footer {
  padding: 34px 0 50px;
  border-top: 1px solid rgba(31, 42, 47, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

.mobile-net-bar {
  display: none;
}

.brand-footer {
  margin-bottom: 14px;
}

.footer-grid-legal {
  align-items: start;
}

.footer-legal-copy {
  margin: 0;
  max-width: 78ch;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.footer-nav-legal {
  gap: 12px 18px;
  justify-content: flex-start;
  align-content: start;
}

.footer-nav-legal a {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .results-grid,
  .guide-grid,
  .faq-grid,
  .comparison-delta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .calculator-grid,
  .calculator-shell,
  .breakdown-grid,
  .breakdown-visuals,
  .content-grid,
  .article-grid,
  .footer-grid,
  .signal-grid,
  .featured-guide,
  .comparison-grid,
  .affiliate-cta-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .hero-copy h1 {
    max-width: 14ch;
  }

  .summary-card {
    min-height: 700px;
  }
}

@media (max-width: 720px) {
  .field-grid.two-columns,
  .metric-grid,
  .comparison-metrics,
  .comparison-delta-grid,
  .guide-grid,
  .faq-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .signal-strip,
  .calculator-section,
  .results-section,
  .breakdown-section,
  .content-section,
  .guides-section,
  .faq-section,
  .article-section {
    padding: 30px 0;
  }

  .container {
    width: min(100% - 20px, 1180px);
  }

  .hero-panel,
  .card,
  .guide-card,
  .faq-card,
  .content-card,
  .featured-guide,
  .notice-card,
  .signal-grid article,
  .article-content,
  .article-sidebar {
    padding: 20px;
    border-radius: 22px;
  }

  .button-full {
    min-height: 62px;
    font-size: 1.05rem;
  }

  .home-page {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  }

  .brand > span:last-child {
    display: none;
  }

  .brand-mark {
    width: 56px;
    height: 46px;
  }

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

  .mode-switch {
    width: 100%;
  }

  .summary-head {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-card {
    min-height: 640px;
    padding-bottom: 24px;
  }

  .summary-skeleton {
    inset: 20px;
  }

  .summary-skeleton-grid,
  .location-toggle {
    grid-template-columns: 1fr;
  }

  .mobile-net-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(18, 40, 69, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(14px);
  }

  .mobile-net-bar-copy {
    display: grid;
    gap: 4px;
  }

  .mobile-net-bar-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
  }

  .mobile-net-bar strong {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.18rem;
    color: white;
  }

  .mobile-net-bar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(0, 229, 255, 0.42);
    color: white;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
  }

  .privacy-hero,
  .calculator-privacy-lock {
    grid-template-columns: 1fr;
  }

  .privacy-hero-icon,
  .calculator-privacy-lock-icon {
    width: 38px;
    height: 38px;
  }
}
