/* Generated by scripts/build.mjs. Edit src/, not dist/. */
@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/satoshi-400.woff2") format("woff2");
}
@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/satoshi-500.woff2") format("woff2");
}
@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/satoshi-700.woff2") format("woff2");
}
@font-face {
  font-family: "Anek Bangla";
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url("./assets/fonts/anek-bangla-variable.ttf") format("truetype");
}

/* Tax app design foundations v0.1 — 2026-11-01. */
:root {
  --color-blue-50: #eef4fd;
  --color-blue-100: #dce8ff;
  --color-blue-500: #0055ff;
  --color-blue-600: #0047d6;
  --color-blue-700: #0039ad;
  --color-orange-50: #fff1eb;
  --color-orange-500: #ff6430;
  --color-orange-700: #a83210;
  --color-white: #ffffff;
  --color-ink: #16191b;
  --color-gray-25: #fafbfd;
  --color-gray-50: #f5f7fa;
  --color-gray-100: #e4e8f0;
  --color-gray-300: #8792a6;
  --color-gray-600: #657086;
  --color-gray-800: #384152;
  --color-success: #16734b;
  --color-success-surface: #eaf6ef;
  --color-warning: #925c00;
  --color-warning-surface: #fff7e6;
  --color-danger: #b42332;
  --color-danger-surface: #fff0f2;
  --space-0: 0px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --radius-small: 8px;
  --radius-control: 12px;
  --radius-card: 24px;
  --radius-sheet: 32px;
  --radius-pill: 999px;
  --font-english: "Satoshi", "Anek Bangla", sans-serif;
  --font-bangla: "Anek Bangla", "Satoshi", sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --font-size-caption: 12px;
  --font-size-label: 14px;
  --font-size-body: 16px;
  --font-size-lead: 20px;
  --font-size-title: 24px;
  --font-size-heading: 32px;
  --font-size-page: 40px;
  --font-size-display: 56px;
  --line-height-caption: 20px;
  --line-height-label: 20px;
  --line-height-body: 24px;
  --line-height-lead: 28px;
  --line-height-title: 32px;
  --line-height-heading: 40px;
  --line-height-page: 48px;
  --line-height-display: 64px;
  --size-control: 48px;
  --size-compact-control: 40px;
  --size-target: 44px;
  --size-icon: 20px;
  --size-page-max: 1200px;
  --size-form-max: 560px;
  --motion-fast: 120ms;
  --motion-base: 180ms;
  --motion-sheet: 240ms;
  --motion-ease: cubic-bezier(0.2, 0, 0, 1);
  --shadow-floating: 0 12px 40px rgba(22, 25, 27, 0.1);
  --shadow-none: none;
  --surface-page: var(--color-white);
  --surface-subtle: var(--color-gray-25);
  --surface-card: var(--color-white);
  --surface-brand: var(--color-blue-50);
  --text-primary: var(--color-ink);
  --text-secondary: var(--color-gray-600);
  --text-link: var(--color-blue-500);
  --border-subtle: var(--color-gray-100);
  --border-control: var(--color-gray-300);
  --action-primary: var(--color-blue-500);
  --action-primary-hover: var(--color-blue-600);
  --action-primary-pressed: var(--color-blue-700);
  --action-on-primary: var(--color-white);
  --action-neutral: var(--color-ink);
  --accent: var(--color-orange-500);
  --focus: var(--color-blue-500);
}

* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
  background: #fff;
  color: var(--text-primary);
  font-family: var(--font-english);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button,
a,
label {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
a {
  color: var(--color-blue-500);
  text-underline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-blue-500);
  outline-offset: 4px;
}
main:focus {
  outline: none;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
legend {
  padding: 0;
  width: 100%;
}
.topbar {
  max-width: 1200px;
  margin: auto;
  min-height: 104px;
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}
.brand {
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.brand-mark {
  height: 36px;
  width: 36px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 12px;
  background: var(--color-blue-500);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  padding-bottom: 4px;
}
.brand-mark span {
  position: absolute;
  right: 6px;
  bottom: 3px;
  color: #ffad80;
  font-size: 28px;
}
.header-right {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}
.prototype-label {
  background: var(--color-gray-50);
  padding: 4px 12px;
  border-radius: 999px;
}
.workspace {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 40px 64px;
  display: grid;
  grid-template-columns: 200px minmax(0, 640px);
  gap: 80px;
  min-height: calc(100vh - 192px);
}
.rail {
  padding-top: 8px;
}
.rail-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.step-button {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  text-align: left;
  padding: 8px 0;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}
.step-num {
  display: grid;
  place-items: center;
  height: 28px;
  width: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--color-gray-50);
  font-size: 12px;
}
.step-button.active {
  color: var(--color-blue-500);
}
.step-button.active .step-num {
  background: var(--color-blue-500);
  color: white;
}
.step-button.complete .step-num {
  background: var(--color-blue-50);
  color: var(--color-blue-500);
}
.step-button:disabled {
  opacity: 0.7;
}
.rail-note {
  display: flex;
  gap: 8px;
  font-size: 12px;
  line-height: 20px;
  color: var(--text-secondary);
  margin-top: 72px;
}
.tiny-lock {
  font-size: 20px;
  color: var(--color-blue-500);
}
.rail-note span:not(.tiny-lock) {
  color: var(--text-secondary);
}
.eyebrow {
  color: var(--color-blue-500);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-orange-500);
}
h1 {
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 640px;
}
.intro {
  color: var(--text-secondary);
  line-height: 24px;
  margin-top: 12px;
  max-width: 560px;
}
.page-head {
  margin-bottom: 40px;
}
.form-section {
  margin-bottom: 32px;
}
.question {
  display: block;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 12px;
}
.question small {
  font-weight: 400;
  color: var(--text-secondary);
}
.helper {
  font-size: 12px;
  line-height: 20px;
  color: var(--text-secondary);
  margin-top: 8px;
}
.helper a {
  font-weight: 500;
}
.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.options.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  border: 1px solid var(--color-gray-100);
  border-radius: 16px;
  padding: 16px 20px;
  background: var(--color-gray-25);
  cursor: pointer;
  position: relative;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 120ms,
    border-color 120ms;
}
.option input {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-gray-300);
  background: #fff;
  border-radius: 50%;
  order: 2;
  display: grid;
  place-items: center;
}
.option input:checked {
  border: 6px solid var(--color-blue-500);
}
.option:has(input:checked) {
  background: var(--color-blue-50);
  border-color: var(--color-blue-500);
}
.option:has(input:focus-visible) {
  outline: 2px solid var(--color-blue-500);
  outline-offset: 4px;
}
.option input:focus-visible {
  outline: none;
}
.option:hover {
  border-color: var(--color-gray-300);
}
.option strong {
  font-weight: 500;
  display: block;
}
.option small {
  display: block;
  font-size: 12px;
  line-height: 20px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 4px;
}
.year-options .option {
  min-height: 80px;
}
.year-options strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}
.period-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.period-note span {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-orange-500);
}
.check-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 48px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 14px;
}
.check-line input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-blue-500);
  margin: 0;
  flex: none;
  position: relative;
  top: 1px;
}
.check-line strong {
  font-weight: 500;
}
.check-line small {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 20px;
  margin-top: 4px;
}
.reveal {
  padding: 24px;
  margin-top: 12px;
  border-radius: 20px;
  background: var(--color-gray-25);
  border: 1px solid var(--border-subtle);
}
.reveal .options .option {
  background: white;
}
.reveal .form-section:last-child {
  margin-bottom: 0;
}
.reveal-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.button {
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-decoration: none;
  transition: background 120ms;
}
.primary {
  background: var(--color-blue-500);
  color: #fff;
}
.primary:hover {
  background: var(--color-blue-600);
}
.primary:active {
  background: var(--color-blue-700);
}
.secondary {
  background: white;
  color: var(--text-primary);
  border-color: var(--color-gray-300);
}
.secondary:hover {
  background: var(--color-gray-50);
}
.ghost {
  background: transparent;
  padding-left: 0;
  color: var(--text-secondary);
  font-weight: 500;
}
.next-arrow {
  font-size: 20px;
  line-height: 20px;
}
.subtle-caption {
  font-size: 12px;
  color: var(--text-secondary);
}
.button.full {
  width: 100%;
}
.notice {
  padding: 16px 20px;
  background: var(--color-blue-50);
  border-radius: 16px;
  color: var(--color-blue-700);
  font-size: 14px;
  line-height: 24px;
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.notice.warn {
  background: var(--color-warning-surface);
  color: var(--color-warning);
}
.notice strong {
  font-weight: 500;
}
.disclosure {
  font-size: 12px;
  line-height: 20px;
  color: var(--text-secondary);
  margin-top: 12px;
}
.disclosure summary {
  cursor: pointer;
  color: var(--color-blue-500);
  min-height: 32px;
  padding: 4px 0;
  width: fit-content;
}
.disclosure p {
  margin-top: 8px;
  max-width: 560px;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  min-width: 0;
}
.field label {
  font-size: 14px;
  font-weight: 500;
}
.field input,
.field select {
  border: 1px solid var(--color-gray-300);
  border-radius: 12px;
  min-height: 48px;
  width: 100%;
  min-width: 0;
  background: white;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--text-primary);
}
.field input[aria-invalid="true"] {
  border-color: var(--color-danger);
}
.currency-field {
  position: relative;
}
.currency-field .currency-symbol {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--text-secondary);
  font-family: "Anek Bangla", sans-serif;
}
.currency-field input {
  padding: 20px 20px 20px 52px;
  font-size: 32px;
  height: 80px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.currency-field.compact input {
  height: 56px;
  font-size: 20px;
  padding-block: 12px;
}
.currency-field.compact .currency-symbol {
  font-size: 20px;
}
.field .helper {
  margin-top: 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.amount-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-gray-25);
  border: 1px solid var(--border-subtle);
  padding: 20px 24px;
  border-radius: 16px;
  font-size: 14px;
  margin: 24px 0 32px;
  gap: 16px;
}
.amount-summary strong {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.error-summary {
  background: var(--color-danger-surface);
  border-radius: 12px;
  color: var(--color-danger);
  padding: 16px 20px;
  font-size: 14px;
  margin-bottom: 24px;
}
.error-text {
  color: var(--color-danger);
  font-size: 12px;
  line-height: 20px;
}
.segment {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--color-gray-50);
  margin: 24px 0 32px;
  width: fit-content;
}
.segment button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 8px 24px;
  font-size: 14px;
  color: var(--text-secondary);
}
.segment button[aria-pressed="true"] {
  background: white;
  color: var(--text-primary);
  box-shadow: 0 2px 8px #16191b0a;
}
.adjustment {
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 0;
}
.adjustment:first-of-type {
  padding-top: 0;
}
.adjustment-head {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.small-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--color-blue-50);
  color: var(--color-blue-500);
}
.small-icon.orange {
  color: var(--color-orange-700);
  background: var(--color-orange-50);
}
.small-icon.gray {
  background: var(--color-gray-50);
  color: var(--text-secondary);
}
.adjustment h2 {
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.adjustment-head p {
  font-size: 12px;
  line-height: 20px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.adjustment .options {
  gap: 8px;
}
.adjustment .option {
  padding: 12px 16px;
  min-height: 52px;
}
.muted-box {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--color-gray-25);
  border-radius: 12px;
  font-size: 12px;
  line-height: 20px;
  color: var(--text-secondary);
}
.result-hero {
  padding: 32px;
  border-radius: 24px;
  background: var(--color-blue-50);
  margin-bottom: 20px;
}
.result-label {
  font-size: 14px;
  color: var(--color-gray-800);
}
.money {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.money.large {
  font-size: 56px;
  line-height: 64px;
  margin-top: 12px;
}
.money small {
  font-size: 32px;
  color: var(--color-gray-600);
  font-family: "Anek Bangla", sans-serif;
  margin-right: 8px;
  font-weight: 400;
}
.result-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}
.badge {
  border-radius: 999px;
  padding: 4px 12px;
  background: white;
  color: var(--color-blue-700);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 20px;
}
.badge.warn {
  background: var(--color-warning-surface);
  color: var(--color-warning);
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
  min-width: 0;
}
.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
}
.stat .money {
  font-size: 28px;
  line-height: 36px;
  margin-top: 8px;
}
.stat .money small {
  font-size: 20px;
}
.stat .unknown {
  font-size: 20px;
  letter-spacing: -0.02em;
}
.stat button {
  margin-top: 12px;
}
.text-button {
  background: none;
  border: 0;
  color: var(--color-blue-500);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 0;
  min-height: 36px;
  text-decoration: none;
  cursor: pointer;
}
.result-section {
  margin-top: 40px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-title h2 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.action-card {
  border: 1px solid var(--border-subtle);
  padding: 24px;
  border-radius: 20px;
}
.action-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.action-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin-top: 16px;
}
.action-card p {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-secondary);
  margin-top: 8px;
}
.action-card .button {
  margin-top: 24px;
}
.action-marker {
  font-size: 12px;
  color: var(--color-blue-500);
  display: flex;
  align-items: center;
  gap: 8px;
}
.task-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}
.task-row button {
  border: 0;
  border-radius: 50%;
  background: var(--color-gray-50);
  width: 44px;
  height: 44px;
  flex: none;
  font-size: 20px;
}
.breakdown {
  border-top: 1px solid var(--border-subtle);
  margin-top: 32px;
  padding-top: 12px;
}
.breakdown summary {
  min-height: 56px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 14px;
  list-style: none;
}
.breakdown summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
}
.breakdown[open] summary::after {
  content: "−";
}
.table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.table th {
  text-align: left;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 12px 0;
}
.table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.inputs-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  gap: 24px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}
.inputs-row span:first-child {
  color: var(--text-secondary);
}
.page-footer {
  max-width: 1120px;
  padding: 24px 40px;
  margin: auto;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 12px;
}
.page-footer button {
  color: var(--text-secondary);
}
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 32px 0;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--color-gray-50);
  font-size: 12px;
  color: var(--text-secondary);
}
.inline-tick {
  color: var(--color-success);
  font-size: 12px;
}
dialog {
  border: 0;
  border-radius: 24px;
  padding: 32px;
  max-width: 480px;
  width: calc(100% - 40px);
  color: var(--text-primary);
  box-shadow: var(--shadow-floating);
}
dialog::backdrop {
  background: #16191b66;
}
dialog h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
dialog p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mobile-progress {
  display: none;
}
.action-list {
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-secondary);
}
.action-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.action-list li::before {
  content: "○";
  margin-right: 12px;
  color: var(--color-blue-500);
}
.scenario-box {
  margin-top: 20px;
}
.comparison {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 14px;
}
.comparison strong {
  font-size: 20px;
  font-weight: 500;
}
.is-hidden,
[hidden] {
  display: none !important;
}
.source-note {
  font-size: 12px;
  line-height: 20px;
  color: var(--text-secondary);
  margin-top: 16px;
}
.source-note a {
  color: var(--text-secondary);
}
.footnote {
  font-size: 12px;
  line-height: 20px;
  color: var(--text-secondary);
  margin-top: 20px;
}
.summary-button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 16px 0;
  font-size: 14px;
  text-align: left;
  min-height: 48px;
}
.number-input-small {
  max-width: 180px;
}
.result-subtitle {
  font-size: 12px;
  line-height: 20px;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* Small screens: primary experience. */
.topbar {
  min-height: 80px;
  padding: 20px 24px;
}
.brand {
  font-size: 18px;
}
.country {
  display: none;
}
.workspace {
  display: block;
  padding: 24px 24px 40px;
  min-height: calc(100vh - 160px);
}
.rail {
  display: none;
}
.mobile-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.progress-segment {
  height: 3px;
  background: var(--color-gray-100);
  border-radius: 999px;
  flex: 1;
}
.progress-segment.filled {
  background: var(--color-blue-500);
}
h1 {
  font-size: 32px;
  line-height: 40px;
}
.page-head {
  margin-bottom: 32px;
}
.page-footer {
  padding: 20px 24px;
}
.form-section {
  margin-bottom: 28px;
}
.year-options strong {
  font-size: 20px;
}
.option {
  padding: 16px;
  min-height: 60px;
}
.option small {
  font-size: 12px;
}
.options.three {
  gap: 8px;
}
.options.three .option {
  gap: 8px;
  padding: 12px;
  font-size: 12px;
  min-height: 52px;
}
.options.three .option input {
  flex-basis: 16px;
  width: 16px;
  height: 16px;
}
.options.three .option input:checked {
  border-width: 5px;
}
.actions {
  margin-top: 32px;
  gap: 12px;
}
.actions .button.primary {
  flex: 1;
  max-width: 300px;
}
.actions .subtle-caption {
  display: none;
}
.result-hero {
  padding: 24px;
}
.money.large {
  font-size: 48px;
  line-height: 56px;
}
.stat {
  padding: 20px;
}
.stat .money {
  font-size: 24px;
  line-height: 32px;
}
.reveal {
  padding: 20px;
}
.check-grid {
  grid-template-columns: 1fr;
  gap: 0;
}
.segment button {
  padding-inline: 20px;
}
.dialog-actions .button {
  flex: 1;
}
.intro {
  font-size: 14px;
}
.question {
  font-size: 14px;
}
.result-section {
  margin-top: 32px;
}
@media (max-width: 360px) {
  .topbar {
    padding-inline: 20px;
  }
  .workspace {
    padding-inline: 20px;
  }
  .page-footer {
    padding-inline: 20px;
  }
  .options:not(.three) {
    gap: 8px;
  }
  .option {
    padding: 12px;
    font-size: 12px;
    gap: 8px;
  }
  .option input {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
  }
  .option input:checked {
    border-width: 5px;
  }
  .options.three {
    grid-template-columns: 1fr;
  }
  .options.three .option {
    padding-inline: 16px;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .money.large {
    font-size: 40px;
    line-height: 48px;
  }
  .stat-row {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 20px;
  }
  .currency-field input {
    font-size: 28px;
  }
  .segment {
    width: 100%;
  }
  .segment button {
    padding-inline: 12px;
    flex: 1;
  }
  .header-right {
    gap: 8px;
  }
  .page-footer > span {
    max-width: 150px;
  }
  .button {
    padding-inline: 20px;
  }
  .year-options .option {
    min-height: 88px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .rail,
  .topbar,
  .page-footer,
  .actions,
  button,
  .mobile-progress {
    display: none !important;
  }
  .workspace {
    display: block;
    padding: 0;
    max-width: 100%;
  }
  .breakdown {
    display: block;
  }
  .result-hero {
    break-inside: avoid;
  }
}

@media (min-width: 761px) {
  .topbar {
    min-height: 104px;
    padding: 28px 32px;
  }
  .brand {
    font-size: 20px;
  }
  .country {
    display: inline;
  }
  .workspace {
    display: grid;
    grid-template-columns: 160px minmax(0, 640px);
    gap: 40px;
    padding: 40px 32px;
    min-height: calc(100vh - 192px);
  }
  .rail {
    display: block;
  }
  .mobile-progress {
    display: none;
  }
  h1 {
    font-size: 40px;
    line-height: 48px;
  }
  .page-head {
    margin-bottom: 40px;
  }
  .page-footer {
    padding: 24px 32px;
  }
  .form-section {
    margin-bottom: 32px;
  }
  .option {
    padding: 16px 20px;
    min-height: 60px;
  }
  .options.three {
    gap: 12px;
  }
  .options.three .option {
    gap: 12px;
    padding: 16px 20px;
    font-size: 14px;
    min-height: 60px;
  }
  .options.three .option input {
    flex-basis: 20px;
    width: 20px;
    height: 20px;
  }
  .options.three .option input:checked {
    border-width: 6px;
  }
  .actions {
    margin-top: 40px;
    gap: 16px;
  }
  .actions .button.primary {
    flex: initial;
    max-width: none;
  }
  .actions .subtle-caption {
    display: inline;
  }
  .result-hero {
    padding: 32px;
  }
  .money.large {
    font-size: 56px;
    line-height: 64px;
  }
  .stat {
    padding: 24px;
  }
  .stat .money {
    font-size: 28px;
    line-height: 36px;
  }
  .reveal {
    padding: 24px;
  }
  .check-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
  }
  .segment button {
    padding-inline: 24px;
  }
  .dialog-actions .button {
    flex: initial;
  }
  .intro {
    font-size: 16px;
  }
  .question {
    font-size: 16px;
  }
  .result-section {
    margin-top: 40px;
  }
}
@media (min-width: 1001px) {
  .topbar {
    padding-inline: 40px;
  }
  .workspace {
    grid-template-columns: 200px minmax(0, 640px);
    gap: 80px;
    padding: 56px 40px 64px;
  }
  .page-footer {
    padding-inline: 40px;
  }
}
@media (min-width: 1400px) {
  .workspace {
    padding-top: 64px;
  }
}

/* Bangla is the first-visit language. The mobile layout above is the baseline. */
html[lang="bn"] {
  font-family: var(--font-bangla);
}
html[lang="bn"]
  :is(
    h1,
    h2,
    h3,
    .money,
    .brand,
    .question,
    .year-options strong,
    .stat .money,
    .rail-label
  ) {
  letter-spacing: 0;
}
html[lang="bn"] h1 {
  line-height: 48px;
}
html[lang="bn"] :is(.intro, .question, .notice, .action-card p) {
  line-height: 28px;
}
html[lang="bn"]
  :is(
    .helper,
    .footnote,
    .source-note,
    .result-subtitle,
    .check-line small,
    .option small,
    .adjustment-head p,
    .rail-note,
    .disclosure
  ) {
  line-height: 24px;
}
html[lang="bn"] .option {
  line-height: 24px;
}
html[lang="bn"] .button {
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
}
html[lang="bn"] .rail-label {
  letter-spacing: 0;
  font-weight: 500;
}
html[lang="bn"] .money.large {
  line-height: 72px;
}
[lang="en"] {
  font-family: var(--font-english);
}
.language-switch {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px;
  background: var(--color-gray-50);
  border-radius: 999px;
  flex: none;
}
.language-switch button {
  min-width: 48px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 24px;
  cursor: pointer;
}
.language-switch button[aria-pressed="true"] {
  background: var(--color-ink);
  color: white;
}
.language-switch button[lang="bn"] {
  font-family: var(--font-bangla);
}
.language-switch button[lang="en"] {
  font-family: var(--font-english);
}
@media (max-width: 760px) {
  .topbar {
    padding: 16px 20px;
    gap: 12px;
  }
  .brand {
    font-size: 16px;
    gap: 8px;
    min-width: 0;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 28px;
    flex: none;
  }
  .brand-mark span {
    font-size: 24px;
    right: 5px;
    bottom: 3px;
  }
  .header-right {
    gap: 0;
  }
  .language-switch button {
    min-width: 44px;
    padding-inline: 12px;
  }
  .option {
    font-size: 14px;
  }
  .options.three .option {
    font-size: 14px;
    min-height: 56px;
    padding: 12px;
    gap: 8px;
  }
  .question {
    font-size: 16px;
  }
  .intro {
    font-size: 16px;
    line-height: 24px;
  }
  .text-button,
  .disclosure summary {
    min-height: 44px;
  }
  .stat-row {
    grid-template-columns: 1fr;
  }
  .amount-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .amount-summary strong {
    overflow-wrap: anywhere;
  }
  .actions .button.primary {
    max-width: none;
  }
  .inputs-row {
    flex-wrap: wrap;
    gap: 8px 20px;
  }
  .result-meta {
    gap: 8px;
  }
  .page-footer {
    gap: 16px;
  }
}
@media (max-width: 360px) {
  .options.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .options.three .option {
    padding: 12px 8px;
    gap: 4px;
    font-size: 12px;
  }
  .options.three .option input {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
  }
  .workspace {
    padding-inline: 20px;
  }
  .button {
    padding-inline: 20px;
    gap: 8px;
  }
  html[lang="bn"] .money.large {
    font-size: 40px;
    line-height: 56px;
  }
  .year-options .option {
    min-height: 100px;
  }
  .language-switch button {
    padding-inline: 8px;
  }
}
@media (min-width: 761px) {
  html[lang="bn"] h1 {
    line-height: 56px;
  }
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .rail,
  .topbar,
  .page-footer,
  .actions,
  button,
  .mobile-progress {
    display: none !important;
  }
  .workspace {
    display: block;
    padding: 0;
    max-width: 100%;
  }
  .breakdown {
    display: block;
  }
  .result-hero {
    break-inside: avoid;
  }
}
/* V2: compact mobile form, single-boundary focus, and a distinct dashboard. */
:root {
  --text-secondary: #465268;
  --color-gray-600: #465268;
}
.topbar {
  min-height: 76px;
  padding-block: 12px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.top-back {
  height: 44px;
  width: 44px;
  flex: none;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background: white;
  font-size: 24px;
  line-height: 1;
}
.workspace {
  padding-top: 24px;
}
.page-head {
  margin-bottom: 20px;
}
h1 {
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.02em;
}
html[lang="bn"] h1 {
  line-height: 40px;
}
.intro {
  margin-top: 8px;
  font-size: 16px;
  line-height: 26px;
}
html[lang="bn"] .intro {
  line-height: 28px;
}
.form-section {
  margin-bottom: 20px;
}
.question {
  margin-bottom: 8px;
}
.helper,
.footnote,
.source-note,
.disclosure,
.check-line small,
.option small,
.adjustment-head p,
.result-subtitle,
.stat-label,
.period-note {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-secondary);
}
.form-progress {
  margin-bottom: 16px;
}
.progress-copy {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-secondary);
}
.mobile-progress {
  display: flex;
  margin: 8px 0 0;
  gap: 8px;
}
.progress-segment {
  height: 3px;
  background: var(--color-gray-100);
  border-radius: 999px;
  flex: 1;
}
.progress-segment.filled {
  background: var(--color-blue-500);
}
.option {
  padding: 12px 16px;
  min-height: 56px;
}
.year-options .option {
  min-height: 88px;
}
.year-options strong {
  font-size: 20px;
}
.options.three .option {
  font-size: 14px;
  min-height: 52px;
  padding: 12px;
}
.reveal {
  padding: 20px;
  margin-top: 8px;
}
.divider {
  margin: 20px 0;
}
.adjustment {
  padding: 20px 0;
}
.adjustment-head {
  margin-bottom: 12px;
}
.adjustment h2 {
  font-size: 20px;
  line-height: 28px;
}
.adjustment .form-section {
  margin-bottom: 12px;
}
.segment {
  margin: 8px 0 0;
}
.cadence-block {
  margin-bottom: 20px;
}
.segment button {
  font-size: 16px;
  min-height: 44px;
}
.period-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--color-blue-50);
  border-radius: 12px;
  padding: 8px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}
.period-banner .text-button {
  font-size: 14px;
}
.amount-summary {
  margin: 20px 0;
  padding: 16px 20px;
}
.field {
  margin-bottom: 16px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--color-blue-500);
}
.option:has(input:focus-visible) {
  outline: none;
  border-color: var(--color-blue-500);
  box-shadow: inset 0 0 0 1px var(--color-blue-500);
}
.option input:focus-visible {
  outline: none;
  box-shadow: none;
}
.field input:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--color-blue-500);
  box-shadow: inset 0 0 0 1px var(--color-blue-500);
}
.button.primary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px white;
  border-color: var(--color-blue-500);
}
.language-switch button {
  border: 1px solid transparent;
}
.language-switch button:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: var(--color-blue-500);
}
.language-switch button[aria-pressed="true"]:focus-visible {
  box-shadow: inset 0 0 0 1px white;
}
html[lang="bn"] .money,
html[lang="bn"] .step-num,
html[lang="bn"] .currency-field input,
html[lang="bn"] .num {
  font-variant-numeric: normal;
  font-feature-settings: normal;
  font-kerning: normal;
  letter-spacing: 0;
  line-height: 1.5;
}
.step-num {
  line-height: 28px;
  font-size: 18px;
}
.field input {
  font-variant-numeric: normal;
}
html[lang="bn"] .currency-field input {
  font-family: "Anek Bangla", sans-serif;
}
body[data-view="landing"] .rail,
body[data-view="landing"] #clear-inputs {
  display: none;
}
body[data-view="landing"] .workspace {
  display: block;
  max-width: 1120px;
  min-height: 0;
  padding-top: 40px;
}
body[data-view="landing"] .page-footer {
  margin-top: 32px;
}
.landing-hero {
  max-width: 640px;
}
.landing-eyebrow {
  display: block;
  color: var(--color-blue-500);
  font-size: 14px;
  margin-bottom: 16px;
}
.landing-hero h1 {
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.landing-hero p {
  font-size: 18px;
  line-height: 30px;
  color: var(--text-secondary);
  margin: 20px 0 24px;
  max-width: 560px;
}
.landing-hero .button {
  min-height: 56px;
}
.landing-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 20px;
}
.landing-demo {
  max-width: 640px;
  padding: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  background: var(--color-blue-50);
  margin-top: 32px;
}
.demo-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
}
.demo-bars {
  height: 120px;
  display: flex;
  gap: 12px;
  align-items: end;
  padding-block: 16px;
}
.demo-bars i {
  flex: 1;
  min-width: 0;
  background: var(--color-blue-100);
  height: 35%;
  border-radius: 4px;
}
.demo-bars i:nth-child(2n) {
  height: 50%;
}
.demo-bars i:nth-child(3n) {
  height: 70%;
}
.demo-bars i:nth-child(4n) {
  height: 85%;
  background: var(--color-blue-500);
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid #ccd9ee;
  padding-top: 16px;
}
.demo-grid strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
}
.demo-grid span {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.landing-how {
  margin-top: 48px;
}
.landing-how h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.landing-how > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
}
.landing-how article > span {
  font-size: 14px;
  color: var(--color-blue-500);
}
.landing-how h3 {
  font-size: 18px;
  font-weight: 500;
  margin-top: 8px;
}
.landing-how p,
.landing-note {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 24px;
  margin-top: 8px;
}
.landing-note {
  max-width: 720px;
  margin-top: 32px;
}
body[data-view="result"] .workspace {
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 40px;
}
body[data-view="result"] h1 {
  font-size: 32px;
  line-height: 40px;
}
body[data-view="result"] .mobile-progress {
  display: none;
}
.result-head .eyebrow {
  font-size: 14px;
}
.result-section {
  margin-top: 24px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dashboard-card {
  padding: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  min-width: 0;
}
.card-kicker {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.dashboard-card h2 {
  font-size: 28px;
  line-height: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.dashboard-card .helper {
  margin-top: 8px;
}
.metric-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-secondary);
}
.metric-row strong {
  font-weight: 500;
  color: var(--text-primary);
}
.rebate-plan {
  background: var(--color-blue-50);
}
.dashboard-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.dashboard-actions .button {
  flex: 1;
}
.payment-note {
  margin-top: 12px;
}
.result-hero {
  margin-bottom: 16px;
}
.money.large {
  font-size: 48px;
  line-height: 60px;
}
@media (max-width: 760px) {
  .topbar {
    padding: 10px 20px;
    min-height: 72px;
  }
  .workspace {
    padding: 20px 20px 40px;
  }
  .page-head {
    margin-bottom: 20px;
  }
  .page-head h1 {
    font-size: 26px;
    line-height: 34px;
  }
  html[lang="bn"] .page-head h1 {
    line-height: 38px;
  }
  .form-progress {
    margin-bottom: 12px;
  }
  .form-section {
    margin-bottom: 20px;
  }
  .rail {
    display: none;
  }
  body[data-view="form"] .brand > span:last-child {
    display: none;
  }
  body[data-view="form"] .page-footer {
    display: none;
  }
  body[data-view="form"] .actions .button {
    width: 100%;
    min-height: 52px;
    margin: 0;
  }
  .options.three .option {
    padding: 12px 8px;
    gap: 4px;
  }
  .option small {
    font-size: 14px;
    line-height: 22px;
  }
  .year-options .option {
    min-height: 104px;
  }
  .check-line {
    font-size: 16px;
  }
  .check-line small {
    font-size: 14px;
  }
  .intro {
    font-size: 16px;
  }
  .disclosure summary,
  .text-button {
    font-size: 14px;
    min-height: 44px;
  }
  .reveal {
    padding: 16px;
  }
  .currency-field input {
    font-size: 28px;
    height: 72px;
  }
  .amount-summary strong {
    font-size: 24px;
  }
  .landing-hero h1 {
    font-size: 36px;
    line-height: 44px;
  }
  html[lang="bn"] .landing-hero h1 {
    line-height: 48px;
  }
  .landing-hero p {
    font-size: 16px;
    line-height: 28px;
    margin-top: 16px;
  }
  .landing-hero .button {
    width: 100%;
  }
  .landing-how {
    margin-top: 32px;
  }
  .landing-how > div {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .landing-demo {
    padding: 20px;
  }
  .landing-how h2 {
    font-size: 22px;
  }
  .demo-grid {
    gap: 12px;
  }
  .demo-grid strong {
    font-size: 14px;
  }
  .demo-grid span {
    font-size: 12px;
    line-height: 20px;
  }
  .landing-trust {
    gap: 8px 16px;
  }
  body[data-view="landing"] .workspace {
    padding-top: 28px;
    padding-bottom: 20px;
  }
  body[data-view="result"] .workspace {
    display: block;
    padding-bottom: 40px;
  }
  body[data-view="result"] h1 {
    font-size: 28px;
    line-height: 38px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-card {
    padding: 20px;
  }
  .dashboard-card h2 {
    font-size: 28px;
    line-height: 40px;
  }
  .dashboard-actions {
    flex-direction: column;
  }
  .stat {
    padding: 20px;
  }
  .result-hero {
    padding: 24px;
  }
  .result-meta,
  .result-subtitle {
    font-size: 14px;
  }
  .badge {
    font-size: 14px;
  }
  .action-card {
    padding: 20px;
  }
  .action-marker {
    font-size: 14px;
    line-height: 24px;
  }
  .task-row {
    padding: 16px 0;
  }
  .source-note {
    font-size: 14px;
  }
  .table {
    font-size: 14px;
  }
  .inputs-row {
    font-size: 14px;
  }
  .page-footer {
    font-size: 14px;
  }
  .page-footer > span {
    max-width: 200px;
  }
  .segment {
    width: 100%;
  }
  .segment button {
    flex: 1;
    padding: 10px 16px;
  }
  .form-section:last-child {
    margin-bottom: 0;
  }
}
@media (min-width: 761px) {
  body[data-view="landing"] .workspace main {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px 48px;
    align-items: center;
  }
  .landing-demo {
    margin-top: 0;
  }
  .landing-how,
  .landing-note {
    grid-column: 1/-1;
  }
  .actions .button {
    min-width: 240px;
  }
}
@media (max-width: 360px) {
  .topbar-left {
    gap: 8px;
  }
  .top-back {
    width: 40px;
    height: 44px;
  }
  .brand {
    gap: 8px;
  }
  .brand > span:last-child {
    font-size: 16px;
  }
  .landing-hero h1 {
    font-size: 32px;
    line-height: 40px;
  }
  html[lang="bn"] .landing-hero h1 {
    line-height: 44px;
  }
  .options.three .option {
    font-size: 14px;
  }
  .option {
    font-size: 14px;
  }
  .year-options .option {
    padding: 12px;
    gap: 8px;
    min-height: 116px;
  }
  .year-options strong {
    font-size: 18px;
  }
  .year-options .option input {
    flex-basis: 16px;
  }
  .helper,
  .option small {
    font-size: 14px;
  }
  .demo-grid {
    grid-template-columns: 1fr;
  }
  .demo-grid > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .demo-grid span {
    margin: 0;
  }
  .landing-trust {
    display: grid;
  }
  .amount-summary {
    padding: 16px;
  }
  .result-meta {
    display: block;
  }
  .result-meta > span {
    margin: 0 8px 8px 0;
  }
  .metric-row {
    display: block;
  }
  .metric-row strong {
    display: block;
    margin-top: 4px;
  }
}
/* Text entry receives the same single-border focus for touch and keyboard. */
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-blue-500);
  box-shadow: inset 0 0 0 1px var(--color-blue-500);
}
.demo-grid span {
  font-size: 14px;
  line-height: 24px;
}

/* In-flow navigation and error targets. */
body[data-view="form"] .actions {
  position: static;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border-subtle);
  background: transparent;
}
body[data-view="form"] .actions .button {
  width: auto;
  margin: 0;
  min-height: 52px;
}
body[data-view="form"] .actions .button.primary {
  flex: 1;
  max-width: 300px;
}
body[data-view="form"] .actions .ghost {
  flex: none;
  padding-inline: 12px;
  min-width: 64px;
}
body[data-view="form"] .workspace {
  padding-bottom: 40px;
}
fieldset,
.field,
.cadence-block {
  scroll-margin-top: 24px;
}
.error-text {
  font-size: 14px;
  line-height: 24px;
  margin-top: 8px;
}
.rebate-plan {
  margin: 0 0 20px;
  background: var(--color-blue-50);
}

/* Checkbox types and their amount inputs share a row on mobile. */
.investment-options {
  outline: none;
}
.contribution-list {
  margin-top: 12px;
}
.contribution-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}
.contribution-choice.selected {
  grid-template-columns: minmax(0, 1fr) minmax(132px, 44%);
}
.contribution-choice .check-line {
  align-items: center;
  font-size: 14px;
  line-height: 24px;
  padding: 8px 0;
}
.contribution-choice .field {
  margin: 0;
}
.contribution-value label {
  font-size: 14px;
  color: var(--text-secondary);
}
.contribution-value .currency-field input {
  padding-left: 32px;
  padding-right: 8px;
  font-size: 18px;
  width: 100%;
  min-width: 0;
}
.contribution-value .currency-symbol {
  left: 12px;
  font-size: 18px;
}
.contribution-extra,
.contribution-choice > .error-text {
  grid-column: 1/-1;
}
@media (min-width: 761px) {
  .contribution-choice .check-line {
    font-size: 16px;
  }
  .contribution-value .currency-field input {
    font-size: 20px;
  }
}
/* Final visual dashboard: real numbers, honest scales, one short interpretation. */
body[data-view="result"] .workspace {
  display: block;
  max-width: 1120px;
  padding-top: 32px;
}
body[data-view="result"] .rail {
  display: none;
}
.dashboard-heading h1 {
  font-size: 36px;
  line-height: 48px;
}
.dashboard-heading {
  margin-bottom: 24px;
}
.dashboard-heading .eyebrow {
  margin-bottom: 8px;
}
.result-period {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.result-period > span {
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 14px;
  color: var(--text-secondary);
}
.result-period .text-button {
  margin-left: auto;
}
.primary-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.dashboard-card {
  padding: 28px;
  background: #fff;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 24px;
}
.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.dashboard-card h2 {
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0;
  font-weight: 500;
  margin: 0;
}
.card-number {
  font-size: 40px;
  line-height: 56px;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-top: 16px;
  overflow-wrap: anywhere;
}
html[lang="bn"] .card-number {
  letter-spacing: 0;
  line-height: 1.5;
}
.number-label {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-secondary);
  margin-top: 0;
}
.annual-card {
  background: #f6f9ff;
}
.rebate-plan {
  background: #fff8f2;
  border-color: #ffe2cc;
}
.payment-card {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}
.payment-card .card-topline,
.payment-card .card-number,
.payment-card .number-label,
.payment-card .card-description,
.payment-card > .text-button {
  grid-column: 1;
}
.payment-card .coverage-chart,
.payment-card .missing-chart {
  grid-column: 2;
  grid-row: 1/6;
  align-self: center;
  width: 100%;
}
.payment-card .card-description {
  margin-top: 16px;
}
.status-tag {
  font-size: 12px;
  line-height: 20px;
  border: 1px solid #d6e2ff;
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  color: #384152;
  white-space: nowrap;
}
.status-tag.warm {
  border-color: #ffc6a8;
  color: #9c3b11;
}
.status-tag.muted {
  border-color: #e4e8f0;
}
.comparison-chart {
  margin: 24px 0 0;
}
.chart-line + .chart-line {
  margin-top: 16px;
}
.chart-line-label {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.chart-line-label strong {
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.chart-track {
  height: 12px;
  background: #e9edf4;
  border-radius: 4px;
  overflow: hidden;
}
.chart-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
}
.blue {
  background: #0055ff;
}
.slate {
  background: #8792a6;
}
.orange {
  background: #ff823e;
}
.chart-legend {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 24px;
}
.chart-legend > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.chart-legend strong {
  font-weight: 500;
  white-space: nowrap;
}
.legend-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-secondary);
}
.legend-dot {
  height: 10px;
  width: 10px;
  border-radius: 3px;
  flex: none;
  margin-top: 7px;
}
.card-description {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-secondary);
  margin-top: 20px;
}
.dashboard-card > .text-button,
.card-actions {
  margin-top: 16px;
  align-self: flex-start;
}
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}
.info-button {
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background: transparent;
  font: 500 16px var(--font-english);
  color: var(--text-secondary);
}
.opportunity-equation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border-top: 1px solid #f3d6c3;
  padding-top: 12px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 24px;
}
.opportunity-equation strong {
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
}
.inline-details {
  font-size: 14px;
  line-height: 24px;
  margin-top: 8px;
}
.inline-details summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #6b390e;
}
.inline-details:not([open]) {
  display: none;
}
.inline-details p {
  margin-top: 12px;
}
.stacked-track {
  height: 20px;
  display: flex;
  background: #edf1f7;
  border-radius: 6px;
  overflow: hidden;
}
.stacked-track span {
  display: block;
  height: 100%;
}
.missing-chart {
  display: grid;
  gap: 16px;
  padding: 24px 0;
}
.missing-chart span {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    110deg,
    #e4e8f0,
    #e4e8f0 8px,
    #f9fafc 8px,
    #f9fafc 16px
  );
}
.missing-chart span:last-child {
  width: 65%;
}
.next-step-panel {
  margin: 24px 0 40px;
  background: #16191b;
  border-radius: 24px;
  padding: 28px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  align-items: center;
}
.next-step-panel .eyebrow {
  color: #8fb1ff;
  font-size: 12px;
  margin-bottom: 4px;
}
.next-step-panel h2 {
  font-size: 22px;
  line-height: 32px;
  font-weight: 500;
}
.next-step-panel p {
  color: #d0d5df;
  font-size: 14px;
  line-height: 24px;
  margin-top: 8px;
}
.next-step-panel .dashboard-actions {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 190px;
}
.next-step-panel .button {
  min-height: 48px;
  white-space: nowrap;
}
.next-step-panel .secondary {
  background: transparent;
  color: #fff;
  border-color: #737a86;
}
.next-step-panel .payment-note {
  grid-column: 1/-1;
  font-size: 12px;
  color: #aeb7c6;
}
.next-step-panel #pdf-status:empty {
  display: none;
}
.next-step-panel #pdf-status {
  grid-column: 1/-1;
}
.section-heading {
  font-size: 24px;
  line-height: 36px;
  font-weight: 500;
  margin-bottom: 20px;
}
.dashboard-secondary .dashboard-grid {
  grid-template-columns: 1fr 1fr;
}
.salary-chart {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 24px 0 0;
}
.donut-wrap {
  position: relative;
  width: 144px;
  height: 144px;
  flex: none;
}
.donut-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.donut-center strong {
  font-size: 24px;
  font-weight: 500;
}
.donut-center span {
  font-size: 12px;
  color: var(--text-secondary);
}
.salary-chart .chart-legend {
  flex: 1;
  margin: 0;
}
.salary-chart .chart-legend > div {
  display: block;
}
.salary-chart .chart-legend strong {
  display: block;
  margin-left: 18px;
  margin-top: 4px;
}
.zero-chart {
  margin: 24px 0 0;
  padding: 20px;
  background: #f6f9ff;
  border-radius: 12px;
  text-align: center;
}
.zero-chart > span {
  font-size: 28px;
  color: #0055ff;
}
.zero-chart p {
  font-size: 14px;
  color: var(--text-secondary);
}
.estimate-note {
  font-size: 12px;
  line-height: 24px;
  color: var(--text-secondary);
  margin-top: 20px;
}
.brand > span[lang="en"] {
  font-family: var(--font-english);
}
@media (max-width: 760px) {
  body[data-view="result"] .workspace {
    padding: 20px 20px 32px;
  }
  .dashboard-heading h1 {
    font-size: 28px;
    line-height: 40px;
  }
  .primary-dashboard,
  .dashboard-secondary .dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .dashboard-card {
    padding: 20px;
  }
  .dashboard-card h2 {
    font-size: 18px;
    line-height: 28px;
  }
  .card-number {
    font-size: 36px;
    line-height: 48px;
    margin-top: 12px;
  }
  .payment-card {
    display: flex;
  }
  .payment-card .coverage-chart,
  .payment-card .missing-chart {
    margin-top: 24px;
  }
  .next-step-panel {
    display: block;
    padding: 24px 20px;
    margin: 20px 0 32px;
  }
  .next-step-panel .dashboard-actions {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }
  .next-step-panel .button {
    font-size: 14px;
    padding-inline: 12px;
    gap: 8px;
  }
  .next-step-panel .payment-note {
    margin-top: 12px;
  }
  .salary-chart {
    gap: 16px;
  }
  .donut-wrap {
    width: 128px;
    height: 128px;
  }
  .result-period > span {
    font-size: 12px;
    padding: 4px 10px;
  }
  .card-topline {
    gap: 8px;
  }
  .status-tag {
    font-size: 11px;
    padding-inline: 8px;
  }
  .opportunity-equation {
    display: block;
  }
  .opportunity-equation strong {
    display: block;
    margin-top: 4px;
  }
  .section-heading {
    font-size: 22px;
  }
  .comparison-chart {
    margin-top: 20px;
  }
}
@media (max-width: 360px) {
  .card-number {
    font-size: 32px;
  }
  .salary-chart {
    flex-direction: column;
    align-items: flex-start;
  }
  .salary-chart .chart-legend {
    width: 100%;
  }
  .salary-chart .chart-legend > div {
    display: flex;
  }
  .salary-chart .chart-legend strong {
    margin: 0;
  }
  .next-step-panel .dashboard-actions {
    grid-template-columns: 1fr;
  }
  .card-topline {
    flex-wrap: wrap;
  }
}
/* Tax Koto landing — expansive typography and a product-led visual. */
body[data-view="landing"] {
  background: #fff;
}
body[data-view="landing"] .topbar {
  max-width: 1200px;
  border-bottom: 0;
  min-height: 88px;
}
body[data-view="landing"] .workspace {
  max-width: 1200px;
  padding: 0 40px 40px;
  display: block;
  overflow: clip;
}
body[data-view="landing"] .workspace main {
  display: block;
  max-width: none;
}
body[data-view="landing"] .page-footer {
  max-width: 1120px;
}
.launch-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 64px;
  position: relative;
  isolation: isolate;
}
.launch-hero:before {
  content: "";
  position: absolute;
  width: 760px;
  height: 620px;
  top: -120px;
  right: -340px;
  background: radial-gradient(
    ellipse at 40% 38%,
    #e6efff 0,
    #edf3ff 35%,
    #fff5ed 56%,
    #ffffff00 72%
  );
  z-index: -1;
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 12px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #465268;
}
.hero-eyebrow i {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #ff6430;
}
.hero-copy h1 {
  font-size: 64px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.045em;
  margin-top: 20px;
}
.hero-copy h1 em {
  font-style: normal;
  color: #0055ff;
}
html[lang="bn"] .hero-copy h1 {
  font-size: 60px;
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.hero-intro {
  font-size: 18px;
  line-height: 30px;
  color: #465268;
  max-width: 480px;
  margin-top: 24px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-actions .button {
  font-size: 16px;
  min-height: 56px;
  padding: 14px 28px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #16191b;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
}
.text-link:hover {
  color: #0055ff;
}
.hero-trust {
  display: flex;
  gap: 12px 20px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 24px;
  color: #465268;
  margin-top: 20px;
}
.hero-trust span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.hero-trust i {
  font-style: normal;
  color: #0055ff;
  font-size: 14px;
}
.product-scene {
  position: relative;
  padding: 24px 0 32px;
  min-width: 0;
  scroll-margin-top: 24px;
}
.sample-window {
  position: relative;
  border: 1px solid #e1e7f2;
  background: #fff;
  border-radius: 24px;
  box-shadow:
    0 24px 72px #193d7420,
    0 4px 12px #193d7408;
  transform: rotate(2deg);
  overflow: hidden;
  z-index: 2;
}
.sample-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid #e4e8f0;
}
.sample-brand {
  font:
    700 28px/1 Arial,
    sans-serif;
  background: #0055ff;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  position: relative;
  padding-bottom: 3px;
}
.sample-brand span {
  color: #ff996b;
  position: absolute;
  right: 4px;
  bottom: -1px;
  font-size: 28px;
}
.sample-header strong {
  font: 700 14px var(--font-english);
}
.sample-label {
  font-size: 10px;
  letter-spacing: 0.03em;
  color: #657086;
  margin-left: auto;
}
.sample-body {
  padding: 24px;
}
.sample-kicker {
  font-size: 14px;
  color: #465268;
}
.sample-number {
  font-size: 44px;
  line-height: 64px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-top: 8px;
}
.sample-saving {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #eef4fd;
  color: #0047d6;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
}
.sample-body .comparison-chart {
  margin-top: 20px;
}
.sample-body .chart-line-label {
  font-size: 12px;
}
.sample-body .chart-track {
  height: 8px;
}
.sample-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e4e8f0;
}
.sample-bottom > div > span {
  display: block;
  color: #657086;
  font-size: 11px;
  line-height: 20px;
}
.sample-bottom strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-top: 4px;
}
.scene-orbit {
  position: absolute;
  pointer-events: none;
  border-radius: 36px;
  transform: rotate(-8deg);
}
.scene-orbit.one {
  background: #dce8ff;
  inset: 40px -20px 25px 30px;
}
.scene-orbit.two {
  height: 120px;
  width: 200px;
  right: -28px;
  top: 0;
  border: 1px solid #ffb08b;
  background: #fff0e8;
  transform: rotate(12deg);
}
.floating-insight {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 16px 20px;
  border: 1px solid #e4e8f0;
  border-radius: 16px;
  box-shadow: 0 12px 36px #193d7417;
  background: #fff;
  margin: -8px 24px 0 auto;
  transform: rotate(-2deg);
}
.insight-mark {
  height: 36px;
  width: 36px;
  display: grid;
  place-items: center;
  background: #fff0e8;
  color: #a83210;
  border-radius: 12px;
  font-size: 20px;
}
.floating-insight div > span {
  font-size: 10px;
  line-height: 20px;
  color: #657086;
  display: block;
  letter-spacing: 0.04em;
}
.floating-insight strong {
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  display: block;
}
.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid #e4e8f0;
  border-bottom: 1px solid #e4e8f0;
  padding: 32px 0 36px;
}
.value-index {
  font-size: 12px;
  color: #0055ff;
}
.value-strip h2 {
  font-size: 20px;
  line-height: 30px;
  font-weight: 500;
  margin-top: 8px;
}
.value-strip p {
  font-size: 14px;
  line-height: 26px;
  color: #465268;
  margin-top: 8px;
  max-width: 320px;
}
.clarity-section {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.section-copy h2 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-top: 12px;
}
html[lang="bn"] .section-copy h2 {
  line-height: 1.4;
}
.section-copy p {
  font-size: 16px;
  line-height: 28px;
  color: #465268;
  margin-top: 20px;
  max-width: 420px;
}
.clarity-map {
  border: 1px solid #e4e8f0;
  border-radius: 24px;
  padding: 12px 24px;
  background: #fafbfd;
}
.map-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
}
.map-item + .map-item {
  border-top: 1px solid #e4e8f0;
}
.map-icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.map-icon svg {
  width: 20px;
  height: 20px;
}
.map-icon.blue {
  background: #eef4fd;
  color: #0055ff;
}
.map-icon.orange {
  background: #fff0e8;
  color: #a83210;
}
.map-icon.ink {
  background: #16191b;
  color: #fff;
}
.map-item strong {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}
.map-item p {
  font-size: 14px;
  line-height: 24px;
  color: #465268;
  margin-top: 4px;
}
.how-section {
  background: #eef4fd;
  border: 1px solid #dce8ff;
  border-radius: 28px;
  padding: 40px;
}
.how-section h2 {
  font-size: 32px;
  line-height: 44px;
  font-weight: 500;
  margin-top: 8px;
  letter-spacing: -0.02em;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 32px;
}
.how-grid article > span {
  height: 32px;
  width: 32px;
  border: 1px solid #a5bded;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0047d6;
  font-size: 14px;
}
.how-grid h3 {
  font-size: 18px;
  font-weight: 500;
  margin-top: 16px;
}
.how-grid p {
  font-size: 14px;
  line-height: 26px;
  color: #465268;
  margin-top: 8px;
}
.landing-faq {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  padding: 80px 0;
}
.landing-faq h2 {
  font-size: 32px;
  line-height: 44px;
  font-weight: 500;
  margin-top: 12px;
}
.landing-faq details {
  border-bottom: 1px solid #e4e8f0;
  padding: 8px 0;
}
.landing-faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  min-height: 56px;
  font-size: 16px;
  line-height: 28px;
}
.landing-faq summary > span {
  font-family: var(--font-english);
  font-size: 22px;
  color: #657086;
}
.landing-faq details[open] summary > span {
  transform: rotate(45deg);
}
.landing-faq details p {
  font-size: 14px;
  line-height: 28px;
  color: #465268;
  padding: 0 32px 16px 0;
}
.closing-cta {
  padding: 40px;
  border-radius: 28px;
  background: #0055ff;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.closing-cta:after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -140px;
  height: 320px;
  width: 320px;
  border: 1px solid #6d9cff;
  border-radius: 50%;
  pointer-events: none;
}
.closing-cta > div > span {
  color: #dce8ff;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.closing-cta h2 {
  font-size: 32px;
  line-height: 44px;
  font-weight: 500;
  margin-top: 12px;
  letter-spacing: -0.02em;
}
.closing-cta .button {
  background: #fff;
  color: #0047d6;
  flex: none;
  position: relative;
  z-index: 1;
  font-size: 16px;
  min-height: 56px;
}
.closing-cta .button:hover {
  background: #eef4fd;
}
@media (max-width: 760px) {
  body[data-view="landing"] .topbar {
    min-height: 72px;
    padding: 12px 20px;
  }
  body[data-view="landing"] .workspace {
    padding: 0 20px 24px;
  }
  .launch-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0 32px;
  }
  .launch-hero:before {
    width: 500px;
    height: 560px;
    right: -240px;
    top: 80px;
  }
  .hero-copy h1 {
    font-size: 44px;
    line-height: 1.1;
    max-width: 420px;
    margin-top: 12px;
  }
  html[lang="bn"] .hero-copy h1 {
    font-size: 42px;
    line-height: 1.3;
    letter-spacing: 0;
  }
  .hero-eyebrow {
    font-size: 11px;
    line-height: 20px;
    letter-spacing: 0;
  }
  .hero-intro {
    font-size: 16px;
    line-height: 28px;
    margin-top: 16px;
  }
  .hero-actions {
    gap: 12px 20px;
    margin-top: 24px;
  }
  .hero-actions .button {
    width: 100%;
    min-height: 52px;
  }
  .hero-actions .text-link {
    font-size: 14px;
    min-height: 36px;
  }
  .hero-trust {
    font-size: 12px;
    gap: 4px 12px;
    margin-top: 12px;
  }
  .product-scene {
    padding: 12px 8px 12px 0;
  }
  .sample-window {
    border-radius: 20px;
    transform: rotate(1deg);
  }
  .sample-header {
    padding: 14px 16px;
  }
  .sample-header strong {
    font-size: 13px;
  }
  .sample-label {
    font-size: 10px;
  }
  .sample-body {
    padding: 20px;
  }
  .sample-number {
    font-size: 40px;
    line-height: 56px;
  }
  .sample-bottom {
    gap: 12px;
  }
  .sample-bottom strong {
    font-size: 16px;
  }
  .scene-orbit.one {
    inset: 24px 0 24px 20px;
  }
  .scene-orbit.two {
    right: 4px;
    top: 0;
    width: 160px;
    height: 100px;
  }
  .floating-insight {
    padding: 12px 16px;
    margin: -4px 12px 0 auto;
    gap: 10px;
  }
  .value-strip {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0;
  }
  .value-strip article {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 4px 12px;
  }
  .value-strip h2 {
    font-size: 20px;
    line-height: 30px;
    margin: 0;
  }
  .value-index {
    padding-top: 4px;
  }
  .value-strip p {
    grid-column: 2;
    margin: 0;
    max-width: none;
  }
  .clarity-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0;
  }
  .section-copy h2 {
    font-size: 32px;
  }
  .section-copy p {
    font-size: 16px;
    line-height: 28px;
    margin-top: 12px;
  }
  .clarity-map {
    padding: 4px 20px;
  }
  .map-item {
    padding: 16px 0;
  }
  .map-item strong {
    font-size: 16px;
  }
  .how-section {
    padding: 24px 20px;
    border-radius: 24px;
  }
  .how-section h2 {
    font-size: 26px;
    line-height: 38px;
  }
  .how-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
  }
  .how-grid article {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 4px 12px;
  }
  .how-grid h3 {
    margin: 0;
    line-height: 32px;
  }
  .how-grid p {
    grid-column: 2;
    margin: 0;
  }
  .landing-faq {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 48px 0;
  }
  .landing-faq h2 {
    font-size: 28px;
    line-height: 40px;
  }
  .landing-faq h2 br {
    display: none;
  }
  .closing-cta {
    padding: 28px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    border-radius: 24px;
  }
  .closing-cta h2 {
    font-size: 28px;
    line-height: 40px;
  }
  .closing-cta .button {
    width: 100%;
    min-height: 52px;
  }
  .closing-cta > div > span {
    font-size: 11px;
  }
}
@media (max-width: 360px) {
  html[lang="bn"] .hero-copy h1 {
    font-size: 36px;
  }
  .hero-copy h1 {
    font-size: 38px;
  }
  .sample-label {
    font-size: 9px;
  }
  .sample-header {
    gap: 6px;
    padding-inline: 12px;
  }
  .sample-body {
    padding: 16px;
  }
  .sample-number {
    font-size: 36px;
  }
  .sample-bottom {
    grid-template-columns: 1fr;
  }
  .floating-insight {
    margin-right: 0;
  }
  .hero-trust {
    font-size: 11px;
  }
}

/* Comfortable touch targets and a tablet layout with readable chart labels. */
.info-button {
  width: 44px;
  height: 44px;
}
.brand {
  min-height: 44px;
}
.estimate-note {
  font-size: 14px;
  line-height: 26px;
}
@media (min-width: 761px) and (max-width: 960px) {
  .primary-dashboard {
    grid-template-columns: 1fr;
  }
  .dashboard-secondary .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .payment-card {
    display: flex;
  }
  .payment-card .coverage-chart {
    margin-top: 24px;
  }
}

.scheme-limit {
  display: block;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-secondary);
  margin-top: 4px;
}
/* Reset native figure margins so the payment chart stays inside its card. */
.coverage-chart {
  margin: 24px 0 0;
  min-width: 0;
}
.payment-card > * {
  min-width: 0;
}
.payment-card > .text-button {
  justify-self: start;
  text-align: left;
}

/* Simplified personal profile and open investment fields. */
.question,
.field > label {
  font-weight: 600;
}
html[lang="bn"] .question,
html[lang="bn"] .field > label {
  font-weight: 650;
}
.residency-summary {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-secondary);
  margin: 4px 0 20px 32px;
}
.residency-summary:empty {
  display: none;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2316191B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}
.investment-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #eef1f6;
  border-radius: 16px;
  margin: 8px 0 24px;
}
.investment-tabs button {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 12px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}
.investment-tabs button[aria-pressed="true"] {
  background: white;
  color: var(--text-primary);
  box-shadow: 0 1px 4px #16191b12;
}
.investment-fields {
  display: grid;
  gap: 24px;
}
.investment-fields .field {
  margin: 0;
}
.investment-field > label {
  display: block;
  margin-bottom: 8px;
  line-height: 24px;
  font-size: 16px;
}
.investment-field .helper {
  display: block;
  margin-top: 8px;
}
.investment-field .policy-cover {
  margin-top: 16px;
}
.investment-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: #f5f7fc;
  padding: 16px;
  border-radius: 12px;
  margin-top: 24px;
  font-weight: 600;
}
