:root {
  color-scheme: light;
  --ink: #102923;
  --ink-soft: #536661;
  --forest: #0d3430;
  --forest-deep: #082824;
  --mint: #bde8cd;
  --mint-bright: #d9f5e4;
  --cream: #f4f0e7;
  --paper: #fffdf8;
  --line: #d9ded8;
  --line-dark: rgba(255, 255, 255, 0.18);
  --gold: #f2bd58;
  --blue: #79a9d4;
  --coral: #e98b70;
  --shadow: 0 24px 70px rgba(24, 51, 43, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
summary,
label,
input[type="radio"] {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: var(--paper);
  color: var(--forest);
  font-weight: 750;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--mint-bright);
  font-size: 0.67rem;
  letter-spacing: 0.05em;
}

.rule-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.46rem 0.72rem;
  border: 1px solid #d3d6cf;
  border-radius: 999px;
  color: #49605a;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rule-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f9a67;
  box-shadow: 0 0 0 4px rgba(47, 154, 103, 0.12);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 490px;
  margin: 0 auto;
  padding: 70px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  align-items: center;
  gap: 4rem;
}

.eyebrow,
.step-label {
  margin: 0 0 1rem;
  color: #2c7861;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 7vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.hero-text {
  max-width: 580px;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
}

.hero-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  color: #4d625c;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-meta svg {
  width: 19px;
  height: 19px;
  color: #2d8969;
}

.hero-orbit {
  position: relative;
  width: min(390px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(13, 52, 48, 0.16);
  border-radius: 50%;
}

.orbit-ring-one {
  inset: 5%;
}

.orbit-ring-two {
  inset: 17%;
  border-style: dashed;
}

.orbit-center {
  width: 47%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 52, 48, 0.18);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(13, 52, 48, 0.12);
  color: var(--forest);
}

.orbit-center strong {
  margin: 0.15rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1;
}

.orbit-label,
.orbit-center span:last-child {
  color: #61726d;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orbit-dot {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 7px solid var(--cream);
  border-radius: 50%;
  box-sizing: content-box;
}

.orbit-dot-one {
  top: 15%;
  right: 14%;
  background: var(--gold);
}

.orbit-dot-two {
  bottom: 10%;
  left: 21%;
  width: 17px;
  height: 17px;
  background: var(--blue);
}

.calculator-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(370px, 0.94fr);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.input-panel,
.results-panel {
  padding: clamp(2rem, 5vw, 4.5rem);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.panel-heading h2,
.results-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.monthly-pill {
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  background: #edf4ef;
  color: #426a5d;
  font-size: 0.69rem;
  font-weight: 750;
  white-space: nowrap;
}

.currency-picker {
  margin: 2.25rem 0 0;
  padding: 0;
  border: 0;
}

.currency-picker legend,
.amount-field > label {
  margin-bottom: 0.65rem;
  color: #415650;
  font-size: 0.78rem;
  font-weight: 750;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #eff1ec;
}

.segmented-control label {
  position: relative;
  cursor: pointer;
}

.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segmented-control span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 10px;
  color: #61706c;
  font-size: 0.76rem;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.segmented-control span b {
  color: inherit;
  font-size: 0.82rem;
}

.segmented-control input:checked + span {
  background: var(--paper);
  color: var(--forest);
  box-shadow: 0 3px 12px rgba(25, 50, 42, 0.08);
}

.segmented-control input:focus-visible + span {
  outline: 3px solid rgba(13, 97, 79, 0.25);
  outline-offset: 2px;
}

.amount-field {
  margin-top: 1.6rem;
}

.amount-field > label {
  display: block;
}

.amount-input-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.15rem;
  border: 1px solid #bdc8c2;
  border-radius: 14px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.amount-input-wrap:focus-within {
  border-color: #277d65;
  box-shadow: 0 0 0 4px rgba(39, 125, 101, 0.12);
}

.amount-input-wrap > span {
  padding-right: 1rem;
  border-right: 1px solid var(--line);
  color: #42635a;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.amount-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--forest);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 680;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.field-hint,
.converted-salary,
.settings-intro {
  margin: 0.6rem 0 0;
  color: #6b7b76;
  font-size: 0.73rem;
}

.exchange-rate-field {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #cfd9d3;
  border-radius: 12px;
  background: #f2f6f2;
}

.exchange-rate-field > label {
  display: block;
  margin-bottom: 0.55rem;
  color: #3d574f;
  font-size: 0.75rem;
  font-weight: 780;
}

.exchange-rate-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
}

.exchange-rate-input span {
  color: #61736d;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.exchange-rate-input input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 0.7rem;
  border: 1px solid #bfcac4;
  border-radius: 9px;
  background: #fff;
  color: var(--forest);
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.exchange-rate-input input:focus {
  border-color: #277d65;
  outline: 3px solid rgba(39, 125, 101, 0.12);
}

.exchange-rate-field p {
  margin: 0.45rem 0 0;
  color: #72827c;
  font-size: 0.68rem;
}

.converted-salary {
  padding: 0.6rem 0.75rem;
  border-radius: 9px;
  background: #f0f5f1;
}

.mobile-result {
  display: none;
}

.primary-button {
  width: 100%;
  min-height: 54px;
  margin-top: 1.6rem;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 0;
  border-radius: 13px;
  background: var(--forest);
  color: #fff;
  font-weight: 760;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(13, 52, 48, 0.18);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  background: #164940;
  box-shadow: 0 12px 26px rgba(13, 52, 48, 0.25);
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button svg {
  width: 20px;
  height: 20px;
}

.primary-button:focus-visible,
.text-button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(41, 137, 105, 0.32);
  outline-offset: 3px;
}

.settings-panel {
  margin-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.settings-panel summary {
  padding: 1.15rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #49605a;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

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

.settings-panel summary > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.settings-panel summary svg {
  width: 18px;
  height: 18px;
}

.chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.settings-panel[open] .chevron {
  transform: rotate(225deg);
}

.settings-content {
  padding-top: 1rem;
}

.settings-intro {
  margin-top: 0;
  line-height: 1.6;
}

.form-error {
  padding: 0.7rem 0.8rem;
  border: 1px solid #e3a999;
  border-radius: 9px;
  background: #fff2ee;
  color: #893c2e;
  font-size: 0.75rem;
}

.settings-section {
  margin-top: 1.2rem;
}

.settings-section h3 {
  margin: 0 0 0.7rem;
  color: #314b44;
  font-size: 0.78rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.settings-grid > label {
  display: grid;
  gap: 0.38rem;
  color: #4d625c;
  font-size: 0.68rem;
  font-weight: 700;
}

.settings-grid label > span:first-child {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
}

.settings-grid small {
  color: #82918d;
  font-weight: 500;
}

.settings-grid input,
.tax-table input {
  width: 100%;
  min-width: 0;
  height: 39px;
  padding: 0 0.65rem;
  border: 1px solid #cdd5d0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.settings-grid input:focus,
.tax-table input:focus {
  border-color: #277d65;
  outline: 3px solid rgba(39, 125, 101, 0.12);
}

input[aria-invalid="true"] {
  border-color: #b85743;
}

.suffix-input {
  position: relative;
  display: block;
}

.suffix-input input {
  padding-right: 1.8rem;
}

.suffix-input > span {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  color: #6a7c76;
  font-size: 0.72rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.tax-table {
  display: grid;
  border: 1px solid #d7ddd8;
  border-radius: 10px;
  overflow: hidden;
}

.tax-table-head,
.tax-table label {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr 0.65fr;
  align-items: center;
  gap: 0.55rem;
}

.tax-table-head {
  padding: 0.45rem 0.65rem 0.45rem calc(0.65rem + 24%);
  background: #edf1ed;
  color: #72817c;
  font-size: 0.61rem;
  font-weight: 750;
  text-transform: uppercase;
}

.tax-table label {
  padding: 0.48rem 0.65rem;
  border-top: 1px solid #e2e6e2;
  color: #526660;
  font-size: 0.69rem;
  font-weight: 700;
}

.tax-table input {
  height: 34px;
}

.infinity-value {
  color: #788782;
  font-size: 0.68rem;
  font-weight: 500;
}

.text-button {
  margin-top: 0.9rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #2d745f;
  font-size: 0.72rem;
  font-weight: 760;
  cursor: pointer;
}

.results-panel {
  position: relative;
  background: var(--forest);
  color: #fff;
  overflow: hidden;
}

.results-panel::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -190px;
  top: -210px;
  border: 1px solid rgba(189, 232, 205, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(189, 232, 205, 0.03), 0 0 0 110px rgba(189, 232, 205, 0.025);
  pointer-events: none;
}

.step-label-light {
  position: relative;
  color: var(--mint);
}

.results-panel h2 {
  position: relative;
  color: #fff;
}

.rwf-label {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.28rem 0.44rem;
  border: 1px solid rgba(189, 232, 205, 0.3);
  border-radius: 6px;
  color: var(--mint);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.net-amount {
  position: relative;
  margin-top: 1.2rem;
  display: block;
  color: var(--mint-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.net-secondary {
  position: relative;
  margin: 0.7rem 0 0;
  color: #a9bdb6;
  font-size: 0.74rem;
}

.keep-summary {
  margin-top: 2rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  color: #acc0b9;
  font-size: 0.69rem;
}

.keep-summary > div {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.keep-summary strong {
  color: #fff;
  font-size: 0.96rem;
}

.salary-bar {
  height: 8px;
  margin-top: 0.55rem;
  display: flex;
  gap: 3px;
  border-radius: 999px;
  overflow: hidden;
}

.salary-bar span {
  height: 100%;
  transition: width 300ms ease;
}

.net-bar {
  background: var(--mint);
}

.deduction-bar {
  background: var(--gold);
}

.breakdown-list {
  margin: 2rem 0 0;
}

.breakdown-list > div {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line-dark);
}

.breakdown-list dt,
.breakdown-list dd {
  margin: 0;
}

.breakdown-list dt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #bacac5;
  font-size: 0.76rem;
}

.breakdown-list dt small {
  color: #79958c;
  font-size: 0.6rem;
}

.breakdown-list dd {
  color: #fff;
  font-size: 0.79rem;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.breakdown-list .gross-row {
  border-top: 0;
}

.breakdown-list .gross-row dt,
.breakdown-list .gross-row dd {
  color: #fff;
  font-weight: 760;
}

.legend-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.dot-paye { background: var(--gold); }
.dot-pension { background: var(--blue); }
.dot-maternity { background: var(--coral); }
.dot-cbhi { background: #b08dcc; }

.breakdown-list .total-row {
  min-height: 52px;
  margin-top: 0.2rem;
  border-top-color: rgba(255, 255, 255, 0.35);
}

.breakdown-list .total-row dt,
.breakdown-list .total-row dd {
  color: var(--mint-bright);
  font-weight: 800;
}

.result-note {
  margin-top: 1.2rem;
  padding: 0.9rem;
  display: flex;
  gap: 0.75rem;
  border: 1px solid rgba(189, 232, 205, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.result-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--mint);
}

.result-note p {
  margin: 0;
  color: #9eb4ac;
  font-size: 0.66rem;
  line-height: 1.55;
}

.result-note strong {
  display: block;
  margin-bottom: 0.1rem;
  color: #d9e6e1;
}

.method-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 2rem;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -0.8rem;
}

.section-heading h2,
.sources-section h2 {
  max-width: 720px;
  margin: 0;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-heading > p:last-child {
  max-width: 430px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.method-grid {
  margin: 4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid #d6dad3;
  border-radius: var(--radius-md);
  background: #d6dad3;
  list-style: none;
  overflow: hidden;
}

.method-grid li {
  min-height: 245px;
  padding: 2rem;
  background: var(--paper);
}

.method-grid li > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #cfd8d1;
  border-radius: 50%;
  color: #378266;
  font-size: 0.65rem;
  font-weight: 800;
}

.method-grid h3 {
  margin: 2.4rem 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.method-grid p {
  margin: 0;
  color: #65756f;
  font-size: 0.82rem;
  line-height: 1.65;
}

.sources-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 50px;
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  border: 1px solid #d4d8d1;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.58);
}

.sources-section h2 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.source-links {
  display: grid;
  align-content: start;
}

.source-links a {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #d4d8d1;
  color: #314c44;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, padding 160ms ease;
}

.source-links a:hover {
  padding-left: 0.4rem;
  color: #1d765b;
}

.source-links span {
  color: #34856a;
}

.disclaimer {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid #d4d8d1;
  color: #697a74;
  font-size: 0.7rem;
  line-height: 1.65;
}

footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #65756f;
  font-size: 0.7rem;
}

footer p:first-child {
  color: var(--forest);
  font-weight: 800;
}

.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;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 50px;
  }

  .hero-orbit {
    width: min(300px, 75vw);
  }

  .calculator-shell {
    grid-template-columns: 1fr;
  }

  .results-panel {
    min-height: 650px;
  }

  .section-heading,
  .sources-section {
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-grid li {
    min-height: 190px;
  }

  .method-grid h3 {
    margin-top: 1.5rem;
  }
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .calculator-shell,
  .method-section,
  .sources-section,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .hero {
    min-height: auto;
    padding: 42px 0 64px;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 16vw, 4.8rem);
  }

  .hero-orbit {
    width: min(260px, 82vw);
  }

  .calculator-shell {
    border-radius: 20px;
  }

  .input-panel,
  .results-panel {
    padding: 2rem 1.25rem;
  }

  .input-panel {
    padding-bottom: 1.25rem;
  }

  .panel-heading h2 {
    font-size: 1.75rem;
  }

  .currency-picker {
    margin-top: 1.4rem;
  }

  .amount-field {
    margin-top: 1.15rem;
  }

  .amount-input-wrap {
    min-height: 64px;
  }

  .amount-input-wrap input {
    font-size: 1.75rem;
  }

  .segmented-control span {
    flex-direction: column;
    gap: 0.05rem;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .mobile-result {
    position: sticky;
    bottom: 0.75rem;
    z-index: 5;
    margin-top: 1rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(189, 232, 205, 0.22);
    border-radius: 15px;
    background: var(--forest);
    color: #fff;
    box-shadow: 0 14px 32px rgba(13, 52, 48, 0.22);
  }

  .mobile-result-copy {
    min-width: 0;
    display: grid;
  }

  .mobile-result-copy > span {
    color: var(--mint);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-result output {
    margin-top: 0.15rem;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 7.2vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
  }

  .mobile-result small {
    margin-top: 0.2rem;
    color: #9eb4ac;
    font-size: 0.62rem;
  }

  .mobile-result > a {
    padding: 0.65rem 0.7rem;
    border: 1px solid rgba(189, 232, 205, 0.28);
    border-radius: 10px;
    color: var(--mint-bright);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
  }

  .primary-button {
    display: none;
  }

  .settings-panel {
    margin-top: 0.9rem;
  }

  .tax-table-head {
    display: none;
  }

  .tax-table label {
    grid-template-columns: 0.85fr 1.15fr 0.7fr;
  }

  .results-panel {
    min-height: auto;
    scroll-margin-top: 0.75rem;
  }

  .method-section {
    padding: 85px 0;
  }

  .sources-section {
    margin-bottom: 20px;
    padding: 2rem 1.25rem;
  }

  footer {
    padding: 1.3rem 0;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #7a8580;
  }

  .field-hint,
  .settings-intro,
  .net-secondary {
    color: currentColor;
  }
}
