:root {
  color-scheme: light;
  --bg-top: #e6f6ff;
  --bg-bottom: #f7fbfe;
  --ink: #102131;
  --muted: #4a687e;
  --line: rgba(16, 33, 49, 0.1);
  --panel: rgba(255, 255, 255, 0.82);
  --accent: #0284c7;
  --accent-strong: #0369a1;
  --accent-soft: rgba(14, 165, 233, 0.14);
  --warn: #b45309;
  --warn-soft: rgba(245, 158, 11, 0.14);
}


/* Inline info link / tooltip — small "i" badge next to a label */
.info-link,
.info-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-style: italic;
  font-weight: 800;
  font-size: 11px;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
  transition: background 0.15s ease;
}
.info-link:hover,
.info-link:focus-visible,
.info-tip:hover,
.info-tip:focus-visible {
  background: var(--accent);
  color: #fff;
  outline: none;
}
.info-tip {
  cursor: help;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.2), transparent 28%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

a {
  color: inherit;
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.shell-narrow {
  width: min(760px, calc(100% - 32px));
}

.shell-calc {
  width: min(760px, calc(100% - 32px));
}

.calc-layout {
  width: min(440px, 100%);
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  position: relative;
  z-index: 100;
}

.site-nav .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  color: var(--ink);
  font-size: 18px;
}

.site-nav .brand-link img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

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

.site-nav .nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}

.site-nav .nav-links a:hover {
  color: var(--accent-strong);
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  font-family: inherit;
}

.nav-dropdown-trigger:hover,
.nav-dropdown:focus-within > .nav-dropdown-trigger {
  color: var(--accent-strong);
}

.nav-caret {
  font-size: 10px;
  line-height: 1;
  transition: transform 180ms ease;
  display: inline-block;
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: max-content;
  min-width: 240px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(13, 42, 63, 0.14);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 0s linear 180ms;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 0s linear 0s;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.site-nav .nav-links .nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--ink, #0f172a);
  font-weight: 600;
  font-size: 14px;
  transition: background-color 140ms ease, color 140ms ease;
}

.site-nav .nav-links .nav-dropdown-item:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.nav-dropdown-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.site-nav .nav-links .nav-dropdown-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 9px 9px 0 0;
}

.hero,
.panel,
.hero-card {
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(13, 42, 63, 0.08);
}

.hero {
  display: grid;
  gap: 24px;
  align-items: stretch;
  padding: 32px 24px;
  margin-top: 0;
}

.hero.split-hero > .panel,
.hero.split-hero > .hero-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hero.split-hero > .panel > .hero-points {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.hero.split-hero > .panel.hero-screenshot {
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px 24px;
  background: linear-gradient(160deg, #f1f6fb 0%, #e6eef7 100%);
}

.phone-frame {
  padding: 8px;
  border-radius: 42px;
  background: #0c121a;
  box-shadow:
    0 30px 80px rgba(13, 42, 63, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 260px;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
}

.screenshot-caption {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2, #4a5568);
  text-align: center;
}

.hero.split-hero {
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.hero-card {
  padding: 32px 24px;
}

.shell-calc .hero-card {
  padding: 24px 20px;
  border-radius: 22px;
}

.shell-calc .hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.shell-calc .hero-card-header .crumbs {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.shell-calc .hero-card-header .eyebrow {
  flex: 0 0 auto;
  margin-left: auto;
}

.shell-calc .calc-shell > .calc-section-title:first-child {
  padding-top: 0;
}

.shell-calc h1 {
  font-size: clamp(28px, 5vw, 34px);
}

.shell-calc .lede {
  font-size: 16px;
  margin-top: 12px;
}

.shell-calc h2 {
  font-size: 22px;
}

.shell-calc .cta-band {
  padding: 22px 18px;
  border-radius: 20px;
}

.shell-calc .cta-band h2 {
  font-size: 20px;
}

.shell-calc .panel {
  padding: 20px 18px;
  border-radius: 22px;
}

/* Calculator display — gradient card sitting at top of the calc surface */
.shell-calc .result-display {
  margin-top: 18px;
  padding: 22px 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0c4a6e 0%, #0284c7 100%);
  color: #fff;
  box-shadow: 0 18px 50px rgba(2, 132, 199, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shell-calc .result-display .eyebrow {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.shell-calc .result-display .result-headline {
  font-size: clamp(34px, 9vw, 44px);
  font-weight: 900;
  color: #fff;
  margin: 14px 0 6px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.shell-calc .result-display .result-detail {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.5;
  margin: 6px 0 0;
}

.shell-calc .result-breakdown {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.shell-calc .result-breakdown li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.shell-calc .result-breakdown li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.shell-calc .result-breakdown .k {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  flex: 1;
  min-width: 0;
}

.shell-calc .result-breakdown .v {
  color: #fff;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.shell-calc .result-display.is-empty .result-detail,
.shell-calc .result-display.is-empty .result-breakdown {
  display: none;
}

/* Grouped list form */
.shell-calc .calc-shell {
  margin-top: 14px;
}

.shell-calc .calc-section-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 18px 4px 8px;
  margin: 0;
}

.shell-calc .calc-form {
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: block;
  padding: 0;
  margin: 0;
  box-shadow: 0 8px 30px rgba(13, 42, 63, 0.06);
}

.shell-calc .calc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
  min-height: 56px;
  transition: background 0.12s ease;
}

.shell-calc .calc-row + .calc-row,
.shell-calc .calc-mode-group .calc-row,
.shell-calc .calc-mode-group + .calc-row,
.shell-calc .calc-row + .calc-mode-group .calc-row:first-child {
  border-top: 1px solid var(--line);
}

.shell-calc .calc-mode-group {
  display: block;
}

.shell-calc .calc-row:focus-within {
  background: rgba(14, 165, 233, 0.06);
}

.shell-calc .label-block {
  flex: 1 1 auto;
  min-width: 0;
}

.shell-calc .calc-row label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin: 0;
  cursor: pointer;
  line-height: 1.3;
}

.shell-calc .calc-row .help {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}

.shell-calc .field {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  flex: 0 0 auto;
}

.shell-calc .field .prefix,
.shell-calc .field .suffix {
  color: var(--muted);
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.shell-calc .field input {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  text-align: right;
  width: 8ch;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
  appearance: textfield;
  -moz-appearance: textfield;
  border-radius: 0;
}

.shell-calc .field input::-webkit-inner-spin-button,
.shell-calc .field input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.shell-calc .field input::placeholder {
  color: rgba(74, 104, 126, 0.42);
  font-weight: 500;
}

.shell-calc .field input:focus,
.shell-calc .field select:focus {
  outline: none;
}

.shell-calc .field select {
  border: none;
  background: transparent;
  padding: 4px 18px 4px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  font-family: inherit;
  text-align: right;
  text-align-last: right;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%234a687e' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  max-width: 240px;
  border-radius: 0;
}

.shell-calc .calc-button {
  display: none;
}

/* Formula tooltip inside the result-display */
.shell-calc .result-display .formula {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}

.shell-calc .result-display .formula summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.shell-calc .result-display .formula summary::-webkit-details-marker {
  display: none;
}

.shell-calc .result-display .formula summary::after {
  content: '+';
  margin-left: auto;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.7);
}

.shell-calc .result-display .formula[open] summary::after {
  content: '–';
}

.shell-calc .result-display .formula .info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-style: italic;
  font-weight: 800;
  font-size: 11px;
  font-family: Georgia, 'Times New Roman', serif;
  flex: 0 0 auto;
}

.shell-calc .result-display .formula-steps {
  margin: 0;
  padding: 0 14px 14px 32px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
}

.shell-calc .result-display .formula-steps li {
  margin: 6px 0;
}

.shell-calc .result-display .formula-steps li::marker {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.shell-calc .result-display .formula-steps strong {
  color: #fff;
  font-weight: 800;
}

/* Footnotes for articles */
.article-body sup.footnote-ref {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
  margin-left: 1px;
}

.article-body sup.footnote-ref a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 800;
  padding: 0 2px;
}

.footnotes {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.footnotes h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 800;
}

.footnotes ol {
  margin: 0;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.footnotes li {
  margin-bottom: 8px;
}

.footnotes li a {
  color: var(--accent-strong);
  text-decoration: underline;
}

.footnotes .backref {
  margin-left: 6px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.title-row > h1 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.eyebrow.eyebrow-inline {
  flex: 0 0 auto;
  margin-top: 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}

h3 {
  font-size: 20px;
  font-weight: 800;
}

.lede {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: #007AFF;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 122, 255, 0.28);
}

.btn-primary:hover {
  background: #0066D6;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 122, 255, 0.36);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.btn-secondary:hover {
  background: var(--accent-soft);
}

.badge-link {
  display: inline-flex;
  align-items: center;
}

.store-badge {
  width: 180px;
  height: auto;
  display: block;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

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

.hero-points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.point {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.point p,
.body-copy,
.feature p,
.footer,
.legal-links a {
  color: var(--muted);
}

.point strong,
.feature strong {
  color: var(--ink);
}

.grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.panel {
  padding: 26px 22px;
}

.section {
  margin-top: 28px;
}

.section-header {
  margin-bottom: 18px;
}

.section-header p,
.body-copy {
  font-size: 17px;
  line-height: 1.75;
}

.body-copy {
  margin: 0 0 14px;
}

.features {
  display: grid;
  gap: 18px;
}

.feature {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.feature p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.7;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.tool-card {
  --card-accent: #0c4a6e;
  --card-accent-strong: #082f49;
  --card-accent-soft: rgba(12, 74, 110, 0.10);
  --card-accent-border: rgba(12, 74, 110, 0.28);
  position: relative;
  padding: 24px 20px 22px;
  border-radius: 22px;
  border: 1px solid var(--card-accent-border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, var(--card-accent-soft) 100%);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 14px rgba(13, 42, 63, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tool-card[data-tool="qualified-tips-estimator"] {
  --card-accent: #059669;
  --card-accent-strong: #047857;
  --card-accent-soft: rgba(16, 185, 129, 0.10);
  --card-accent-border: rgba(16, 185, 129, 0.26);
}
.tool-card[data-tool="tip-out-calculator"] {
  --card-accent: #7c3aed;
  --card-accent-strong: #6d28d9;
  --card-accent-soft: rgba(124, 58, 237, 0.10);
  --card-accent-border: rgba(124, 58, 237, 0.26);
}
.tool-card[data-tool="real-hourly-rate-calculator"] {
  --card-accent: #d97706;
  --card-accent-strong: #b45309;
  --card-accent-soft: rgba(245, 158, 11, 0.12);
  --card-accent-border: rgba(245, 158, 11, 0.30);
}
.tool-card[data-tool="w2-box-7-reconciler"] {
  --card-accent: #db2777;
  --card-accent-strong: #be185d;
  --card-accent-soft: rgba(219, 39, 119, 0.10);
  --card-accent-border: rgba(219, 39, 119, 0.26);
}

.tool-card .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin-bottom: 16px;
  background: var(--card-accent-soft);
}

.tool-card .card-icon img {
  width: 36px;
  height: 36px;
}

.tool-card h3 {
  margin-top: 10px;
}

.tool-card p {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.45;
}

.icon {
  width: 28px;
  height: 28px;
  display: block;
}

.icon-lg {
  width: 36px;
  height: 36px;
  display: block;
}

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  margin-bottom: 14px;
}

.card-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.point-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  margin-bottom: 10px;
}

.point-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--card-accent) 22%, transparent);
  border-color: var(--card-accent);
}

.tool-card .arrow {
  align-self: center;
  color: #fff;
  background: var(--card-accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-block;
  transition: background 0.15s ease;
}

.tool-card:hover .arrow {
  background: var(--card-accent-strong);
}

.calc-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.calc-row {
  display: grid;
  gap: 6px;
}

.calc-row label {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.calc-row .help {
  font-size: 13px;
  color: var(--muted);
}

.calc-row input,
.calc-row select {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.calc-row input:focus,
.calc-row select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.calc-button {
  appearance: none;
  border: none;
  background: var(--accent-strong);
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
}

.calc-button:hover {
  background: #075985;
}

.result-card {
  margin-top: 22px;
  padding: 22px;
  border-radius: 22px;
  background: var(--accent-soft);
  border: 1px solid rgba(14, 165, 233, 0.25);
  display: none;
}

.result-card.visible {
  display: block;
}

.result-card .result-headline {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent-strong);
  margin: 6px 0 12px;
}

.result-card .result-detail {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.result-card ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

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

.faq summary {
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  float: right;
  color: var(--accent-strong);
  font-weight: 900;
}

.faq details[open] summary::after {
  content: '–';
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.cta-band {
  margin-top: 28px;
  padding: 28px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(2, 132, 199, 0.08));
  border: 1px solid rgba(14, 165, 233, 0.25);
  text-align: center;
}

.cta-band h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.cta-band p {
  color: var(--muted);
  margin: 0 0 18px;
}

.disclaimer {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--warn-soft);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--warn);
  font-size: 13px;
  line-height: 1.6;
}

.flex-spacer {
  flex: 1;
}

.hero-blurb {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(14, 165, 233, 0.18);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.crumbs {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.crumbs a:hover {
  color: var(--accent-strong);
}

.article-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 0;
}

.article-body {
  font-size: 17px;
  line-height: 1.8;
}

.article-body h2 {
  font-size: 28px;
  margin-top: 32px;
}

.article-body h3 {
  font-size: 20px;
  margin-top: 24px;
}

.article-body p,
.article-body ul,
.article-body ol {
  color: var(--ink);
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
  line-height: 1.8;
}

.article-body li {
  margin-bottom: 6px;
}

.article-body strong {
  color: var(--ink);
}

.footer {
  margin-top: 36px;
  text-align: center;
  font-size: 14px;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.legal-links a {
  text-decoration: none;
  font-weight: 700;
}

@media (min-width: 840px) {
  .hero.split-hero {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 600px) and (max-width: 839px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Tier 2 additions ===== */
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  margin: 8px 0 0;
  background: rgba(14, 165, 233, 0.10);
  color: #075985;
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  width: fit-content;
}
.trust-pill-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #0ea5e9;
}
.last-reviewed {
  font-size: 12px;
  color: #64748b;
  margin: 12px 0 0;
}

.related-calcs .related-grid {
  margin-top: 8px;
}

.scenario-presets {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: rgba(14, 165, 233, 0.06);
  border: 1px dashed rgba(14, 165, 233, 0.3);
  border-radius: 12px;
}
.presets-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #075985;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.presets-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.preset-button {
  appearance: none;
  background: white;
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: #0369a1;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.preset-button:hover {
  background: #0ea5e9;
  color: white;
}

.share-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.share-button {
  appearance: none;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #0f172a;
}
.share-button:hover { background: #f1f5f9; }

.recent-results {
  margin: 24px auto;
  width: min(440px, 100%);
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: white;
}
.recent-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.recents-clear {
  appearance: none;
  background: none;
  border: none;
  color: #64748b;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}
.recents-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.recent-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.recent-item:last-child { border-bottom: none; }
.recent-when { color: #64748b; }
.recent-summary { font-weight: 700; color: #0f172a; }
.recents-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.recents-cta-label {
  font-size: 13px;
  font-weight: 700;
  color: #0369a1;
}

.state-selector {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.state-selector label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
.state-selector select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 14px;
}
.state-pill {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.10);
  color: #075985;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}

.compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto 14px;
  padding: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  width: fit-content;
  font-size: 13px;
}
.compare-tab {
  appearance: none;
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.compare-tab.is-active {
  background: white;
  color: #0369a1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.compare-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.compare-container .compare-b,
.compare-container .compare-delta { display: none; }
.compare-container[data-mode="compare"] .compare-b,
.compare-container[data-mode="compare"] .compare-delta { display: block; }
.compare-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0 4px 4px;
  margin: 0;
}
.compare-delta {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.25);
  font-size: 13px;
  color: #0c4a6e;
}
.compare-delta strong { font-size: 15px; color: #0369a1; }
.compare-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}
