/* Wealthy landing page: soft surfaces, clear typography, and restrained color. */

:root {
  color-scheme: light;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --bg-soft: #f6f7fa;
  --border-subtle: #e7ebf2;
  --border-medium: #d9e0eb;
  --text-title: #23344c;
  --text-body: #56657a;
  --text-muted: #6b778b;
  --primary: #3e5f9b;
  --primary-dark: #2d497d;
  --primary-soft: #eef1f8;
  --accent-emerald: #247a62;
  --accent-cyan: #307b92;
  --accent-amber: #93661e;
  --accent-purple: #7960aa;
  --shadow-card: 0 6px 24px rgba(36, 53, 89, 0.035);
  --radius-card: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 128px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: #fff;
  color: var(--text-body);
  font-family: var(--font-main);
  font-size: 0.95rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}
.fa, .fas { font-family: 'Font Awesome 5 Free', 'FontAwesome', sans-serif !important; font-weight: 900 !important; }
.fab { font-family: 'Font Awesome 5 Brands', sans-serif !important; font-weight: 400 !important; }
a { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #7892dc; outline-offset: 4px; }
::selection { background: #dee7fc; color: #233149; }
.text-heading, .text-body-strong { color: var(--text-title) !important; }
.text-muted, .text-secondary { color: var(--text-muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--accent-emerald) !important; }
.text-info { color: var(--accent-cyan) !important; }
.text-warning { color: var(--accent-amber) !important; }
.text-purple { color: var(--accent-purple) !important; }
.font-monospace { font-family: var(--font-main) !important; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1100;
  padding: 10px 18px;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* Navigation */
.landing-header { position: sticky; top: 0; z-index: 1000; }
.top-announcement-strip { background: #edf2f8; color: #50627c; border-bottom: 1px solid #e0e7f0; font-size: 0.75rem; font-weight: 500; }
.announcement-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 30px; }
.announcement-content > span { display: inline-flex; align-items: center; gap: 9px; }
.live-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #34d399; }
.announcement-link { color: var(--primary); font-weight: 600; text-decoration: none; white-space: nowrap; font-size: 0.85rem; }
.announcement-link:hover { color: var(--primary-dark); }
.landing-navbar { padding: 13px 0; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--border-subtle); backdrop-filter: blur(16px); }
.landing-header.scrolled .landing-navbar { box-shadow: 0 6px 24px rgba(36, 53, 89, 0.05); }
.navbar-content { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.landing-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--primary); color: #fff; font-size: 1.1rem; }
.brand-wordmark { display: flex; flex-direction: column; }
.brand-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.065em; color: var(--text-title); line-height: 1.15; }
.brand-period { color: var(--primary); }
.brand-subtext { margin-top: 3px; font-size: 0.72rem; letter-spacing: 0.015em; color: var(--text-body); }
.brand-badge { border: 1px solid var(--border-medium); border-radius: 5px; padding: 2px 7px; color: var(--text-body); font-size: 0.8rem; }
.landing-nav-links { align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.landing-nav-link { color: var(--text-body); text-decoration: none; font-weight: 500; font-size: 0.88rem; white-space: nowrap; padding: 10px 0; }
.landing-nav-link:hover, .landing-nav-link.active { color: var(--primary); }
.landing-nav-link.active { box-shadow: inset 0 -2px var(--primary); }
.landing-nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-sign-in { align-items: center; min-height: 44px; color: var(--text-title); text-decoration: none; font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.nav-sign-in:hover { color: var(--primary); }
.btn-hamburger { width: 42px; height: 42px; border: 1px solid var(--border-medium); border-radius: 9px; background: #fff; color: var(--text-title); align-items: center; justify-content: center; display: flex; cursor: pointer; }
.btn-hamburger:hover { background: var(--bg-soft); }
.mobile-nav-drawer { display: none; max-height: calc(100dvh - 112px); overflow-y: auto; background: #fff; border-bottom: 1px solid var(--border-medium); box-shadow: 0 16px 24px rgba(36, 53, 89, 0.06); }
.mobile-nav-drawer.show { display: block; }
.mobile-nav-list { list-style: none; padding: 0; margin: 0; }
.mobile-nav-link { display: block; border-radius: 8px; color: var(--text-title); text-decoration: none; padding: 10px 12px; font-weight: 500; font-size: 0.9rem; }
.mobile-nav-link:hover { color: var(--primary); background: var(--primary-soft); }

/* Shared actions */
.btn-glow-primary, .btn-glass, .btn-glow-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  cursor: pointer;
}
.btn-glow-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 9px rgba(73, 105, 201, 0.1); }
.btn-glow-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; box-shadow: 0 6px 14px rgba(73, 105, 201, 0.16); }
.btn-glass { background: #fff; border-color: var(--border-medium); color: var(--text-title); }
.btn-glass:hover { background: var(--bg-soft); border-color: #bbc8e3; color: var(--primary); }
.btn-glass .fa { color: var(--primary); }
.btn-glow-emerald { color: #fff; background: var(--accent-emerald); }
.btn-glow-emerald:hover { color: #fff; background: #1a6651; }
.nav-launch { min-height: 43px; font-size: 0.85rem; padding: 10px 16px; white-space: nowrap; }

/* Hero */
.hero-section { position: relative; padding: 46px 0; background: #f6f8fb; border-bottom: 1px solid var(--border-subtle); }
.hero-copy { padding-right: 40px; }
.hero-pill-badge { display: inline-flex; align-items: center; gap: 9px; color: #627594; font-size: 0.85rem; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 23px; }
.pill-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; background: #e9eef9; color: var(--primary); font-size: 0.82rem; }
.hero-headline { color: var(--text-title); font-weight: 700; font-size: clamp(2.5rem, 3.8vw, 3.35rem); line-height: 1.16; letter-spacing: -0.045em; margin: 0 0 24px; }
.hero-accent { color: var(--primary); }
.hero-subtitle { max-width: 470px; font-size: 1rem; line-height: 1.8; color: var(--text-body); margin-bottom: 29px; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 24px; }
.hero-account-note { margin: -8px 0 24px; color: var(--text-body); font-size: 0.88rem; }
.hero-account-note a { color: var(--primary); font-weight: 600; text-decoration: none; }
.hero-account-note a:hover { text-decoration: underline; }
.hero-trust-list { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 0.88rem; color: var(--text-body); }
.hero-trust-list span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust-list .fa { color: #4e917c; font-size: 0.85rem; }
.hero-report-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 19px; color: var(--text-body); font-size: 0.86rem; text-decoration: none; }
.hero-report-link:hover { color: var(--primary); }
.hero-report-link .fa { font-size: 0.82rem; }

/* A clearly labelled, illustrative financial overview */
.finance-preview { border: 1px solid #e0e6f0; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 12px 32px -16px rgba(47, 70, 115, 0.18); }
.preview-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid #edf0f5; }
.preview-heading { display: flex; align-items: center; gap: 10px; }
.preview-logo { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--primary); background: var(--primary-soft); border-radius: 9px; font-size: 0.95rem; }
.preview-heading strong { display: block; font-size: 0.92rem; font-weight: 700; color: var(--text-title); line-height: 1.5; }
.preview-heading div > span { display: block; font-size: 0.84rem; color: var(--text-muted); }
.preview-sample { padding: 4px 10px; border: 1px solid var(--border-subtle); border-radius: 5px; font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; }
.preview-body { padding: 16px 20px; }
.preview-balance-label { display: flex; align-items: center; justify-content: space-between; font-size: 0.86rem; color: var(--text-body); gap: 10px; }
.preview-balance-label > span { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-muted); }
.preview-balance { color: var(--text-title); font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 700; letter-spacing: -0.055em; margin-top: 4px; line-height: 1.6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.preview-balance > span:first-child { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; letter-spacing: 0; margin-right: 4px; }
.balance-decimal { color: #728098; font-size: 0.72em; }
.preview-chart { margin: 12px 0; }
.chart-legend { display: flex; justify-content: space-between; gap: 10px; font-size: 0.84rem; margin-bottom: 12px; color: var(--text-muted); }
.chart-legend > span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--text-body); }
.chart-legend i { width: 6px; height: 6px; background: #7894df; border-radius: 50%; }
.preview-chart svg { display: block; width: 100%; height: 90px; overflow: visible; }
.chart-grid { stroke: #edf0f6; stroke-width: 1; stroke-dasharray: 4 5; fill: none; }
.chart-line { stroke: #7894df; stroke-width: 2.5; fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart-months { display: flex; justify-content: space-between; margin-top: 7px; color: var(--text-muted); font-size: 0.82rem; letter-spacing: 0.05em; }
.preview-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.preview-metrics > div { position: relative; padding: 11px 13px; border: 1px solid var(--border-subtle); border-radius: 10px; background: #fbfcfe; }
.metric-icon { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; font-size: 0.85rem; }
.metric-blue { color: var(--primary); background: #eaf0fb; }
.metric-mint { color: var(--accent-emerald); background: #eaf5f0; }
.preview-metric-label { display: block; color: var(--text-body); font-size: 0.86rem; padding-right: 26px; }
.preview-metrics strong { display: block; margin-top: 6px; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.025em; color: var(--text-title); font-variant-numeric: tabular-nums; }
.preview-metrics strong small { font-size: 0.85rem; font-weight: 500; color: var(--text-body); }
.metric-note { display: block; margin-top: 4px; font-size: 0.84rem; color: var(--text-muted); }
.preview-status { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.status-check { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #eaf5ef; color: var(--accent-emerald); font-size: 0.85rem; flex-shrink: 0; }
.preview-status strong { display: block; color: var(--text-title); font-size: 0.88rem; font-weight: 600; }
.preview-status div > span { display: block; color: var(--text-muted); font-size: 0.85rem; }
.status-badge { margin-left: auto; padding: 4px 9px; border: 1px solid #dcece3; border-radius: 6px; background: #f1f8f4; color: #33725b; font-size: 0.84rem; font-weight: 500; }
.preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 24px; background: #fafbfd; border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 0.85rem; }
.preview-footer .fa { margin-right: 5px; color: var(--primary); }
.preview-footer b { margin: 0 3px; color: #a4afc3; font-weight: 400; }
.preview-caption { display: flex; justify-content: center; align-items: center; gap: 7px; font-size: 0.85rem; margin-top: 17px; color: var(--text-muted); }
.preview-caption .fa { color: #6b8c80; }

/* Platform metrics */
.stats-ribbon { padding: 22px 0; border-bottom: 1px solid var(--border-subtle); background: #fff; }
.stat-item { text-align: center; }
.stat-item + .stat-item { border-left: 1px solid var(--border-subtle); }
.stat-card-inner { padding: 6px 12px; }
.stat-number { font-size: 1.15rem; color: var(--text-title); font-weight: 700; letter-spacing: -0.045em; line-height: 1.4; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 4px; font-size: 0.85rem; color: var(--text-body); }
.text-gradient-blue { color: #4f6baf; }
.text-gradient-emerald { color: #468372; }

/* Section hierarchy */
.section-wrapper { padding: 64px 0; }
.section-badge { display: inline-flex; align-items: center; color: var(--primary); font-size: 0.84rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.section-title { color: var(--text-title); font-size: clamp(1.7rem, 2.65vw, 2.25rem); line-height: 1.3; letter-spacing: -0.04em; font-weight: 700; margin-bottom: 15px; }
.section-desc { max-width: 615px; margin: 0 auto 40px; font-size: 0.95rem; line-height: 1.85; color: var(--text-body); }

/* Section introductions use a consistent reading order on all screens. */
.section-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 64px; align-items: end; margin-bottom: 38px; }
.section-intro .section-badge { grid-column: 1 / -1; justify-self: start; }
.section-intro .section-title { margin-bottom: 0; max-width: 570px; }
.section-intro .section-desc { margin: 0 0 4px; max-width: 460px; font-size: 0.94rem; }
.hero-pill-badge { padding: 0; background: transparent; font-size: 0.75rem; font-weight: 700; }
.preview-example-label { color: var(--text-muted); background: #f7f8fb; border: 1px solid var(--border-subtle); border-radius: 6px; padding: 3px 8px; font-size: 0.7rem; }
#preview_view_gov .preview-balance { white-space: normal; font-size: clamp(1.35rem, 2.1vw, 1.9rem); }
#preview_view_gov .p-3 > .d-flex, #preview_view_fx .p-3 > .d-flex { flex-wrap: wrap; gap: 5px 12px; }
#preview_view_gov .preview-metrics strong { font-size: 1rem; }
.preview-footer { flex-wrap: wrap; }
@media (max-width: 767.98px) {
  .section-intro { grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
  .section-intro .section-badge { margin-bottom: 0; }
  .section-intro .section-desc { margin: 0; max-width: 100%; font-size: 0.9rem; }
}

/* Accounting feature cards */
.feature-card { display: flex; flex-direction: column; height: 100%; padding: 24px; border: 1px solid var(--border-subtle); background: #fff; border-radius: var(--radius-card); transition: border-color 180ms ease, box-shadow 180ms ease; }
.feature-card:hover { border-color: #cbd6e9; box-shadow: 0 12px 30px rgba(36, 53, 89, 0.065); }
.feature-icon-wrapper { width: 46px; height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; margin-bottom: 20px; }
.icon-blue { background: #edf1fb; color: var(--primary); }
.icon-emerald { background: #ecf5ef; color: var(--accent-emerald); }
.icon-amber { background: #fbf4e8; color: var(--accent-amber); }
.icon-cyan { background: #edf5f8; color: var(--accent-cyan); }
.icon-purple { background: #f1eef8; color: var(--accent-purple); }
.icon-rose { background: #fbf0f2; color: #a86078; }
.feature-invariant-tag { font-size: 0.85rem; letter-spacing: 0.05em; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.feature-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-title); margin-bottom: 10px; line-height: 1.5; }
.feature-text { font-size: 0.9rem; color: var(--text-body); line-height: 1.75; margin-bottom: 0; flex-grow: 1; }

/* Currency simulator and forms */
#simulator { background: var(--bg-soft); border-block: 1px solid var(--border-subtle); }
.simulator-box { padding: 32px; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.simulator-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 23px; margin-bottom: 24px; border-bottom: 1px solid var(--border-subtle); }
.simulator-header h4 { font-size: 1.05rem; line-height: 1.5; }
.simulator-header small { font-size: 0.85rem; }
.badge-soft-primary, .badge-soft-success { border-radius: 6px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.015em; padding: 6px 10px; line-height: 1.5; }
.badge-soft-primary { background: #edf1fb; color: var(--primary); border: 1px solid #e0e7f9; }
.badge-soft-success { background: #edf7f1; color: var(--accent-emerald); border: 1px solid #dcece3; }
.form-label-custom { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; color: #54637b; }
.form-control-custom, .form-select-custom { display: block; width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--border-medium); border-radius: 8px; color: var(--text-title); font-size: 0.88rem; background: #fff; min-height: 45px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.form-select-custom { padding-right: 28px; }
.form-control-custom::placeholder { color: #7b879a; }
.form-control-custom:focus, .form-select-custom:focus { border-color: #8299db; box-shadow: 0 0 0 3px rgba(73, 105, 201, 0.1); outline: none; }
textarea.form-control-custom { resize: vertical; }
.input-group .form-control-custom { width: 1%; flex: 1 1 auto; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group-text.custom-addon { background: var(--bg-soft); color: var(--primary); border: 1px solid var(--border-medium); border-right: 0; border-radius: 8px 0 0 8px; padding: 10px 13px; font-size: 0.88rem; }
#calcApp .small { font-size: 0.85rem; }
#sim_rate_display, #sim_lkr_total { font-size: 0.88rem; }
.calc-result-card { height: 100%; padding: 20px; border: 1px solid var(--border-subtle); border-radius: 10px; background: #fbfcfe; }
.calc-result-card > .d-flex { flex-wrap: wrap; gap: 8px; }
.ledger-preview-table { width: 100%; font-size: 0.86rem; line-height: 1.6; margin-top: 16px; }
.ledger-preview-table th { color: var(--text-muted); font-weight: 600; font-size: 0.85rem; padding: 10px 8px; border-bottom: 1px solid var(--border-medium); white-space: nowrap; }
.ledger-preview-table td { padding: 12px 8px; border-bottom: 1px solid var(--border-subtle); color: var(--text-body); }
.ledger-preview-table td:not(:first-child) { white-space: nowrap; }
.ledger-preview-table .account-label { color: var(--text-title); font-size: 0.88rem; }
.ledger-preview-table .dash-cell { color: var(--text-muted); }

/* Setup and workspace entry points */
.workspace-setup { display: flex; gap: 16px; align-items: center; padding: 20px 24px; margin-bottom: 24px; border: 1px solid #dde5ef; border-radius: var(--radius-card); background: #f6f8fb; }
.setup-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid #dce4ef; background: #fff; color: var(--primary); border-radius: 8px; }
.workspace-setup strong { display: block; color: var(--text-title); font-size: 0.92rem; }
.workspace-setup p { margin: 3px 0 0; font-size: 0.85rem; }
.workspace-setup .btn-glass { margin-left: auto; flex-shrink: 0; min-height: 42px; font-size: 0.82rem; padding: 9px 14px; }
#invariants { background: #f8fafc; border-block: 1px solid var(--border-subtle); }
#sim_amount { text-align: right; font-variant-numeric: tabular-nums; }

/* Financial modules */
.module-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 24px; align-items: start; }
.module-tabs { display: flex; flex-direction: column; }
.module-layout > .row { margin: 0; min-width: 0; }
.module-layout > .row > div { width: 100%; padding: 0; }
.module-tabs .arch-tab-btn { text-align: left; border-color: transparent; background: transparent; padding: 14px; font-size: 0.82rem; line-height: 1.55; }
.module-tabs .arch-tab-btn.active { background: var(--primary-soft); border-color: #d4dfed; color: var(--primary-dark); }
.module-tabs .arch-tab-btn .fa { width: 18px; }
#archTabs { gap: 6px; }
.arch-tab-btn { background: var(--bg-soft); color: var(--text-body); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 12px 18px; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
.arch-tab-btn:hover { color: var(--primary); border-color: #c6d2eb; }
.arch-tab-btn.active { color: var(--primary); background: var(--primary-soft); border-color: #ccd7f3; }
.arch-tab-pane { padding: 28px; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-card); }
.arch-tab-pane h3 { font-size: 1.25rem; line-height: 1.5; letter-spacing: -0.025em; }
.arch-tab-pane p { font-size: 0.95rem; line-height: 1.85; }
.arch-tab-pane .list-unstyled { font-size: 0.9rem; line-height: 1.8; }
.arch-tab-pane .font-monospace { font-size: 0.84rem; }

/* Consultation */
#contact { background: #f7f9fc; border-top: 1px solid var(--border-subtle); }
.contact-card, .contact-info-card { padding: 32px; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); height: 100%; box-shadow: var(--shadow-card); }
.contact-info-card { background: #f0f3f8; box-shadow: none; }
.contact-info-card h4 { font-size: 1.05rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 27px; }
.contact-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 37px; height: 37px; border: 1px solid #e0e6f0; background: #fff; color: var(--primary); border-radius: 10px; font-size: 0.9rem; }
.contact-info-item h6 { font-size: 0.88rem; line-height: 1.5; }
.contact-info-item .text-body-strong { font-size: 0.95rem; }
.contact-info-item small { font-size: 0.85rem; }
.contact-info-card > .p-3, .contact-callout-box { font-size: 0.95rem; line-height: 1.6; }
.contact-callout-title { font-size: 1.05rem; font-weight: 700; }
.contact-callout-title .fa { font-size: 1rem; }
.contact-callout-text { font-size: 0.94rem; line-height: 1.65; color: #505f77 !important; }
.contact-card .alert { font-size: 0.92rem; }
.contact-card .col-12.d-flex { flex-wrap: wrap; gap: 15px; }
.contact-card .small { font-size: 0.85rem; }

/* Footer */
.landing-footer { padding: 55px 0 22px; background: #fff; border-top: 1px solid var(--border-subtle); }
.landing-footer p { font-size: 0.88rem; line-height: 1.85; }
.landing-footer .font-monospace { font-size: 0.85rem; }
.footer-heading { color: var(--text-title); font-size: 0.92rem; font-weight: 700; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-body); font-size: 0.88rem; text-decoration: none; }
.footer-links a:hover { color: var(--primary); }
.social-links { display: flex; gap: 8px; }
.social-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--text-body); border: 1px solid var(--border-subtle); border-radius: 8px; font-size: 0.88rem; text-decoration: none; }
.social-btn:hover { color: var(--primary); background: var(--primary-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border-subtle); }
.footer-bottom .small { font-size: 0.85rem; }

/* Fine details and form feedback */
[hidden] { display: none !important; }
.stat-number .fa { display: inline-block; margin-right: 8px; color: #6e829f; font-size: 1rem; }
.stat-label { margin-top: 5px; }
.preview-header, .preview-balance-label, .preview-status { flex-wrap: wrap; }
.preview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.preview-metric-label { min-height: 1.4em; line-height: 1.4; }
.preview-status div { flex: 1; min-width: 130px; }
.chart-months { font-size: 0.78rem; }
.preview-caption { text-align: center; font-size: 0.75rem; }
.hero-pill-badge { text-transform: uppercase; letter-spacing: 0.09em; line-height: 1.65; }
.pill-icon { flex-shrink: 0; }
.field-help { margin: 8px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.field-error { margin: 8px 0 0; font-size: 0.88rem; color: #a13e48; }
.form-control-custom[aria-invalid="true"] { border-color: #c77881; }
#sim_balanced_badge[data-state="invalid"] { background: #fff4e8; color: #876224; border-color: #ead6b9; }
.demo-reset { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 1px solid var(--border-medium); border-radius: 7px; padding: 6px 12px; font-size: 0.85rem; color: var(--text-body); cursor: pointer; min-height: 38px; }
.demo-reset:hover { background: var(--bg-soft); color: var(--primary); }
.simulator-header > div:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#calcApp > .row { --bs-gutter-x: 2rem; }
#sim_rate_display, #sim_lkr_total { overflow-wrap: anywhere; }
#calcApp .col-md-5 > .p-3 > .d-flex { flex-wrap: wrap; gap: 4px 10px; }
.ledger-preview-table { min-width: 370px; }
.ledger-preview-table td { padding-block: 15px; }
.contact-email { color: var(--primary); font-size: 0.9rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-email:hover { text-decoration: underline; }
.contact-card .alert { line-height: 1.7; }
.btn-glow-primary:disabled { opacity: 0.65; cursor: wait; box-shadow: none; }
.social-btn { width: 40px; height: 40px; }
.contact-info-item > div:last-child { min-width: 0; }

/* Responsive layouts */
@media (min-width: 1400px) { .container { max-width: 1200px; } }
@media (max-width: 1199.98px) {
  .hero-copy { padding-right: 12px; }
  .hero-headline { font-size: 3rem; }
  .hero-cta-group .btn-glass, .hero-cta-group .btn-glow-primary { font-size: 0.75rem; padding-inline: 14px; }
  .hero-pill-badge { font-size: 0.75rem; letter-spacing: 0.08em; }
  .preview-body { padding: 20px; }
}
@media (max-width: 991.98px) {
  .module-layout { grid-template-columns: 1fr; gap: 18px; }
  #archTabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-section { padding: 58px 0 45px; }
  .hero-copy { text-align: center; }
  .hero-headline { font-size: clamp(2.65rem, 6.2vw, 3.6rem); }
  .hero-subtitle { margin-inline: auto; max-width: 540px; }
  .hero-cta-group, .hero-trust-list { justify-content: center; }
  .hero-report-link { margin-top: 15px; }
  .finance-preview { max-width: 540px; margin-inline: auto; }
  .preview-balance { font-size: 2.2rem; }
  .section-wrapper { padding: 65px 0; }
  .simulator-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .simulator-box { padding: 24px; }
  .feature-card { padding: 24px; }
  .contact-card, .contact-info-card { padding: 28px; }
  .contact-info-item:last-of-type { margin-bottom: 0; }
}
@media (max-width: 767.98px) {
  .announcement-content { justify-content: center; }
  .announcement-link { display: none; }
  .landing-navbar { padding: 15px 0; }
  .landing-nav-cta { gap: 12px; }
  .stat-item:nth-child(3) { border-left: 0; }
  .stats-ribbon { padding: 26px 0; }
  .stat-number { font-size: 1rem; }
  .feature-card { padding: 24px; }
  .section-desc { font-size: 0.85rem; margin-bottom: 30px; }
  .arch-tab-pane { padding: 25px; }
  #archTabs { display: grid !important; grid-template-columns: 1fr 1fr; }
  .arch-tab-btn { padding: 13px; font-size: 0.8rem; text-align: left; }
  .arch-tab-btn:last-child { grid-column: auto; text-align: left; }
  .calc-result-card { padding: 18px; }
}
@media (max-width: 575.98px) {
  html { scroll-padding-top: 115px; }
  .container { padding-inline: 22px; }
  .announcement-content { min-height: 31px; font-size: 0.82rem; gap: 6px; }
  .announcement-content > span { gap: 6px; }
  .navbar-content { gap: 10px; }
  .brand-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 0.9rem; }
  .landing-brand { gap: 8px; }
  .brand-title { font-size: 1.4rem; }
  .brand-subtext { display: none; }
  .landing-nav-cta { gap: 9px; }
  .nav-launch { font-size: 0.82rem; min-height: 38px; padding: 9px 10px; gap: 7px; }
  .btn-hamburger { width: 36px; height: 38px; }
  .hero-section { padding-top: 42px; }
  .hero-section .row { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2.5rem; }
  .hero-headline { font-size: clamp(2.25rem, 8.8vw, 3rem); line-height: 1.2; margin-bottom: 19px; }
  .hero-pill-badge { font-size: 0.82rem; letter-spacing: 0.025em; gap: 6px; margin-bottom: 18px; }
  .hero-subtitle { font-size: 0.92rem; line-height: 1.85; margin-bottom: 24px; }
  .hero-cta-group { display: grid; gap: 10px; }
  .hero-cta-group a { min-height: 46px; font-size: 0.88rem !important; }
  .hero-trust-list { font-size: 0.82rem; gap: 10px 13px; }
  .hero-report-link { font-size: 0.82rem; }
  .preview-header { padding: 15px; }
  .preview-body { padding: 17px 15px; }
  .preview-heading strong { font-size: 0.85rem; }
  .preview-heading div > span { font-size: 0.82rem; }
  .preview-logo { width: 30px; height: 30px; }
  .preview-sample { font-size: 0.82rem; padding: 3px 6px; }
  .preview-balance { font-size: 1.85rem; }
  .preview-balance-label { font-size: 0.82rem; }
  .preview-balance-label > span { font-size: 0.82rem; }
  .preview-metrics { gap: 9px; }
  .preview-metrics > div { padding: 11px; }
  .preview-metric-label { font-size: 0.82rem; }
  .preview-metrics strong { font-size: 1rem; }
  .metric-icon { width: 22px; height: 22px; right: 8px; top: 10px; font-size: 0.82rem; }
  .metric-note { font-size: 0.82rem; }
  .preview-status { gap: 7px; }
  .preview-status strong { font-size: 0.85rem; }
  .preview-status div > span { font-size: 0.82rem; }
  .status-badge { font-size: 0.82rem; padding: 2px 6px; }
  .preview-footer { padding: 11px 15px; font-size: 0.82rem; flex-wrap: wrap; gap: 4px; }
  .preview-caption { font-size: 0.82rem; }
  .stat-number { font-size: 1rem; }
  .stat-label { font-size: 0.82rem; }
  .section-wrapper { padding: 52px 0; }
  .section-badge { font-size: 0.82rem; }
  .section-title { font-size: 1.65rem; }
  .simulator-box, .contact-card, .contact-info-card { padding: 21px; }
  .simulator-header h4 { font-size: 0.95rem; }
  #calcApp .col-md-5 > .p-3 > .d-flex { flex-wrap: wrap; gap: 4px 8px; }
  .ledger-preview-table { font-size: 0.82rem; min-width: 300px; }
  .ledger-preview-table th { font-size: 0.82rem; }
  .calc-result-card { padding: 13px; }
  .arch-tab-pane { padding: 22px; }
  .arch-tab-pane .p-3 { overflow-wrap: anywhere; }
  .contact-card .col-12.d-flex > button { width: 100%; }
  .footer-bottom { margin-top: 24px; }
  .hero-cta-group { width: 100%; }
  .hero-cta-group a { font-size: 0.88rem !important; }
  .hero-trust-list { font-size: 0.75rem; }
  .form-control-custom, .form-select-custom { font-size: 1rem; }
  .workspace-setup { align-items: flex-start; flex-wrap: wrap; padding: 18px; }
  .workspace-setup .btn-glass { width: 100%; }
  .workspace-setup > div { flex: 1; min-width: 190px; }
  .stat-number .fa { display: block; margin: 0 0 8px; }
  .preview-footer { font-size: 0.75rem; }
  .preview-sample { margin-left: auto; }
  .preview-status .status-badge { margin-left: auto; }
  .hero-headline { letter-spacing: -0.045em; }
  .hero-pill-badge { max-width: 260px; }
  .announcement-content { line-height: 1.5; padding-block: 7px; }
  .announcement-content > span { text-align: center; }
  .btn-hamburger { min-width: 40px; min-height: 44px; }
  .nav-launch { min-height: 44px; }
  .hero-section .row { --bs-gutter-x: 1rem; }
}
@media (max-width: 399.98px) {
  .landing-navbar .brand-icon { display: none; }
  .nav-launch { font-size: 0.7rem; padding-inline: 8px; }
  .nav-launch .fa { display: none; }
  .preview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-metric-label { min-height: 0; }
  .preview-metrics > div { padding: 13px; }
  .preview-metrics strong { font-size: 0.95rem; }
  .preview-header { row-gap: 10px; }
  .preview-balance { font-size: 1.7rem; }
  .arch-tab-btn .fa { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Quick amount presets & visual breakdown */
.quick-amounts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.btn-quick-amt { border: 1px solid var(--border-medium); background: var(--bg-soft); color: var(--text-title); border-radius: 6px; padding: 4px 10px; font-size: 0.72rem; font-weight: 600; cursor: pointer; transition: all 140ms ease; font-family: var(--font-main); font-variant-numeric: tabular-nums; }
.btn-quick-amt:hover, .btn-quick-amt.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.breakdown-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 10px; background: #e2e8f0; }
.breakdown-rev { background: var(--accent-amber); transition: width 200ms ease; }
.breakdown-tax { background: var(--accent-purple); transition: width 200ms ease; }

/* Operational Module Launchpad Cards */
.op-card { display: flex; flex-direction: column; height: 100%; padding: 24px; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); text-decoration: none; transition: all 220ms ease; position: relative; overflow: hidden; box-shadow: var(--shadow-card); }
.op-card:hover { border-color: #a8bad6; box-shadow: 0 6px 18px rgba(36, 53, 89, 0.06); }
.op-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: transparent; transition: background 220ms ease; }
.op-card:hover::before { background: var(--primary); }
.op-icon { width: 44px; height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 16px; transition: transform 220ms ease; }
.op-card:hover .op-icon { background: var(--primary-soft); }
.op-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.op-title { font-size: 1rem; font-weight: 700; color: var(--text-title); margin-bottom: 8px; line-height: 1.4; }
.op-desc { font-size: 0.9rem; color: var(--text-body); line-height: 1.65; margin-bottom: 16px; flex-grow: 1; }
.op-link { font-size: 0.78rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; transition: gap 160ms ease; }
.op-card:hover .op-link { gap: 9px; color: var(--primary-dark); }

/* Interactive preview controls */
.preview-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; flex-basis: 100%; width: 100%; background: var(--bg-soft); padding: 4px; border-radius: 10px; border: 1px solid var(--border-subtle); }
.preview-tab-btn { border: 1px solid transparent; background: transparent; min-height: 38px; padding: 7px 8px; border-radius: 7px; font-size: 0.75rem; font-weight: 600; line-height: 1.5; color: var(--text-muted); cursor: pointer; transition: color 140ms ease, background-color 140ms ease; }
.preview-tab-btn.active { background: #fff; border-color: #e1e6ef; color: var(--primary); box-shadow: 0 2px 5px rgba(36, 53, 89, 0.035); }

/* ==========================================================================
   2026 visual refinement
   Calmer depth, clearer hierarchy, and tidier responsive behaviour.
   Presentation only: markup, copy, and interactions are unchanged.
   ========================================================================== */

:root {
  --shadow-soft: 0 1px 2px rgba(36, 53, 89, 0.04), 0 22px 48px -36px rgba(36, 53, 89, 0.45);
  --shadow-lift: 0 2px 4px rgba(36, 53, 89, 0.05), 0 28px 52px -32px rgba(36, 53, 89, 0.38);
}

/* Actions */
.btn-glow-primary {
  background: linear-gradient(180deg, #48699f 0%, #3a5a92 100%);
  border-color: #3a5a92;
  box-shadow: 0 1px 2px rgba(29, 49, 82, 0.18), 0 8px 18px -12px rgba(45, 73, 125, 0.6);
}
.btn-glow-primary:hover {
  background: linear-gradient(180deg, #405f95 0%, #2e4c80 100%);
  border-color: #2e4c80;
  box-shadow: 0 2px 4px rgba(29, 49, 82, 0.2), 0 12px 24px -12px rgba(45, 73, 125, 0.6);
  transform: translateY(-1px);
}
.btn-glass { background: rgba(255, 255, 255, 0.9); box-shadow: 0 1px 2px rgba(36, 53, 89, 0.04); }
.btn-glass:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -16px rgba(36, 53, 89, 0.5); }
.btn-glow-primary .fa-arrow-right,
.btn-glass .fa-arrow-right,
.op-link .fa-arrow-right,
.hero-report-link .fa-arrow-right,
.announcement-link .fa-arrow-right { transition: transform 180ms ease; }
.btn-glow-primary:hover .fa-arrow-right,
.btn-glass:hover .fa-arrow-right,
.op-card:hover .op-link .fa-arrow-right,
.hero-report-link:hover .fa-arrow-right,
.announcement-link:hover .fa-arrow-right { transform: translateX(3px); }

/* Header and navigation */
.top-announcement-strip { background: linear-gradient(90deg, #eef3f9, #e9eff7 55%, #eef3f9); letter-spacing: 0.005em; }
.live-dot { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16); }
.landing-navbar { background: rgba(255, 255, 255, 0.92); }
.landing-header.scrolled .landing-navbar { box-shadow: 0 12px 32px -20px rgba(35, 52, 76, 0.4); }
.brand-icon {
  background: linear-gradient(150deg, #4a6ba3, #33527f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 4px 10px -5px rgba(45, 73, 125, 0.6);
}
.landing-nav-link { position: relative; }
.landing-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}
.landing-nav-link:hover::after,
.landing-nav-link.active::after { transform: scaleX(1); }
.landing-nav-link.active { box-shadow: none; }
.mobile-nav-drawer .btn-glow-primary,
.mobile-nav-drawer .btn-glass { box-shadow: none; }

/* Hero */
.hero-section {
  padding: 58px 0 54px;
  background:
    radial-gradient(760px 420px at 82% 6%, rgba(62, 95, 155, 0.1), transparent 62%),
    radial-gradient(560px 320px at 4% 98%, rgba(36, 122, 98, 0.055), transparent 68%),
    linear-gradient(180deg, #f7f9fc 0%, #f3f6fb 100%);
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(62, 95, 155, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 95, 155, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(600px 360px at 80% 20%, #000, transparent 76%);
  mask-image: radial-gradient(600px 360px at 80% 20%, #000, transparent 76%);
  opacity: 0.5;
}
.hero-section > .container { position: relative; z-index: 1; }
.hero-copy { padding-right: 48px; }
.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  margin-bottom: 24px;
  border: 1px solid #dfe6f0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 2px rgba(36, 53, 89, 0.05);
  color: #5b6c85;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}
.pill-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(160deg, #edf2fb, #e3ebf9);
  box-shadow: inset 0 1px 0 #fff;
  font-size: 0.75rem;
}
.hero-headline {
  font-size: clamp(2.62rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin-bottom: 22px;
}
.hero-subtitle { max-width: 490px; font-size: 1.02rem; line-height: 1.8; margin-bottom: 30px; }
.hero-cta-group { gap: 12px; margin-bottom: 22px; }
.hero-account-note { margin: -4px 0 22px; }
.hero-trust-list { gap: 10px 18px; }
.hero-trust-list .fa { color: #3f8a72; }
.hero-report-link { margin-top: 20px; }

/* Financial preview */
.finance-preview {
  border-color: #dde5ef;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(36, 53, 89, 0.05), 0 24px 56px -30px rgba(36, 53, 89, 0.34), 0 48px 90px -70px rgba(36, 53, 89, 0.5);
}
.preview-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  padding: 16px 20px 14px;
  background: linear-gradient(180deg, #fff, #fcfdff);
}
.preview-heading { min-width: 0; }
.preview-heading div { min-width: 0; }
.preview-heading strong,
.preview-heading div > span { overflow-wrap: anywhere; }
.preview-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(160deg, #eef3fb, #e5edf9);
  box-shadow: inset 0 1px 0 #fff;
}
.preview-example-label {
  justify-self: end;
  background: #f5f7fb;
  border-color: #e7ebf2;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}
.preview-tabs { grid-column: 1 / -1; background: #f2f5fa; border-color: #e5eaf2; }
.preview-tab-btn { min-height: 36px; border-radius: 8px; font-size: 0.76rem; color: #65748a; }
.preview-tab-btn:hover { color: var(--primary); background: rgba(255, 255, 255, 0.62); }
.preview-tab-btn.active {
  border-color: #dfe6f0;
  color: var(--primary-dark);
  box-shadow: 0 1px 2px rgba(36, 53, 89, 0.06), 0 4px 10px -7px rgba(36, 53, 89, 0.45);
}
.preview-body { padding: 18px 20px 20px; }
.preview-balance { font-size: clamp(1.65rem, 2.5vw, 2.18rem); letter-spacing: -0.06em; }
.preview-chart svg { height: auto; aspect-ratio: 480 / 136; }
.preview-metrics > div { background: #fbfcfe; border-color: #e9edf4; border-radius: 11px; padding: 12px 13px; }
.preview-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}
.preview-status div { min-width: 0; }
.status-badge { margin-left: 0; justify-self: end; background: #f0f7f3; }
.preview-footer { background: linear-gradient(180deg, #fafbfd, #f7f9fc); padding: 14px 20px; row-gap: 6px; }
.preview-caption { font-size: 0.72rem; letter-spacing: 0.01em; }

/* Platform metrics */
.stats-ribbon { padding: 26px 0; background: linear-gradient(180deg, #fff, #fbfcfe); }
.stat-card-inner { padding: 8px 16px; }
.stat-label { margin-top: 6px; font-size: 0.82rem; color: var(--text-muted); }

/* Section rhythm */
.section-wrapper { padding: 76px 0; }
.section-badge {
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid #dfe6f1;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(36, 53, 89, 0.035);
  color: #3d5d94;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.4;
}
.section-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.75;
}
.section-title { font-size: clamp(1.8rem, 2.7vw, 2.3rem); line-height: 1.24; letter-spacing: -0.045em; }
.section-desc { font-size: 0.97rem; line-height: 1.85; }
.section-intro { margin-bottom: 42px; gap: 0 72px; }
.section-intro .section-title { max-width: 600px; }
.section-intro .section-desc { max-width: 470px; }
#invariants { background: linear-gradient(180deg, #f8fafc, #f6f9fc); }
#simulator { background: linear-gradient(180deg, #f7f9fc, #f3f6fa); }

/* Workspace setup strip */
.workspace-setup {
  padding: 22px 24px;
  border: 1px solid #dfe6f1;
  border-left: 3px solid #46679d;
  background: linear-gradient(135deg, #f8fafd, #f2f6fb);
  box-shadow: inset 0 1px 0 #fff;
}
.setup-icon { width: 42px; height: 42px; border-radius: 10px; box-shadow: inset 0 1px 0 #fff; }

/* Operational launchpad cards */
.op-card {
  padding: 26px 24px 22px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 1px 2px rgba(36, 53, 89, 0.03);
}
.op-card:hover {
  transform: translateY(-3px);
  border-color: #c3d0e4;
  box-shadow: 0 18px 34px -22px rgba(36, 53, 89, 0.42), 0 2px 4px rgba(36, 53, 89, 0.04);
}
.op-card::before { opacity: 0; transform: scaleX(0.35); transform-origin: left; transition: opacity 220ms ease, transform 220ms ease, background-color 220ms ease; }
.op-card:hover::before { opacity: 1; transform: scaleX(1); background: var(--primary); }
#card_approval_center:hover::before { background: var(--primary); }
#card_journal_voucher:hover::before { background: var(--accent-emerald); }
#card_sales_invoice:hover::before { background: var(--accent-amber); }
#card_purchase_invoice:hover::before { background: var(--accent-cyan); }
#card_treasury_fx:hover::before { background: var(--accent-purple); }
#card_slfrs_pack:hover::before { background: #a86078; }
.op-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.op-card:hover .op-icon { transform: translateY(-2px); box-shadow: 0 8px 16px -12px rgba(36, 53, 89, 0.55); }
.op-card:hover .op-icon.icon-blue { background: #edf1fb; }
.op-card:hover .op-icon.icon-emerald { background: #ecf5ef; }
.op-card:hover .op-icon.icon-amber { background: #fbf4e8; }
.op-card:hover .op-icon.icon-cyan { background: #edf5f8; }
.op-card:hover .op-icon.icon-purple { background: #f1eef8; }
.op-card:hover .op-icon.icon-rose { background: #fbf0f2; }
.op-tag { font-size: 0.68rem; letter-spacing: 0.1em; }
.op-title { font-size: 1.02rem; letter-spacing: -0.01em; }
.op-desc { font-size: 0.9rem; line-height: 1.7; }
.op-link { font-size: 0.8rem; }

/* Control cards carry their module accent */
.card-theme-blue { --feature-accent: #3e5f9b; }
.card-theme-emerald { --feature-accent: #247a62; }
.card-theme-amber { --feature-accent: #93661e; }
.card-theme-cyan { --feature-accent: #307b92; }
.card-theme-purple { --feature-accent: #7960aa; }
.card-theme-rose { --feature-accent: #a86078; }
.feature-card {
  position: relative;
  overflow: hidden;
  padding: 26px 24px;
  background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--feature-accent, #3e5f9b) 0%, rgba(255, 255, 255, 0) 72%);
  opacity: 0.9;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: #cbd6e9;
  box-shadow: 0 20px 40px -28px rgba(36, 53, 89, 0.42);
}
.feature-icon-wrapper { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7); transition: transform 200ms ease, box-shadow 200ms ease; }
.feature-card:hover .feature-icon-wrapper { transform: translateY(-1px); box-shadow: 0 8px 18px -14px rgba(36, 53, 89, 0.55); }
.feature-invariant-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.11em; }
.feature-title { font-size: 1.12rem; }
.feature-text { font-size: 0.91rem; line-height: 1.72; }

/* Connected modules */
.module-layout { grid-template-columns: 262px minmax(0, 1fr); gap: 22px; }
.module-tabs { padding: 8px; background: #f6f8fb; border: 1px solid var(--border-subtle); border-radius: 14px; }
#archTabs { gap: 4px; }
.module-tabs .arch-tab-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #5b6b81;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.module-tabs .arch-tab-btn .fa { width: 18px; flex: 0 0 18px; text-align: center; color: #6e829f; font-size: 0.9rem; transition: color 160ms ease; }
.module-tabs .arch-tab-btn:hover { background: rgba(255, 255, 255, 0.75); border-color: transparent; color: var(--primary); }
.module-tabs .arch-tab-btn.active {
  background: #fff;
  border-color: #dde5f0;
  color: var(--primary-dark);
  box-shadow: inset 3px 0 0 var(--primary), 0 6px 16px -13px rgba(36, 53, 89, 0.55);
}
.module-tabs .arch-tab-btn.active .fa { color: var(--primary); }
.arch-tab-pane {
  padding: 32px;
  border-color: #e3e9f2;
  box-shadow: 0 1px 2px rgba(36, 53, 89, 0.03), 0 22px 46px -38px rgba(36, 53, 89, 0.5);
}
.arch-tab-pane h3 { letter-spacing: -0.03em; }
.arch-tab-pane .p-3.rounded-3 { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85); }

/* Simulator */
.simulator-box { padding: 34px; border-color: #e3e9f2; box-shadow: var(--shadow-soft); }
.simulator-header h4 .fa-calculator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary-soft);
  font-size: 0.95rem;
  vertical-align: middle;
}
.badge-soft-primary { letter-spacing: 0.06em; }
.form-label-custom { color: #4f5f76; }
.form-control-custom, .form-select-custom { border-color: #d7dfea; }
.form-control-custom:focus, .form-select-custom:focus { border-color: #7f9cbd; box-shadow: 0 0 0 3px rgba(62, 95, 155, 0.12); }
.calc-result-card { padding: 22px; background: linear-gradient(180deg, #fbfcfe, #f8fafd); border-color: #e6ecf4; }
.ledger-preview-table th { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.btn-quick-amt { background: #fff; border-color: #dfe6f0; border-radius: 7px; padding: 5px 10px; }
.btn-quick-amt:hover { background: var(--primary-soft); border-color: #c6d3e6; color: var(--primary); }
.btn-quick-amt.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 10px -7px rgba(45, 73, 125, 0.8); }
.breakdown-bar { height: 8px; border-radius: 4px; }

/* Contact */
.contact-card { padding: 34px; border-color: #e3e9f2; box-shadow: var(--shadow-soft); }
.contact-info-card {
  background: linear-gradient(165deg, #eff3f9 0%, #e9eff7 60%, #eef3f9 100%);
  border-color: #dfe6f0;
}
.contact-info-item small { display: block; margin-top: 3px; font-size: 0.82rem; line-height: 1.55; }
.contact-icon { width: 40px; height: 40px; border-radius: 11px; box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(36, 53, 89, 0.04); }
.contact-info-card .contact-callout-box {
  background: #fff !important;
  border: 1px solid #dce5f1 !important;
  border-left: 3px solid var(--primary) !important;
  border-radius: 10px !important;
  padding: 16px 18px !important;
  box-shadow: inset 0 1px 0 #fff;
}
.contact-callout-title { font-size: 1rem; }
.contact-callout-text { font-size: 0.9rem; line-height: 1.6; }
.contact-card .alert { border-radius: 10px; }

/* Footer */
.landing-footer { padding: 60px 0 24px; background: linear-gradient(180deg, #fbfcfe, #fff 62%); }
.footer-heading { font-size: 0.74rem; letter-spacing: 0.11em; text-transform: uppercase; color: #5a6a80; margin-bottom: 18px; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { display: inline-block; transition: color 160ms ease, transform 160ms ease; }
.footer-links a:hover { transform: translateX(2px); }
.social-btn { background: #fff; box-shadow: 0 1px 2px rgba(36, 53, 89, 0.03); }
.social-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -10px rgba(36, 53, 89, 0.5); }

/* Responsive refinements */
@media (min-width: 1200px) {
  .stat-number { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.3rem; }
  .stat-number .fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    border-radius: 9px;
    background: #eff3fa;
    color: #4568a1;
    font-size: 0.9rem;
  }
  .stat-item:nth-child(2n) .stat-number .fa { background: #ecf5f0; color: #2e7a63; }
  .stat-label { font-size: 0.84rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .stat-number { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 1.08rem; }
  .stat-number .fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    border-radius: 8px;
    background: #eff3fa;
    color: #4568a1;
    font-size: 0.82rem;
  }
  .stat-item:nth-child(2n) .stat-number .fa { background: #ecf5f0; color: #2e7a63; }
}
@media (max-width: 1199.98px) {
  .hero-copy { padding-right: 12px; }
  .hero-headline { font-size: 2.9rem; line-height: 1.12; }
  .arch-tab-pane .row { --bs-gutter-y: 1.25rem; }
  .arch-tab-pane .row > [class^="col-md-"],
  .arch-tab-pane .row > [class*=" col-md-"] { flex: 0 0 100%; width: 100%; max-width: 100%; }
}
@media (max-width: 991.98px) {
  .section-wrapper { padding: 64px 0; }
  .section-title { font-size: clamp(1.8rem, 4.4vw, 2.3rem); }
  .hero-headline { font-size: clamp(2.6rem, 6.2vw, 3.5rem); }
  .simulator-box { padding: 24px; }
  .contact-card, .contact-info-card { padding: 28px; }
  .module-layout { grid-template-columns: 1fr; gap: 18px; }
  .module-tabs .arch-tab-btn { min-height: 56px; }
  .preview-balance { font-size: 2.1rem; }
}
@media (max-width: 767.98px) {
  .section-wrapper { padding: 58px 0; }
  .section-intro { margin-bottom: 30px; }
  .op-card { padding: 24px; }
  .feature-card { padding: 24px; }
  .arch-tab-pane { padding: 25px; }
  .simulator-header { gap: 12px; }
  .landing-footer { padding: 48px 0 22px; }
}
@media (max-width: 575.98px) {
  .section-wrapper { padding: 54px 0; }
  .section-title { font-size: 1.72rem; letter-spacing: -0.04em; }
  .hero-section { padding: 44px 0 46px; }
  .hero-headline { font-size: clamp(2.3rem, 9vw, 3rem); line-height: 1.14; margin-bottom: 18px; }
  .hero-pill-badge { padding: 4px 10px 4px 4px; font-size: 0.68rem; letter-spacing: 0.06em; margin-bottom: 18px; }
  .hero-subtitle { font-size: 0.94rem; line-height: 1.8; margin-bottom: 24px; }
  .hero-cta-group { grid-template-columns: 1fr; justify-content: stretch; gap: 10px; }
  .hero-cta-group > a { width: 100%; }
  .hero-trust-list { font-size: 0.8rem; gap: 10px 14px; }
  .preview-header { padding: 15px 15px 13px; }
  .preview-body { padding: 16px 15px 18px; }
  .preview-balance { font-size: 1.8rem; }
  .preview-metric-label { min-height: 2.6em; }
  .preview-status { gap: 8px; }
  .preview-footer { padding: 12px 15px; }
  .stat-number .fa {
    display: block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    margin: 0 auto 6px;
    border-radius: 8px;
    background: #eff3fa;
    color: #4568a1;
    font-size: 0.78rem;
    text-align: center;
  }
  .stat-item:nth-child(2n) .stat-number .fa { background: #ecf5f0; color: #2e7a63; }
  .section-badge { font-size: 0.66rem; padding: 4px 9px; }
  .simulator-box, .contact-card, .contact-info-card { padding: 21px; }
  .calc-result-card { padding: 15px; }
  .module-tabs { padding: 6px; }
  .arch-tab-pane { padding: 22px; }
  .workspace-setup { padding: 18px; }
  .footer-heading { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-glow-primary:hover,
  .btn-glass:hover,
  .op-card:hover,
  .feature-card:hover,
  .social-btn:hover { transform: none; }
  .landing-nav-link::after,
  .op-card::before { transition: none; }
}

/* ------------------------------------------------------------------
   Landing polish pass
   ------------------------------------------------------------------ */

/* Consultation band reads as its own section, not a continuation of the simulator */
#contact {
  background: linear-gradient(180deg, #eef2f8 0%, #f4f7fb 100%);
  border-top: 1px solid #dbe3ee;
}
.contact-info-card {
  background: #f8fafd;
  border-color: #d9e3f0;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(36, 53, 89, 0.03);
}

/* Wide module pane: comfortable measure for long copy */
.arch-tab-pane :is(h3, p, .list-unstyled) { max-width: 62ch; }
@media (min-width: 992px) {
  .arch-tab-pane :is(h3, p, .list-unstyled) { max-width: none; }
  .arch-tab-pane .row > .col-md-7 :is(h3, p, .list-unstyled) { max-width: 60ch; }
}

/* Keyboard focus on card and tab surfaces */
.module-tabs .arch-tab-btn:focus-visible,
.preview-tab-btn:focus-visible,
.btn-quick-amt:focus-visible,
.demo-reset:focus-visible,
.social-btn:focus-visible,
.op-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(62, 95, 155, 0.14);
}

/* Ledger preview: long headers wrap so numeric columns are never clipped */
.ledger-preview-table { min-width: 0; }
.ledger-preview-table th { white-space: normal; }
@media (min-width: 768px) and (max-width: 991.98px) {
  .ledger-preview-table { font-size: 0.82rem; }
  .ledger-preview-table th { padding: 9px 6px; font-size: 0.72rem; letter-spacing: 0.04em; }
  .ledger-preview-table td { padding: 11px 6px; }
  .ledger-preview-table td:not(:first-child) { font-size: 0.78rem; }
  .ledger-preview-table .account-label { font-size: 0.84rem; }
  .calc-result-card { height: auto; }
}
@media (max-width: 575.98px) {
  .ledger-preview-table { font-size: 0.8rem; }
  .ledger-preview-table th {
    padding: 8px 4px;
    font-size: 0.66rem;
    letter-spacing: 0.03em;
    white-space: normal;
  }
  .ledger-preview-table td { padding: 10px 4px; }
  .ledger-preview-table th:not(:first-child),
  .ledger-preview-table td:not(:first-child) { font-size: 0.78rem; }
  .ledger-preview-table td:first-child { white-space: normal; overflow-wrap: anywhere; }
  .ledger-preview-table .account-label { font-size: 0.8rem; }
}
