/* ==========================================================================
   Books-pro marketing site — BR Business Tech
   Design tokens + components. No external dependencies.
   ========================================================================== */

:root {
  /* Brand */
  --ink: #0b2239;
  --ink-2: #22384d;
  --muted: #536b80;
  --sky: #0b78bd;
  --sky-strong: #075e96;
  --sky-2: #4fb3ea;
  --sky-soft: #eaf6fe;
  --sky-softer: #f4fafe;
  --amber: #f0a51f;
  --amber-strong: #d98c0c;
  --green: #0f8f5b;
  --green-soft: #e7f7ef;
  --red: #b4283c;
  --paper: #ffffff;
  --sand: #f7fafc;
  --line: #dbe7f0;
  --line-strong: #c4d6e3;
  --shadow-sm: 0 1px 2px rgba(11, 34, 57, .06), 0 1px 1px rgba(11, 34, 57, .04);
  --shadow-md: 0 12px 30px -18px rgba(11, 34, 57, .35), 0 2px 8px rgba(11, 34, 57, .05);
  --shadow-lg: 0 30px 70px -40px rgba(11, 34, 57, .55), 0 8px 24px -16px rgba(11, 34, 57, .25);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1160px;
  --font: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "Consolas", "SFMono-Regular", ui-monospace, monospace;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sky-strong); }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.18; margin: 0 0 .55em; letter-spacing: -.018em; }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.35rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1.05em; }
ul, ol { padding-left: 1.25em; }
li { margin: .3em 0; }
strong { color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: #bfe4fa; color: var(--ink); }
:focus-visible { outline: 3px solid #7cc4f0; outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff;
  font-weight: 600; transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 40px, 820px); margin-inline: auto; }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--sand { background: var(--sand); }
.section--soft { background: linear-gradient(180deg, #f6fbfe 0%, #ffffff 100%); }
.section--ink { background: var(--ink); color: #d7e4ee; }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
section[id], article[id], div[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p:last-child { margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 11px 22px;
  border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .96rem; line-height: 1.2;
  color: #fff; background: linear-gradient(135deg, var(--sky) 0%, #1396d8 100%);
  box-shadow: 0 10px 20px -12px rgba(11, 120, 189, .85);
  text-decoration: none; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 26px -14px rgba(11, 120, 189, .95); background: linear-gradient(135deg, #0a6ca9 0%, #0e86c4 100%); }
.btn:active { transform: translateY(0); }
.btn--amber { background: linear-gradient(135deg, #f6b23a 0%, var(--amber) 100%); color: #241a03; box-shadow: 0 10px 20px -12px rgba(240, 165, 31, .9); }
.btn--amber:hover { background: linear-gradient(135deg, var(--amber) 0%, var(--amber-strong) 100%); color: #1c1402; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--sky-softer); color: var(--ink); border-color: #a9c9dd; }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); box-shadow: none; }
.btn--light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: .88rem; border-radius: 8px; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1.02rem; }
.btn--block { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 18px -14px rgba(11,34,57,.4); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-sub { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 9px 12px; border-radius: 8px; text-decoration: none;
  color: var(--ink-2); font-weight: 600; font-size: .93rem; white-space: nowrap;
}
.site-nav a:hover { background: var(--sky-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--sky-strong); background: var(--sky-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { white-space: nowrap; }
.site-nav a.nav-login { display: none; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); top: 0; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -12%, rgba(79, 179, 234, .34), transparent 62%),
    radial-gradient(900px 480px at -8% 20%, rgba(240, 165, 31, .13), transparent 60%),
    linear-gradient(180deg, #f5fbff 0%, #ffffff 88%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.7)); pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(44px, 6vw, 84px) 0 clamp(48px, 6vw, 84px);
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--sky); }
.hero .lead { margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero-badges li { display: flex; align-items: center; gap: 7px; font-size: .87rem; color: var(--muted); font-weight: 600; }
.hero-badges svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--green); }
.hero-note { margin-top: 14px; font-size: .82rem; color: var(--muted); }

/* App window mockup */
.window {
  border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid #cfe0ec; box-shadow: var(--shadow-lg);
  font-size: 12px;
}
.window-bar {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  background: linear-gradient(180deg, #ffffff, #f2f8fc); border-bottom: 1px solid var(--line);
}
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d7e3ec; display: block; }
.window-dots i:first-child { background: #f0a51f; }
.window-dots i:nth-child(2) { background: #4fb3ea; }
.window-dots i:nth-child(3) { background: #7fce9f; }
.window-title { font-weight: 700; color: var(--ink); font-size: 11.5px; }
.window-title span { color: var(--muted); font-weight: 600; }
.window-body { display: grid; grid-template-columns: 138px minmax(0, 1fr); min-height: 340px; }
.window-side { background: #f4f9fd; border-right: 1px solid var(--line); padding: 12px 9px; }
.window-side .ws-title { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: #7b93a6; margin: 8px 6px 5px; font-weight: 800; }
.window-side .ws-item { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 6px; color: #3f5a6e; font-weight: 600; font-size: 10.5px; }
.window-side .ws-item.active { background: #dff1fc; color: #075e96; font-weight: 800; }
.window-side .ws-dot { width: 5px; height: 5px; border-radius: 2px; background: #9fc3d9; display: block; }
.window-main { padding: 14px; background: #fbfdfe; }
.wm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 11px; }
.wm-title { font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.wm-sub { font-size: 10px; color: #6f8798; margin-top: 2px; }
.wm-pill { font-size: 9px; font-weight: 800; padding: 3px 7px; border-radius: 99px; background: var(--green-soft); color: #0b6f47; white-space: nowrap; }
.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 11px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; }
.kpi b { display: block; font-size: 13.5px; color: var(--ink); letter-spacing: -.02em; }
.kpi span { font-size: 8.6px; text-transform: uppercase; letter-spacing: .06em; color: #79909f; font-weight: 800; }
.kpi em { font-style: normal; font-size: 8.5px; color: #0f8f5b; font-weight: 700; }
.chart { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 10px 6px; margin-bottom: 10px; }
.chart-head { display: flex; justify-content: space-between; font-size: 9px; color: #6f8798; font-weight: 700; margin-bottom: 8px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 62px; }
.bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #7cc9f2, #2f9ddb); display: block; }
.bars i:nth-child(2n) { background: linear-gradient(180deg, #cfe6f5, #a7cfe6); }
.mini-table { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.mini-row { display: grid; grid-template-columns: 1.5fr .95fr .8fr; gap: 6px; padding: 6px 9px; border-top: 1px solid #eef4f8; font-size: 9.5px; color: #456072; }
.mini-row.head { background: #f3f9fd; border-top: 0; font-weight: 800; color: #65808f; text-transform: uppercase; font-size: 8px; letter-spacing: .05em; }
.mini-row b { color: var(--ink); font-weight: 700; }
.float-card {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 10px 13px; display: flex; gap: 10px; align-items: center;
  font-size: 12px; color: var(--ink-2);
}
.float-card b { color: var(--ink); display: block; font-size: 12.5px; }
.float-card .fc-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: 0 0 auto; }
.hero-visual { position: relative; }
.float-card--paid { left: -22px; bottom: -22px; }
.float-card--schoolpay { right: -14px; top: 34px; }
.float-card .fc-icon svg { width: 17px; height: 17px; }

/* Trust strip */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 34px; padding: 20px 0; }
.trust-inner .label { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.trust-item { display: flex; align-items: center; gap: 9px; color: #3d586d; font-weight: 700; font-size: .9rem; }
.trust-item svg { width: 20px; height: 20px; color: var(--sky); flex: 0 0 auto; }

/* Cards & grids */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card--hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c9dfec; }
.icon-badge {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sky-soft); color: var(--sky-strong); margin-bottom: 16px;
}
.icon-badge svg { width: 22px; height: 22px; }
.icon-badge--amber { background: #fdf1d8; color: #9a6405; }
.icon-badge--green { background: var(--green-soft); color: #0b6f47; }
.card .meta { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sky-strong); background: var(--sky-soft); border-radius: 99px; padding: 4px 10px; }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; margin: 0; }
.checks svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--green); margin-top: 2px; }
.checks strong { display: block; color: var(--ink); }
.checks span { color: var(--muted); font-size: .93rem; }

/* Feature rows (alternating) */
.feature-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(48px, 6vw, 80px); }
.feature-row--flip .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: 12px; }
.feature-copy p { color: var(--muted); }
.panel {
  border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 34px);
  background: linear-gradient(160deg, #f2faff 0%, #ffffff 62%);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.panel--amber { background: linear-gradient(160deg, #fff8ea 0%, #fff 62%); }
.panel--ink { background: linear-gradient(160deg, #0e2a43 0%, #0b2239 100%); border-color: #123a58; color: #d3e2ee; box-shadow: var(--shadow-lg); }
.panel--ink h4, .panel--ink b { color: #fff; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat b { display: block; font-size: 1.5rem; color: var(--ink); letter-spacing: -.03em; line-height: 1.15; }
.stat span { font-size: .78rem; color: var(--muted); font-weight: 700; }
.panel--ink .stat { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.panel--ink .stat b { color: #fff; }
.panel--ink .stat span { color: #9fb9cd; }

/* Pills / chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chip { font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: #3d586d; display: inline-block; }
a.chip { text-decoration: none; }
a.chip:hover { border-color: var(--sky); color: var(--sky-strong); background: var(--sky-softer); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.plan--featured { border: 2px solid var(--sky); box-shadow: 0 24px 50px -34px rgba(11,120,189,.65); }
.plan-flag {
  position: absolute; top: -13px; left: 26px; background: var(--sky); color: #fff;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 99px;
}
.plan h3 { font-size: 1.18rem; margin-bottom: 2px; }
.plan .plan-for { font-size: .87rem; color: var(--muted); margin-bottom: 16px; }
.plan .price { font-size: 1.9rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.plan .price small { font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.plan .price-note { font-size: .8rem; color: var(--muted); margin: 6px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.plan li { display: flex; gap: 9px; font-size: .9rem; margin: 0; align-items: flex-start; }
.plan li svg { width: 17px; height: 17px; color: var(--green); margin-top: 3px; flex: 0 0 auto; }
.plan .btn { margin-top: auto; }
.plan-pay { margin: 10px 0 0; font-size: .84rem; text-align: center; color: var(--muted); }
.plan-note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 22px; }
.pricing-intro { max-width: 760px; font-size: .92rem; color: var(--muted); margin: 0; border-left: 3px solid var(--amber); padding-left: 14px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .92rem; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: #f3f9fd; color: #4a6578; font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 800; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.yes { color: var(--green); font-weight: 700; }
table.data td.no { color: #8a9aa8; }
table.data .col-pro { background: #f5fbff; }
table.data th.col-pro { background: #e4f3fc; color: var(--sky-strong); }
table.data tbody th { font-weight: 700; color: var(--ink); }
table.data td.is-us, table.data th.is-us { background: #f5fbff; }
table.data thead th.is-us { background: #e4f3fc; color: var(--sky-strong); }
table.data td .yes { color: var(--green); font-weight: 800; }
table.data td .no { color: #9a4b1b; font-weight: 800; }
.table-caption { font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* Steps / tutorials */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps > li { position: relative; padding-left: 56px; margin: 0; }
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--sky), #25a3e0); box-shadow: 0 6px 14px -8px rgba(11,120,189,.9);
}
.steps h3, .steps h4 { margin-bottom: 6px; }
.steps > li > strong:first-child { display: block; margin-bottom: 2px; }
.steps p { color: var(--muted); margin-bottom: 8px; }
.steps .tip {
  display: block; margin-top: 10px; padding: 10px 13px; border-left: 3px solid var(--amber);
  background: #fffaf0; border-radius: 0 8px 8px 0; color: #6b5312; font-size: .88rem;
}
.steps .tip b { color: #5a4408; }
.tutorial-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.toc h4 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.1em; }
.toc li { margin: 6px 0; font-size: .88rem; }
.toc a { text-decoration: none; font-weight: 600; color: #3d586d; }
.toc a:hover { color: var(--sky-strong); text-decoration: underline; }
.tutorial-body h2 { margin-top: 2.2rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.tutorial-body h2:first-child { margin-top: 0; }
.tutorial-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3.6vw, 42px); box-shadow: var(--shadow-sm); }
.tutorial-body h3 { margin-top: 1.6rem; scroll-margin-top: calc(var(--header-h) + 20px); }

/* Annotated screen mockup */
.shot { margin: 20px 0 26px; }
.shot-frame { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid #cfe0ec; box-shadow: var(--shadow-md); background: #fff; }
.shot-frame .window { border: 0; border-radius: 0; box-shadow: none; }
.pin {
  position: absolute; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: .74rem; font-weight: 800; color: #fff;
  background: #e2542b; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.shot figcaption { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.shot-legend { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; font-size: .86rem; color: var(--muted); }
.shot-legend li { display: flex; gap: 8px; margin: 0; }
.shot-legend b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #e2542b; color: #fff; font-size: .68rem; flex: 0 0 auto; margin-top: 2px; }

/* Licence lookup result on the client login page */
.login-result { border: 1px solid #cfe0ec; background: var(--sky-softer); border-radius: 12px; padding: 20px 22px; }
.login-result h3 { margin-bottom: 4px; }

/* Callouts */
.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--sky);
  background: var(--sky-softer); border-radius: 0 12px 12px 0;
  padding: 16px 18px; margin: 20px 0; font-size: .93rem;
}
.callout--warn { border-left-color: var(--amber); background: #fffaf0; }
.callout--danger { border-left-color: var(--red); background: #fdf3f4; }
.callout b { color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 20px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.35rem; font-weight: 400; color: var(--sky); line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Testimonials */
.quote { display: flex; flex-direction: column; height: 100%; }
.quote blockquote { margin: 0 0 18px; font-size: 1.02rem; color: var(--ink-2); }
.quote blockquote::before { content: "“"; display: block; font-size: 2.6rem; line-height: .6; color: var(--sky-2); margin-bottom: 6px; }
.quote .who { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.quote .avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #bfe6fa, #7fc9ee); color: #0a557f; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.quote .who b { display: block; color: var(--ink); font-size: .92rem; }
.quote .who span { font-size: .8rem; color: var(--muted); }
.quote > p { margin: 0 0 14px; font-size: 1.02rem; color: var(--ink-2); }
.quote > p:last-of-type { margin-bottom: 18px; }
.quote > footer { margin-top: auto; display: grid; gap: 2px; }
.quote > footer strong { color: var(--ink); font-size: .92rem; }
.quote > footer span { font-size: .8rem; color: var(--muted); }

/* Stats band */
.metric-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.metric { text-align: center; padding: 10px; }
.metric b { display: block; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.metric span { font-size: .86rem; color: var(--muted); font-weight: 600; }
.section--ink .metric b { color: #fff; }
.section--ink .metric span { color: #9fb9cd; }
.metric small { display: block; color: #7d94a5; font-size: .74rem; margin-top: 6px; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 300px at 88% 10%, rgba(79,179,234,.35), transparent 60%),
    linear-gradient(135deg, #0a2840 0%, #0b3f60 55%, #0a5c86 100%);
  color: #d8e7f1; border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 26px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #b9d2e3; margin-bottom: 0; max-width: 56ch; }
.cta-band .btn-row { justify-content: flex-end; }

/* Blog */
.post-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 0; }
.post-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #dff1fc, #f7fbff); position: relative; overflow: hidden; }
.post-cover svg { width: 100%; height: 100%; }
.post-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .78rem; color: var(--muted); font-weight: 700; letter-spacing: .03em; margin-bottom: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.post-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--sky-strong); }
.post-card p { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.post-card .link-arrow { margin-top: auto; font-size: .9rem; }
.article { max-width: 760px; margin-inline: auto; }
.article h2 { margin-top: 2rem; }
.article h3 { margin-top: 1.6rem; }
.article p, .article li { color: #33495c; }
.article .article-meta { color: var(--muted); font-size: .88rem; margin-bottom: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.article blockquote { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--sky-2); color: #33495c; font-style: italic; }
.article img { border-radius: 12px; margin: 22px 0; }
.callout--note { border-left-color: #7cc4f0; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 700; color: var(--ink); }
.field .hint { font-size: .78rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 9px; padding: 11px 13px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid #bfe4fa; border-color: var(--sky); outline-offset: 1px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: clamp(20px, 3vw, 34px); align-items: start; }
.contact-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.contact-list li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; font-size: .9rem; margin: 0; align-items: baseline; }
.contact-list li > * { min-width: 0; overflow-wrap: anywhere; }
.contact-list span { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list b { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--sky-strong); text-decoration: underline; }
fieldset.modules { border: 0; padding: 0; margin: 0; }
fieldset.modules legend { font-size: .86rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.module-check { display: flex; align-items: center; gap: 9px; font-size: .88rem; font-weight: 500 !important; color: var(--ink-2) !important; margin-bottom: 6px; cursor: pointer; }
.module-check input { width: 17px; height: 17px; accent-color: var(--sky); }
.form-note { font-size: .8rem; color: var(--muted); }
[hidden] { display: none !important; }
.pay-form { display: grid; gap: 12px; margin-top: 14px; }
.pay-form legend { font-size: .86rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.pay-form .module-check { margin-bottom: 0; }
fieldset.pay-methods { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.pay-amount { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(11,120,189,.08); border: 1px solid rgba(11,120,189,.18); font-size: .88rem; color: var(--ink); }
.form-status { margin-top: 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: .88rem; color: var(--ink); }
.form-status--ok { border-color: #a9dcbe; background: #f1fbf5; }
.form-status--error { border-color: #f0c2a8; background: #fff7f0; }
.form-status a { color: var(--sky-strong); font-weight: 700; }
.licence-ready { margin-top: 14px; padding: 14px; border-radius: 12px; border: 1px solid #a9dcbe; background: #f1fbf5; }
.licence-ready__head { margin: 0 0 10px; font-weight: 700; font-size: .94rem; }
.licence-ready__rows { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 14px; margin: 0 0 12px; font-size: .88rem; }
.licence-ready__rows dt { color: var(--muted); }
.licence-ready__rows dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.licence-ready__key { display: block; padding: 9px 11px; border-radius: 8px; border: 1px dashed #8cc9a6; background: #fff; font-size: .9rem; overflow-wrap: anywhere; }
.licence-ready .small { margin: 0; }
.licence-ready .btn-row { margin-top: 12px; }

/* Footer */
.site-footer { background: #082033; color: #a9c1d3; padding: clamp(44px, 6vw, 72px) 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #a9c1d3; text-decoration: none; font-size: .9rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #7f9cb2; }
.site-footer .footer-about { font-size: .9rem; color: #93aec2; max-width: 34ch; margin-top: 14px; }
.footer-contact { font-size: .9rem; line-height: 1.9; margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .82rem; color: #7f9cb2; }
.footer-bottom p { margin: 0; }
.footer-badge { display: inline-flex; align-items: center; gap: 7px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; background: #eef6fb; border: 1px solid #dbe7f0; border-radius: 5px; padding: 1px 5px; color: #0b5c8f; }
kbd { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78em; background: #fff; border: 1px solid #c8d8e4; border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: #23445c; white-space: nowrap; }
.mt-2 { margin-top: 18px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 40px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.code-key { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.05rem; letter-spacing: .06em; word-break: break-all; }
table.data td .licence-key { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; word-break: break-all; }
.center { text-align: center; }
.small { font-size: .86rem; color: var(--muted); }
.mono { font-family: var(--mono); font-size: .86em; background: #f2f7fb; border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; color: #23445c; }
.pre {
  font-family: var(--mono); font-size: .84rem; line-height: 1.6; color: #d7e7f2;
  background: #0c2438; border-radius: 10px; padding: 16px 18px; overflow-x: auto;
  border: 1px solid #173d59;
}
.pre code { font-family: inherit; }
.divider { height: 1px; background: var(--line); margin: 34px 0; }
.badge-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Breadcrumbs */
.breadcrumbs { font-size: .84rem; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--sky-strong); text-decoration: underline; }
.breadcrumbs span[aria-hidden] { color: #9fb3c2; }

/* Page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(79,179,234,.22), transparent 60%),
    linear-gradient(180deg, #f6fbfe, #ffffff);
  border-bottom: 1px solid var(--line);
  padding: clamp(36px, 5vw, 64px) 0 clamp(32px, 4.5vw, 56px);
}
.page-hero .lead { margin-bottom: 0; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 30px; align-items: center; }

/* Demo */
.demo-shell { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.demo-stage { position: relative; }
.demo-screen { display: none; }
.demo-screen.active { display: block; }
.demo-controls { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 20px); }
.demo-step-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; counter-reset: d; }
.demo-step-list button {
  width: 100%; text-align: left; display: flex; gap: 10px; align-items: center;
  background: transparent; border: 1px solid transparent; border-radius: 8px;
  padding: 9px 10px; font: inherit; font-size: .9rem; color: var(--ink-2); cursor: pointer;
}
.demo-step-list button::before {
  counter-increment: d; content: counter(d); width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: #eaf3f9; color: #4a6b81; font-size: .72rem; font-weight: 800; flex: 0 0 auto;
}
.demo-step-list button:hover { background: #f4fafe; }
.demo-step-list button.is-active { background: var(--sky-soft); border-color: #bfe0f2; color: var(--sky-strong); font-weight: 700; }
.demo-step-list button.is-active::before { background: var(--sky); color: #fff; }
.demo-progress { height: 6px; background: #e8f1f7; border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
.demo-progress i { display: block; height: 100%; width: 16%; background: linear-gradient(90deg, var(--sky), var(--sky-2)); border-radius: inherit; transition: width .25s ease; }
.demo-hint { font-size: .86rem; color: var(--muted); }
.demo-actions { display: flex; gap: 8px; margin-top: 16px; }
.demo-actions .btn { flex: 1; }
.demo-caption { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-top: 16px; font-size: .92rem; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.demo-caption b { color: var(--ink); }
.demo-caption p { margin: 6px 0 0; }
.hotspot {
  position: absolute; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(240,165,31,.95); color: #241a03;
  display: grid; place-items: center; font-size: .72rem; font-weight: 800;
  box-shadow: 0 0 0 5px rgba(240,165,31,.28); cursor: help;
}
.hotspot:hover { background: #fff; color: var(--ink); }

/* Guided demo app */
.demo-note { margin: 12px 0 0; font-size: .86rem; font-weight: 700; color: #8a5a10; background: #fff8e6; border: 1px solid #f0d58a; border-radius: 8px; padding: 9px 12px; }
.demo-app { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md); }
.demo-app-bar { display: flex; align-items: center; gap: 10px; background: #eaf4fa; border-bottom: 1px solid var(--line); padding: 8px 14px; font-size: .78rem; color: #47657a; }
.demo-app-bar strong { color: var(--ink); font-size: .82rem; }
.demo-app-body { padding: 20px; min-height: 360px; }
.demo-title { font-size: 1.08rem; margin: 0 0 6px; }
.demo-lede { font-size: .89rem; color: var(--muted); margin: 0 0 14px; }
.demo-label { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #4a6578; margin-bottom: 5px; }
.demo-input { width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 10px 12px; font: inherit; font-size: .92rem; color: var(--ink); background: #fff; }
.demo-input:focus { outline: 2px solid var(--sky-2); outline-offset: 1px; border-color: var(--sky); }
.demo-list { display: grid; gap: 8px; margin-top: 12px; }
.demo-item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; cursor: pointer; }
.demo-item:hover, .demo-item:focus-visible { border-color: var(--sky); background: var(--sky-softer); }
.demo-ava { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #bfe6fa, #7fc9ee); color: #0a557f; display: grid; place-items: center; font-weight: 800; font-size: .76rem; flex: 0 0 auto; }
.demo-item-main { display: grid; gap: 1px; }
.demo-item-main b { font-size: .9rem; color: var(--ink); }
.demo-item-main small { font-size: .77rem; color: var(--muted); }
.demo-item-side { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--sky-strong); }
.demo-hint { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.demo-fees { display: grid; gap: 8px; }
.demo-fee { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; cursor: pointer; font-size: .9rem; }
.demo-fee input { width: 17px; height: 17px; accent-color: var(--sky); }
.demo-fee b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); }
.demo-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; background: var(--sand); border-radius: 9px; padding: 11px 13px; margin-top: 12px; font-size: .88rem; font-weight: 700; color: #3d586d; }
.demo-total b { font-size: 1.1rem; color: var(--ink); }
.demo-actions-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.demo-actions-row .btn { flex: 0 1 auto; }
.demo-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.demo-method { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; cursor: pointer; font-size: .88rem; }
.demo-method input { accent-color: var(--sky); }
.demo-method.is-on { border-color: var(--sky); background: var(--sky-softer); }
.demo-receipt { max-width: 330px; margin: 4px auto 0; background: #fffdf7; border: 1px dashed #cbb98e; border-radius: 8px; padding: 14px 16px; font-size: .8rem; color: #3f3a2c; }
.demo-receipt-head { text-align: center; border-bottom: 1px solid #e2d9c3; padding-bottom: 8px; margin-bottom: 8px; }
.demo-receipt-head b { display: block; font-size: .9rem; }
.demo-receipt-head span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.demo-receipt-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin-bottom: 8px; }
.demo-receipt-meta span { color: #7a715c; }
.demo-receipt-lines > div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.demo-receipt-total { border-top: 1px solid #e2d9c3; margin-top: 5px; padding-top: 6px; font-weight: 800; }
.demo-receipt-foot { border-top: 1px dashed #e2d9c3; margin-top: 9px; padding-top: 7px; font-size: .7rem; color: #7a715c; text-align: center; }
.demo-grid-wrap { overflow-x: auto; }
.demo-grid { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 340px; }
.demo-grid th, .demo-grid td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.demo-grid thead th { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #4a6578; background: #f3f9fd; }
.demo-grid input[type="number"] { width: 78px; min-height: 34px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 5px 8px; font: inherit; }
.demo-grid .mono { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; color: var(--muted); }
.demo-report { max-width: 430px; margin-inline: auto; border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.demo-report-head { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--sky); padding-bottom: 9px; margin-bottom: 10px; }
.demo-crest { width: 34px; height: 34px; border-radius: 50%; background: var(--sky); color: #fff; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.demo-report-head b { display: block; font-size: .92rem; }
.demo-report-head span { font-size: .73rem; color: var(--muted); }
.demo-report-name { font-weight: 800; font-size: .88rem; margin-bottom: 8px; }
.demo-report-name span { display: block; font-weight: 500; font-size: .73rem; color: var(--muted); }
.demo-report .demo-grid { min-width: 0; }
.demo-report-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 12px; margin-top: 10px; font-size: .76rem; color: var(--muted); }
.demo-report-foot b { color: var(--ink); }
.demo-published { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-top: 16px; background: #edfaf3; border: 1px solid #bfe6d3; border-radius: 10px; padding: 12px 14px; }
.demo-published p { margin: 0; font-size: .84rem; color: #25553f; max-width: 330px; }
.demo-phone-mini { flex: 0 0 auto; width: 170px; background: #0b2239; border-radius: 16px; padding: 9px; color: #fff; display: grid; gap: 3px; font-size: .66rem; }
.demo-phone-mini b { font-size: .76rem; }
.demo-phone-mini em { font-style: normal; font-weight: 700; color: #8fd0f2; }
.demo-phone-mini span { color: #cfe6f4; }
.flash-in { animation: demoflush .5s ease; }
.is-flash { animation: demoshake .3s ease; }
@keyframes demoflush { from { background: #fff3c4; } to { background: #fff; } }
@keyframes demoshake { 0%,100% { transform: translateX(0); } 30% { transform: translateX(-4px); } 70% { transform: translateX(4px); } }

/* Phone frame (mobile app previews) */
.phone {
  width: 274px; margin-inline: auto; border-radius: 38px; border: 10px solid #0b2239;
  background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; font-size: 12px;
}
.phone-status { display: flex; justify-content: space-between; padding: 8px 16px 6px; font-size: 8.5px; color: #5b7385; background: #f2f9fd; font-weight: 700; }
.phone-body { padding: 10px 12px 14px; background: #fbfdfe; min-height: 300px; }
.phone-title { font-weight: 800; color: var(--ink); font-size: 13px; margin-bottom: 8px; }
.phone-sub { font-size: 9px; color: #6f8798; margin: -4px 0 8px; }
.phone-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 7px; }
.phone-card b { font-size: 11px; color: var(--ink); display: block; }
.phone-card span { font-size: 9px; color: #6f8798; }
.phone-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.phone-nav { display: flex; justify-content: space-around; padding: 9px 4px 12px; border-top: 1px solid var(--line); background: #fff; font-size: 8.5px; color: #6f8798; font-weight: 700; }
.phone-nav .on { color: var(--sky); }
.phone-badge { display: inline-block; font-size: 8px; font-weight: 800; background: var(--green-soft); color: #0b6f47; border-radius: 99px; padding: 2px 6px; }
.phone-kicker { font-size: 8px; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; color: var(--sky); margin-bottom: 2px; }
.phone-name { font-size: 11px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.phone-line { display: flex; justify-content: space-between; gap: 8px; font-size: 9px; color: #526b7d; padding: 4px 0; border-top: 1px solid #eaf2f8; }
.phone-line:first-of-type { border-top: 0; }
.phone-line b { font-size: 9.5px; color: var(--ink); }
.phone-total { display: flex; justify-content: space-between; font-size: 10px; font-weight: 800; color: var(--ink); padding-top: 6px; margin-top: 4px; border-top: 1px solid var(--line); }
.phone-pos { margin-top: 6px; font-size: 8.5px; font-weight: 700; color: #0b6f47; background: var(--green-soft); border-radius: 99px; padding: 3px 8px; display: inline-block; }
.phone-bal { margin-top: 6px; font-size: 9.5px; font-weight: 800; color: #9a3b0b; background: #fff1e4; border-radius: 6px; padding: 5px 8px; }
.phone-wrap { display: grid; justify-items: center; gap: 10px; }
.shot-caption { text-align: center; font-size: .76rem; color: #6f8798; margin-top: 10px; }


.roi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.roi-out { grid-column: 1 / -1; background: var(--ink); color: #fff; border-radius: 12px; padding: 16px 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.roi-out .row { margin: 0; padding: 0; border: 0; }
.roi-out b { font-size: 1.28rem; display: block; letter-spacing: -.02em; line-height: 1.25; }
.roi-out span { color: #a9c1d3; font-size: .78rem; display: block; margin-bottom: 3px; }

/* Print */
@media print {
  body { background: #fff; color: #111; font-size: 11pt; }
  .site-header, .site-footer, .cta-band, .toc, .no-print, .demo-controls, .skip-link { display: none !important; }
  .container, .container-narrow { width: 100%; }
  .section { padding: 0; }
  a { color: #111; }
  .tutorial-body { border: 0; box-shadow: none; padding: 0; }
  .step, .tutorial-body h2, .tutorial-body h3 { break-inside: avoid; }
  .window { box-shadow: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .header-inner { gap: 14px; }
  .site-nav { gap: 2px; }
  .site-nav a { padding: 9px 9px; font-size: .89rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 640px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .demo-shell { grid-template-columns: minmax(0, 1fr); }
  .demo-controls { position: static; }
  .tutorial-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .cta-band .btn-row { justify-content: flex-start; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px; box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 10px; font-size: 1rem; }
  .site-nav a.nav-login { display: block; }
  .header-login { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn--demo-label { display: none; }
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .feature-row { grid-template-columns: minmax(0, 1fr); }
  .feature-row--flip .feature-copy { order: 0; }
  .metric-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .roi { grid-template-columns: minmax(0, 1fr); }
  .window-body { grid-template-columns: 112px minmax(0, 1fr); }
  .float-card--paid { left: 6px; bottom: -14px; }
  .float-card--schoolpay { right: 6px; top: -16px; }
  .hero-visual { padding-bottom: 18px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .window-body { grid-template-columns: minmax(0, 1fr); }
  .window-side { display: none; }
  .grid--2, .grid--4, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .metric-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .float-card { display: none; }
  .header-actions .btn--demo { display: none; }
  .stat-row { grid-template-columns: minmax(0, 1fr); }
  .window-main { padding: 11px; }
  .hero-badges { gap: 8px 14px; }
  .cta-band { padding: 26px 22px; }
  .step { padding-left: 46px; }
  .steps > li { padding-left: 48px; }
  .roi-out { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .roi-out .row + .row { padding-top: 10px; border-top: 1px solid rgba(255,255,255,.14); }
}
