/* Oriango design system — derived from the approved public, employee and employer prototypes. */
:root {
  --dark: #142D29;
  --forest: #14372e;
  --green: #176448;
  --green-2: #16845F;
  --accent: #219b66;
  --mint: #B9EBC9;
  --cream: #F7F9F5;
  --surface: #f8faf8;
  --white: #fff;
  --text: #19372e;
  --muted: #5f6f67;
  --border: #dfe7e1;
  --ok-bg: #e3f1e6; --ok: #1f6f44;
  --warn-bg: #faf0dc; --warn: #7a5a1a;
  --bad-bg: #fae9e5; --bad: #9a3a2b;
  --neutral-bg: #ebefec; --neutral: #55665c;
  --radius: 12px;
  --focus: 0 0 0 3px #219b6655;
  --display: Manrope, Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--cream); line-height: 1.6; font-size: 15px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 .4em; }
h1 { font-size: 26px; } h2 { font-size: 19px; } h3 { font-size: 15px; }
p { margin: .4em 0 1em; }
a { color: var(--green); }
img, svg { max-width: 100%; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--dark); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.container { width: min(1160px, 92%); margin: 0 auto; }
.small { font-size: 12.5px; color: var(--muted); }
.muted { color: var(--muted); }
.optional { font-weight: 400; color: var(--muted); font-size: 11px; }
.inline { display: inline; margin: 0; }
.center { text-align: center; }
.hide-sm { }
.env-banner { background: #fff4df; color: #6b4f16; font-size: 12px; text-align: center; padding: 6px 10px; border-bottom: 1px solid #eddfbd; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 18px; min-height: 44px; background: var(--dark); color: #fff;
  border: 1px solid transparent; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: filter .15s, transform .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled, .btn[aria-disabled=true] { opacity: .45; cursor: not-allowed; filter: none; }
.btn-green { background: var(--green); }
.btn-mint { background: var(--mint); color: var(--dark); }
.btn-outline { background: #fff; color: var(--green); border-color: #cfdcd3; }
.btn-danger { background: #fff1ed; color: var(--bad); border-color: #ecd4ce; }
.btn-sm { padding: 7px 12px; min-height: 34px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--green); font: inherit; font-weight: 600; cursor: pointer; padding: 8px 0; text-decoration: none; display: inline-block; }
.field { margin-bottom: 14px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
input, select, textarea { width: 100%; font: inherit; font-size: 15px; color: var(--text); background: #fff; border: 1px solid #cfdcd3; border-radius: 8px; padding: 11px 12px; min-height: 46px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: var(--focus); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; accent-color: var(--green); }
input[readonly] { background: #f2f5f2; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.largeinput { font-size: 26px; font-weight: 700; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; line-height: 1.55; margin: 16px 0; }
.consent input { flex-shrink: 0; margin-top: 2px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.otp { letter-spacing: .35em; font-size: 24px; text-align: center; font-weight: 700; }

/* ---------- Status pills & notices ---------- */
.pill { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-neutral { background: var(--neutral-bg); color: var(--neutral); }
.notice { padding: 13px 14px; border-radius: 9px; font-size: 13px; line-height: 1.55; margin: 12px 0; background: #eaf3eb; color: #2f5240; border: 1px solid #d6e6da; }
.notice-warning { background: #fff6e4; color: #6e5218; border-color: #efdfb8; }
.notice-error { background: var(--bad-bg); color: var(--bad); border-color: #efd1ca; }
.notice-success { background: #e3f4e8; color: #1d5e3b; border-color: #c9e7d3; }
.error { color: var(--bad); font-size: 13px; }

/* ---------- Cards & data ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 12px 0; min-width: 0; }
.card h2, .card h3 { margin-bottom: 8px; }
.rows { margin: 0; }
.rows .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; }
.rows .row + .row { border-top: 1px solid #edf1ed; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.metric .label { font-size: 12px; color: var(--muted); }
.metric .value { font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.grid .card { margin: 0; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 11px 12px; border-top: 1px solid #edf1ed; vertical-align: top; }
th { background: #f6f9f6; color: var(--muted); font-weight: 600; font-size: 12px; white-space: nowrap; }
td .small { display: block; }
.empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 14px; }
.progress { height: 7px; background: #e4ebe5; border-radius: 10px; overflow: hidden; margin: 12px 0; }
.progress > span { display: block; height: 100%; background: #278c60; border-radius: 10px; }
details { border-bottom: 1px solid var(--border); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); font-size: 14px; }
.badge { background: #e7a83a; color: #2b1d00; border-radius: 10px; padding: 1px 7px; font-size: 10.5px; font-weight: 700; margin-left: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stack > * + * { margin-top: 10px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow-wrap: anywhere; }
pre.mono { background: #f3f6f3; border: 1px solid var(--border); border-radius: 8px; padding: 10px; white-space: pre-wrap; max-height: 320px; overflow: auto; }

/* ---------- Logo ---------- */
.logo { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -2px; color: var(--dark); text-decoration: none; }
.logo span { color: var(--accent); }
.logo.light { color: #fff; }
.logo.light span { color: #7bdba3; }

/* ---------- Public website ---------- */
.site-nav { display: flex; align-items: center; justify-content: space-between; min-height: 80px; position: relative; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--dark); text-decoration: none; }
.nav-links a[aria-current=page] { color: var(--green); }
.nav-links .btn { color: var(--dark); }
.eyebrow { font-size: 11px; font-weight: 700; color: var(--green-2); letter-spacing: 2px; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 64px; padding: 80px 0 70px; }
.hero h1 { font-size: clamp(44px, 6vw, 76px); margin: 18px 0; font-weight: 800; letter-spacing: -0.045em; }
.hero h1 span { color: var(--green-2); }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero-visual { background: #DDEDE1; border-radius: 28px; padding: 46px 24px; position: relative; display: flex; justify-content: center; overflow: hidden; }
.hero-visual::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: #C8E5D2; top: -140px; right: -120px; }
.phone { position: relative; background: #fff; border: 7px solid var(--dark); border-radius: 36px; width: 300px; padding: 24px 19px; box-shadow: 0 25px 60px #142d2920; }
.phone-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.phone-logo { font-family: var(--display); font-size: 22px; font-weight: 800; }
.avatar { display: grid; place-items: center; background: #E5F1E8; width: 35px; height: 35px; border-radius: 50%; font-size: 12px; font-weight: 700; color: var(--green); }
.balance-card { background: var(--dark); color: #fff; border-radius: 16px; padding: 20px 18px; }
.balance-card small { color: #C8DED1; font-size: 11px; }
.balance-figure { font-family: var(--display); font-size: 30px; font-weight: 800; margin: 6px 0; }
.balance-card .progress { background: #38574D; }
.balance-card .progress > span { background: var(--mint); }
.phone-row { display: flex; justify-content: space-between; font-size: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.phone-caption { text-align: center; margin-top: 14px; font-size: 10.5px; color: var(--muted); }
.trust-bar { display: grid; grid-template-columns: repeat(3, 1fr); padding: 32px 0; border-top: 1px solid var(--border); }
.trust-item { text-align: center; padding: 12px; }
.trust-item + .trust-item { border-left: 1px solid var(--border); }
.trust-item strong { display: block; font-family: var(--display); font-size: 27px; }
.trust-item span { font-size: 13px; color: var(--muted); }
.section { padding: 84px 0; }
.section.white { background: #fff; }
.section-heading { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.section-heading h2 { font-size: clamp(30px, 4vw, 46px); margin: 12px 0; letter-spacing: -0.04em; }
.section-heading p { color: var(--muted); }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.audience-card { background: #EAF2E9; border-radius: 20px; padding: 38px; }
.audience-card.alt { background: #F3F0E7; }
.card-icon { width: 52px; height: 52px; background: #fff; border-radius: 14px; display: grid; place-items: center; }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.audience-card h3 { font-size: 30px; margin: 18px 0 12px; }
.audience-card p { color: var(--muted); }
.features { padding: 0; list-style: none; margin: 22px 0; }
.features li { padding: 7px 0; font-size: 14px; }
.features li::before { content: "✓"; color: var(--green-2); font-weight: 700; margin-right: 12px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px 22px; }
.step-number { font-size: 13px; color: var(--green-2); font-weight: 700; }
.step h3 { font-size: 23px; margin: 16px 0 8px; }
.step p { font-size: 14px; color: var(--muted); }
.faq { max-width: 800px; margin: 0 auto; }
.faq details { padding: 20px 0; }
.cta { background: var(--dark); color: #fff; text-align: center; }
.cta h2 { font-size: clamp(32px, 5vw, 54px); max-width: 720px; margin: 14px auto; letter-spacing: -0.04em; }
.cta p { color: #CBDBD2; max-width: 580px; margin: 18px auto 28px; }
.cta .eyebrow { color: var(--mint); }
.prose { max-width: 760px; margin: 0 auto; padding: 56px 0 80px; }
.prose h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.04em; }
.prose p, .prose li { color: #33493f; }
.placeholder { border: 2px dashed #e0c98d; background: #fffaf0; border-radius: 12px; padding: 18px; color: #6e5218; }
.enquiry { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 30px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.site-footer { background: #102420; color: #fff; padding: 46px 0 24px; }
.site-footer p, .site-footer a { color: #b3c6bb; font-size: 13px; }
.site-footer a { display: block; margin: 9px 0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-bottom { border-top: 1px solid #30483D; margin-top: 32px; padding-top: 20px; font-size: 12px; color: #b3c6bb; }

/* ---------- Auth screens ---------- */
body.auth { background: #edf2ed; }
.auth-main { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(440px, 100%); background: #fff; border-radius: 20px; padding: 30px 26px; box-shadow: 0 14px 45px #15392c18; }
.auth-card.wide { width: min(640px, 100%); }
.auth-card .logo { display: inline-block; margin-bottom: 18px; }
.choice { display: block; border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--text); margin: 10px 0; }
.choice:hover { border-color: var(--accent); }
.choice strong { display: block; font-size: 15px; }
.qr { display: block; margin: 12px auto; width: 200px; height: 200px; background: #fff; }

/* ---------- Employee mobile app ---------- */
body.employee { background: #edf2ed; }
.mobile-app { max-width: 460px; margin: 0 auto; background: var(--surface); min-height: 100vh; display: flex; flex-direction: column; box-shadow: 0 0 40px #15392c10; }
.app-header { display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 14px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.app-header .logo { font-size: 27px; }
.header-actions { display: flex; gap: 9px; align-items: center; }
.iconbtn { position: relative; display: grid; place-items: center; background: #eaf2eb; border-radius: 50%; width: 40px; height: 40px; color: var(--green); text-decoration: none; }
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn.initials { font-size: 12px; font-weight: 700; }
.iconbtn .dot { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: #d9534f; border: 2px solid #eaf2eb; }
.app-main { padding: 20px 18px 28px; flex: 1; }
.app-main h1 { font-size: 24px; }
.balance { background: var(--forest); color: #fff; padding: 22px; border-radius: 18px; margin: 16px 0; }
.balance .small { color: #c4dbce; }
.balance .amount { font-family: var(--display); font-size: 36px; font-weight: 800; letter-spacing: -1.5px; margin: 8px 0; }
.amount { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -1.4px; margin: 8px 0; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.quick button { background: #fff; border: 1px solid #d3e0d6; border-radius: 8px; padding: 10px 4px; color: var(--green); font: inherit; font-size: 13px; min-height: 44px; cursor: pointer; }
.quick button:disabled { opacity: .4; }
.symbol { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: #e0f1e4; color: var(--green); font-size: 30px; margin: 20px auto; }
.symbol.warn { background: #fff1d7; color: #926c24; }
.symbol.bad { background: var(--bad-bg); color: var(--bad); }
.tx { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; text-decoration: none; color: inherit; }
.tx + .tx { border-top: 1px solid #edf1ed; }
.tx strong { display: block; font-size: 14px; }
.tx .right { text-align: right; }
.steps-bar { display: flex; gap: 5px; margin: 12px 0 20px; }
.steps-bar span { height: 5px; background: #e0e9e1; flex: 1; border-radius: 6px; }
.steps-bar span.done { background: var(--green); }
.bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--border); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); position: sticky; bottom: 0; }
.bottom-nav a { color: #6f7f75; font-size: 11px; text-align: center; text-decoration: none; padding: 6px 2px; min-height: 48px; position: relative; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottom-nav a.active { color: var(--green); font-weight: 700; }
.bottom-nav svg { display: block; width: 22px; height: 22px; margin: 0 auto 3px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.offline-banner { position: sticky; bottom: 64px; margin: 0 12px; background: #3d2c0d; color: #fff; padding: 10px 12px; border-radius: 10px; font-size: 13px; }

/* ---------- Employer & admin portals ---------- */
body.portal { background: #f4f7f5; }
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--forest); color: #bad0c4; padding: 22px 12px; display: flex; flex-direction: column; }
.sidebar-brand { padding: 0 10px 18px; }
.sidebar .sub { font-size: 9.5px; letter-spacing: 1.5px; margin-top: 2px; text-transform: uppercase; }
.sidebar .menu { display: flex; flex-direction: column; }
.sidebar .nav { display: block; color: inherit; text-decoration: none; border-radius: 7px; margin: 1px 0; padding: 10px 10px; font-size: 13px; }
.sidebar .nav:hover, .sidebar .nav.active { background: #31564a; color: #fff; }
.sidebar .group { font-size: 10px; letter-spacing: 1px; margin: 16px 10px 4px; color: #93b0a1; text-transform: uppercase; }
.sidefoot { margin-top: auto; padding: 18px 10px 0; border-top: 1px solid #36574d; font-size: 11.5px; line-height: 1.6; }
.portal-main { min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid var(--border); padding: 12px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.content { padding: 22px; max-width: 1240px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head p { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 10px; margin-top: 16px; overflow: hidden; }
.panel-head { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 16px; }
.panel-body { padding: 0 16px 16px; }
.task { padding: 13px 16px; border-top: 1px solid #edf1ed; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { margin: 0; min-width: 160px; }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 40px 0; }
  .audience-grid, .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .trust-item strong { font-size: 20px; }
  .trust-item span { font-size: 11px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { padding: 12px; }
  .sidebar-brand { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
  .sidebar .menu { flex-direction: row; overflow-x: auto; gap: 2px; }
  .sidebar .nav { white-space: nowrap; }
  .sidebar .group, .sidefoot { display: none; }
  .content { padding: 14px; }
  .topbar { padding: 10px 14px; }
  .hide-sm { display: none; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 42px; }
  .steps, .form-grid { grid-template-columns: 1fr; }
  .audience-card { padding: 26px; }
  .phone { width: 100%; }
  .enquiry { padding: 20px; }
  .rows .row { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .sidebar, .topbar, .bottom-nav, .app-header, .env-banner { display: none; } .shell { display: block; } }

/* =====================================================================
   Brand, header, landing page and Oriango AI (v2)
   ===================================================================== */
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--dark); }
.brand img { display: block; flex: none; filter: drop-shadow(0 2px 4px #0e4b3730); }
.brand .wordmark { font-family: var(--display); font-size: 27px; font-weight: 800; letter-spacing: -1.6px; line-height: 1; }
.brand .wordmark span { color: var(--accent); }
.brand.light, .brand.light .wordmark { color: #fff; }
.brand.light .wordmark span { color: #7bdba3; }
.small-brand .wordmark { font-size: 18px; letter-spacing: -1px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 249, 245, .82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s, background .2s; }
.site-header.scrolled { background: rgba(255, 255, 255, .92); border-bottom-color: var(--border); box-shadow: 0 6px 24px #142d290d; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.site-header .nav-links { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.site-header .nav-links > a { color: #2b443b; text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.site-header .nav-links > a:hover { background: #e7efe9; color: var(--dark); }
.site-header .nav-links > a[aria-current=page] { color: var(--green); background: #e3f1e6; }
.nav-ai { display: inline-flex; align-items: center; gap: 6px; }
.nav-cta { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.btn-ghost { background: transparent; color: var(--dark); border: 1px solid #cfdcd3; min-height: 40px; padding: 8px 14px; }
.btn-primary-sm { min-height: 40px; padding: 8px 16px; background: linear-gradient(135deg, #1d8a5d, #14563f); box-shadow: 0 6px 16px #1d8a5d33; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 15px; border-radius: 11px; }
details.signin { position: relative; border: 0; padding: 0; }
details.signin summary { list-style: none; cursor: pointer; }
details.signin summary::-webkit-details-marker { display: none; }
details.signin summary::after { content: "▾"; margin-left: 6px; font-size: 11px; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 40px #142d2922; padding: 6px; min-width: 230px; z-index: 60; }
.menu-pop a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--dark); text-decoration: none; }
.menu-pop a:hover { background: #eef5ef; }
.menu-pop strong { display: block; font-size: 14px; }
.menu-pop span { font-size: 12px; color: var(--muted); }
.menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; width: 22px; margin: 0 auto; background: var(--dark); border-radius: 2px; }

/* Hero */
.hero-wrap { position: relative; overflow: hidden; background:
  radial-gradient(900px 480px at 88% -8%, #cfeedb 0%, transparent 60%),
  radial-gradient(700px 420px at -10% 110%, #e9f3d8 0%, transparent 60%), var(--cream); }
.hero { padding: 64px 0 72px; gap: 56px; }
.hero-copy h1 { margin: 18px 0; }
.grad-text { background: linear-gradient(120deg, #16845f 10%, #2fb67a 60%, #0f5a40); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #d6e6da; color: var(--green); font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; box-shadow: 0 4px 14px #142d290a; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #2fb67a; box-shadow: 0 0 0 4px #2fb67a2e; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: #33493f; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg, .float-card svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-visual { background: linear-gradient(160deg, #dcefe2, #c7e5d1); box-shadow: inset 0 0 0 1px #ffffff80; }
.phone { border-width: 8px; box-shadow: 0 30px 70px #142d2930; }
.phone-ai { display: flex; align-items: center; gap: 8px; margin-top: 14px; background: #eef7f1; border-radius: 12px; padding: 9px 11px; font-size: 12px; color: #2b443b; }
.float-card { position: absolute; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 11px 14px; box-shadow: 0 14px 34px #142d2924; font-size: 12px; }
.float-card strong { display: block; font-size: 13px; }
.float-card span { color: var(--muted); }
.hero-visual { padding-bottom: 96px; }
.fc-1 { left: 18px; bottom: 20px; }
.fc-2 { right: 18px; bottom: 20px; }
.card.glass { background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px); border-color: #ffffffb0; box-shadow: 0 20px 50px #142d2914; padding: 28px; border-radius: 20px; }
.trust-bar { background: #fff; border: 1px solid var(--border); border-radius: 18px; margin: -28px 0 0; position: relative; box-shadow: 0 14px 34px #142d290d; }
ol.steps { list-style: none; padding: 0; margin: 0; }
.step { transition: transform .2s, box-shadow .2s; }
.step:hover { transform: translateY(-3px); box-shadow: 0 16px 34px #142d2912; }
.step-number { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #e3f1e6; font-size: 14px; }
.audience-card { transition: transform .2s; }
.audience-card:hover { transform: translateY(-3px); }
.lead-sm { color: var(--muted); font-size: 16px; }
.narrow { max-width: 820px; }

/* AI section on landing */
.ai-section { background: linear-gradient(140deg, #123a2f, #142D29 55%, #0e2a22); color: #fff; }
.ai-section .eyebrow { color: var(--mint); }
.ai-section h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.04em; margin: 12px 0; }
.ai-section .lead-sm, .ai-section .features li { color: #cfe0d6; }
.ai-section .features li::before { color: var(--mint); }
.ai-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.ai-demo { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 28px; }
.ai-demo .ai-mark { width: 36px; height: 36px; fill: var(--mint); }
.ai-demo .small { color: #b9cfc3; }

/* Chips & assistant */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { border: 1px solid #cfe0d4; background: #fff; color: var(--green); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; cursor: pointer; min-height: 36px; text-align: left; }
.chip:hover { border-color: var(--accent); background: #f1f8f3; }
.chip-dark { background: rgba(255, 255, 255, .08); color: #e6f3eb; border-color: rgba(255, 255, 255, .2); }
.chip-dark:hover { background: rgba(255, 255, 255, .16); }
.ai-mark { width: 22px; height: 22px; fill: var(--green); flex: none; }
.ai-cta { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--dark); background: linear-gradient(135deg, #e8f6ec, #f6fbf7); border: 1px solid #cfe6d6; border-radius: 14px; padding: 14px 16px; margin: 12px 0; }
.ai-cta strong { display: block; }
.ai-cta > span:last-child { margin-left: auto; color: var(--green); font-size: 20px; }
.assistant { background: #fff; border: 1px solid var(--border); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 14px 40px #142d290d; }
.assistant-head { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, #f1faf4, #fff); }
.assistant-head .ai-mark { width: 30px; height: 30px; }
.thread { padding: 18px; display: flex; flex-direction: column; gap: 14px; max-height: 60vh; min-height: 260px; overflow-y: auto; background: #fafcfa; }
.employee .thread { max-height: none; }
.msg { display: flex; gap: 10px; align-items: flex-end; }
.msg-user { justify-content: flex-end; }
.msg .bubble { max-width: 82%; border-radius: 16px; padding: 10px 14px; font-size: 14px; line-height: 1.55; }
.msg .bubble p { margin: 0 0 6px; }
.msg .bubble p:last-of-type { margin-bottom: 0; }
.msg-user .bubble { background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.msg-ai .bubble { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.avatar-ai { width: 30px; height: 30px; border-radius: 50%; background: #e3f1e6; display: grid; place-items: center; flex: none; }
.avatar-ai .ai-mark { width: 17px; height: 17px; }
.live-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #1d5e3b; background: #e3f4e8; border-radius: 6px; padding: 2px 8px; margin-bottom: 6px; }
.source { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.feedback { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.feedback .chip { padding: 3px 10px; min-height: 28px; font-size: 12px; }
.suggestions { padding: 0 18px; }
.ask { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); background: #fff; }
.ask input { flex: 1; min-height: 46px; }
.ai-note { padding: 0 18px 14px; margin: 0; }

@media (max-width: 900px) {
  .site-header .nav-links { display: none; }
  .site-header .nav-links.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 68px; left: 4%; right: 4%; background: #fff; padding: 14px; border-radius: 16px; box-shadow: 0 18px 40px #142d2924; gap: 2px; }
  .menu-toggle { display: flex; }
  .nav-cta { margin: 8px 0 0; flex-direction: column; align-items: stretch; }
  .menu-pop { position: static; box-shadow: none; border: 0; padding: 0; }
  .ai-grid { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .trust-bar { margin-top: 0; }
}
@media print { .site-header, .bottom-nav, [data-print] { display: none !important; } }

.site-header .nav-links .btn-primary-sm, .site-header .nav-links .btn-primary-sm:hover { color: #fff; }
.site-header .nav-links .btn-ghost { color: var(--dark); }

/* ===================== Modern sections (v3) ===================== */
.hero-wrap.compact { padding: 56px 0 40px; }
.hero-wrap.compact .section-heading { margin-bottom: 32px; }
.hero-wrap.compact h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.045em; margin: 16px 0 10px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.section.white .feature { background: var(--cream); }
.feature:hover { transform: translateY(-3px); box-shadow: 0 18px 38px #142d2912; border-color: #cfe3d6; }
.feature h3 { font-size: 19px; margin: 16px 0 8px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }
.feature-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #e3f4e9, #cdebd8); }
.feature-icon svg { width: 23px; height: 23px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split-section h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.04em; margin: 10px 0 22px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(#b9ebc9, #e1ece4); }
.timeline li { position: relative; display: flex; gap: 18px; padding: 0 0 26px; }
.timeline h3 { font-size: 17px; margin: 8px 0 4px; }
.timeline p { color: var(--muted); margin: 0; font-size: 14.5px; }
.tl-num { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #b9ebc9; color: var(--green); font-weight: 800; font-family: var(--display); position: relative; z-index: 1; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px; border-radius: 28px; color: #fff;
  background: radial-gradient(600px 300px at 90% 0%, #2a7a5a 0%, transparent 60%), linear-gradient(135deg, #142D29, #0f3a2d); box-shadow: 0 30px 60px #142d2930; }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.04em; margin: 8px 0; max-width: 620px; }
.cta-band p { color: #cbdcd2; margin: 0; }
.cta-band .eyebrow { color: var(--mint); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .08); }
.faq-search { max-width: 560px; margin: 22px auto 0; }
.faq-search input { min-height: 54px; border-radius: 14px; padding-left: 18px; font-size: 16px; box-shadow: 0 10px 30px #142d290d; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.faq-layout .faq { max-width: none; }
.faq-group + .faq-group { margin-top: 30px; }
.faq-group h2 { font-size: 20px; margin-bottom: 4px; }
.faq-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.ai-cta-card { background: linear-gradient(150deg, #e6f6ec, #f7fbf8); border: 1px solid #cfe6d6; border-radius: 18px; padding: 22px; }
.ai-cta-card .ai-mark { width: 30px; height: 30px; }
.ai-cta-card h3 { margin: 10px 0 4px; }
.faq details { background: transparent; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e7f2ea; color: var(--green); font-weight: 700; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }

/* Footer */
.site-footer { background: radial-gradient(700px 300px at 10% 0%, #173a30, transparent 60%), #0f221d; padding: 64px 0 28px; }
.footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.site-footer strong { display: block; margin-bottom: 6px; color: #fff; font-size: 14px; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 0 36px; margin-bottom: 36px; border-bottom: 1px solid #2a4238; }
.footer-cta h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); color: #fff; letter-spacing: -0.03em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .split-section, .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .faq-aside { position: static; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
  .footer-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.site-footer .brand { display: inline-flex; margin: 0 0 12px; }
.site-footer .btn { display: inline-flex; margin: 0; }
.site-footer .btn-mint { color: var(--dark); }
.site-footer .btn-ghost-light { color: #fff; }

/* ===================== Responsive hardening (v4) ===================== */
html, body { max-width: 100%; overflow-x: clip; }
img, svg, video { height: auto; }
.shell { grid-template-columns: 220px minmax(0, 1fr); }
.sidebar, .portal-main, .content, .card, .panel, .grid > *, .split > *, .hero > *, .split-section > *, .faq-layout > * { min-width: 0; }
.portal-menu-toggle { display: none; }
input, select, textarea { max-width: 100%; }
td, th { overflow-wrap: anywhere; }
.mono { overflow-wrap: anywhere; word-break: break-word; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: sticky; top: 0; z-index: 40; padding: 10px 14px; }
  .sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0; }
  .sidebar-brand .sub { display: none; }
  .portal-menu-toggle { display: inline-flex; margin-left: auto; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 9px; border: 1px solid #3c6255; background: #1d4a3d; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
  /* Without JavaScript: a swipeable strip. With JavaScript: a drawer. */
  .sidebar .menu { flex-direction: row; overflow-x: auto; gap: 2px; max-width: 100%; margin-top: 8px; scrollbar-width: none; }
  .js .sidebar .menu { display: none; }
  .js .sidebar .menu.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: 10px; max-height: 70vh; overflow-y: auto; }
  .js .sidebar .menu.open .group { display: block; grid-column: 1 / -1; margin: 10px 4px 2px; }
  .sidebar .nav { white-space: nowrap; }
  .js .sidebar .menu.open .nav { white-space: normal; background: #1b4237; }
  .topbar { flex-wrap: wrap; }
  .page-head .actions { width: 100%; }
}
@media (max-width: 480px) {
  .content { padding: 12px; }
  .metric .value { font-size: 21px; }
  .page-head h1 { font-size: 22px; }
  .topbar .small { display: none; }
  .js .sidebar .menu.open { grid-template-columns: minmax(0, 1fr); }
  .btn-lg { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .filters .field { min-width: 0; flex: 1 1 100%; }
  .rows .row { flex-wrap: wrap; }
  .rows dd { text-align: left; }
}
@media (max-width: 360px) {
  .brand .wordmark { font-size: 23px; }
  .header-inner { gap: 10px; }
  .hero h1, .hero-copy h1 { font-size: 36px; }
  .trust-bar { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--border); }
  .quick { grid-template-columns: 1fr 1fr; }
}
/* Large screens: keep line lengths comfortable and use the extra width. */
@media (min-width: 1600px) {
  .container { width: min(1320px, 90%); }
  .content { max-width: 1440px; }
  .hero h1 { font-size: 84px; }
}

/* Sign-in menu: the platform portal sits behind an unlabelled chevron (rarely needed). */
details.more-signin { border: 0; padding: 0; margin-top: 2px; border-top: 1px solid #eef2ef; }
details.more-signin summary { list-style: none; display: flex; justify-content: center; padding: 4px; cursor: pointer; border-radius: 8px; color: #9aa7a0; }
details.more-signin summary::-webkit-details-marker { display: none; }
details.more-signin summary::after { content: none; }
details.more-signin summary:hover { background: #f3f6f4; color: var(--muted); }
details.more-signin summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
details.more-signin[open] summary svg { transform: rotate(180deg); }
.platform-link strong { font-size: 13px; color: var(--muted); }

/* ---------- Messaging ---------- */
.nav-count { position: absolute; top: 2px; left: calc(50% + 6px); background: #c0392b; color: #fff; border-radius: 9px; font-size: 10px; font-weight: 700; line-height: 16px; min-width: 16px; padding: 0 4px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.tabs a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; text-decoration: none; color: inherit; background: #fff; }
.tabs a.active { background: var(--green); border-color: var(--green); color: #fff; }
.msg-list { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.msg-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-top: 1px solid #edf1ed; text-decoration: none; color: inherit; }
.msg-row:first-child { border-top: 0; }
.msg-row:hover { background: #f6faf7; }
.msg-row.unread strong { font-weight: 800; }
.msg-row.unread { background: #f3f9f5; }
.msg-row-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.msg-row-main .small, .msg-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.thread-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.thread-head h1 { margin: 0 0 4px; overflow-wrap: anywhere; }
.thread-head .actions { display: flex; gap: 8px; align-items: center; }
.thread { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; max-width: min(78%, 640px); gap: 3px; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.theirs { align-self: flex-start; }
.msg.system { align-self: center; max-width: 100%; text-align: center; }
.bubble { padding: 10px 13px; border-radius: 14px; background: #fff; border: 1px solid var(--border); overflow-wrap: anywhere; line-height: 1.45; }
.msg.mine .bubble { background: var(--green); color: #fff; border-color: var(--green); border-bottom-right-radius: 4px; }
.msg.theirs .bubble { border-bottom-left-radius: 4px; }
.reply textarea { width: 100%; }
label.check { display: flex; gap: 8px; align-items: center; margin: 6px 0 12px; font-size: 14px; }
@media (max-width: 480px) { .msg { max-width: 92%; } .msg-row { padding: 12px; } }
