:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #eef3fa;
  --border: #dfe6f0;
  --text: #081e54;
  --text-2: #475569;
  --muted: #64748b;
  --brand: #0767fb;
  --brand-ink: #ffffff;
  --brand-soft: #e6f0ff;
  --accent: #2b7dfc;          /* chart series */
  --good: #13795b; --good-soft: #e2f4ec;
  --warn: #9a6200; --warn-soft: #fdf2dc;
  --crit: #b42323; --crit-soft: #fbe6e6;
  --info: #2459a8; --info-soft: #e5eefb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15,26,46,.05), 0 4px 16px rgba(15,26,46,.05);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 208px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--border); padding: 14px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; padding: 4px 10px 12px; color: var(--text); }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: var(--brand-ink); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--text-2); font-weight: 500; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { background: var(--brand-soft); color: var(--brand); }
.nav svg { width: 18px; height: 18px; flex: none; }
.side-foot { margin-top: auto; padding: 10px; font-size: 13px; color: var(--muted); }
.main { padding: 16px 22px 28px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.page-head p { margin: 0; color: var(--text-2); }
.topbar { display: none; }

.grid { display: grid; gap: 12px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.grid > * { min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; }
.card-head h2, .card-head h3 { margin: 0; }
.stack > * + * { margin-top: 12px; }

/* KPI tiles */
.kpi .label { font-size: 12px; color: var(--text-2); font-weight: 500; }
.kpi .value { font-size: 22px; font-weight: 700; margin-top: 4px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 7px 12px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--crit); }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 16px; height: 16px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.field { margin-bottom: 11px; }
.row { display: flex; gap: 12px; } .row > * { flex: 1; min-width: 0; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; padding: 3px; background: var(--surface-2); }
.seg button { border: 0; background: transparent; font: inherit; font-weight: 600; padding: 7px 14px; border-radius: 7px; color: var(--text-2); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.error { background: var(--crit-soft); color: var(--crit); padding: 10px 12px; border-radius: 8px; font-size: 14px; margin-bottom: 12px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--surface-2); }
td.r, th.r { text-align: right; }

/* ---------- badges / status ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.badge svg { width: 12px; height: 12px; }
.b-overdue, .b-critical { background: var(--crit-soft); color: var(--crit); }
.b-due, .b-warning { background: var(--warn-soft); color: var(--warn); }
.b-soon, .b-info { background: var(--info-soft); color: var(--info); }
.b-ok, .b-good, .b-paid { background: var(--good-soft); color: var(--good); }
.b-neutral, .b-pending, .b-bound { background: var(--surface-2); color: var(--text-2); }
.chip { display: inline-block; font-size: 12px; background: var(--surface-2); color: var(--text-2); padding: 2px 8px; border-radius: 6px; margin: 2px 4px 2px 0; }

/* insights */
.insight { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.insight:last-child { border-bottom: 0; }
.insight .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.insight .ico svg { width: 16px; height: 16px; }
.insight h4 { margin: 0 0 2px; font-size: 14px; }
.insight p { margin: 0; font-size: 13px; color: var(--text-2); }
.insight .act { margin-top: 6px; }

/* ---------- charts ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: var(--border); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 11px; }
.chart .bar { fill: var(--accent); }
.chart .bar-hit { fill: transparent; cursor: default; }
.chart .bar-hit:hover + .bar, .chart .bar.hover { filter: brightness(1.12); }
.tooltip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); font-size: 12px; padding: 7px 9px; border-radius: 7px; white-space: nowrap; transform: translate(-50%, calc(-100% - 8px)); z-index: 5; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.tooltip b { display: block; font-size: 13px; }
.hbar { display: grid; grid-template-columns: minmax(0, 130px) 1fr 70px; gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; }
.hbar .track { height: 10px; border-radius: 0 4px 4px 0; background: var(--surface-2); overflow: hidden; }
.hbar .fill { height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.hbar .lbl { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- quotes ---------- */
.quote { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 8px 14px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; }
.quote.best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.quote .ins { font-weight: 700; }
.quote .feat { grid-column: 1 / -1; order: 5; }
.quote .qbtn { order: 4; }
.quote .price { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.save { color: var(--good); font-weight: 600; font-size: 13px; }
.more { color: var(--crit); font-weight: 600; font-size: 13px; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(15,26,46,.45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--surface); border-radius: 14px; width: 100%; max-width: 620px; max-height: 92vh; overflow: auto; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.x { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); }

/* toast */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 10px; font-weight: 500; z-index: 60; box-shadow: 0 8px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px); }

/* ---------- landing ---------- */
.landing { max-width: 1120px; margin: 0 auto; padding: 0 24px 80px; }
.land-nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 20px 0 36px; }
.hero h1 { font-size: 40px; letter-spacing: -0.03em; line-height: 1.08; }
.hero p.lead { font-size: 16px; color: var(--text-2); max-width: 520px; }
.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: 0 20px 50px rgba(15,26,46,.08); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: grid; place-items: center; margin-bottom: 10px; }
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 760px; }
.price-big { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
ul.ticks { list-style: none; padding: 0; margin: 12px 0; }
ul.ticks li { padding: 4px 0 4px 24px; position: relative; color: var(--text-2); }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.disclaimer { font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 16px; margin-top: 24px; }
.btn.lg { padding: 12px 18px; font-size: 15px; border-radius: 10px; }
.btn.invert { background: var(--brand-ink); color: var(--brand); border-color: transparent; }
.btn.invert:hover { background: var(--brand-ink); filter: brightness(.96); }
.land-links { display: flex; gap: 24px; }
.land-links a { color: var(--text-2); font-weight: 500; font-size: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 5px 10px; border-radius: 999px; margin-bottom: 16px; }
.eyebrow svg { width: 14px; height: 14px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-2); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 14px; height: 14px; color: var(--good); }
.hero-save { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--good-soft); color: var(--good); }
.hero-save svg { width: 20px; height: 20px; flex: none; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts b { font-size: 24px; letter-spacing: -0.02em; }
.facts span { font-size: 13px; color: var(--text-2); }
.section { padding-top: 40px; }
.section-title { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 14px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.feature p { margin: 0; font-size: 14px; }
.feature-ico, .sec-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; flex: none; }
.feature-ico svg, .sec-ico svg { width: 20px; height: 20px; }
.security { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.security h2 { font-size: 28px; letter-spacing: -0.02em; }
.sec-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.sec-list li { display: flex; gap: 14px; }
.sec-list .sec-ico { margin: 0; }
.sec-list p { margin: 2px 0 0; }
.phone { justify-self: center; width: 210px; height: 340px; border-radius: 38px; border: 10px solid #1e293b; background: var(--surface); box-shadow: 0 30px 60px rgba(15,26,46,.15); display: grid; }
.phone-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; }
.face-ring { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); margin: 20px 0 6px; animation: pulse 2.4s ease-in-out infinite; }
.face-ring svg { width: 46px; height: 46px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--brand-soft); } 50% { box-shadow: 0 0 0 12px transparent; } }
@media (prefers-reduced-motion: reduce) { .face-ring { animation: none; } }
.pricing .card { display: flex; flex-direction: column; }
.pricing .card ul { flex: 1; }
.pricing .featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.pricing .featured .card-head { margin-bottom: 0; }
.faq { max-width: 760px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 14px; }
.cta-band { margin-top: 40px; background: var(--brand); color: var(--brand-ink); border-radius: 18px; padding: 28px; text-align: center; }
.cta-band h2 { font-size: 30px; letter-spacing: -0.02em; }
.cta-band p { opacity: .85; margin-bottom: 20px; }
.land-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

/* ---------- sign in / sign up ---------- */
.auth-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100vh; }
.auth-brand { background: var(--brand); color: var(--brand-ink); padding: 32px 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; position: sticky; top: 0; height: 100vh; }
.auth-brand .logo-mark { background: var(--brand-ink); color: var(--brand); }
.auth-brand h2 { font-size: 34px; letter-spacing: -0.02em; max-width: 420px; }
.auth-brand p { opacity: .85; max-width: 420px; }
.auth-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.auth-points li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.auth-points svg { width: 20px; height: 20px; flex: none; }
.auth-panel { display: flex; justify-content: center; align-items: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 28px; letter-spacing: -0.02em; }
.auth-mobile-logo { display: none; margin-bottom: 24px; }
.faceid-btn { width: 100%; padding: 14px; font-size: 16px; border-radius: 12px; border-width: 1.5px; margin-top: 8px; }
.faceid-btn svg { width: 22px; height: 22px; color: var(--brand); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-tabs { display: flex; width: 100%; margin-bottom: 18px; }
.auth-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.auth-tabs svg { width: 15px; height: 15px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px; border-radius: 6px; color: var(--muted); cursor: pointer; display: grid; }
.pw-toggle svg { width: 18px; height: 18px; }
.pw-toggle.on { color: var(--brand); }
.otp-input { font-size: 26px; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; padding: 12px 8px 12px calc(8px + .5em); font-weight: 700; }
.otp-sent { display: flex; gap: 10px; align-items: flex-start; background: var(--info-soft); color: var(--info); padding: 12px; border-radius: 10px; font-size: 14px; }
.otp-sent svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.otp-sent b { color: var(--text); }
.dev-code { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: var(--warn-soft); color: var(--warn); padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.otp-actions { display: flex; justify-content: space-between; margin-top: 12px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; }
.linkish:disabled { color: var(--muted); cursor: default; }
.demo-box { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 10px; background: var(--surface); }

/* account: sign-in & security */
.sec-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.sec-row .sec-ico { margin: 0; }
.pk-list { padding: 0 0 8px 52px; }
.pk-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface-2); border-radius: 8px; margin-bottom: 6px; }

/* report (print) */
.report { background: var(--surface); }
@media print {
  .side, .topbar, .no-print { display: none !important; }
  .shell { display: block; } .main { padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
  body { background: #fff; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main, .g3 { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .hero h1 { font-size: 36px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security { grid-template-columns: 1fr; gap: 32px; }
  .land-links { display: none; }
  .auth-split { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { display: none; }
  .auth-mobile-logo { display: flex; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; position: fixed; inset: 0; z-index: 40; height: auto; }
  .side.open { display: flex; }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
  .main { padding: 18px 16px 48px; }
  .g2, .steps, .pricing { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi .sub { font-size: 12px; }
  .card { padding: 14px; }
  .kpi .value { font-size: 21px; }
  .row { flex-direction: column; gap: 0; }
  .quote { grid-template-columns: 1fr 1fr auto; }
  .quote .ins { grid-column: 1 / -1; }
  .hbar { grid-template-columns: 100px 1fr 64px; }
  .landing { padding: 0 16px 60px; }
  .hero h1 { font-size: 30px; }
  h1 { font-size: 23px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 48px; }
  .section-title, .security h2 { font-size: 23px; }
  .hide-sm { display: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .cta-band { padding: 32px 18px; }
  .cta-band h2 { font-size: 24px; }
  .auth-panel { padding: 28px 16px; align-items: flex-start; }
  .pk-list { padding-left: 0; }
}

/* ---------- compact helpers + personal/business tabs ---------- */
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.view-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 13px; }
.view-tabs svg { width: 15px; height: 15px; }
.notice { background: var(--info-soft); border-radius: 10px; padding: 9px 12px; margin-bottom: 12px; font-size: 13px; }
.dash { margin-top: 12px; align-items: start; }
.scroll-card { display: flex; flex-direction: column; max-height: calc(100vh - 210px); position: sticky; top: 16px; }
.scroll-body { overflow-y: auto; margin: 0 -14px -14px; padding: 0 14px 6px; }
.card.flush { padding: 4px 6px; }
table.tight td { padding: 7px 8px; }
table.tight td .small { line-height: 1.35; }
tr.month-row td { background: var(--surface-2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); padding: 6px 8px; }
@media (max-width: 980px) { .scroll-card { max-height: none; position: static; } }
@media (max-width: 760px) { .head-actions { width: 100%; } .view-tabs { width: 100%; } .view-tabs button { flex: 1; justify-content: center; padding: 6px 6px; } }

/* policies & renewals: personal / business cards */
.seg-title { display: flex; align-items: center; gap: 8px; }
.seg-title svg { width: 18px; height: 18px; color: var(--brand); }
.seg-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--text-2); padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.seg-stats .due b { color: var(--warn); }
.seg-card table th { padding: 6px 8px; }
td.nowrap { white-space: nowrap; }
tr.past td { opacity: .6; }

/* account: API & MCP */
code { font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.key-form { display: flex; gap: 8px; margin: 8px 0 10px; }
.key-form input { flex: 1; }
.key-list .pk-item code { background: none; padding: 0; }
.new-key { border: 1px solid var(--brand); background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; display: grid; gap: 8px; }
.snip { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.snip-head { display: flex; justify-content: space-between; align-items: center; padding: 5px 8px; font-size: 12px; font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--border); }
.snip pre { margin: 0; padding: 8px; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-all; }
.api-docs { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 8px; }
.api-docs summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.api-docs p { margin: 8px 0 4px; }
.ep { margin: 4px 0 0; padding-left: 18px; color: var(--text-2); }
.ep li { margin: 3px 0; }

/* ---------- logo ---------- */
.logo { gap: 9px; }
.logo-svg { width: 28px; height: 28px; flex: none; display: block; }
.wordmark { font-weight: 800; letter-spacing: -0.035em; font-size: 21px; color: #081e54; line-height: 1; }
.auth-brand .wordmark, .cta-band .wordmark { color: #fff; }
.auth-brand .logo-svg { background: #fff; border-radius: 9px; padding: 3px; width: 32px; height: 32px; }

/* ---------- hero photo banner (rolling) ---------- */
.hero-visual { position: relative; }
.slides { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,26,46,.18); background: var(--surface-2); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; animation: slide 30s infinite; animation-delay: calc(var(--i) * 5s); }
.slide:first-child { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.92); color: #0f1a2e; font-weight: 600; font-size: 13px; padding: 6px 11px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
@keyframes slide { 0% { opacity: 0; transform: scale(1.04); } 3% { opacity: 1; } 17% { opacity: 1; } 20% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
.float-card { position: absolute; right: -14px; bottom: -18px; width: 250px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; box-shadow: 0 16px 40px rgba(15,26,46,.16); }
.float-card .hero-save { margin-top: 8px; padding: 8px 10px; }
@media (prefers-reduced-motion: reduce) { .slide { animation: none; } .marquee-track { animation: none !important; } }

/* ---------- insurer strip (rolling) ---------- */
.brands { margin-top: 36px; }
.brands-title { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.brand-chip { white-space: nowrap; padding: 9px 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: #334155; font-size: 17px; letter-spacing: -0.01em; }
.brand-chip.b0 { font-weight: 800; } .brand-chip.b1 { font-weight: 600; font-style: italic; } .brand-chip.b2 { font-weight: 700; text-transform: uppercase; font-size: 15px; letter-spacing: .04em; } .brand-chip.b3 { font-weight: 500; font-family: Georgia, serif; }

/* ---------- personal / business sections ---------- */
.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.aud-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 16px; }
.aud-photo { aspect-ratio: 16 / 7; overflow: hidden; }
.aud-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.aud-card:hover .aud-photo img { transform: scale(1.03); }
.aud-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.aud-body h2 { font-size: 21px; margin: 8px 0 4px; }
.aud-body .ticks { margin: 6px 0 12px; flex: 1; }
.aud-body .ticks li { padding: 2px 0 2px 22px; font-size: 14px; }
.aud-ctas { display: flex; gap: 8px; flex-wrap: wrap; }
.auth-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.auth-kicker svg { width: 14px; height: 14px; }
.auth-kicker.dark { background: var(--brand-soft); color: var(--brand); margin: 0; align-self: flex-start; }
.cta-band { background-image: linear-gradient(rgba(5,80,204,.88), rgba(7,103,251,.92)), var(--photo); background-size: cover; background-position: center; }

/* sign-in brand panel with photo */
.auth-brand { background-image: linear-gradient(160deg, rgba(5,80,204,.93), rgba(7,103,251,.78) 55%, rgba(15,26,46,.55)), var(--photo); background-size: cover; background-position: center; }
.as-tabs { display: flex; width: 100%; margin-bottom: 16px; }
.as-tabs a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border-radius: 7px; font-weight: 600; color: var(--text-2); text-decoration: none; font-size: 14px; }
.as-tabs a.on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.as-tabs svg { width: 16px; height: 16px; }

/* ---------- chat box ---------- */
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 18px 12px 14px; background: var(--brand); color: #fff; font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; box-shadow: 0 10px 30px rgba(7,103,251,.35); }
.chat-fab svg { width: 20px; height: 20px; }
.chat-fab:hover { filter: brightness(1.08); }
.chat-fab.hide { display: none; }
.chat-panel { position: fixed; right: 18px; bottom: 18px; z-index: 71; width: 370px; height: min(560px, calc(100vh - 36px)); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 70px rgba(15,26,46,.25); display: flex; flex-direction: column; overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: linear-gradient(135deg, #0550cc, #2b7dfc); color: #fff; }
.chat-head .small { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-avatar { width: 34px; height: 34px; border-radius: 10px; background: #fff; display: grid; place-items: center; flex: none; }
.chat-avatar .logo-svg { width: 24px; height: 24px; }
.chat-x { background: rgba(255,255,255,.15); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.chat-x svg { width: 18px; height: 18px; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.msg p { margin: 0 0 4px; } .msg p:last-child { margin: 0; }
.msg ul, .msg ol { margin: 2px 0 4px; padding-left: 18px; } .msg li { margin: 2px 0; }
.msg.assistant { background: var(--surface); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg .btn { margin-top: 6px; }
.typing { display: flex; gap: 4px; padding: 12px 14px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; background: var(--bg); }
.chat-chips:empty { display: none; }
.chat-chips button { border: 1px solid var(--brand); background: var(--surface); color: var(--brand); border-radius: 999px; padding: 5px 11px; font: 500 13px Inter, system-ui, sans-serif; cursor: pointer; }
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); align-items: flex-end; }
.chat-input textarea { resize: none; min-height: 40px; max-height: 110px; line-height: 1.4; }
.chat-input .btn { height: 40px; width: 42px; padding: 0; }
.chat-foot { padding: 0 12px 10px; text-align: center; }
.chat-foot .linkish { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.chat-foot svg, .msg .btn svg { width: 15px; height: 15px; }
.chat-support { padding: 14px; overflow-y: auto; flex: 1; }
.chat-support p { margin: 4px 0 10px; }
.ticket-chat { white-space: pre-wrap; font: 12px/1.4 ui-monospace, Menlo, monospace; background: var(--surface-2); padding: 8px; border-radius: 6px; max-height: 200px; overflow: auto; }
@media (max-width: 760px) {
  .chat-panel { right: 0; bottom: 0; width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .chat-fab span { display: none; } .chat-fab { padding: 14px; }
  .audiences { grid-template-columns: minmax(0, 1fr); }
  .float-card { right: 8px; bottom: -14px; width: 220px; }
  .slides { aspect-ratio: 4 / 3.2; }
}
@media print { .chat-fab, .chat-panel { display: none !important; } }

.pay-note { margin-top: 8px; display: flex; gap: 6px; align-items: flex-start; } .pay-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }

/* business logo, ABN finder, captcha */
.biz-logo { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--border); padding: 3px; flex: none; }
.biz-logo.sm { width: 26px; height: 26px; padding: 2px; border-radius: 6px; }
.biz-logo.lg { width: 56px; height: 56px; padding: 5px; border-radius: 12px; }
h1.hi { display: flex; align-items: center; gap: 10px; }
.side-who { display: flex; align-items: center; gap: 8px; color: var(--text); }
.logo-box { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 8px 10px; border: 1px dashed var(--border); border-radius: 10px; min-height: 52px; }
.logo-box .muted { flex: 1; }
.abn-list { display: grid; gap: 6px; margin-top: 8px; }
.abn-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; }
.abn-item .badge { margin-left: 6px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.captcha:not(:empty) { margin: 4px 0 12px; min-height: 65px; }

/* Ausurance wordmark (913×96 image, so width ≈ 9.5 × height) */
.wordmark-img { height: 20px; width: auto; max-width: 100%; display: block; }
.side .logo { padding: 6px 10px 16px; }
.side .wordmark-img { height: 17px; }
.topbar .wordmark-img { height: 17px; }
.land-nav .wordmark-img { height: 22px; }
.land-foot .wordmark-img { height: 18px; }
.auth-brand .wordmark-img { height: 24px; }
.auth-mobile-logo .wordmark-img { height: 20px; }
.phone .wordmark-img { height: 14px; }
.report .wordmark-img { height: 18px; }

/* plans, upsell, team, integrations */
.upsell { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--brand-soft); flex-wrap: wrap; }
.upsell p { margin: 2px 0 0; }
.upsell-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--surface); color: var(--brand); display: grid; place-items: center; flex: none; }
.upsell-ico svg { width: 17px; height: 17px; }
.nav-lock { margin-left: auto; color: var(--muted); display: inline-flex; } .nav-lock svg { width: 14px; height: 14px; }
.plan-list { display: grid; gap: 8px; }
.plan-opt { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.plan-opt.current { border-color: var(--good); background: var(--good-soft); }
.plan-opt.best:not(.current) { border-color: var(--brand); }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; }
.plan-opt .ticks { margin: 4px 0 8px; }
.plan-opt .ticks li { padding: 1px 0 1px 20px; font-size: 13px; }
.team-form { display: flex; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.team-form input { flex: 1; min-width: 140px; }
.int-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.int-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
.int-logo.xero { background: #13b5ea; } .int-logo.myob { background: #6b2c91; } .int-logo.qb { background: #2ca01c; }
.pricing.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
@media (max-width: 980px) { .pricing.three { grid-template-columns: minmax(0, 1fr); } }

/* sticky header on the public site */
.land-nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); margin: 0 -24px; padding: 12px 24px; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.land-nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 18px rgba(8,30,84,.06); }
@media (max-width: 760px) { .land-nav { margin: 0 -16px; padding: 10px 16px; } }
.section, .aud-card { scroll-margin-top: 76px; }

/* connectors */
.sec-h { font-size: 15px; margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.sec-h:first-of-type { margin-top: 4px; }
.conn-soon { display: flex; align-items: center; gap: 12px; }
.conn-soon > div { flex: 1; } .conn-soon p { margin: 2px 0 0; }
.conn-ai { border-top: 1px solid var(--border); }
.conn-ai summary { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; list-style: none; }
.conn-ai summary::-webkit-details-marker { display: none; }
.conn-ai summary b { display: block; }
.conn-ai[open] summary { padding-bottom: 6px; }
.conn-body { display: grid; gap: 8px; padding: 0 0 12px 46px; }
@media (max-width: 760px) { .conn-body { padding-left: 0; } }
.int-logo.claude { background: #d97757; } .int-logo.openai { background: #10a37f; } .int-logo.grok { background: #111; } .int-logo.other { background: #64748b; }
.int-logo.allianz { background: #003781; } .int-logo.qbe { background: #00205b; }
