/* ---------- Design tokens ---------- */
:root {
  --bg: #f5f8fb; --surface: #ffffff; --surface-2: #eef4f8; --text: #0f1f2e; --muted: #5a6b7d;
  --line: #dbe4ec; --brand: #0b6e8a; --brand-strong: #075a72; --brand-ink: #ffffff;
  --brand-soft: #e3f2f7; --accent: #e8f3f7; --mint: #19a386;
  --hero-1: #062f3f; --hero-2: #0b6e8a; --hero-text: #eaf6fa;
  --warn-bg: #fff4dc; --warn: #7a5200; --bad-bg: #fde8e6; --bad: #8a1c12;
  --ok-bg: #e2f5ec; --ok: #17694a; --gold: #f2b01e;
  --shadow: 0 1px 2px rgba(15, 31, 46, .06), 0 8px 24px rgba(15, 31, 46, .06);
  --shadow-lg: 0 20px 50px rgba(6, 47, 63, .25);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d141b; --surface: #151f29; --surface-2: #1a2632; --text: #e7eef4; --muted: #9aabbb;
    --line: #273544; --brand: #4cb8d6; --brand-strong: #7dcde4; --brand-ink: #06202a;
    --brand-soft: #16303b; --accent: #1b2e38; --mint: #45c9a9;
    --hero-1: #041c26; --hero-2: #0a4659; --hero-text: #e3f3f8;
    --warn-bg: #3a2e12; --warn: #f2cf7c; --bad-bg: #3d1d1a; --bad: #f4a49b;
    --ok-bg: #143327; --ok: #8fd6b4;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .45);
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
       background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: 1.9rem; margin: 0 0 8px; }
h2 { font-size: 1.3rem; margin: 32px 0 12px; }
h3 { font-size: 1.05rem; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
main.page { padding-top: 28px; padding-bottom: 56px; }
main.landing { padding-bottom: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Header ---------- */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem; color: var(--text); text-decoration: none; }
.logo-mark { width: 32px; height: 32px; color: var(--brand); flex: none; }
.main-nav { display: flex; gap: 16px; align-items: center; }
.main-nav a { white-space: nowrap; }
.main-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.main-nav a:not(.btn):hover { color: var(--brand); }
.main-nav form { margin: 0; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; width: 44px; height: 44px; margin: 0; padding: 12px 10px; cursor: pointer; border-radius: 10px; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; margin: 4px 0; }
.nav-toggle:focus-visible + .burger { outline: 3px solid var(--brand); }
@media (max-width: 1120px) {
  .burger { display: block; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 0 16px; }
  .main-nav a:not(.btn) { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .main-nav .btn { text-align: center; margin: 8px 0; }
  .nav-toggle:checked ~ .main-nav { display: flex; }
}

/* ---------- Buttons & forms ---------- */
.btn, button { display: inline-block; background: var(--brand); color: var(--brand-ink); border: 1px solid var(--brand);
  border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s; line-height: 1.3; }
.btn:hover, button:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn.large { padding: 14px 24px; font-size: 1.05rem; border-radius: 12px; }
.btn.small { padding: 7px 14px; font-size: .9rem; }
.btn.block, button.block { display: block; width: 100%; text-align: center; }
.btn.ghost, .btn.secondary, button.secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn.ghost:hover, .btn.secondary:hover, button.secondary:hover { background: var(--brand-soft); }
.btn.light { background: #fff; color: #06303f; border-color: #fff; }
.btn.light:hover { background: #e6f4f8; }
button.link { background: none; border: 0; color: var(--brand); padding: 0; font-weight: 500; text-decoration: underline; }
button.link.danger { color: var(--bad); }
button[disabled] { opacity: 0.45; cursor: not-allowed; }
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[type=file] { font: inherit; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.form { max-width: 480px; margin: 0 auto; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 180px; }
form.inline { display: inline-flex; gap: 10px; align-items: center; margin: 0; }
form.inline select { width: auto; padding: 6px 8px; }
.hp { position: absolute; left: -9999px; }
.flash { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-weight: 500; }

/* ---------- Cards, tables, tags ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stat { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--surface-2); white-space: nowrap; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.thumb { width: 40px; height: 40px; object-fit: contain; float: left; margin-right: 10px; border-radius: 6px; background: #fff; }
.tag { display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: 0.8rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.tag.emergency { background: var(--bad-bg); color: var(--bad); }
.tag.urgent { background: var(--warn-bg); color: var(--warn); }
.tag.routine, .tag.ok { background: var(--ok-bg); color: var(--ok); }
.chip { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-strong); font-size: .82rem; font-weight: 600; }
.ok-text { color: var(--ok); font-weight: 600; }
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 14px; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price.small-price { font-size: 1.6rem; }
.qr { background: #fff; padding: 8px; border-radius: 8px; width: 220px; height: 220px; }
code { background: var(--accent); padding: 2px 6px; border-radius: 4px; word-break: break-all; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(76, 184, 214, .35), transparent 60%),
        linear-gradient(135deg, var(--hero-1), var(--hero-2)); color: var(--hero-text); padding: 72px 0 84px; overflow: hidden; }
.hero-small { padding: 56px 0 60px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 0 0 16px; color: #fff; letter-spacing: -0.03em; max-width: 16ch; }
.hero-small h1 { max-width: 22ch; }
.hero .lead { font-size: 1.15rem; max-width: 56ch; opacity: .92; margin: 0 0 28px; }
.hero .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.hero .btn:not(.ghost) { background: #fff; color: #06303f; border-color: #fff; }
.hero .btn:not(.ghost):hover { background: #e6f4f8; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand); margin: 0 0 10px; }
.hero .eyebrow { color: #8fdcf0; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-row { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 22px; flex-wrap: wrap; font-size: .92rem; opacity: .9; }
.trust-row li::before { content: "✓"; display: inline-block; margin-right: 8px; color: #7ee3c6; font-weight: 800; }
.call-card { background: var(--surface); color: var(--text); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 22px; transform: rotate(1.2deg); }
.call-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.call-head .tag { margin-left: auto; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(25, 163, 134, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(25, 163, 134, 0); } 100% { box-shadow: 0 0 0 0 rgba(25, 163, 134, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } html { scroll-behavior: auto; } }
.call-body { margin: 0; }
.call-body > div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.call-body dt { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.call-body dd { margin: 0; }
.meter { display: inline-block; vertical-align: middle; width: 90px; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-right: 6px; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #e8651e); }
.call-foot { margin-top: 14px; font-size: .85rem; color: var(--ok); font-weight: 600; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .call-card { transform: none; }
  .hero { padding: 48px 0 56px; }
}

/* ---------- Partners strip ---------- */
.partners { background: var(--surface); border-bottom: 1px solid var(--line); }
.partners-inner { display: flex; align-items: center; gap: 28px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.partners-label { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--muted); }
.partner-logos { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.partner-logo { font-weight: 700; color: var(--muted); text-decoration: none; opacity: .85; transition: opacity .15s; }
.partner-logo:hover { opacity: 1; }
.partner-logo img { height: 34px; width: auto; display: block; }

/* ---------- Landing sections ---------- */
.section { padding: 64px 0 8px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 28px; letter-spacing: -0.025em; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.lead-sm { font-size: 1.08rem; color: var(--muted); max-width: 56ch; }
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; position: relative; }
.stats-band > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stats-band strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; }
.stats-band span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .stats-band { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stats-band { grid-template-columns: 1fr; } }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.feature:hover { transform: translateY(-2px); }
.feature h3 { margin: 14px 0 6px; }
.feature p { margin: 0; color: var(--muted); }

/* Icons: SVG masks so they follow the theme colour */
.icon { display: inline-block; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); position: relative; }
.icon::after { content: ""; position: absolute; inset: 11px; background: var(--brand);
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.icon-phone { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.icon-clipboard { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2M9 12h6M9 16h4'/%3E%3C/svg%3E"); }
.icon-branch { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='18' cy='6' r='3'/%3E%3Ccircle cx='12' cy='18' r='3'/%3E%3Cpath d='M6 9v1a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V9M12 13v2'/%3E%3C/svg%3E"); }
.icon-calendar { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18M9 16l2 2 4-4'/%3E%3C/svg%3E"); }
.icon-shield { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.icon-message { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps h3 { margin: 14px 0 6px; }
.steps p { margin: 0; color: var(--muted); }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.checks { list-style: none; padding: 0; margin: 16px 0 24px; }
.checks li { position: relative; padding-left: 28px; margin: 8px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317694a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.case-preview { display: grid; gap: 12px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.case:nth-child(2) { margin-left: 28px; }
.case:nth-child(3) { margin-left: 56px; }
.case p { margin: 8px 0 2px; font-weight: 600; }
.case .muted { font-size: .88rem; }
@media (max-width: 480px) { .case:nth-child(n) { margin-left: 0; } }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 860px; margin: 0 auto 18px; }
.pricing.three { max-width: none; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan h3 { margin: 0; font-size: 1.15rem; }
.plan .checks { flex: 1; }
.featured-plan { border: 2px solid var(--brand); }
.plan-badge { position: absolute; top: -12px; left: 24px; background: var(--brand); color: var(--brand-ink); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }

/* ---------- Sponsor ads ---------- */
.sponsored { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.ad-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.ad-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.ad-card h3 { margin: 4px 0 0; font-size: 1.1rem; }
.ad-card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.ad-company { font-weight: 700; color: var(--brand); font-size: .92rem; }
.ad-logo { height: 44px; width: auto; max-width: 160px; object-fit: contain; align-self: flex-start; border-radius: 6px; margin: 6px 0; }
.ad-cta { font-weight: 700; color: var(--brand); margin-top: 8px; }
.ad-featured { grid-column: span 2; background: linear-gradient(135deg, var(--brand-soft), var(--surface)); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
@media (max-width: 620px) { .ad-featured { grid-column: auto; } }
.ad-empty { border-style: dashed; background: transparent; box-shadow: none; }
.ad-empty h3 { color: var(--muted); }
.dash-ad { margin: 0 0 22px; }
.dash-ad a { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--text); text-decoration: none; box-shadow: var(--shadow); flex-wrap: wrap; }
.dash-ad a:hover { border-color: var(--brand); }
.dash-ad .ad-logo { height: 36px; margin: 0; }
.dash-ad-text { flex: 1 1 280px; display: flex; flex-direction: column; }
.dash-ad .ad-cta { margin: 0; }

/* ---------- FAQ & CTA ---------- */
.faq { max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-size: 1.3rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }
.cta-band { margin: 72px 0 0; padding: 56px 24px; text-align: center; border-radius: 22px 22px 0 0; color: #fff;
  background: radial-gradient(800px 300px at 50% -20%, rgba(76, 184, 214, .4), transparent 70%), linear-gradient(135deg, var(--hero-1), var(--hero-2)); }
.cta-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0 0 8px; }
.cta-band p { opacity: .9; margin: 0 0 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 6px 0 12px; }
.footer-grid a:not(.logo), .footer-grid span { display: block; color: var(--text); text-decoration: none; margin: 6px 0; }
.footer-grid a:not(.logo):hover { color: var(--brand); }
.footer-grid p { max-width: 34ch; }
.footer-base { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Reviews (5-star picker without JavaScript) ---------- */
textarea { resize: vertical; }
.stars { border: 0; padding: 0; margin: 8px 0; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2.4rem; line-height: 1; color: var(--line); cursor: pointer; margin: 0; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--gold); }
.stars input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }
.stars-shown { font-size: 2rem; color: var(--gold); margin: 8px 0; }
.bar-row { display: grid; grid-template-columns: 40px 1fr 30px; gap: 8px; align-items: center; margin: 4px 0; }
.bar { background: var(--accent); border-radius: 99px; height: 10px; overflow: hidden; display: block; }
.bar .fill { background: var(--gold); height: 100%; display: block; }
.field-title { font-weight: 600; margin: 12px 0 0; }

/* Phone line page */
.phone-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.phone-steps .card { position: relative; }
.phone-steps h3 { margin-top: 8px; }
.big-number { font-size: 1.5rem; font-weight: 700; letter-spacing: .01em; margin: 6px 0; }
.forward-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
table.codes { width: 100%; border-collapse: collapse; }
table.codes td { padding: 8px 0; border-bottom: 1px solid var(--line, #e5e7eb); vertical-align: top; }
table.codes td:last-child { text-align: right; padding-left: 12px; }
table.codes code { font-size: 1rem; }
details.manual { margin-top: 10px; }
details.manual summary { cursor: pointer; color: var(--muted, #667); }
.plan-note { margin: 0 0 8px; }
@media (max-width: 860px) { .phone-steps { grid-template-columns: 1fr; } }

/* Patient tabs */
.tab-forms { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tab-forms select, .tab-forms input { width: 100%; }
table.ledger td.num, table.ledger th.num { text-align: right; white-space: nowrap; }
table.ledger tr.voided td { color: var(--muted); text-decoration: line-through; }
table.ledger tr.voided td .tag, table.ledger tr.voided td:last-child { text-decoration: none; }
details.void summary { cursor: pointer; color: var(--muted); font-size: .9em; }
details.void input { margin: 6px 0; min-width: 140px; }

/* Review improvement themes */
.idea-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.idea-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.idea-list { margin: 8px 0 0; padding-left: 18px; }
.idea-list li { margin: 4px 0; }

/* Recall */
.recall-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.recall-chips .chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: .92rem; }
.recall-chips .chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.recall-table tr.replied td { background: var(--warn-bg); }
.call-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 260px; }
.call-form select, .call-form input { width: auto; min-width: 0; padding: 4px 6px; }
.call-form input[type=text] { flex: 1 1 100px; }
.contact-log { list-style: none; padding: 0; margin: 8px 0 0; }
.contact-log li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.tag.reason-followup { background: var(--warn-bg); color: var(--warn); }
.tag.reason-missed, .tag.reason-perio { background: var(--bad-bg); color: var(--bad); }

/* Complaints and leads */
.link-list { list-style: none; padding: 0; margin: 8px 0; }
.link-list li { margin: 6px 0; word-break: break-all; }
.offer-banner { background: var(--ok-bg); color: var(--ok); padding: 10px 12px; border-radius: 10px; }
.row-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

/* Office */
a.alert-card { text-decoration: none; color: inherit; }
a.alert-card:hover { border-color: var(--brand); }
.flash-like { background: var(--warn-bg); color: var(--warn); border-radius: var(--radius); padding: 10px 16px; margin: 12px 0; }
.flash-like p { margin: 4px 0; }
.checklist { list-style: none; padding: 0; margin: 10px 0 0; }
.checklist li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.checklist form { display: flex; align-items: center; gap: 8px; }
.tick { width: 22px; height: 22px; min-width: 22px; padding: 0; border-radius: 6px; border: 2px solid var(--line);
  background: var(--surface); color: var(--brand-ink); font-size: 14px; line-height: 1; cursor: pointer; }
.tick.on { background: var(--mint); border-color: var(--mint); }
.done-text { color: var(--muted); text-decoration: line-through; }
.small-x { margin-left: auto; font-size: 1.1rem; opacity: .5; }
.small-x:hover { opacity: 1; }
.inv-table tr.low td { background: var(--warn-bg); }

/* Two-factor setup */
.mfa-steps { padding-left: 20px; }
.mfa-steps li { margin: 12px 0; }
.qr-wrap { background: #fff; display: inline-block; padding: 12px; border-radius: 12px; border: 1px solid var(--line); margin: 10px 0; }
.qr-wrap .qr { display: block; width: 200px; height: 200px; }
.setup-key code { font-size: 1rem; letter-spacing: .08em; word-break: break-all; }
details.recover { margin-top: 16px; }
details.recover summary { cursor: pointer; color: var(--brand); }

/* ---------- 30-second tour video ---------- */
.tour { text-align: center; }
.tour-frame { max-width: 960px; margin: 24px auto 0; border-radius: var(--radius); overflow: hidden;
              box-shadow: var(--shadow-lg); background: var(--hero-1); aspect-ratio: 16 / 9; }
.tour-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tour-note { max-width: 720px; margin: 14px auto 0; font-size: .9rem; }

/* ---------- Sarraj Credit ---------- */
.credit-options { width: 100%; margin-top: 8px; }
.credit-options td, .credit-options th { padding: 6px 4px; }
.copy-link { display: block; word-break: break-all; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; font-size: .85rem; }
.check.inline { display: inline-flex; margin-right: 14px; }
.credit-agreement { max-width: 760px; }
.tila { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 2px solid var(--text); border-radius: 8px; overflow: hidden; margin: 18px 0 8px; }
.tila > div { padding: 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.tila > div:last-child { border-right: 0; }
.tila span { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.tila strong { font-size: 1.4rem; }
.tila small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.terms-list li { margin-bottom: 6px; }
.sign-lines { margin-top: 28px; line-height: 2.4; }
.danger-zone { margin-top: 28px; }
@media print { header, footer, nav, .site-header, .site-footer { display: none !important; } .credit-agreement { box-shadow: none; border: 0; } }

/* ---------- Visit recordings and notes ---------- */
.record-form { max-width: 760px; }
.kind-choice { border: 0; padding: 0; margin: 0 0 8px; }
.kind-choice legend { font-weight: 700; margin-bottom: 6px; }
.recorder { margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.rec-status { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 12px; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.recorder.live .rec-dot { background: #d64533; animation: recpulse 1.2s infinite; }
@keyframes recpulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .recorder.live .rec-dot { animation: none; } }
.rec-time { font-variant-numeric: tabular-nums; color: var(--muted); margin-left: auto; font-size: 1.2rem; }
.rec-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.recorder audio, .audio-row audio { width: 100%; margin-top: 12px; }
.audio-row { display: flex; gap: 12px; align-items: center; margin: 12px 0; }
.audio-row audio { margin: 0; flex: 1; }
.processing .spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.note-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .note-layout { grid-template-columns: 1fr; } }
.note-form textarea { width: 100%; }
.note-side { position: sticky; top: 80px; }
.transcript { max-height: 70vh; overflow-y: auto; padding: 14px; background: var(--surface-2); border-radius: 10px; font-size: .92rem; line-height: 1.55; }
.prewrap { white-space: pre-wrap; }
.signed-note h3 { margin: 14px 0 4px; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.signed-note p { margin: 0; }
.note-actions { display: flex; gap: 18px; align-items: baseline; margin-top: 10px; }
.check-box p { margin: 4px 0; }

/* ---------- Ask a dentist (patient <-> dentist chat) ---------- */
.ask-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .ask-layout { grid-template-columns: 1fr; } }
.ask-form textarea { width: 100%; }
.emergency-note { background: var(--bad-bg); color: var(--bad); border-radius: 12px; padding: 12px 16px; margin: 14px 0; line-height: 1.5; }
.save-link { border-left: 4px solid var(--brand); }
.chat-box { max-width: 820px; }
.chat-thread { width: 100%; height: min(60vh, 560px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); display: block; }
.chat-compose { margin-top: 10px; }
.chat-compose textarea { width: 100%; }
.compose-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.file-btn { cursor: pointer; color: var(--brand); font-weight: 600; }
.file-btn input { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; max-width: 100%; }
.chat-end, .close-chat { margin-top: 10px; }
.thread-body { background: var(--surface-2); margin: 0; padding: 12px; }
.thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.msg p { margin: 4px 0 0; }
.msg.mine { align-self: flex-end; background: var(--brand); color: var(--brand-ink); }
.msg.mine .who { color: inherit; opacity: .8; }
.msg.theirs { align-self: flex-start; }
.msg.system { align-self: center; background: none; box-shadow: none; color: var(--muted); font-size: .85rem; text-align: center; }
.msg .who { display: block; font-size: .75rem; color: var(--muted); }
.msg-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg-photos img { width: 140px; height: 140px; object-fit: cover; border-radius: 10px; display: block; }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 4px; margin: 8px 0; }
.dentist-review .row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dentist-review .row-actions input[type=text] { flex: 1; min-width: 200px; }
form.inline { display: inline; }
.ask-band { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
            background: var(--brand-soft); border-radius: var(--radius); padding: 22px 26px; margin-top: 28px; }
.ask-band h2 { margin: 0 0 4px; }
.ask-band p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Dentist Feed ---------- */
.feed-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.feed-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.feed-filters .chip { text-decoration: none; }
.chip.on { background: var(--brand); color: var(--brand-ink); }
.chip.alt { background: var(--surface-2); color: var(--text); }
.chip.alt.on { background: var(--text); color: var(--bg); }
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 22px 0; align-items: start; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; text-decoration: none; flex: 0 0 auto; }
.avatar.big { width: 72px; height: 72px; font-size: 1.8rem; }
.post-author { font-weight: 700; color: var(--text); text-decoration: none; }
.verified { color: var(--mint); font-weight: 700; margin-left: 2px; }
.small { font-size: .82rem; }
.post-photos { display: grid; gap: 2px; background: var(--line); }
.post-photos.n1 { grid-template-columns: 1fr; }
.post-photos.n2, .post-photos.n4 { grid-template-columns: 1fr 1fr; }
.post-photos.n3 { grid-template-columns: 1fr 1fr 1fr; }
.post-photos img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.post-photos.n1 img { aspect-ratio: 4 / 3; }
.post-body { padding: 12px 14px 14px; }
.post-tags { margin: 0 0 6px; }
.post-caption { margin: 0 0 10px; }
.post-actions { display: flex; gap: 16px; align-items: center; }
.post-actions form { margin: 0; }
.like { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; text-decoration: none; }
.like.on { color: #d64533; }
.post-single { max-width: 680px; }
.comments { margin-top: 18px; }
.comment { border-bottom: 1px solid var(--line); padding: 8px 0; }
.comment p { margin: 2px 0; }
.comment-form textarea { width: 100%; }
.post-admin { margin-top: 14px; display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; }
.profile-head { display: flex; gap: 18px; align-items: flex-start; }
.profile-stats { margin: 4px 0; }
.edit-profile { margin: 16px 0; }
.empty-feed { margin: 22px 0; }

/* ---------- Website chat with the receptionist ---------- */
.recep-chat { max-width: 680px; margin: 0 auto; }
.recep-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.demo-note { background: var(--brand-soft); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.recep-thread { background: var(--surface-2); border-radius: var(--radius); padding: 14px; margin: 12px 0 10px;
                min-height: 200px; }
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; background: var(--brand); color: var(--brand-ink);
            border-radius: 999px; padding: 12px 18px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-lg); }
.chat-fab:hover { background: var(--brand-strong); }
@media (max-width: 600px) { .chat-fab span { display: none; } .chat-fab { padding: 14px 16px; font-size: 1.2rem; } }
.recep-thread .msg { scroll-margin-top: 90px; }
.photo-pick { display: block; margin-top: 8px; font-weight: 600; }
.chat-compose input[type=file] { margin: 4px 0 6px; max-width: 100%; }
.chat-photos { margin-bottom: 12px; }
.consent-box { font-size: .85rem; margin: 6px 0; padding: 8px 10px; background: var(--surface-2); border-radius: 10px; }
