:root {
  color-scheme: light;
  --ink: #182d26;
  --muted: #6b7b74;
  --soft-muted: #95a29c;
  --green: #176b4a;
  --green-dark: #104f38;
  --green-soft: #eaf4ee;
  --saffron: #e89548;
  --line: #e6ebe7;
  --paper: #ffffff;
  --canvas: #f5f7f3;
  --shadow: 0 20px 60px rgba(30, 62, 46, 0.08), 0 2px 10px rgba(30, 62, 46, 0.035);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 8% 10%, rgba(226, 239, 229, .64), transparent 34rem),
    var(--canvas);
  color: var(--ink);
  font-family: 'DM Sans', 'Noto Sans', sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { color: inherit; }
.page-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(37, 79, 55, .09); }
.brand { color: var(--ink); display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-family: Manrope, sans-serif; font-size: 15px; font-weight: 800; letter-spacing: -.035em; }
.brand-mark { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: var(--green); color: white; font-size: 17px; box-shadow: 0 5px 12px rgba(23, 107, 74, .17); }
.brand-light { color: #6b7b74; font-weight: 600; }
.india-tag { display: flex; align-items: center; gap: 8px; color: #61726a; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.india-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(180deg, #e99b53 0 33%, #fff 33% 66%, #368358 66% 100%); border: 1px solid rgba(0,0,0,.05); }
.hero { position: relative; padding: 50px 0 35px; display: flex; align-items: center; justify-content: space-between; }
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow-line { width: 19px; height: 1px; background: var(--saffron); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, 'DM Sans', sans-serif; }
h1 { margin-bottom: 13px; font-size: clamp(34px, 4.2vw, 48px); line-height: 1.13; letter-spacing: -.055em; font-weight: 700; }
.hero-lede { max-width: 520px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.hero-stamp { width: 112px; height: 112px; margin-right: 8.4%; border: 1px solid #d8e6dc; border-radius: 50%; color: var(--green); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(9deg); position: relative; }
.hero-stamp::before { content: ''; position: absolute; inset: 7px; border: 1px dashed #d0dfd5; border-radius: 50%; }
.hero-stamp > span { font: 700 34px/1 Manrope, sans-serif; }
.hero-stamp small { margin-top: 5px; color: #65766d; text-align: center; font-size: 9px; line-height: 1.25; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.calculator-card { background: var(--paper); border: 1px solid rgba(31, 79, 53, .08); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.calculator-heading { padding: 24px 30px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.calculator-heading .section-kicker { margin-bottom: 5px; }
.calculator-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.reset-button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: #62736b; font-size: 12px; font-weight: 600; cursor: pointer; padding: 8px 10px; border-radius: 8px; }
.reset-button:hover { color: var(--green); background: #f4f8f5; }
.reset-button span { font-size: 17px; line-height: 1; }
.calculator-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); }
.inputs-column { padding: 26px 30px 23px; border-right: 1px solid var(--line); }
.field-group { border: 0; padding: 0; margin: 0 0 23px; min-width: 0; }
.field-group:last-child { margin-bottom: 0; }
.field-group > label, .field-group legend { display: block; padding: 0; margin: 0 0 9px; font-size: 12px; color: #40534a; font-weight: 700; }
.amount-input-wrap { height: 49px; border: 1px solid #dce5df; border-radius: 9px; display: flex; align-items: center; gap: 9px; padding: 0 14px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.amount-input-wrap:focus-within, .custom-rate-wrap:focus-within, .select-wrap:focus-within { border-color: #75a98c; box-shadow: 0 0 0 3px rgba(42, 130, 84, .09); }
.currency-symbol { font: 700 17px Manrope, sans-serif; color: var(--green); }
.amount-input-wrap input { border: 0; outline: 0; min-width: 0; width: 100%; color: var(--ink); font: 700 18px Manrope, sans-serif; letter-spacing: -.025em; background: transparent; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { appearance: textfield; -moz-appearance: textfield; }
.field-hint { color: var(--soft-muted); margin: 6px 0 0; font-size: 10.5px; line-height: 1.45; }
.field-error { color: #b44438; min-height: 0; margin: 3px 0 0; font-size: 11px; }
.field-error:empty { display: none; }
.select-wrap { height: 43px; position: relative; display: block; border: 1px solid #dce5df; border-radius: 8px; transition: border-color .18s, box-shadow .18s; }
.select-wrap select { width: 100%; height: 100%; padding: 0 36px 0 12px; color: var(--ink); background: transparent; border: 0; outline: 0; appearance: none; cursor: pointer; font-weight: 600; font-size: 13px; }
.select-chevron { position: absolute; right: 13px; top: 9px; color: #718178; font-size: 18px; pointer-events: none; }
.custom-rate-wrap { display: inline-flex; align-items: center; width: 142px; height: 37px; margin-top: 8px; padding: 0 11px; border: 1px solid #dce5df; border-radius: 8px; color: var(--muted); }
.custom-rate-wrap input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.custom-rate-wrap span { font-size: 12px; }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #f1f4f1; border-radius: 10px; gap: 4px; }
.segment-button { display: flex; min-height: 56px; align-items: center; gap: 9px; text-align: left; border: 1px solid transparent; border-radius: 7px; background: transparent; padding: 8px 9px; cursor: pointer; }
.segment-button[aria-pressed="true"] { background: white; border-color: #dfe9e2; box-shadow: 0 2px 6px rgba(26, 61, 41, .055); }
.segment-icon { flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #eaf4ee; color: var(--green); font-size: 17px; font-weight: 600; }
.include-icon { font-size: 12px; }
.segment-button strong, .segment-button small { display: block; }
.segment-button strong { font-size: 10.5px; font-weight: 700; }
.segment-button small { margin-top: 3px; color: var(--soft-muted); font-size: 9.5px; }
.supply-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.supply-option { position: relative; min-height: 58px; display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid #e0e8e2; border-radius: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.supply-option.selected { border-color: #8fbea1; background: #f7fbf8; }
.supply-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-dot { width: 14px; height: 14px; flex: 0 0 14px; border: 1.5px solid #aab8af; border-radius: 50%; position: relative; }
.supply-option.selected .radio-dot { border-color: var(--green); }
.supply-option.selected .radio-dot::after { content: ''; width: 6px; height: 6px; position: absolute; left: 3px; top: 3px; border-radius: 50%; background: var(--green); }
.supply-copy { min-width: 0; }
.supply-copy strong, .supply-copy small { display: block; white-space: nowrap; }
.supply-copy strong { font-size: 10.5px; }
.supply-copy small { margin-top: 3px; color: var(--muted); font-size: 9.5px; }
.supply-mini { margin-left: auto; color: #84a28e; font-size: 14px; }
.results-column { padding: 26px 30px 22px; background: linear-gradient(180deg, #fcfdfc 0%, #fff 100%); }
.results-topline { display: flex; justify-content: space-between; align-items: flex-start; }
.results-topline .section-kicker { margin-bottom: 5px; }
.results-topline h3 { margin: 0; font-size: 17px; letter-spacing: -.03em; }
.live-badge { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #dcebe1; border-radius: 20px; color: #557765; font-size: 9px; font-weight: 700; }
.live-badge span { width: 5px; height: 5px; background: #3c9b64; border-radius: 50%; box-shadow: 0 0 0 3px rgba(60, 155, 100, .1); }
.primary-result { margin: 17px 0 15px; padding: 15px 16px 13px; border-radius: 10px; color: white; background: linear-gradient(112deg, #176b4a, #1d8058); position: relative; overflow: hidden; }
.primary-result::after { content: '₹'; position: absolute; right: 10px; bottom: -34px; color: rgba(255,255,255,.07); font: 800 105px Manrope, sans-serif; }
.primary-label { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.84); font-size: 10px; font-weight: 600; }
.info-mark { display: inline-grid; place-items: center; width: 13px; height: 13px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-size: 8px; cursor: help; }
.primary-value { margin-top: 3px; font: 700 clamp(27px, 3.5vw, 34px)/1.2 Manrope, sans-serif; letter-spacing: -.045em; }
.primary-result p { margin: 3px 0 0; color: rgba(255,255,255,.74); font-size: 10px; }
.breakdown-list { border-top: 1px solid var(--line); }
.breakdown-row { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf0ed; font-size: 11px; }
.breakdown-row > span { color: #65766d; }
.breakdown-row small { display: block; margin-top: 2px; color: #9aa79f; font-size: 9px; }
.breakdown-row strong { color: #283c32; font: 700 11px Manrope, sans-serif; white-space: nowrap; }
.total-tax-row { min-height: 36px; }
.total-tax-row > span, .total-tax-row strong { color: var(--green); font-weight: 700; }
.gross-row { border-bottom: 0; }
.gross-row strong { color: var(--green-dark); font-size: 12px; }
.calculation-note { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; margin-top: 8px; border-radius: 7px; background: #f5f8f5; }
.note-icon { color: #d58b4a; font-size: 14px; line-height: 1.2; }
.calculation-note p { margin: 0; color: #6e7d74; font-size: 9.5px; line-height: 1.45; }
.result-actions { min-height: 25px; display: flex; align-items: center; gap: 9px; margin-top: 8px; }
.copy-button { border: 0; background: transparent; color: var(--green); cursor: pointer; padding: 4px 2px; font-size: 10px; font-weight: 700; }
.copy-button:hover { color: var(--green-dark); text-decoration: underline; }
.copy-button span { margin-right: 3px; font-size: 12px; }
.copy-status { color: #45835e; font-size: 10px; }
.totals-note { margin: 0; padding: 12px 30px 14px; border-top: 1px solid var(--line); color: #7b8982; font-size: 10px; line-height: 1.5; background: #fcfdfc; }
.totals-note strong { color: #53665b; }
.guide-section { padding: 45px 0 0; }
.guide-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.guide-heading .section-kicker { margin-bottom: 6px; }
.guide-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.04em; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #e2eae3; border-radius: 13px; background: rgba(255,255,255,.67); overflow: hidden; }
.guide-card { min-height: 143px; display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-content: start; padding: 19px 19px 15px; position: relative; }
.guide-card + .guide-card { border-left: 1px solid #e5ebe6; }
.guide-number { color: #d78b4c; font: 700 10px Manrope, sans-serif; }
.guide-card h3 { margin: 0 0 7px; font-size: 12px; letter-spacing: -.02em; }
.guide-card p { max-width: 230px; margin: 0; color: #78877f; font-size: 10px; line-height: 1.55; }
.guide-equation { grid-column: 2; justify-self: start; margin-top: 10px; padding: 4px 7px; border-radius: 5px; background: #eef5ef; color: #437355; font-size: 8.5px; font-weight: 700; }
.rounding-note { margin: 11px 0 0; color: #98a49d; font-size: 9px; }
.footer { height: 68px; display: flex; justify-content: space-between; align-items: center; margin-top: 25px; border-top: 1px solid rgba(37, 79, 55, .09); color: #8b9991; font-size: 10px; }
.footer > span:first-child { color: #53675b; font-weight: 700; }
.footer b { color: var(--green); margin-left: 4px; }
button:focus-visible, input:focus-visible, select:focus-visible, .supply-option:focus-within { outline: 3px solid rgba(42, 130, 84, .22); outline-offset: 2px; }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 32px, 580px); }
  .topbar { height: 68px; }
  .hero { padding: 37px 0 25px; }
  .hero-stamp { width: 86px; height: 86px; margin-right: 1%; }
  .hero-stamp > span { font-size: 27px; }
  .hero-stamp small { font-size: 7px; }
  h1 { font-size: clamp(31px, 7.4vw, 40px); }
  .hero-lede { max-width: 440px; font-size: 13px; }
  .calculator-grid { grid-template-columns: 1fr; }
  .inputs-column { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 22px; }
  .results-column { padding: 22px; }
  .calculator-heading { padding: 19px 22px 16px; }
  .totals-note { padding-left: 22px; padding-right: 22px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: unset; padding: 15px 17px; grid-template-columns: 23px 1fr; }
  .guide-card + .guide-card { border-left: 0; border-top: 1px solid #e5ebe6; }
  .guide-card p { max-width: 100%; }
  .guide-equation { margin-top: 8px; }
  .guide-section { padding-top: 34px; }
}
@media (max-width: 420px) {
  .page-shell { width: calc(100% - 24px); }
  .brand { font-size: 13px; }
  .brand-mark { width: 29px; height: 29px; }
  .india-tag { font-size: 10px; }
  .hero { padding: 32px 0 22px; }
  .hero-stamp { width: 67px; height: 67px; margin-right: 0; }
  .hero-stamp::before { inset: 4px; }
  .hero-stamp > span { font-size: 22px; }
  .hero-stamp small { display: none; }
  .desktop-break { display: none; }
  .hero-lede { font-size: 12px; max-width: 310px; }
  .calculator-heading, .inputs-column { padding-left: 17px; padding-right: 17px; }
  .results-column { padding: 19px 17px; }
  .totals-note { padding-left: 17px; padding-right: 17px; }
  .segment-button { gap: 6px; padding: 7px 6px; }
  .segment-icon { flex-basis: 21px; width: 21px; height: 21px; }
  .segment-button strong { font-size: 9.5px; }
  .segment-button small { font-size: 8.5px; }
  .supply-options { gap: 6px; }
  .supply-option { gap: 6px; padding: 7px 6px; }
  .supply-copy strong { font-size: 9.2px; }
  .supply-copy small { font-size: 8.6px; }
  .supply-mini { display: none; }
  .guide-heading h2 { font-size: 18px; }
  .footer { font-size: 9px; }
}
