:root {
  color-scheme: light;
  --ink: #14251e;
  --ink-soft: #4d5b54;
  --muted: #78837d;
  --green: #176b4b;
  --green-deep: #10563b;
  --lime: #d3f274;
  --canvas: #f5f7f3;
  --paper: #ffffff;
  --line: #e7ebe5;
  --shadow: 0 18px 52px rgba(32, 54, 42, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 11px 15px; border-radius: 8px; background: var(--green); color: white; font-size: 13px; font-weight: 700; text-decoration: none; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.anchor-target { position: absolute; top: 0; }

.page-shell { max-width: 1160px; width: calc(100% - 64px); margin: 0 auto; }
.site-header { height: 84px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e9ece7; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: Manrope, sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -1px; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--green); color: white; font-family: Manrope, sans-serif; font-size: 20px; font-weight: 800; }
.brand-period { color: #73a546; }
.header-note { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 13px; }
.status-dot, .takehome-dot { width: 8px; height: 8px; border-radius: 50%; background: #76a94c; box-shadow: 0 0 0 4px rgba(118,169,76,.12); }

.hero { min-height: 258px; display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.hero-copy { padding: 33px 0 38px; position: relative; z-index: 1; }
.eyebrow, .step-label { display: block; margin: 0; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 1.55px; }
.hero h1, .info-intro h2, .faq-section h2 { margin: 14px 0 10px; font-family: Manrope, sans-serif; font-weight: 700; letter-spacing: -2px; }
.hero h1 { max-width: 690px; font-size: clamp(40px, 6.2vw, 66px); line-height: 1.08; }
.hero h1 span { color: var(--green); }
.hero-description { max-width: 510px; margin: 17px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.hero-stamp { position: relative; width: 150px; height: 150px; flex: 0 0 150px; display: grid; place-items: center; margin: 0 53px 0 24px; border: 1px solid #b7c9b4; border-radius: 50%; color: var(--green); transform: rotate(10deg); font-size: 12px; line-height: 1.4; letter-spacing: 2px; font-weight: 700; text-align: center; }
.hero-stamp::before { content: ""; position: absolute; inset: 8px; border: 1px dashed #b7c9b4; border-radius: inherit; }
.stamp-star { position: absolute; top: 7px; right: 24px; color: #79a950; font-size: 24px; }

.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 22px; align-items: start; }
.panel { background: var(--paper); border: 1px solid #e9ede7; border-radius: 18px; box-shadow: var(--shadow); }
.input-panel { padding: 30px 32px 25px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.panel-heading h2, .results-panel > h2 { margin: 8px 0 0; font-family: Manrope, sans-serif; font-size: 22px; line-height: 1.25; letter-spacing: -.6px; }
.heading-icon { display: grid; place-items: center; width: 34px; height: 34px; color: var(--green); background: #edf4eb; border-radius: 50%; font-size: 22px; }
.field-group { min-width: 0; }
.field-group label { display: flex; align-items: baseline; gap: 7px; margin: 0 0 8px; color: #26372f; font-size: 12px; font-weight: 700; }
.pay-entry { display: flex; gap: 10px; }
.salary-input-wrap, .money-field, .suffix-input { min-width: 0; position: relative; display: flex; align-items: center; height: 46px; border: 1px solid #dfe5dd; border-radius: 9px; background: white; transition: border-color .2s, box-shadow .2s; }
.salary-input-wrap { flex: 1; }
.salary-input-wrap:focus-within, .money-field:focus-within, .suffix-input:focus-within, select:focus-visible { border-color: #69a180; box-shadow: 0 0 0 3px rgba(23,107,75,.1); outline: none; }
.salary-input-wrap input, .money-field input, .suffix-input input { width: 100%; min-width: 0; height: 100%; padding: 0 12px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; }
.salary-input-wrap input { padding-left: 37px; font-size: 18px; }
.input-currency { position: absolute; left: 13px; color: #748079; font-size: 16px; }
select { min-width: 0; height: 46px; padding: 0 32px 0 12px; border: 1px solid #dfe5dd; border-radius: 9px; background-color: white; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.pay-entry select { width: 96px; }
.field-hint { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 17px; }
.field-grid select, .field-grid > .field-group > input { width: 100%; }
.field-grid input[type="number"] { height: 46px; padding: 0 12px; border: 1px solid #dfe5dd; border-radius: 9px; outline: none; color: var(--ink); font-size: 13px; font-weight: 600; }
.field-grid input[type="number"]:focus { border-color: #69a180; box-shadow: 0 0 0 3px rgba(23,107,75,.1); }
.suffix-input input { padding-right: 27px; }
.suffix-input > span { position: absolute; right: 13px; color: #78837d; font-size: 13px; }
.money-field { width: 100%; }
.money-field input { padding-left: 30px; font-size: 13px; }
.mini-currency { position: absolute; left: 12px; color: #78837d; font-size: 12px; }
.optional { color: #89938d; font-size: 10px; font-weight: 500; }
.section-rule { display: flex; align-items: center; gap: 10px; margin: 23px 0 2px; color: #87918a; font-size: 9px; font-weight: 700; letter-spacing: 1.35px; }
.section-rule::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.conditional-fields { padding: 14px; border: 1px solid #e8eee7; border-radius: 11px; background: #f8faf7; }
.conditional-fields[hidden] { display: none; }
.goal-block { margin-top: 24px; padding: 18px 18px 20px; border: 1px solid #e7eee5; border-radius: 13px; background: #f7faf5; }
.goal-title-row { display: flex; justify-content: space-between; align-items: center; }
.goal-title-row h3 { margin: 5px 0 0; font-family: Manrope, sans-serif; font-size: 15px; }
.goal-icon { color: var(--green); font-size: 19px; }
.goal-fields { margin-top: 14px; }
.goal-fields .field-group label { font-size: 11px; }
.form-error { margin: 15px 0 0; color: #a33131; font-size: 12px; line-height: 1.5; }
.form-error[hidden] { display: none; }
.form-actions { display: flex; gap: 10px; margin-top: 19px; }
.button { min-height: 45px; border: 0; border-radius: 9px; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.button:disabled, .text-button:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.button:active { transform: translateY(1px); }
.button:focus-visible, .icon-button:focus-visible, .text-button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #82aa78; outline-offset: 3px; }
.button-primary { display: flex; flex: 1; justify-content: center; align-items: center; gap: 11px; padding: 0 14px; background: var(--green); color: white; }
.button-primary:hover { background: var(--green-deep); box-shadow: 0 5px 14px rgba(16,86,59,.19); }
.button-primary span { font-size: 16px; }
.button-quiet { padding: 0 14px; background: #f1f4ef; color: #46554c; }
.button-quiet:hover { background: #e6ece4; }
.privacy-note { margin: 14px 0 0; color: #869089; font-size: 10px; text-align: center; }
.privacy-note span { margin-right: 4px; }

.results-panel { padding: 30px 31px 22px; }
.result-topline { display: flex; justify-content: space-between; align-items: center; }
.icon-button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--green); font-size: 16px; cursor: pointer; }
.icon-button span { font-size: 11px; font-weight: 700; }
.icon-button:hover { background: #edf4eb; }
.results-panel > h2 { margin-top: 11px; }
.takehome-card { margin-top: 20px; padding: 22px 21px 17px; border-radius: 13px; background: #173e30; color: white; }
.takehome-label { display: flex; align-items: center; gap: 9px; color: #d4e4d6; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.takehome-dot { width: 7px; height: 7px; background: var(--lime); box-shadow: 0 0 0 4px rgba(211,242,116,.13); }
.takehome-amount { margin: 12px 0 3px; font-family: Manrope, sans-serif; font-size: clamp(33px, 4vw, 43px); font-weight: 700; letter-spacing: -1.8px; line-height: 1.1; overflow-wrap: anywhere; }
.takehome-caption { margin: 0; color: #bbcec3; font-size: 11px; }
.progress-track { height: 5px; margin-top: 21px; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,.17); }
.progress-fill { display: block; width: 65%; height: 100%; border-radius: inherit; background: var(--lime); transition: width .3s ease; }
.progress-legend { display: flex; justify-content: space-between; margin-top: 8px; color: #bfd0c6; font-size: 10px; }
.progress-legend strong { color: white; font-size: 10px; }
.breakdown-heading { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 10px; }
.breakdown-heading h3 { margin: 0; font-family: Manrope, sans-serif; font-size: 13px; }
.text-button { padding: 5px 0 5px 8px; border: 0; background: transparent; color: var(--green); font-size: 10px; font-weight: 700; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.text-button span { margin-left: 3px; font-size: 14px; }
.breakdown-list { border-top: 1px solid var(--line); }
.breakdown-row { min-height: 37px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid #eff1ed; color: #505e56; font-size: 11px; }
.breakdown-row > span { display: flex; align-items: center; gap: 9px; }
.breakdown-row strong { color: #23382e; font-size: 11px; font-weight: 700; text-align: right; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.gross-dot { background: #519873; }.tax-dot { background: #e79a79; }.retirement-dot { background: #93a5d2; }.benefits-dot { background: #dab96c; }
.quick-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; border: 1px solid #e9eee7; border-radius: 11px; background: #fafbf9; }
.quick-stats > div { min-width: 0; padding: 14px 12px 13px; }
.quick-stats > div + div { border-left: 1px solid #e9eee7; }
.quick-stats span, .quick-stats small { display: block; color: #79847d; font-size: 8px; font-weight: 700; letter-spacing: .7px; }
.quick-stats strong { display: block; margin: 7px 0 3px; color: var(--ink); font-family: Manrope, sans-serif; font-size: 18px; letter-spacing: -.5px; overflow-wrap: anywhere; }
.quick-stats small { font-size: 9px; font-weight: 400; letter-spacing: 0; }
.goal-result { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 13px 14px; border: 1px solid #e6eee3; border-radius: 11px; background: #f4f8f0; }
.goal-result-icon { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; border-radius: 9px; background: #e1edda; color: var(--green); font-size: 17px; }
.goal-result .step-label { font-size: 8px; letter-spacing: 1px; }
.goal-result strong { display: block; margin-top: 4px; font-family: Manrope, sans-serif; font-size: 13px; }
.goal-result p { margin: 3px 0 0; color: #738078; font-size: 10px; line-height: 1.5; }
.result-actions { margin-top: 13px; }
.button-secondary { width: 100%; background: #edf3eb; color: var(--green-deep); }
.button-secondary:hover { background: #e0ebdc; }
.disclaimer { margin: 13px 2px 0; color: #858f89; font-size: 9px; line-height: 1.6; }

.info-section { display: grid; grid-template-columns: .82fr 1.5fr; gap: 50px; margin: 82px 0 77px; }
.info-intro h2, .faq-section h2 { margin-top: 12px; font-size: 29px; line-height: 1.24; letter-spacing: -1px; }
.info-intro > p { max-width: 290px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; align-self: center; }
.info-card { min-height: 177px; padding: 16px 15px; border: 1px solid #e4eae1; border-radius: 12px; background: rgba(255,255,255,.55); }
.info-number { color: #76a054; font-family: Manrope, sans-serif; font-size: 12px; font-weight: 800; }
.info-card h3 { margin: 20px 0 8px; font-family: Manrope, sans-serif; font-size: 13px; letter-spacing: -.2px; }
.info-card p { margin: 0; color: #66736b; font-size: 10px; line-height: 1.65; }
.faq-section { display: grid; grid-template-columns: .82fr 1.5fr; gap: 50px; padding: 29px 0 58px; border-top: 1px solid #e2e8e0; }
.faq-section h2 { max-width: 300px; }
.faq-list details { border-bottom: 1px solid #e2e8e0; }
.faq-list summary { position: relative; padding: 16px 28px 16px 0; color: #273a30; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 11px; right: 1px; color: var(--green); font-size: 20px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -2px 25px 17px 0; color: #66736b; font-size: 12px; line-height: 1.7; }
.calculator-directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: start; }
.calculator-directory a { padding: 12px; border: 1px solid #e4eae1; border-radius: 9px; color: var(--green); background: rgba(255,255,255,.55); font-size: 12px; font-weight: 700; text-decoration: none; }
.calculator-directory a:hover { background: #edf4eb; }
.site-footer { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #e2e8e0; color: #7b867f; font-size: 10px; }
.country-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 0; border-top: 1px solid #e2e8e0; color: #66736b; font-size: 11px; }
.country-links a { color: var(--green); font-weight: 700; text-decoration: none; }
.country-links a:hover { text-decoration: underline; }
.country-links > span { margin-left: auto; color: #7b867f; font-size: 10px; }
.suffix-input input[readonly] { color: #536259; font-size: 12px; }
.suffix-input input[readonly]:focus { outline: 0; }
.footer-brand { color: var(--ink); font-size: 16px; }
.footer-brand .brand-mark { width: 25px; height: 25px; border-radius: 8px; font-size: 16px; }
.site-footer > a:last-child { color: var(--green); font-weight: 700; text-decoration: none; }
.toast { position: fixed; z-index: 10; bottom: 24px; left: 50%; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 10px; background: #173e30; color: white; box-shadow: 0 8px 25px rgba(20,37,30,.2); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.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; }
.policy-content { max-width: 760px; min-height: 65vh; padding: 58px 0 72px; }
.policy-content h1, .policy-content h2 { font-family: Manrope, sans-serif; letter-spacing: -.8px; }
.policy-content h1 { margin: 12px 0 5px; font-size: clamp(36px, 6vw, 52px); }
.policy-content h2 { margin: 34px 0 8px; font-size: 20px; }
.policy-content p { color: #526158; font-size: 14px; line-height: 1.8; }
.policy-content a:not(.button) { color: var(--green); }
.policy-content .policy-updated { margin: 0 0 28px; color: var(--muted); font-size: 12px; }
.policy-back { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 0 16px; text-decoration: none; }
.privacy-note a { color: var(--green); font-weight: 600; }

@media (max-width: 900px) {
  .page-shell { width: calc(100% - 40px); }
  .calculator-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 14px; }
  .input-panel, .results-panel { padding: 25px 22px 20px; }
  .info-section, .faq-section { gap: 28px; }
  .info-cards { gap: 8px; }
  .info-card { padding: 13px 11px; }
}

@media (max-width: 700px) {
  .page-shell { width: calc(100% - 32px); }
  .site-header { height: 68px; }
  .header-note { font-size: 11px; }
  .hero { min-height: 225px; }
  .hero-copy { padding: 30px 0 35px; }
  .hero h1 { max-width: 470px; font-size: clamp(41px, 9vw, 58px); }
  .hero-description { max-width: 420px; font-size: 14px; }
  .hero-stamp { position: absolute; right: -37px; bottom: -38px; width: 122px; height: 122px; margin: 0; opacity: .55; }
  .calculator-layout { grid-template-columns: 1fr; gap: 16px; }
  .input-panel, .results-panel { padding: 24px; }
  .results-panel { order: -1; }
  .takehome-amount { font-size: 40px; }
  .info-section, .faq-section { grid-template-columns: 1fr; gap: 20px; }
  .info-section { margin: 57px 0 52px; }
  .info-intro h2, .faq-section h2 { font-size: 27px; }
  .info-cards { grid-template-columns: repeat(3, 1fr); }
  .calculator-directory { grid-template-columns: repeat(2, 1fr); }
  .info-card { min-height: 170px; }
  .faq-section { padding-bottom: 44px; }
}

@media (max-width: 430px) {
  .page-shell { width: calc(100% - 24px); }
  .header-note { gap: 7px; font-size: 10px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 27px; height: 27px; }
  .hero { min-height: 211px; }
  .hero h1 { font-size: 41px; }
  .hero-description { max-width: 330px; font-size: 13px; }
  .input-panel, .results-panel { padding: 21px 17px; }
  .field-grid { gap: 11px; }
  .goal-block { padding: 16px 13px; }
  .quick-stats > div { padding: 12px 9px; }
  .quick-stats strong { font-size: 16px; }
  .info-cards { grid-template-columns: 1fr; }
  .calculator-directory { grid-template-columns: 1fr 1fr; }
  .info-card { min-height: auto; padding: 15px; }
  .info-card h3 { margin: 10px 0 5px; }
  .site-footer { flex-wrap: wrap; padding: 15px 0; }
  .site-footer > span { order: 3; flex-basis: 100%; }
  .country-links > span { flex-basis: 100%; margin-left: 0; }
}

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