:root {
  --navy: #10214a;
  --navy-deep: #091635;
  --blue: #174b8f;
  --orange: #f4620f;
  --orange-soft: #fff0e8;
  --ink: #17213a;
  --muted: #5c667b;
  --line: #dbe1eb;
  --surface: #f4f7fb;
  --white: #ffffff;
  --green: #0d7659;
  --shadow: 0 24px 70px rgba(16, 33, 74, .13);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Archivo", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.62;
  font-size: 16px;
}
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; color: var(--navy); }
.brand-logo {
  display: block;
  width: 190px;
  height: auto;
}
.footer-logo { width: 210px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--navy);
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: inset -5px 0 0 var(--orange);
}
.brand strong { display: block; letter-spacing: .08em; font-size: 1.02rem; line-height: 1.05; }
.brand small { display: block; font-family: "IBM Plex Mono", monospace; font-size: .65rem; letter-spacing: .04em; margin-top: 5px; }
.header-link {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding: 8px 0 5px;
}
.header-link:hover { color: var(--orange); }

main { overflow: hidden; }
.intro {
  max-width: 1184px;
  margin: 0 auto;
  padding: 70px 28px 44px;
  position: relative;
}
.intro::after {
  content: "";
  position: absolute;
  right: -220px;
  top: -220px;
  width: 500px;
  height: 500px;
  border: 74px solid #f1f4f9;
  border-radius: 50%;
  z-index: -1;
}
.eyebrow, .section-kicker {
  font-family: "IBM Plex Mono", monospace;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: .09em;
  font-size: .78rem;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--navy); line-height: 1.12; margin-top: 0; }
h1 { font-size: clamp(2.55rem, 6vw, 5.2rem); max-width: 1000px; letter-spacing: -.045em; margin: 16px 0 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.035em; margin-bottom: 20px; }
h3 { font-size: 1.2rem; }
.lead { max-width: 800px; font-size: clamp(1.08rem, 2vw, 1.32rem); color: var(--muted); line-height: 1.6; }
.intro-notes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.intro-notes span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--navy);
  background: white;
  font-size: .88rem;
  font-weight: 600;
}

.calculator-shell {
  max-width: 1184px;
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  background: white;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid #e4e8ef;
  overflow: hidden;
}
.calculator-inputs { padding: 42px 46px 46px; }
.calculator-inputs h2 { font-size: 2rem; margin: 8px 0 8px; }
.helper { color: var(--muted); margin: 0 0 28px; }
.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.money-input { position: relative; }
.money-input span {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 700;
}
input, select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #cbd3df;
  border-radius: 10px;
  color: var(--navy);
  background: white;
  font-weight: 600;
  outline: none;
}
input { padding: 12px 14px 12px 32px; }
select { padding: 12px 36px 12px 13px; }
input:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(244, 98, 15, .13); }
.field small { display: block; color: var(--muted); line-height: 1.45; margin-top: 7px; font-size: .82rem; }
.quick-presets { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; color: var(--muted); font-size: .85rem; }
.quick-presets button {
  background: var(--surface);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
}
.quick-presets button:hover, .quick-presets button:focus-visible { border-color: var(--orange); color: var(--orange); }

.calculator-results {
  padding: 42px 46px 42px;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: white;
}
.result-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.section-kicker.light { color: #ffb185; }
.big-result { font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-top: 10px; }
.tax-year { font-family: "IBM Plex Mono", monospace; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 5px 10px; font-size: .78rem; }
.result-summary { color: #dbe4f5; min-height: 52px; margin: 18px 0 28px; }
.comparison { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 18px; }
.comparison-row + .comparison-row { margin-top: 19px; }
.comparison-row > div:first-child { display: flex; justify-content: space-between; gap: 20px; font-size: .9rem; }
.comparison-row strong { color: white; }
.bar-track { height: 8px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; margin: 7px 0 5px; }
.bar { display: block; height: 100%; border-radius: 999px; transition: width .35s ease; min-width: 2px; }
.sole-bar { background: var(--orange); }
.scorp-bar { background: #7eb8ff; }
.comparison-row small { color: #abb9d3; font-size: .75rem; }
.breakdown { margin: 25px 0 0; }
.breakdown div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.breakdown dt { color: #c7d2e6; }
.breakdown dd { margin: 0; font-weight: 700; color: white; text-align: right; }
.breakdown .total { font-size: 1.12rem; border-bottom: 0; padding-top: 15px; }
.breakdown .total dt, .breakdown .total dd { color: white; font-weight: 800; }
.decision-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 20px;
}
.decision-metrics > div {
  min-width: 0;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px;
  padding: 13px 12px;
}
.decision-metrics span, .decision-metrics small {
  display: block;
  color: #b9c6dc;
  font-size: .7rem;
  line-height: 1.35;
}
.decision-metrics strong {
  display: block;
  color: white;
  font-size: 1.12rem;
  margin: 7px 0 4px;
}
.sensitivity {
  margin-top: 13px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
}
.sensitivity summary {
  color: white;
  padding: 13px 42px 13px 14px;
  font-size: .85rem;
}
.sensitivity summary::after { top: 8px; color: #ffb185; }
.sensitivity > p {
  color: #b9c6dc;
  font-size: .75rem;
  line-height: 1.45;
  margin: 0;
  padding: 0 14px 12px;
}
.sensitivity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.12);
  border-radius: 0 0 9px 9px;
  overflow: hidden;
}
.sensitivity-grid div { background: #132954; padding: 12px 10px; }
.sensitivity-grid .selected { background: #1b376d; box-shadow: inset 0 3px 0 var(--orange); }
.sensitivity-grid span { display: block; color: #aebbd2; font-size: .68rem; line-height: 1.25; }
.sensitivity-grid strong { display: block; color: white; font-size: .95rem; margin-top: 5px; }
.guidance-card {
  background: white;
  color: var(--ink);
  border-left: 5px solid var(--orange);
  padding: 16px 18px;
  margin-top: 22px;
  border-radius: 8px;
}
.guidance-card strong { color: var(--navy); }
.guidance-card p { font-size: .88rem; line-height: 1.5; margin: 6px 0 0; color: var(--muted); }
.warning { background: #fff0dc; color: #7a3e00; padding: 11px 14px; border-radius: 8px; font-size: .85rem; margin-top: 12px; }
.result-footnote { color: #9cabc5; font-size: .75rem; line-height: 1.45; margin: 18px 0 0; }
.result-footnote a { color: white; font-weight: 700; text-underline-offset: 3px; }

.what-it-estimates, .texas-checklist, .decision-section, .content-section, .split-explainer, .faq-section, .final-cta, .sources {
  max-width: 1184px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}
.texas-checklist {
  padding-top: 15px;
  padding-bottom: 105px;
}
.texas-checklist-heading {
  max-width: 820px;
  margin-bottom: 38px;
}
.texas-checklist-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}
.texas-check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.texas-check-grid article {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 24px;
  background: white;
}
.texas-check-grid article > span {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  color: var(--orange);
  margin-bottom: 22px;
}
.texas-check-grid h3 { margin-bottom: 10px; }
.texas-check-grid p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
  margin-bottom: 0;
}
.texas-check-grid a {
  display: inline-block;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 14px;
}
.texas-check-grid a:hover { color: var(--orange); }
.texas-bottom-line {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 25px;
  align-items: start;
  margin-top: 14px;
  padding: 21px 24px;
  border-radius: 13px;
  background: var(--navy);
  color: white;
}
.texas-bottom-line strong { color: #ffb185; }
.texas-bottom-line p { margin: 0; color: #d8e1f0; }
.what-it-estimates { padding-top: 30px; padding-bottom: 100px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 75px; }
.what-it-estimates ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.what-it-estimates li { background: var(--surface); border-radius: 12px; padding: 18px; color: var(--navy); font-weight: 650; line-height: 1.35; }
.what-it-estimates li span { font-family: "IBM Plex Mono"; display: block; color: var(--orange); font-size: .72rem; margin-bottom: 13px; }

.decision-section {
  background: var(--surface);
  max-width: none;
  padding-top: 95px;
  padding-bottom: 95px;
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(300px, 430px);
  justify-content: center;
  gap: 80px;
}
.decision-copy p { color: var(--muted); font-size: 1.05rem; }
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--orange);
  color: white;
  text-decoration: none;
  font-weight: 800;
  border-radius: 10px;
  padding: 15px 19px;
  margin-top: 16px;
  box-shadow: 0 10px 25px rgba(244, 98, 15, .22);
}
.cta-button:hover { background: #db4d00; transform: translateY(-1px); }
.decision-checklist { background: white; border-radius: 18px; padding: 30px; box-shadow: 0 16px 42px rgba(16, 33, 74, .09); }
.decision-checklist h3 { font-size: 1.35rem; }
.decision-checklist ul { list-style: none; padding: 0; margin: 20px 0; }
.decision-checklist li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); position: relative; }
.decision-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.decision-checklist p { color: var(--muted); font-size: .88rem; }

.content-section, .split-explainer, .faq-section { padding-top: 105px; padding-bottom: 105px; }
.section-heading { max-width: 760px; margin-bottom: 50px; }
.section-heading p { color: var(--muted); font-size: 1.05rem; }
.method-grid, .factor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.method-grid article, .factor-grid article { border: 1px solid var(--line); border-radius: 16px; padding: 25px; }
.method-grid p, .factor-grid p { color: var(--muted); margin-bottom: 0; }
.method-number { font-family: "IBM Plex Mono"; color: var(--orange); font-size: .8rem; display: block; margin-bottom: 25px; }
.technical-note { margin-top: 20px; background: var(--orange-soft); border-radius: 12px; padding: 18px 20px; color: #693213; font-size: .9rem; }

.split-explainer { display: grid; grid-template-columns: .65fr 1.35fr; gap: 65px; border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { text-align: left; padding: 16px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: "IBM Plex Mono"; font-size: .76rem; text-transform: uppercase; color: var(--orange); letter-spacing: .05em; }
tbody th { color: var(--navy); width: 23%; }
tbody td { color: var(--muted); width: 38.5%; }

.compensation { background: var(--navy); max-width: none; padding-left: max(28px, calc((100% - 1128px) / 2)); padding-right: max(28px, calc((100% - 1128px) / 2)); }
.compensation h2 { color: white; }
.compensation .section-kicker { color: #ffb185; }
.two-column-copy { display: grid; grid-template-columns: 1fr .8fr; gap: 70px; color: #d6deed; }
.two-column-copy aside { background: white; color: var(--muted); padding: 28px; border-radius: 16px; }
.two-column-copy aside strong { color: var(--navy); font-size: 1.15rem; }
.two-column-copy aside a { color: var(--orange); font-weight: 700; text-decoration: none; }
.when-section .factor-grid { grid-template-columns: 1fr 1fr; }

.cost-section {
  background: var(--orange);
  color: white;
  padding: 95px max(28px, calc((100% - 1128px) / 2));
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 80px;
}
.cost-section h2 { color: white; }
.cost-section p { color: #fff3eb; }
.cost-list div { display: grid; grid-template-columns: 170px 1fr; gap: 25px; border-bottom: 1px solid rgba(255,255,255,.35); padding: 17px 0; }
.cost-list span { font-weight: 800; }
.cost-list p { margin: 0; }

.faq-list { max-width: 900px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 45px 22px 0; font-weight: 750; color: var(--navy); position: relative; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 10px; top: 17px; color: var(--orange); font-size: 1.55rem; font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); max-width: 780px; margin: -5px 0 22px; }

.final-cta {
  background: var(--navy);
  border-radius: 24px;
  padding: 54px 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  color: white;
}
.final-cta h2 { color: white; max-width: 700px; margin: 10px 0 12px; }
.final-cta p { color: #c5d1e6; max-width: 700px; margin: 0; }
.light-button { background: white; color: var(--navy); flex: 0 0 auto; box-shadow: none; }
.light-button:hover { background: #f2f5fa; color: var(--navy); }
.sources { padding-top: 70px; padding-bottom: 70px; }
.sources h2 { font-size: 1.2rem; letter-spacing: 0; }
.sources p { color: var(--muted); font-size: .82rem; max-width: 1000px; }
.sources a { color: var(--blue); }

footer {
  max-width: 1184px;
  margin: 0 auto;
  padding: 35px 28px 55px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
}
.footer-contact { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; color: var(--muted); font-size: .85rem; }
.footer-contact a { text-decoration: none; color: var(--navy); }

@media (max-width: 900px) {
  .calculator-shell { grid-template-columns: 1fr; margin-left: 20px; margin-right: 20px; }
  .what-it-estimates, .split-explainer, .cost-section { grid-template-columns: 1fr; gap: 35px; }
  .decision-section { grid-template-columns: 1fr; gap: 45px; padding-left: 28px; padding-right: 28px; }
  .method-grid { grid-template-columns: 1fr; }
  .texas-check-grid { grid-template-columns: 1fr 1fr; }
  .two-column-copy { grid-template-columns: 1fr; gap: 35px; }
  .final-cta { margin-left: 20px; margin-right: 20px; flex-direction: column; align-items: flex-start; padding: 42px 34px; }
  .cost-section { padding-top: 75px; padding-bottom: 75px; }
}

@media (max-width: 620px) {
  .site-header { min-height: 86px; padding: 0 18px; }
  .brand-logo { width: 142px; }
  .footer-logo { width: 190px; }
  .brand small { display: none; }
  .header-link { font-size: .78rem; max-width: 120px; text-align: right; line-height: 1.25; }
  .intro { padding: 50px 20px 35px; }
  h1 { font-size: 2.55rem; }
  h2 { font-size: 2rem; }
  .intro-notes span { font-size: .75rem; }
  .calculator-inputs, .calculator-results { padding: 30px 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .result-topline { align-items: center; }
  .big-result { font-size: 3.4rem; }
  .decision-metrics { grid-template-columns: 1fr; }
  .sensitivity-grid { grid-template-columns: 1fr; }
  .what-it-estimates, .texas-checklist, .content-section, .split-explainer, .faq-section { padding: 70px 20px; }
  .texas-check-grid { grid-template-columns: 1fr; }
  .texas-bottom-line { grid-template-columns: 1fr; gap: 6px; }
  .what-it-estimates ul { grid-template-columns: 1fr; }
  .decision-section { padding: 70px 20px; }
  .when-section .factor-grid { grid-template-columns: 1fr; }
  .compensation { padding: 70px 20px; }
  .cost-section { padding: 70px 20px; }
  .cost-list div { grid-template-columns: 1fr; gap: 3px; }
  .final-cta { padding: 34px 24px; }
  .light-button { width: 100%; }
  .sources { padding: 55px 20px; }
  footer { padding: 30px 20px 45px; flex-direction: column; align-items: flex-start; }
  .footer-contact { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
