/* Self-hosted fonts (latin subset, variable). Served from our own origin: no extra DNS/TLS round trips. */
@font-face { font-family: 'Anek Latin'; font-style: normal; font-weight: 400 800; font-stretch: 75% 125%; font-display: swap;
  src: url(/static/fonts/aneklatin.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/static/fonts/ibmplexsans.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/instrumentserif.woff2) format('woff2'); }

:root {
  /* Warm canvas, plum for actions, and a soft plum highlighter reserved for answers. */
  --desk: #ece6dc;
  --sheet: #ffffff;
  --stamp: #8a4f74;
  --stamp-deep: #6f3d5d;
  --stamp-wash: #f4ebf0;
  --mark: #efcfe1;
  --gain: #2f7d57;

  --canvas: var(--desk);
  --canvas-2: #f3efe8;
  --surface: var(--sheet);
  --surface-soft: #faf8f4;
  --ink: #1b1712;
  --ink-2: #2c2620;
  --muted: #5e574f;
  --line: #e2dccf;
  --line-2: #eae4d9;

  --plum: var(--stamp);
  --plum-dark: var(--stamp-deep);
  --plum-soft: var(--stamp-wash);
  --plum-line: #e3ccdb;
  --mauve: #c3a0b6;
  --taupe: #ded6c8;
  --taupe-hover: #d2c9b9;
  --danger: #a4402f;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(27, 23, 18, 0.04), 0 12px 28px -22px rgba(27, 23, 18, 0.28);
  --shadow-float: 0 40px 90px -40px rgba(27, 23, 18, 0.45);
  --maxw: 1120px;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-display: "Anek Latin", "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-stretch: 88%; font-weight: 650; letter-spacing: -0.01em; line-height: 1.12; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; }
::selection { background: var(--mark); color: var(--ink); }

/* The highlighter: the one bold device. Only ever behind an answer. */
.mark, .verdict .verdict-amount em, .bt-big {
  background-image: linear-gradient(to right, var(--mark), var(--mark));
  background-repeat: no-repeat; background-size: 100% 0.42em; background-position: 0 88%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.08em;
  animation: mark-sweep 0.55s cubic-bezier(.2,.7,.2,1) 0.1s both;
}
@keyframes mark-sweep { from { background-size: 0% 0.42em; } to { background-size: 100% 0.42em; } }
@media (prefers-reduced-motion: reduce) { .mark, .verdict .verdict-amount em, .bt-big { animation: none; } }

.num { font-variant-numeric: tabular-nums; }
a { color: var(--stamp); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--stamp-deep); text-decoration-thickness: 2px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
.site-header { background: var(--sheet); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; font-size: 1.95rem; color: var(--ink); text-decoration: none; }

/* Wordmark: "Finance" in Instrument Serif + the Flow X at cap height on the baseline. */
.wordmark {
  --fx-in: var(--plum); --fx-out: var(--mauve);
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif; font-weight: 400;
  line-height: 1; letter-spacing: 0; display: inline-flex; align-items: baseline; white-space: nowrap;
}
.wordmark .fx-x { height: 0.69em; width: 0.69em; margin-left: 0.02em; overflow: visible; flex: none; }
.fx-out { stroke: var(--fx-out); fill: none; }
.fx-out-head { fill: var(--fx-out); }
.fx-in { stroke: var(--fx-in); fill: none; }
.fx-in-head { fill: var(--fx-in); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.96rem; }
.site-nav a:hover { color: var(--stamp); }
.site-nav .btn { font-size: 0.92rem; padding: 9px 16px; color: #fff; }
.site-nav .btn:hover { color: #fff; }

/* ---- buttons ---- */
.btn {
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  border: none; border-radius: var(--radius-sm);
  padding: 12px 22px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s ease, transform 0.05s ease, color 0.15s ease;
}
.btn-dark, .btn { background: var(--stamp); color: #fff; }
.btn-dark:hover, .btn:hover { background: var(--stamp-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-soft { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-soft:hover { background: var(--surface-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-2); }
.btn-plum { background: var(--plum); color: #fff; }
.btn-plum:hover { background: var(--plum-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-soft); }
.btn-block { width: 100%; margin-top: 18px; }
.link-inline { background: none; border: none; color: var(--plum); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* ---- landing hero ---- */
.display {
  font-family: var(--font-display); font-weight: 700; font-stretch: 80%;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 0.98; letter-spacing: -0.02em;
  margin: 18px 0 18px; max-width: 16ch; color: var(--ink);
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin: 0 0 28px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- tools section ---- */
.tools { padding-block: 8px 70px; }
.section { font-size: 1.6rem; margin: 0 0 16px; }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; text-decoration: none; color: var(--ink); display: block; }
.calc:hover { border-color: var(--ink-2); color: var(--ink); }
.calc:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.calc.soon { opacity: 0.6; }
.calc h3 { font-family: var(--font-body); font-stretch: 100%; font-weight: 600; margin: 0 0 4px; font-size: 1.02rem; letter-spacing: 0; }
.calc p { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; }
.calc .soon-tag { font-size: 0.72rem; color: var(--plum-dark); font-weight: 600; }

/* ---- tool page hero ---- */
.hero { padding-block: 52px 20px; }
.hero h1 { font-weight: 700; font-stretch: 82%; font-size: clamp(2.3rem, 5.4vw, 3.6rem); line-height: 1.0; letter-spacing: -0.02em; margin: 0 0 14px; max-width: 18ch; }
.hero p.lede { font-size: 1.15rem; }

/* ---- tool shell / dropzone ---- */
.tool-shell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 24px; }
.dropzone {
  display: block; border: 2px dashed #ccc3b2; border-radius: var(--radius);
  background: var(--surface-soft); padding: 44px 24px; text-align: center; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--plum); background: var(--plum-soft); }
.dropzone .dz-mark { width: 48px; height: 48px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--stamp); color: #fff; }
.dropzone strong { display: block; font-size: 1.14rem; font-weight: 600; }
.dropzone .dz-hint { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.dropzone input[type="file"] { display: none; }
.dz-filename { margin-top: 14px; font-weight: 600; color: var(--plum-dark); }
.trust-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; margin-top: 16px; }
.trust-line svg { flex: none; }

/* ---- htmx loading ---- */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-flex; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: spin 0.7s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- result ---- */
#result:not(:empty) { margin-top: 30px; }
/* Results appear in place; the highlighter sweep is the only motion. */

/* The answer sheet: white, a stamp-violet edge, the key figure highlighted. */
.verdict { background: var(--sheet); color: var(--ink); border: 1px solid var(--line); border-left: 6px solid var(--stamp); border-radius: var(--radius); padding: 28px 30px 26px; }
.verdict .verdict-eyebrow { color: var(--muted); font-weight: 600; font-size: 0.95rem; margin: 0 0 6px; }
.verdict .verdict-amount { font-family: var(--font-display); font-stretch: 85%; font-weight: 700; font-size: clamp(2.1rem, 6vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
.verdict .verdict-amount em { font-style: normal; }
.verdict .verdict-sub { color: var(--ink-2); margin-top: 12px; font-size: 1.02rem; }

.regimes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.regime { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.regime.is-winner { border-color: var(--stamp); box-shadow: 0 0 0 1px var(--stamp) inset; }
.regime h3 { margin: 0 0 2px; font-size: 1.2rem; }
.regime .winner-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; color: var(--plum-dark); background: var(--plum-soft); border-radius: var(--radius-pill); padding: 3px 10px; margin-bottom: 12px; }
.regime .big { font-family: var(--font-display); font-stretch: 85%; font-weight: 700; font-size: 2rem; letter-spacing: -0.01em; }
.regime .muted-tag { color: var(--muted); font-size: 0.85rem; visibility: hidden; }
.rows { margin-top: 14px; border-top: 1px solid var(--line-2); }
.rows .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 0.95rem; }
.rows .row span:first-child { color: var(--muted); }
.rows .row.payable { font-weight: 600; color: var(--ink); }

/* ---- opportunities ---- */
.opps { margin-top: 28px; }
.opps h2 { font-size: 1.5rem; margin: 0 0 4px; }
.opps .opps-note { color: var(--muted); margin: 0 0 16px; font-size: 0.95rem; max-width: 62ch; }
.opp { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 10px; }
.opp .opp-label { font-weight: 600; }
.opp .opp-detail { color: var(--plum-dark); font-size: 0.92rem; margin-top: 3px; }
.opp .opp-save { color: var(--plum-dark); font-weight: 700; }
.opp .btn { white-space: nowrap; background: var(--sheet); color: var(--stamp); box-shadow: inset 0 0 0 1px var(--plum-line); }
.opp .btn:hover { color: var(--stamp-deep); box-shadow: inset 0 0 0 1px var(--stamp); }

.save-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 26px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.save-box form { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; width: 100%; }
.save-box.saved { background: var(--plum-soft); border-color: var(--plum-line); }
.save-copy { display: flex; flex-direction: column; gap: 2px; }
.save-copy strong { font-size: 1.05rem; }
.save-copy span { color: var(--muted); font-size: 0.92rem; }
.save-actions { display: flex; gap: 10px; }

.disclaimer { color: var(--muted); font-size: 0.82rem; margin-top: 22px; line-height: 1.5; }
.restart { margin-top: 20px; }

/* ---- manual form ---- */
.callout { background: var(--stamp-wash); border: 1px solid var(--plum-line); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--ink); margin-bottom: 20px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.field .hint { color: var(--muted); font-size: 0.82rem; }
.field input, .field select { font: inherit; padding: 11px 12px; border: 1px solid #d3cbbd; border-radius: 6px; background: var(--surface); color: var(--ink); }
.field input:hover, .field select:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus { outline: 2px solid var(--stamp); outline-offset: 0; border-color: var(--stamp); }

.error-box { background: #fbeeeb; border: 1px solid #e6c6bd; border-left: 5px solid var(--danger); border-radius: var(--radius-sm); padding: 16px 18px; color: #7a2c1f; }

/* ---- calculators ---- */
.calc-page { padding-block: 48px 70px; }
.hero-h1 { font-family: var(--font-display); font-weight: 700; font-stretch: 82%; font-size: clamp(2.1rem, 4.8vw, 3.3rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 10px; }
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; align-items: start; }
.calc-field { margin-bottom: 22px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.calc-field label { font-weight: 500; font-size: 0.95rem; }
.calc-input-wrap { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 12px; background: var(--surface-soft); }
.calc-input-wrap .adorn { color: var(--muted); font-size: 0.9rem; }
.calc-num { border: none; background: none; outline: none; font: inherit; font-weight: 600; width: 110px; text-align: right; color: var(--ink); }
.calc-range { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--line); outline: none; }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--plum); cursor: pointer; border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(27,23,18,0.25); }
.calc-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--plum); cursor: pointer; border: 3px solid var(--surface); }

.calc-result { display: flex; flex-direction: column; }
.calc-primary { text-align: center; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.calc-primary-label { color: var(--muted); font-size: 0.92rem; }
.calc-primary-value { font-family: var(--font-display); font-stretch: 85%; font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; display: inline-block; background-image: linear-gradient(var(--mark), var(--mark)); background-repeat: no-repeat; background-size: 100% 0.42em; background-position: 0 88%; padding: 0 0.08em; }
.calc-donut-row { display: flex; align-items: center; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.calc-donut { width: 118px; height: 118px; border-radius: 50%; flex: none; background: conic-gradient(var(--mauve) 0 60%, var(--stamp) 60% 100%); position: relative; }
.calc-donut::after { content: ""; position: absolute; inset: 24px; border-radius: 50%; background: var(--surface); }
.calc-legend2 { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.calc-legend2 .sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.calc-legend2 .sw.a { background: var(--mauve); }
.calc-legend2 .sw.b { background: var(--plum); }
.calc-rows { padding-top: 14px; }
.calc-rows .crow { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 0.95rem; }
.calc-rows .crow span:first-child { color: var(--muted); }
.calc-rows .crow.strong { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.calc-rows .crow.strong span:first-child { color: var(--ink); }
.calc-other { margin-top: 46px; }
.calc-cat { font-size: 1.15rem; color: var(--ink-2); margin: 28px 0 12px; }

/* ---- SplitQR ---- */
.split-page { padding-block: 48px 40px; }
.split-page .hero-h1 em { font-style: normal; }
/* stepper */
.stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.stepper .step { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.stepper .step + .step::before { content: ""; }
.step-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); font-size: 0.8rem; }
.stepper .step.is-active { color: var(--ink); }
.stepper .step.is-active .step-num { background: var(--plum); color: #fff; }
.stepper .step.is-done .step-num { background: var(--plum-soft); color: var(--plum-dark); }
.stepper .step:not(:last-child)::after { content: ""; width: 26px; height: 2px; background: var(--line); border-radius: 2px; margin-left: 2px; }

.scan-note { display: block; margin-top: 8px; font-weight: 600; color: var(--plum-dark); }
.upi-scan { margin-bottom: 4px; }
.scanner { position: relative; max-width: 340px; margin: 0 auto 14px; aspect-ratio: 1 / 1; background: #0d0d0d; border-radius: var(--radius); overflow: hidden; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 16%; border: 3px solid rgba(255, 255, 255, 0.9); border-radius: 18px; pointer-events: none; }
.scan-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; background: rgba(13, 13, 13, 0.55); }
.scan-state { display: flex; flex-direction: column; align-items: center; gap: 12px; color: #f4f1ea; }
.scan-state p { margin: 0; font-size: 0.92rem; max-width: 26ch; line-height: 1.45; color: #e6e2d8; }
.scan-hint { font-size: 0.85rem !important; color: #b9b4a8 !important; }
.scan-badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(138, 79, 116, 0.25); color: var(--mauve); }

.scan-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pill-btn { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 9px 16px; cursor: pointer; }
.pill-btn:hover { border-color: var(--plum); color: var(--plum-dark); }
.pill-btn svg { opacity: 0.75; }

.privacy-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 14px 16px; background: var(--plum-soft); border: 1px solid var(--plum-line); border-radius: var(--radius-sm); color: var(--plum-dark); font-size: 0.9rem; line-height: 1.5; }
.privacy-note svg { flex: none; margin-top: 1px; }
.split-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 30px 0 18px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.split-summary strong { display: block; font-size: 1.05rem; }
.split-summary span { color: var(--muted); font-size: 0.9rem; }
.split-progress { font-weight: 600; color: var(--plum-dark); background: var(--plum-soft); border-radius: var(--radius-pill); padding: 8px 14px; white-space: nowrap; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.qr-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: opacity 0.15s ease; }
.qr-card.is-paid { opacity: 0.5; }
.qr-card.is-paid .qr-img { filter: grayscale(1); }
.qr-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.qr-idx { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.qr-amt { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.qr-img { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px; }
.qr-img svg { display: block; width: 100%; height: auto; }
.qr-actions { display: flex; gap: 8px; margin-top: 14px; }
.qr-actions .btn { flex: 1; padding: 9px 10px; font-size: 0.88rem; }
.qr-card.is-paid .qr-paid-btn { background: var(--plum); color: #fff; }

/* ---- utility tools ---- */
.ifsc-card { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ifsc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; background: var(--plum-soft); border-bottom: 1px solid var(--plum-line); }
.ifsc-head strong { font-size: 1.1rem; }
.ifsc-head span { color: var(--plum-dark); font-weight: 600; }
.ifsc-rows { padding: 4px 22px 14px; }
.irow { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 0.95rem; }
.irow:last-child { border-bottom: none; }
.irow span:first-child { color: var(--muted); }
.cheque-words { margin-top: 20px; background: var(--plum-soft); border: 1px solid var(--plum-line); border-radius: var(--radius); padding: 22px 24px; }
.cheque-label { color: var(--plum-dark); font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.cheque-value { font-family: var(--font-display); font-stretch: 90%; font-weight: 600; font-size: 1.5rem; line-height: 1.3; color: var(--ink); }

/* ---- auth ---- */
.auth-wrap { max-width: 440px; margin: 40px auto 80px; padding: 0 24px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; }
.auth-card h1 { font-weight: 700; font-stretch: 85%; font-size: 2.2rem; margin: 0 0 6px; }
.auth-card .auth-sub { color: var(--muted); margin: 0 0 24px; }
.auth-card .field { margin-bottom: 16px; }
.auth-card .btn-block { margin-top: 8px; }
.auth-alt { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 18px; }
.auth-alt a { color: var(--plum); font-weight: 500; }
.auth-legal { color: var(--muted); font-size: 0.78rem; margin-top: 16px; line-height: 1.5; text-align: center; }

/* ---- legal ---- */
.legal { max-width: 720px; padding-block: 48px 70px; }
.legal .hero-h1 { margin-bottom: 6px; }
.legal-updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 24px; }
.legal h2 { font-size: 1.35rem; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal-note { color: var(--muted); font-size: 0.88rem; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: #b7afa3; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding: 52px 24px 36px; }
.footer-brand .brand { color: #f6f1ea; font-size: 2.1rem; }
.footer-brand .wordmark { --fx-in: #d6a8c5; --fx-out: var(--plum); }
.footer-brand p { color: #a49c90; max-width: 34ch; margin: 14px 0 0; font-size: 0.92rem; line-height: 1.65; }
.footer-col h2 { letter-spacing: 0; line-height: 1.3; color: #fff; font-family: var(--font-display); font-stretch: 90%; font-size: 1rem; font-weight: 600; margin: 4px 0 12px; }
.footer-col a { display: block; color: #b7afa3; text-decoration: none; font-size: 0.92rem; padding: 5px 0; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px; color: #8f877b; font-size: 0.85rem; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; padding: 40px 24px 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .regimes, .field-grid, .tool-hero, .calc-grid, .pw-body, .calc-layout { grid-template-columns: minmax(0, 1fr); }
  .opp { grid-template-columns: 1fr; }
  .opp .btn { width: 100%; }
  .site-nav { gap: 16px; }
  .site-nav a.nav-link { display: none; }
}

/* ---- SEO/AEO content: breadcrumbs, formula, FAQ ---- */
.crumbs {
  font-size: 0.85rem; color: var(--muted);
  margin: 0 0 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--stamp); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: 0.5; }

.calc-explain { margin: 40px 0 8px; max-width: 760px; }
.calc-explain .formula {
  background: var(--sheet); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 0;
  font-size: 0.98rem; line-height: 1.6; color: var(--ink-2);
}

.faq { max-width: var(--maxw); margin: 8px auto 72px; padding: 0 24px; }
.faq .faq-list { max-width: 780px; }
.guide ~ .faq { max-width: 760px; }
.faq .section { margin-bottom: 8px; }
.faq-list { margin: 0; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item dt {
  font-family: var(--font-display); font-stretch: 92%; font-weight: 650; font-size: 1.12rem; color: var(--ink);
  margin: 0 0 8px;
}
.faq-item dd {
  margin: 0; color: var(--ink-2); line-height: 1.7; font-size: 0.96rem;
}

/* ---- Salary slip analyzer ---- */
.alt-line { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }
.form-intro { margin: 0 0 14px; color: var(--muted); }
.form-group-h { font-family: var(--font-display); font-stretch: 90%; font-size: 1.15rem; color: var(--ink); font-weight: 650; margin: 26px 0 12px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.form-group-h:first-of-type { margin-top: 4px; padding-top: 0; border-top: none; }
.tool-shell form .field-grid + .field-grid { margin-top: 16px; }
.tool-shell form > .btn-block { margin-top: 20px; }
.slip-checks { margin: 18px 0; }
.slip-checks ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.6; }
.tds-verdict { border-radius: var(--radius-sm); padding: 14px 16px; line-height: 1.6; margin: 10px 0 14px; background: var(--plum-soft); color: var(--ink-2); }
.tds-verdict.tds-ok { background: #e8f2ea; color: #24432c; }
.tds-verdict.tds-over { background: #eef0f8; color: #2b3456; }
.tds-verdict.tds-under { background: #fbf0e1; color: #6a4414; }
.slip-regimes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.slip-regimes > div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); }
.slip-regimes span { color: var(--muted); font-size: 0.84rem; }
.slip-regimes strong { font-size: 1.15rem; }
.slip-insights { margin: 0; padding-left: 18px; display: grid; gap: 12px; line-height: 1.65; color: var(--ink-2); }
@media (max-width: 640px) { .slip-regimes { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; margin: 4px 0 6px; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--plum); width: 16px; height: 16px; flex: none; }
.btn-google { background: var(--surface); color: var(--ink); border: 1px solid var(--line); margin-top: 0; }
.btn-google:hover { background: var(--surface-soft); color: var(--ink); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.85rem; margin: 18px 0 14px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.site-notice { background: var(--ink); color: var(--canvas-2); text-align: center; padding: 10px 16px; font-size: 0.92rem; }

/* ---- Error pages ---- */
.error-page { padding: 72px 24px 40px; max-width: 760px; }
.error-code { font-family: var(--font-display); font-stretch: 80%; font-weight: 800; font-size: 5.5rem; line-height: 1; color: var(--stamp); margin: 0 0 8px; }
.error-page h1 { font-weight: 700; font-stretch: 85%; font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0 0 12px; }
.error-popular { margin-top: 44px; }
.error-popular h2 { font-size: 1.1rem; margin: 0 0 10px; }
.error-popular ul { margin: 0; padding-left: 20px; line-height: 2; }
.error-popular a { color: var(--plum-dark); }
.twofa-card { max-width: 480px; }
.twofa-steps { padding-left: 20px; margin: 0 0 20px; display: grid; gap: 12px; color: var(--ink-2); line-height: 1.55; }
.twofa-qr { width: 180px; height: 180px; margin: 10px 0 8px; background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.twofa-qr svg { width: 100%; height: 100%; display: block; }
.twofa-key { display: block; margin-top: 4px; font-size: 0.92rem; letter-spacing: 0.08em; word-break: break-all; background: var(--canvas-2); padding: 8px 10px; border-radius: 8px; user-select: all; }

/* ---- Guides ---- */
.guides-index { padding: 48px 24px 24px; }
.guides-index h1, .guide h1 { font-weight: 700; font-stretch: 82%; letter-spacing: -0.02em; line-height: 1.04; }
.guides-index h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 0 0 10px; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; margin-top: 8px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); }
.guide-card:hover { border-color: var(--ink-2); color: var(--ink); }
.guide-card:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.guide-card:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
.guide-card h2 { font-size: 1.15rem; margin: 0; line-height: 1.3; }
.guide-card p { color: var(--muted); margin: 0; font-size: 0.95rem; line-height: 1.55; }
.guide-go { margin-top: auto; padding-top: 6px; color: var(--plum-dark); font-weight: 600; font-size: 0.92rem; }
.guide { max-width: 760px; padding: 40px 24px 8px; }
.guide h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin: 10px 0 8px; }
.guide-meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 22px; }
.guide-body h2 { font-size: 1.3rem; margin: 34px 0 10px; line-height: 1.3; }
.guide-body p, .guide-body li { color: var(--ink-2); line-height: 1.7; }
.guide-body ol, .guide-body ul { padding-left: 22px; }
.guide-body li { margin-bottom: 6px; }
.guide-body a { color: var(--plum-dark); }
.table-scroll { overflow-x: auto; margin: 12px 0; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.guide-table th, .guide-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-table th { font-weight: 600; color: var(--ink-2); font-size: 0.88rem; background: var(--canvas-2); }
.guide-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.guide-cta { margin: 36px 0 12px; padding: 22px 24px; border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--line); border-left: 6px solid var(--stamp); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.guide-cta p { margin: 0; font-family: var(--font-display); font-stretch: 88%; font-weight: 650; font-size: 1.4rem; }
.guide-cta .btn:hover { background: #fff; }
.guide-related { max-width: 760px; padding: 0 24px 40px; }
.guide-related h2 { font-size: 1.1rem; }
.guide-related ul { padding-left: 20px; line-height: 2; }
.guide-related a { color: var(--plum-dark); }


/* ---- Phone menu (public header) ---- */
.m-menu { display: none; position: relative; }
.m-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.m-menu summary::-webkit-details-marker { display: none; }
.m-menu summary:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
.m-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-float); padding: 10px; z-index: 50; display: grid; gap: 2px; }
.m-menu-panel a { padding: 11px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.m-menu-panel a:hover { background: var(--canvas-2); }
.m-menu-panel .btn { margin-top: 6px; color: #fff; }
@media (max-width: 760px) {
  .m-menu { display: block; }
  .site-header .wrap { height: 68px; }
}
@media (max-width: 480px) { .site-nav > .btn { display: none; } }


/* ---- Which ITR checker ---- */
.itr .lede { margin-bottom: 8px; }
.itr-form-q fieldset { border: none; padding: 0; margin: 0 0 26px; min-width: 0; }
.itr-form-q legend { font-weight: 600; font-size: 1.02rem; margin-bottom: 10px; padding: 0; }
.itr-form-q .sub { font-weight: 500; font-size: 0.92rem; margin: 16px 0 8px; }
.itr-form-q .hint { color: var(--muted); font-size: 0.84rem; margin: 8px 0 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-block; padding: 9px 15px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface-soft); font-size: 0.92rem; line-height: 1.35; }
.pill input:checked + span { background: var(--stamp); border-color: var(--stamp); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 2px; }
.ticks { display: grid; gap: 8px; margin-top: 10px; }
.tick { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 0.95rem; line-height: 1.4; }
.tick input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--plum); flex: none; }
.tick small { display: block; color: var(--muted); font-size: 0.82rem; }
.itr-result { display: grid; gap: 16px; margin: 22px 0 8px; outline: none; }
.itr-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.itr-card h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin: 0 0 10px; line-height: 1.2; }
.itr-card ul { margin: 0; padding-left: 20px; color: var(--ink-2); line-height: 1.65; }
.itr-card.itr-must { border-left: 4px solid var(--plum); }
.itr-card.itr-form { border-left: 6px solid var(--stamp); }
.itr-card.itr-form h2 { display: inline; background-image: linear-gradient(var(--mark), var(--mark)); background-repeat: no-repeat; background-size: 100% 0.42em; background-position: 0 88%; animation: mark-sweep 0.55s cubic-bezier(.2,.7,.2,1) 0.1s both; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.itr-card.itr-form h2 + ul, .itr-card.itr-form h2 + p { margin-top: 14px; }
.itr-eyebrow { font-size: 0.95rem; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.itr-note { margin: 12px 0 0; color: var(--muted); font-size: 0.93rem; }
.itr-next-h { font-weight: 600; margin: 18px 0 8px; font-size: 0.9rem; }
.itr-next { display: flex; flex-wrap: wrap; gap: 8px; }
.itr-next a { color: var(--stamp); border: 1px solid var(--plum-line); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.92rem; text-decoration: none; background: var(--stamp-wash); }
.itr-next a:hover { border-color: var(--stamp); color: var(--stamp-deep); }
.itr-small { color: var(--muted); font-size: 0.85rem; margin: 10px 0 0; }
.itr-small a { color: var(--plum-dark); }

/* ---- "For you" hubs ---- */
.hub { max-width: 860px; padding: 40px 24px 8px; }
.hub h1 { font-weight: 700; font-stretch: 82%; font-size: clamp(2.2rem, 5vw, 3.3rem); line-height: 1.02; letter-spacing: -0.02em; margin: 10px 0 10px; }
.hub-facts { display: grid; gap: 14px; margin: 26px 0; }
.hub-fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.hub-fact h2 { font-size: 1.15rem; margin: 0 0 6px; line-height: 1.3; }
.hub-fact p { margin: 0; color: var(--ink-2); line-height: 1.65; }
.hub-tools h2, .hub-soon h2 { font-size: 1.2rem; margin: 30px 0 12px; }
.hub-tools .calc-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.hub-soon ul { padding-left: 20px; color: var(--ink-2); line-height: 1.8; }
.hub-other { margin: 30px 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.hub-other a { text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 7px 14px; font-size: 0.9rem; background: var(--surface); }
.hub-other a:hover { border-color: var(--plum); }

/* ---- Freelancer & business tax calculator ---- */
.bt-form fieldset { border: none; padding: 0; margin: 0 0 8px; min-width: 0; }
.bt-form legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.bt-form .ticks { margin-top: 14px; }
.bt-form .only-44ad { display: none; }
.bt-form:has(input[name="mode"][value="44ad"]:checked) .only-44ad { display: flex; }
.bt-form:has(input[name="mode"][value="actual"]:checked) .only-presumptive { display: none; }
#bt-result:not(:empty) { margin-top: 22px; }
.bt-out { display: grid; gap: 16px; }
.bt-out .callout { margin: 0; }
.bt-out .tool-shell { margin-top: 0; }
.bt-big { display: inline-block; font-family: var(--font-display); font-stretch: 82%; font-weight: 700; font-size: clamp(2.4rem, 7vw, 3.8rem); letter-spacing: -0.02em; line-height: 1.05; margin: 2px 0 12px; }
.bt-sub { margin: 0; opacity: .9; }
.bt-next { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); }
.bt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bt-card h3 { margin: 0 0 12px; font-size: 1.1rem; }
.bt-sched tr.bt-past td { color: var(--muted); }
.bt-sched tr.bt-next td { font-weight: 600; }
.bt-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; color: var(--plum-dark); background: var(--plum-soft); border-radius: var(--radius-pill); padding: 1px 8px; margin-left: 4px; }
.bt-tag-past { color: var(--muted); background: var(--canvas-2); }
.bt-remind h2 { font-size: 1.25rem; margin: 0 0 8px; }
.bt-remind p { color: var(--ink-2); }
.bt-remind .cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .bt-grid { grid-template-columns: 1fr; } }

/* ---- Capital gains from CAS ---- */
.cg-out { display: grid; gap: 16px; margin-top: 22px; }
.cg-out .callout { margin: 0; }
.cg-out .tool-shell { margin-top: 0; }
.cg-year { display: grid; gap: 16px; }
.cg-year + .cg-year { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.cg-h { font-size: 1.4rem; margin: 0; }
.cg-more summary { cursor: pointer; font-weight: 600; }
.cg-more[open] summary { margin-bottom: 12px; }
.cg-sub { margin: 18px 0 6px; font-size: 0.95rem; }
.cg-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.cg-dl .itr-small { margin: 0; }

/* ---- Document tools: rent receipts and GST invoices ---- */
.doc-tool textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); resize: vertical; }
.doc-out:not(:empty) { margin-top: 22px; display: grid; gap: 16px; }
.doc-out .callout, .doc-out .error-box { margin: 0; }
.rr-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.rr-toolbar p { margin: 0; }
.rr-sheet { display: grid; gap: 16px; }
.rr-receipt { background: #fff; color: #111; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 24px; break-inside: avoid; }
.rr-receipt header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid #ddd; padding-bottom: 8px; margin-bottom: 12px; }
.rr-receipt h3 { margin: 0; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; }
.rr-receipt header span { color: #555; font-size: .9rem; }
.rr-receipt p { line-height: 1.7; margin: 0; }
.rr-receipt footer { display: flex; align-items: flex-end; gap: 18px; margin-top: 22px; }
.rr-who { display: flex; flex-direction: column; margin-right: auto; }
.rr-who span { color: #555; font-size: .88rem; }
.rr-stamp { width: 64px; height: 64px; border: 1px dashed #999; display: grid; place-items: center; text-align: center; font-size: .7rem; color: #777; }
.rr-sign { min-width: 150px; border-top: 1px solid #333; padding-top: 4px; text-align: center; font-size: .85rem; color: #555; }
.gi-items { display: grid; gap: 12px; margin-bottom: 12px; }
.gi-row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, .8fr) auto; gap: 10px; align-items: end; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.gi-row input, .gi-row select { min-width: 0; width: 100%; }
.gi-del { width: 40px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.gi-del:hover { color: var(--danger); border-color: var(--danger); }
.gi-form .ticks { margin-top: 14px; }
.gi-invoice { background: #fff; color: #111; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 28px; font-size: .92rem; }
.gi-invoice p { margin: 0 0 3px; }
.gi-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid #111; padding-bottom: 14px; }
.gi-head h3 { margin: 0 0 4px; font-size: 1.2rem; }
.gi-title { text-align: right; }
.gi-title h2 { margin: 0 0 6px; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; }
.gi-parties { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid #ddd; }
.gi-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #666; margin-top: 8px !important; }
.gi-table, .gi-totals { width: 100%; border-collapse: collapse; }
.gi-table { margin: 14px 0; }
.gi-table th, .gi-table td { border-bottom: 1px solid #e3e3e3; padding: 8px 6px; text-align: left; vertical-align: top; }
.gi-table th { font-size: .75rem; text-transform: uppercase; color: #555; }
.gi-table .num, .gi-totals .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gi-foot { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.gi-totals td { padding: 5px 6px; }
.gi-grand td { border-top: 2px solid #111; font-weight: 700; font-size: 1.05rem; }
.gi-small { color: #555; font-size: .82rem; margin-top: 10px !important; }
.gi-sign { text-align: right; margin-top: 30px; }
.gi-sign-line { display: inline-block; min-width: 180px; border-top: 1px solid #333; padding-top: 4px; margin-top: 36px !important; color: #555; }
@media (max-width: 760px) {
  .gi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gi-row .gi-desc { grid-column: 1 / -1; }
  .gi-parties, .gi-foot { grid-template-columns: 1fr; }
  .gi-title { text-align: left; }
  .gi-invoice { padding: 18px; }
}
@page { margin: 14mm; }
@media print {
  .site-header, .site-footer, .site-notice, .no-print, .faq { display: none !important; }
  body, main { background: #fff !important; }
  .doc-tool { padding: 0 !important; max-width: none !important; }
  .doc-out { margin: 0 !important; }
  .rr-receipt, .gi-invoice { border: 1px solid #999; box-shadow: none; }
  .rr-sheet { gap: 12mm; }
  .gi-invoice { border: none; padding: 0; }
}

/* ---- AIS check and senior citizen calculator ---- */
.hub-list { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); line-height: 1.65; }
.ais-how h2 { font-size: 1.15rem; margin: 0 0 8px; }
.ais-how ol { margin: 0; padding-left: 20px; line-height: 1.7; color: var(--ink-2); }
.ais-how a { color: var(--plum-dark); }
.ais-head, .ais-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.ais-head { font-size: .9rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.ais-row { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ais-label { font-weight: 500; font-size: .95rem; }
.ais-row input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); min-width: 0; width: 100%; }
.ais-row input:focus { outline: 2px solid var(--plum); outline-offset: 1px; border-color: transparent; }
.ais-results { display: grid; gap: 12px; }
.ais-res-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ais-res h3 { margin: 0; font-size: 1.05rem; }
.ais-res.ais-ais_higher { border-left: 4px solid var(--plum); }
@media (max-width: 560px) {
  .ais-head { grid-template-columns: 1fr 1fr; position: sticky; top: 0; background: var(--surface); padding: 6px 0; z-index: 1; }
  .ais-head span:first-child { display: none; }
  .ais-row { grid-template-columns: 1fr 1fr; }
  .ais-label { grid-column: 1 / -1; }
}
.cg-shares { margin-top: 28px; }
.cg-shares h2 { font-size: 1.3rem; margin: 0 0 8px; }
.cg-shares > p { color: var(--ink-2); margin: 0 0 16px; }
.cg-more-inputs { margin-top: 14px; }
.cg-more-inputs summary { cursor: pointer; font-weight: 500; color: var(--plum-dark); }

/* ---- ITR filing checklist ---- */
.itr-cta { margin: 16px 0 4px; }
.ck { display: grid; gap: 16px; margin-top: 22px; }
.ck-progress { margin: 0; font-weight: 600; color: var(--plum-dark); }
.ck-step { margin-top: 0; }
.ck-step h2 { font-size: 1.2rem; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.ck-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--stamp); color: #fff; font-size: .95rem; flex: none; font-stretch: 100%; }
.ck-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.ck-list .tick input:checked + span { color: var(--muted); text-decoration: line-through; }
.ck-list a { color: var(--plum-dark); white-space: nowrap; }


/* ---- Home ---- */
.home-hero { padding-block: 56px 40px; }
.home-hero .display { max-width: 20ch; }
.ask { background: var(--sheet); border: 1px solid var(--line); border-left: 6px solid var(--stamp); border-radius: var(--radius); padding: 28px 30px; max-width: 880px; }
.ask-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin: 0; font-family: var(--font-display); font-stretch: 88%; font-weight: 600; font-size: clamp(1.4rem, 3.2vw, 2rem); line-height: 1.3; }
.ask-line label { color: var(--ink-2); }
.ask-money { display: inline-flex; align-items: baseline; gap: 2px; border-bottom: 3px solid var(--stamp); padding: 0 2px; }
.ask-money input, .ask-line select { font: inherit; color: var(--stamp-deep); background: transparent; border: none; padding: 0; }
.ask-money input { width: 8.2ch; font-variant-numeric: tabular-nums; }
.ask-line select { border-bottom: 3px solid var(--stamp); padding-right: 1.2em; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--stamp) 50%), linear-gradient(135deg, var(--stamp) 50%, transparent 50%);
  background-position: calc(100% - 0.55em) 55%, calc(100% - 0.3em) 55%; background-size: 0.25em 0.25em; background-repeat: no-repeat; }
.ask-money input:focus, .ask-line select:focus { outline: none; }
.ask-money:focus-within, .ask-line select:focus-visible { outline: 2px solid var(--stamp); outline-offset: 4px; border-radius: 2px; }
.ask-answer { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.ask-result { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
.ask-result strong { font-family: var(--font-display); font-stretch: 82%; font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ask-sub { margin: 10px 0 0; color: var(--muted); max-width: 64ch; }
.ask-next { margin: 14px 0 0; }
.home-who, .home-goals, .home-promise { padding-block: 36px; }
.who-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.who-list li { border-top: 1px solid var(--line); }
.who-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px 0 18px; text-decoration: none; color: var(--ink); }
.who-list strong { font-family: var(--font-display); font-stretch: 88%; font-weight: 650; font-size: 1.25rem; color: var(--stamp); }
.who-list a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.who-list span { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.home-promise p { max-width: 64ch; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .who-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .home-hero { padding-top: 32px; }
  .ask { padding: 22px 18px; }
  .who-list { grid-template-columns: minmax(0, 1fr); }
}


/* ---- Tool directory, tiles and goal cards ---- */
.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; }
.tools-page { padding-block: 44px 20px; }
.tt-search { display: flex; gap: 10px; max-width: 640px; margin: 4px 0 18px; }
.tt-search-box { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--sheet); border: 1px solid #d3cbbd; border-radius: var(--radius-sm); padding: 0 14px; color: var(--muted); }
.tt-search-box:focus-within { outline: 2px solid var(--plum); outline-offset: 1px; border-color: var(--plum); }
.tt-search-box input { flex: 1; min-width: 0; border: none; background: none; font: inherit; font-size: 1.05rem; padding: 13px 0; color: var(--ink); outline: none; }
.tt-goals { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.tt-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--sheet); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.94rem; }
.tt-chip:hover { border-color: var(--plum); color: var(--plum-dark); text-decoration: none; }
.tt-chip[aria-current="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.tt-chip .ti { flex: none; }
.tt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tt-cell[hidden] { display: none; }
.tt-cell { display: flex; }
.tt { display: flex; flex-direction: column; gap: 6px; width: 100%; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; text-decoration: none; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.tt:hover { border-color: var(--plum); box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none; }
.tt:hover .tt-name { color: var(--plum-dark); }
.tt-name { font-weight: 600; font-size: 1.04rem; line-height: 1.35; }
.tt-line { color: var(--muted); font-size: 0.92rem; line-height: 1.5; flex: 1; }
.tt-how { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 0.78rem; font-weight: 600; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--canvas-2); color: var(--ink-2); }
.tt-how-upload { background: var(--plum-soft); color: var(--plum-dark); }
.tt-how-device { background: #e8f2ea; color: #24432c; }
.tt-section { margin-bottom: 40px; }
.tt-section > h2 { font-size: 1.5rem; margin: 0 0 14px; }
.tt-section-head { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.tt-section-head h2 { font-size: 1.45rem; margin: 0; }
.tt-section-head p { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }
.tt-section-head .tt-more { margin-left: auto; white-space: nowrap; font-weight: 500; font-size: 0.94rem; }
.tt-goal-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--plum-soft); color: var(--plum-dark); }
.tt-count { margin: 0 0 12px; font-weight: 600; color: var(--ink-2); min-height: 1.5em; }
.tt-empty { background: var(--sheet); border: 1px dashed #ccc3b2; border-radius: var(--radius); padding: 26px; }
.tt-empty p { margin: 0 0 14px; }
.home-goals-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.home-goals-head .section { margin: 0; }
.goal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.goal-card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.goal-card .tt-goal-icon { width: 40px; height: 40px; margin-bottom: 12px; }
.goal-card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.goal-card h3 a { color: var(--ink); text-decoration: none; }
.goal-card h3 a:hover { color: var(--plum-dark); text-decoration: underline; }
.goal-card > p { margin: 0 0 12px; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.goal-card ul { list-style: none; margin: 0 0 12px; padding: 0; flex: 1; }
.goal-card li { padding: 7px 0; border-top: 1px solid var(--line-2); font-size: 0.94rem; }
.goal-card li a { color: var(--ink-2); text-decoration: none; }
.goal-card li a:hover { color: var(--plum-dark); text-decoration: underline; }
.goal-more { font-weight: 600; font-size: 0.92rem; }
@media (max-width: 980px) { .tt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .tt-grid, .goal-grid { grid-template-columns: minmax(0, 1fr); }
  .tt-search .btn { padding-inline: 16px; }
  .tt-goals { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .tt-goals::-webkit-scrollbar { display: none; }
  .tt-chip { white-space: nowrap; }
  .tt-section-head { flex-wrap: wrap; }
  .tt-section-head .tt-more { margin-left: 58px; }
}
