:root {
  --ink: #142426;
  --muted: #617174;
  --paper: #f7f9f7;
  --white: #ffffff;
  --deep: #102a2a;
  --deep-2: #173737;
  --teal: #1f7770;
  --teal-light: #dff0ec;
  --gold: #d2a63b;
  --gold-dark: #a77816;
  --gold-pale: #f8eed2;
  --line: #dbe3e0;
  --red: #a9433d;
  --red-pale: #f7e4e2;
  --blue: #376e92;
  --blue-pale: #e4eff6;
  --amber: #9a6816;
  --amber-pale: #f8ecd3;
  --shadow: 0 24px 60px rgba(12, 38, 36, 0.13);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behaviour: smooth; scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--white); padding: 12px 18px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(20,36,38,.09); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand img { width: 148px; height: 54px; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; gap: 24px; margin-left: auto; }
.desktop-nav a { text-decoration: none; font-size: .9rem; font-weight: 700; color: #314244; }
.desktop-nav a:hover { color: var(--teal); }
.menu-button { display: none; background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-weight: 800; }
.mobile-nav { padding: 10px 20px 20px; border-top: 1px solid var(--line); }
.mobile-nav a { display: block; padding: 10px 0; text-decoration: none; font-weight: 700; }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 22px; border-radius: 10px; font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 42px; padding-inline: 16px; font-size: .88rem; }
.button-dark { background: var(--deep); color: var(--white); }
.button-gold { background: var(--gold); color: #1d241f; box-shadow: 0 14px 32px rgba(210,166,59,.25); }
.button-ghost { color: var(--white); border: 1px solid rgba(255,255,255,.28); }

.section { padding: 100px 0; }
.section-dark { background: var(--deep); color: var(--white); }
.section-light { background: var(--white); }
.hero { position: relative; overflow: hidden; padding: 104px 0 96px; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(210,166,59,.18); border-radius: 50%; right: -210px; top: -280px; box-shadow: 0 0 0 72px rgba(210,166,59,.035), 0 0 0 144px rgba(210,166,59,.025); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.16fr) minmax(380px,.84fr); gap: 72px; align-items: center; position: relative; }
.eyebrow { margin: 0 0 14px; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 900; }
.section-dark .eyebrow, .contact-section .eyebrow { color: #e9c96e; }
h1,h2,h3,h4,p { margin-top: 0; }
h1 { max-width: 760px; font-size: clamp(2.8rem, 5.5vw, 5rem); line-height: .98; letter-spacing: -.055em; margin-bottom: 28px; }
h2 { font-size: clamp(2.15rem, 4vw, 3.55rem); line-height: 1.05; letter-spacing: -.045em; margin-bottom: 20px; }
h3 { line-height: 1.2; }
.hero-lead { max-width: 700px; color: #cbd7d4; font-size: 1.18rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.microcopy { max-width: 670px; font-size: .82rem; color: #91a7a2; margin: 18px 0 0; }
.hero-panel { background: linear-gradient(155deg, rgba(255,255,255,.11), rgba(255,255,255,.045)); border: 1px solid rgba(255,255,255,.17); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.panel-topline { display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: #b7c8c4; font-weight: 800; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.08); padding: 6px 9px; border-radius: 999px; }
.live-pill i, .system-live i { width: 7px; height: 7px; background: #64c28e; border-radius: 50%; box-shadow: 0 0 0 4px rgba(100,194,142,.12); }
.hero-metric { padding: 34px 0 26px; border-bottom: 1px solid rgba(255,255,255,.13); }
.hero-metric span { display: block; color: #c8d3d0; font-size: .88rem; }
.hero-metric strong { display: block; margin: 3px 0 2px; color: var(--gold); font-size: 4.3rem; line-height: 1; letter-spacing: -.06em; }
.hero-metric small { color: #9eb0ac; }
.metric-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; padding-top: 24px; }
.metric-grid div { padding: 16px; background: rgba(3,16,15,.2); border-radius: 12px; }
.metric-grid strong { display: block; color: var(--white); font-size: 1.45rem; }
.metric-grid span { display: block; color: #aabbb7; font-size: .76rem; line-height: 1.4; }
.assumption-note { font-size: .74rem; color: #869894; margin: 18px 0 0; }

.trust-strip { background: #0b201f; color: #c7d4d1; border-top: 1px solid rgba(255,255,255,.06); }
.trust-grid { display: grid; grid-template-columns: repeat(6,1fr); min-height: 78px; align-items: center; }
.trust-grid span { text-align: center; font-size: .78rem; font-weight: 800; padding: 10px; border-right: 1px solid rgba(255,255,255,.08); }
.trust-grid span:last-child { border-right: 0; }

.section-heading { max-width: 850px; margin-bottom: 48px; }
.section-heading.narrow { max-width: 730px; }
.section-heading p:not(.eyebrow), .solution-intro > p:not(.eyebrow), .demo-heading > p, .contact-grid > div > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.pain-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.pain-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfcfb; min-height: 270px; display: flex; flex-direction: column; }
.card-number { color: var(--gold-dark); font-weight: 900; font-size: .78rem; letter-spacing: .12em; }
.pain-card h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.pain-card p { color: var(--muted); font-size: .93rem; }
.loss-tag { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--red); font-size: .78rem; font-weight: 800; }

.section-solution { background: #eef3f1; }
.solution-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 80px; align-items: start; }
.solution-intro { position: sticky; top: 116px; }
.text-link { display: inline-flex; gap: 10px; color: var(--teal); font-weight: 900; text-decoration: none; border-bottom: 1px solid currentColor; }
.solution-list { border-top: 1px solid #cbd7d3; }
.solution-row { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid #cbd7d3; }
.solution-row > span { width: 42px; height: 42px; display: grid; place-items: center; background: var(--deep); color: var(--gold); border-radius: 50%; font-weight: 900; font-size: .76rem; }
.solution-row h3 { margin: 0 0 5px; font-size: 1.12rem; }
.solution-row p { margin: 0; color: var(--muted); font-size: .92rem; }

.calculator-section { background: var(--deep); color: var(--white); }
.calculator-section .section-heading p:not(.eyebrow) { color: #aebfbb; }
.calculator-grid { display: grid; grid-template-columns: .92fr 1.08fr; background: var(--white); border-radius: 24px; overflow: hidden; color: var(--ink); box-shadow: var(--shadow); }
.calculator-controls { padding: 38px; display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.calculator-controls label { display: block; position: relative; }
.calculator-controls label > span { display: block; min-height: 42px; font-size: .8rem; font-weight: 800; color: #4c6061; }
.calculator-controls input[type="number"], .calculator-controls select { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 9px; padding: 0 13px; color: var(--ink); background: var(--white); }
.input-prefix { display: grid; grid-template-columns: 38px 1fr; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.input-prefix b { display: grid; place-items: center; background: #eef3f1; color: var(--teal); }
.input-prefix input[type="number"] { border: 0; border-radius: 0; }
.calculator-controls output { position: absolute; right: 0; top: 0; color: var(--teal); font-weight: 900; }
input[type="range"] { width: 100%; accent-color: var(--teal); }
.calculator-results { padding: 42px; background: #eff4f2; border-left: 1px solid var(--line); }
.result-kicker { margin: 0; color: var(--muted); font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.calculator-results > strong { display: block; margin: 10px 0 28px; font-size: clamp(2.5rem,5vw,4.7rem); color: var(--teal); line-height: 1; letter-spacing: -.06em; }
.result-breakdown { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.result-breakdown div { padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.result-breakdown span { display: block; color: var(--muted); font-size: .72rem; min-height: 40px; }
.result-breakdown b { font-size: .95rem; }
.percentage-story { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 18px; }
.percentage-story div { border-top: 2px solid var(--gold); padding-top: 12px; }
.percentage-story span { display: block; font-size: .72rem; color: var(--muted); }
.percentage-story strong { display: block; font-size: 1.4rem; margin-top: 3px; }

.demo-section { background: #dfe7e4; }
.demo-heading { display: grid; grid-template-columns: 1fr .75fr; gap: 60px; align-items: end; margin-bottom: 34px; }
.demo-heading h2 { margin-bottom: 0; }
.app-shell { display: grid; grid-template-columns: 220px minmax(0,1fr); min-height: 720px; background: #f5f7f6; border: 1px solid #c8d4d0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(12,38,36,.2); }
.app-sidebar { display: flex; flex-direction: column; background: #0f2928; color: #d9e4e1; padding: 22px 14px; }
.app-brand { display: flex; gap: 11px; align-items: center; padding: 0 8px 24px; }
.app-mark, .portal-logo { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--gold); color: #1a2a25; font-weight: 950; }
.app-brand b, .app-brand small { display: block; }
.app-brand small { color: #8da5a0; font-size: .7rem; }
.app-sidebar nav { display: grid; gap: 5px; }
.app-nav { display: flex; align-items: center; gap: 10px; color: #aebfbb; background: transparent; border: 0; padding: 10px 11px; border-radius: 8px; cursor: pointer; text-align: left; font-size: .82rem; font-weight: 800; }
.app-nav span { width: 28px; height: 28px; display: grid; place-items: center; background: rgba(255,255,255,.06); border-radius: 7px; font-size: .62rem; }
.app-nav:hover, .app-nav.active { background: rgba(255,255,255,.1); color: var(--white); }
.app-nav.active span { color: #1d2e29; background: var(--gold); }
.app-user { display: flex; gap: 9px; align-items: center; margin-top: auto; padding: 15px 8px 0; border-top: 1px solid rgba(255,255,255,.08); }
.app-user > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #28514e; font-size: .7rem; font-weight: 900; }
.app-user b, .app-user small { display: block; font-size: .7rem; }
.app-user small { color: #829a95; }
.app-main { min-width: 0; }
.app-header { min-height: 82px; padding: 17px 24px; display: flex; align-items: center; justify-content: space-between; background: var(--white); border-bottom: 1px solid var(--line); }
.app-header p { margin: 0; color: var(--muted); font-size: .68rem; }
.app-header h3 { margin: 2px 0 0; font-size: 1.15rem; }
.app-header-actions { display: flex; gap: 12px; align-items: center; }
.system-live { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; color: var(--teal); font-weight: 900; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--white); border-radius: 50%; font-weight: 900; cursor: pointer; }
.app-panel { display: none; padding: 24px; animation: panelIn .28s ease; }
.app-panel.active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.kpi-row article { padding: 18px; border: 1px solid var(--line); background: var(--white); border-radius: 12px; }
.kpi-row span, .kpi-row small { display: block; color: var(--muted); font-size: .68rem; }
.kpi-row strong { display: block; margin: 5px 0 2px; font-size: 1.45rem; line-height: 1.1; }
.kpi-row .positive { color: var(--teal); }
.kpi-row.compact { margin-bottom: 14px; }
.dashboard-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 14px; margin-top: 14px; }
.app-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 16px; }
.card-head span { color: var(--muted); font-size: .65rem; }
.card-head h4 { margin: 1px 0 0; font-size: .95rem; }
.mini-select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: #f6f8f7; color: var(--muted); white-space: nowrap; }
.bar-chart { height: 220px; display: flex; align-items: end; gap: 9px; padding: 18px 8px 25px; border-bottom: 1px solid var(--line); }
.bar-chart > div { position: relative; flex: 1; height: 100%; display: flex; align-items: end; justify-content: center; gap: 3px; }
.bar-chart > div::before, .bar-chart > div::after { content: ""; width: 28%; border-radius: 4px 4px 0 0; }
.bar-chart > div::before { height: var(--b); background: var(--gold); }
.bar-chart > div::after { height: var(--c); background: var(--teal); }
.bar-chart span { position: absolute; bottom: -22px; font-size: .62rem; color: var(--muted); }
.chart-legend { display: flex; gap: 18px; padding-top: 13px; color: var(--muted); font-size: .68rem; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; }
.chart-legend .gold { background: var(--gold); }
.chart-legend .teal { background: var(--teal); }
.link-button { border: 0; background: transparent; color: var(--teal); cursor: pointer; font-weight: 900; font-size: .7rem; }
.priority-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.priority-list li { display: grid; grid-template-columns: 1fr auto; padding: 12px; background: #f6f8f7; border-radius: 8px; }
.priority-list b, .priority-list span { display: block; }
.priority-list b { font-size: .76rem; }
.priority-list span { grid-column: 1; color: var(--muted); font-size: .65rem; }
.priority-list em { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.status { display: inline-flex; width: max-content; align-items: center; padding: 4px 7px; border-radius: 999px; font-size: .62rem; font-style: normal; font-weight: 900; }
.status-red { color: var(--red); background: var(--red-pale); }
.status-amber { color: var(--amber); background: var(--amber-pale); }
.status-blue { color: var(--blue); background: var(--blue-pale); }
.status-green { color: var(--teal); background: var(--teal-light); }
.panel-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.panel-toolbar span { color: var(--muted); font-size: .68rem; }
.panel-toolbar h4 { margin: 2px 0 0; font-size: 1.15rem; }
.app-button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--teal); color: var(--white); font-size: .72rem; font-weight: 900; cursor: pointer; }
.app-button:hover { background: #185f5a; }
.data-table { width: 100%; }
.table-row { display: grid; grid-template-columns: 1fr 1.2fr 1.45fr 1fr .8fr; align-items: center; min-height: 54px; padding: 0 10px; border-bottom: 1px solid var(--line); font-size: .69rem; }
.table-row:last-child { border-bottom: 0; }
.table-head { min-height: 36px; background: #f2f5f4; color: var(--muted); font-size: .62rem; font-weight: 900; }
.table-row.selected { background: #fbf4e3; border-radius: 7px; }
.route-board { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.route-card { padding: 17px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.route-card > div:first-child { display: flex; justify-content: space-between; align-items: center; }
.route-card > div:first-child > span { color: var(--muted); font-size: .66rem; font-weight: 900; }
.route-card h4 { margin: 14px 0 2px; font-size: .9rem; }
.route-card p, .route-card small { color: var(--muted); font-size: .65rem; }
.route-progress { height: 7px; background: #edf1f0; border-radius: 999px; overflow: hidden; margin: 14px 0 8px; }
.route-progress i { display: block; height: 100%; background: var(--teal); border-radius: inherit; transition: width .5s ease; }
.route-alert { border-color: #e8c16a; }
.evidence-card { margin-top: 12px; }
.evidence-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.evidence-grid div { padding: 12px; background: #f6f8f7; border-radius: 8px; }
.evidence-grid span, .evidence-grid b { display: block; font-size: .68rem; }
.evidence-grid span { color: var(--muted); }
.message-builder { display: grid; grid-template-columns: 1fr 250px; gap: 20px; align-items: center; }
.message-form { display: grid; gap: 12px; }
.message-form label span { display: block; color: var(--muted); font-size: .67rem; font-weight: 900; margin-bottom: 4px; }
.message-form select, .message-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 9px; color: var(--ink); background: var(--white); font-size: .72rem; }
.message-cost { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.message-cost div { padding: 10px; background: #f5f7f6; border-radius: 7px; }
.message-cost span, .message-cost b { display: block; font-size: .68rem; }
.message-cost span { color: var(--muted); }
.phone-preview { width: 220px; min-height: 390px; margin: auto; padding: 28px 15px 18px; border: 6px solid #1d2929; border-radius: 28px; background: #eef2ef; box-shadow: 0 16px 35px rgba(20,36,38,.15); }
.phone-speaker { width: 62px; height: 5px; background: #1d2929; border-radius: 10px; margin: -15px auto 25px; }
.phone-preview > small, .phone-preview > span { display: block; color: var(--muted); font-size: .62rem; text-align: center; }
.message-bubble { margin: 28px 0 8px; padding: 12px; background: #d8eee5; border-radius: 12px 12px 2px 12px; font-size: .7rem; }
.customer-window { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.customer-window header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--deep); color: var(--white); }
.customer-window header > div { display: flex; align-items: center; gap: 10px; }
.customer-window header button { border: 1px solid rgba(255,255,255,.3); border-radius: 7px; background: transparent; color: var(--white); padding: 6px 10px; font-size: .67rem; }
.customer-greeting { display: flex; justify-content: space-between; align-items: start; padding: 22px; background: #f4f7f6; }
.customer-greeting span, .customer-greeting p { color: var(--muted); font-size: .68rem; }
.customer-greeting h4 { margin: 2px 0; font-size: 1.15rem; }
.portal-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; padding: 20px; }
.balance-card, .portal-card { padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.balance-card { background: var(--deep); color: var(--white); }
.balance-card span, .balance-card small, .portal-card span, .portal-card small { display: block; color: #879d98; font-size: .65rem; }
.balance-card strong, .portal-card strong { display: block; margin: 8px 0 3px; font-size: 1.1rem; }
.balance-card button { width: 100%; margin-top: 14px; border: 0; border-radius: 7px; padding: 8px; background: var(--gold); font-size: .68rem; font-weight: 900; cursor: pointer; }
.portal-actions { display: flex; gap: 9px; padding: 0 20px 20px; }
.portal-actions button { border: 1px solid var(--line); background: var(--white); border-radius: 7px; padding: 8px 11px; font-size: .68rem; cursor: pointer; }
.prototype-note { color: #5e706c; font-size: .76rem; text-align: center; margin: 14px 0 0; }

.outcomes-section { background: var(--white); }
.outcome-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.outcome-grid article { min-height: 230px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.outcome-grid strong { color: var(--teal); font-size: 2.5rem; letter-spacing: -.05em; }
.outcome-grid h3 { margin: 20px 0 8px; font-size: 1.05rem; }
.outcome-grid p { color: var(--muted); font-size: .88rem; }

.implementation-section { background: #eef3f1; }
.implementation-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 80px; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid #cbd7d3; }
.timeline li { display: grid; grid-template-columns: 60px 1fr; gap: 18px; padding: 23px 0; border-bottom: 1px solid #cbd7d3; }
.timeline li > span { color: var(--gold-dark); font-weight: 900; }
.timeline b { font-size: 1.05rem; }
.timeline p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }

.contact-section { padding: 90px 0; background: var(--deep); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 70px; align-items: center; }
.contact-grid h2 { margin-bottom: 18px; }
.contact-grid > div > p:not(.eyebrow) { color: #aebfbb; }
.contact-actions { display: grid; gap: 12px; }
.contact-card { display: block; padding: 20px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: rgba(255,255,255,.06); text-decoration: none; transition: background .2s ease, transform .2s ease; }
.contact-card:hover { background: rgba(255,255,255,.1); transform: translateX(4px); }
.contact-card span, .contact-card small, .contact-card strong { display: block; }
.contact-card span { color: var(--gold); font-size: .72rem; text-transform: uppercase; font-weight: 900; letter-spacing: .08em; }
.contact-card strong { margin: 4px 0; font-size: 1.15rem; }
.contact-card small { color: #9eb0ac; }

.site-footer { padding: 38px 0; background: #091b1a; color: #9aadaa; }
.footer-grid { display: grid; grid-template-columns: 1fr .75fr 1.3fr; gap: 40px; align-items: center; }
.footer-grid img { width: 130px; filter: brightness(1.15); margin-bottom: 10px; }
.footer-grid p { margin: 0; font-size: .76rem; }
.footer-grid b, .footer-grid a { display: block; }
.footer-grid b { color: var(--white); margin-bottom: 5px; }
.footer-grid a { color: #bdcbc8; text-decoration: none; font-size: .82rem; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(4,18,17,.74); backdrop-filter: blur(8px); }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(560px,100%); max-height: 88vh; overflow: auto; background: var(--white); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eef2f0; font-size: 1.4rem; cursor: pointer; }
.modal-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.modal-card p { color: var(--muted); }
.bill-preview { border: 6px solid var(--gold); padding: 20px; margin-top: 18px; }
.bill-preview header { display: flex; justify-content: space-between; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.bill-preview header b { font-size: 1.2rem; }
.bill-preview dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bill-preview dt { color: var(--muted); font-size: .7rem; }
.bill-preview dd { margin: 0; font-weight: 800; }
.bill-total { display: flex; justify-content: space-between; padding-top: 14px; border-top: 2px solid var(--ink); font-size: 1.2rem; }
.toast { position: fixed; z-index: 120; right: 24px; bottom: 24px; max-width: 360px; padding: 13px 16px; background: var(--deep); color: var(--white); border-left: 4px solid var(--gold); border-radius: 8px; box-shadow: var(--shadow); transform: translateY(140%); transition: transform .25s ease; font-size: .82rem; font-weight: 800; }
.toast.show { transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .hero-grid, .solution-grid, .implementation-grid { grid-template-columns: 1fr; gap: 42px; }
  .solution-intro { position: static; }
  .pain-grid { grid-template-columns: repeat(2,1fr); }
  .trust-grid { grid-template-columns: repeat(3,1fr); }
  .trust-grid span { border-bottom: 1px solid rgba(255,255,255,.08); }
  .app-shell { grid-template-columns: 180px minmax(0,1fr); }
  .portal-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .hero { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 620px; }
  .calculator-grid, .demo-heading, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .calculator-results { border-left: 0; border-top: 1px solid var(--line); }
  .app-shell { display: block; min-height: 0; }
  .app-sidebar { padding: 13px; }
  .app-brand, .app-user { display: none; }
  .app-sidebar nav { display: flex; overflow-x: auto; gap: 7px; padding-bottom: 3px; }
  .app-nav { flex: 0 0 auto; padding: 8px 10px; }
  .kpi-row, .outcome-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid, .message-builder { grid-template-columns: 1fr; }
  .route-board { grid-template-columns: 1fr; }
  .phone-preview { display: none; }
}

@media (max-width: 580px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .site-header .button-small { display: none; }
  .nav-wrap { min-height: 68px; }
  .brand img { width: 126px; height: 46px; }
  h1 { font-size: 2.65rem; }
  h2 { font-size: 2.1rem; }
  .hero-actions .button { width: 100%; }
  .metric-grid, .pain-grid, .calculator-controls, .result-breakdown, .percentage-story, .kpi-row, .outcome-grid, .evidence-grid, .portal-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .calculator-controls, .calculator-results { padding: 24px; }
  .app-header { padding: 13px 14px; }
  .system-live { display: none; }
  .app-panel { padding: 14px; }
  .table-card { overflow-x: auto; }
  .data-table { min-width: 660px; }
  .panel-toolbar { align-items: start; gap: 12px; }
  .panel-toolbar .app-button { max-width: 170px; }
  .portal-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
