/* Steward IT Census — site styles
   Brand: navy + teal from the shield logo. Light and dark themes. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

:root {
  --navy-950: #041431;
  --navy-900: #071d42;
  --navy-800: #0b2a5b;
  --navy-700: #123a78;
  --teal-600: #0a8f9d;
  --teal-500: #11a7b5;
  --teal-400: #3cc4cf;
  --teal-100: #d9f4f6;
  --amber: #e8a33d;
  --red: #d64545;
  --green: #1f9d63;

  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-tint: #eef6f8;
  --surface: #ffffff;
  --border: #dfe6ef;
  --border-strong: #c8d3e1;
  --text: #0f1b2d;
  --text-2: #43526a;
  --text-3: #6a7890;
  --link: #0a7f8c;
  --heading: #0b2147;
  --accent: var(--teal-600);
  --accent-ink: #ffffff;
  --icon: #0a8f9d;
  --code-bg: #f1f4f9;
  --shadow-sm: 0 1px 2px rgba(7, 29, 66, .06), 0 1px 3px rgba(7, 29, 66, .08);
  --shadow: 0 4px 12px rgba(7, 29, 66, .07), 0 12px 32px rgba(7, 29, 66, .08);
  --shadow-lg: 0 24px 60px rgba(7, 29, 66, .18);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  --radius-lg: 16px;
  --max: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1424;
    --bg-soft: #0e1a2e;
    --bg-tint: #0f2133;
    --surface: #111f35;
    --border: #22324c;
    --border-strong: #2e4262;
    --text: #e6edf7;
    --text-2: #b3c0d4;
    --text-3: #8696ae;
    --link: #5fd0da;
    --heading: #f2f6fc;
    --code-bg: #15233a;
    --teal-100: #12313d;
    --icon: #4fd2dc;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 6px 20px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1424;
  --bg-soft: #0e1a2e;
  --bg-tint: #0f2133;
  --surface: #111f35;
  --border: #22324c;
  --border-strong: #2e4262;
  --text: #e6edf7;
  --text-2: #b3c0d4;
  --text-3: #8696ae;
  --link: #5fd0da;
  --heading: #f2f6fc;
  --code-bg: #15233a;
  --teal-100: #12313d;
  --icon: #4fd2dc;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 6px 20px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--code-bg); padding: .12em .4em; border-radius: 5px; }
pre { font-family: var(--mono); font-size: .86rem; background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; font-size: inherit; }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.muted { color: var(--text-3); }
.small { font-size: .88rem; }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 14px; }
.lead { font-size: 1.18rem; color: var(--text-2); max-width: 46rem; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-bar { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 41px; }
.brand-name { font-size: 1.12rem; line-height: 1.05; }
.brand-name small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text-2); font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--heading); background: var(--bg-soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--heading); background: var(--bg-soft); }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: linear-gradient(180deg, var(--teal-500), var(--teal-600)); }
.nav a.btn-demo, .nav a.btn-demo:hover { color: #fff; background: linear-gradient(180deg, var(--navy-700), var(--navy-800)); border-color: transparent; box-shadow: 0 6px 16px rgba(11, 42, 91, .28); }
.nav a.btn-demo:hover { box-shadow: 0 10px 22px rgba(11, 42, 91, .38); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav a.btn-demo { border-color: rgba(255, 255, 255, .28); } }
:root[data-theme="dark"] .nav a.btn-demo { border-color: rgba(255, 255, 255, .28); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 8px; width: 42px; height: 40px; color: var(--heading); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; font-size: .98rem; line-height: 1;
  padding: 13px 20px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, var(--teal-500), var(--teal-600)); color: #fff; box-shadow: 0 6px 16px rgba(10, 143, 157, .32); }
.btn-primary:hover { box-shadow: 0 10px 22px rgba(10, 143, 157, .4); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--heading); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--teal-500); color: var(--heading); }
.btn-ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-sm { padding: 9px 14px; font-size: .9rem; }
.btn-lg { padding: 16px 26px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #dbe6f5;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(17, 167, 181, .35), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(18, 58, 120, .9), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
  padding: 76px 0 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.hero .container { position: relative; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: 20px; }
.hero h1 .hl { background: linear-gradient(90deg, #5fe0ea, #9ff0d8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #c3d2e8; font-size: 1.22rem; }
.hero .eyebrow { color: #7fe3ec; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 26px; color: #d6e2f3; font-size: .95rem; }
@media (max-width: 520px) { .hero-points { grid-template-columns: 1fr; } }
.hero-points li { display: flex; align-items: flex-start; gap: 8px; }
.hero-points li svg { margin-top: .22em; }
.hero-points svg { width: 18px; height: 18px; color: #5fe0ea; flex: none; }
.hero-shot { margin-top: 56px; position: relative; }
.hero-shot .frame { box-shadow: 0 40px 90px rgba(0, 0, 0, .45); }
.hero-shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, var(--navy-900)); pointer-events: none; opacity: 0; }
.hero-compact { padding: 64px 0 56px; }
.hero-compact h1 { max-width: 22ch; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 52px; } }

/* browser frame for screenshots */
.frame { border-radius: 12px; overflow: hidden; background: #0d1b30; border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow-lg); }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #e9eef5; border-bottom: 1px solid #d5dde8; }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #f26b5b; display: block; }
.frame-bar i:nth-child(2) { background: #f5bd4f; }
.frame-bar i:nth-child(3) { background: #5ccb5f; }
.frame-bar span { margin-left: 14px; flex: 1; max-width: 360px; background: #fff; color: #5b6b82; font-size: .74rem; border-radius: 6px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame.dark .frame-bar { background: #1b2436; border-color: #2a3550; }
.frame.dark .frame-bar span { background: #0f1726; color: #8796ad; }
.frame img { width: 100%; }
.zoomable { cursor: zoom-in; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.12rem; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* proof strip */
.proof { background: var(--navy-900); color: #c9d6ea; border-top: 1px solid rgba(255, 255, 255, .06); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.proof-item { padding: 30px 18px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .08); }
.proof-item:first-child { border-left: 0; }
.proof-item b { display: block; color: #fff; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; }
.proof-item span { font-size: .9rem; }
@media (max-width: 760px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } .proof-item:nth-child(3) { border-left: 0; } .proof-item { border-top: 1px solid rgba(255, 255, 255, .08); } }

/* feature cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--text-2); margin-bottom: 0; font-size: .97rem; }
.card ul { color: var(--text-2); font-size: .95rem; padding-left: 1.1em; margin: .6em 0 0; }
.card ul li { margin: .2em 0; }
.card-link { display: block; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card-link:hover { text-decoration: none; border-color: var(--teal-500); transform: translateY(-2px); box-shadow: var(--shadow); }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--teal-100); color: var(--icon); }
.icon svg { width: 24px; height: 24px; }

/* split feature rows */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.split > *, .hero-grid > *, .grid > *, .calc > * { min-width: 0; }
.split + .split { margin-top: 96px; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.split p { color: var(--text-2); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.reverse > :first-child { order: 0; } .split + .split { margin-top: 72px; } }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { position: relative; padding-left: 30px; margin: 10px 0; color: var(--text-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks li b { color: var(--text); }

/* screenshot tabs */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.tab { font: inherit; font-size: .92rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); cursor: pointer; }
.tab:hover { border-color: var(--teal-500); color: var(--heading); }
.tab[aria-selected="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.tab-panel[hidden] { display: none; }
.tab-caption { text-align: center; color: var(--text-2); max-width: 720px; margin: 20px auto 0; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 30px; box-shadow: var(--shadow-sm); }
.price-card.featured { border: 2px solid var(--teal-500); box-shadow: var(--shadow); }
.price-card .badge { position: absolute; top: -13px; left: 30px; background: var(--teal-600); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.price-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.price-card .for { color: var(--text-3); font-size: .93rem; min-height: 2.9em; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; color: var(--heading); }
.price b { font-size: 2.9rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price span { color: var(--text-3); font-size: .95rem; }
.price-note { color: var(--text-3); font-size: .9rem; margin-bottom: 18px; }
.price-card .checks { flex: 1; margin-bottom: 24px; }
.price-card .checks li { font-size: .95rem; margin: 8px 0; }
.price-card .btn { width: 100%; }

/* calculator */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-inputs { padding: 30px; }
.calc-out { padding: 30px; background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #d2deef; }
.calc-out h3 { color: #fff; }
.calc-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .96rem; }
.calc-line b { color: #fff; font-variant-numeric: tabular-nums; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.calc-total b { font-size: 2.3rem; color: #fff; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-out .small { color: #a9bad3; }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 650; font-size: .93rem; color: var(--heading); margin-bottom: 6px; }
.field .hint { font-size: .84rem; color: var(--text-3); margin-top: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: 9px; padding: 11px 13px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal-500) 25%, transparent); }
input[type=range] { width: 100%; accent-color: var(--teal-600); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { display: inline-flex; align-items: center; gap: 7px; font-weight: 550; font-size: .93rem; border: 1px solid var(--border-strong); border-radius: 9px; padding: 8px 12px; cursor: pointer; color: var(--text-2); margin: 0; }
.radio-row input { accent-color: var(--teal-600); }
.radio-row label:has(input:checked) { border-color: var(--teal-500); background: var(--teal-100); color: var(--heading); }
.check-label { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--text-2); }
.check-label input { margin-top: .3em; accent-color: var(--teal-600); }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 9px; font-size: .95rem; display: none; }
.form-status.ok { display: block; background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); }
.form-status.err { display: block; background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--bg-soft); color: var(--heading); font-weight: 700; font-size: .86rem; white-space: nowrap; position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--heading); }
.compare th:first-child, .compare td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 150px; }
.compare thead th:first-child { background: var(--bg-soft); z-index: 2; }
.compare .us { background: color-mix(in srgb, var(--teal-500) 9%, var(--surface)); }
.compare thead .us { background: var(--navy-800); color: #fff; }
.compare td { min-width: 140px; }
.compare tr.group th { background: var(--bg-soft); color: var(--text-2, var(--heading)); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 9px 16px; }
.checklist td, .checklist tbody th { padding: 10px 14px; font-size: .9rem; }
.checklist .yes, .checklist .no, .checklist .part { font-weight: 600; display: inline; }
.yes, .no, .part { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.yes { color: var(--green); }
.no { color: var(--text-3); }
.part { color: #b7791f; }
.yes::before { content: "✓"; }
.no::before { content: "—"; }

/* cost bars */
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 210px 1fr 120px; gap: 16px; align-items: center; font-size: .95rem; }
.bar-row .name { font-weight: 600; color: var(--heading); }
.bar-row .name small { display: block; font-weight: 450; color: var(--text-3); font-size: .8rem; }
.bar { height: 14px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; border: 1px solid var(--border); }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8aa0bf, #6c84a8); transition: width .5s ease; }
.bar-row.us .bar i { background: linear-gradient(90deg, var(--teal-400), var(--teal-600)); }
.bar-row .amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--heading); }
@media (max-width: 640px) { .bar-row { grid-template-columns: 1fr 100px; } .bar-row .bar { grid-column: 1 / -1; grid-row: 2; } }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #cfdcef; border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(17, 167, 181, .45), transparent 65%); }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; font-size: 1.08rem; }
.cta-band .btn-row { position: relative; z-index: 1; }
.cta-band.cta-ssl { grid-template-columns: 1.5fr 1fr; }
.cta-band > * { min-width: 0; }
@media (max-width: 860px) { .cta-band, .cta-band.cta-ssl { grid-template-columns: 1fr; padding: 36px 26px; } }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 650; color: var(--heading); padding: 18px 40px 18px 0; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--teal-600); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { color: var(--text-2); padding: 0 0 18px; }

/* callouts */
.note { border: 1px solid var(--border); border-left: 4px solid var(--teal-500); background: var(--bg-soft); padding: 14px 18px; border-radius: 10px; color: var(--text-2); font-size: .95rem; }
.note.warn { border-left-color: var(--amber); }
.pill { display: inline-block; font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--teal-100); color: var(--teal-600); letter-spacing: .02em; }

/* prose (legal, docs) */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose table { margin: 1em 0 1.5em; display: block; overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.prose th, .prose td { padding: 9px 12px; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--teal-500); background: var(--bg-soft); border-radius: 0 8px 8px 0; color: var(--text-2); }
.prose blockquote p:last-child { margin-bottom: 0; }

/* docs layout */
.docs { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding: 36px 20px 80px; }
.docs-nav { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: .92rem; padding-right: 8px; }
.docs-nav h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin: 22px 0 6px; }
.docs-nav h4:first-of-type { margin-top: 8px; }
.docs-nav a { display: block; color: var(--text-2); padding: 5px 10px; border-radius: 7px; }
.docs-nav a:hover { background: var(--bg-soft); text-decoration: none; color: var(--heading); }
.docs-nav a[aria-current="page"] { background: var(--teal-100); color: var(--heading); font-weight: 650; }
.docs-search { margin-bottom: 6px; }
.docs-search input { padding: 9px 12px; font-size: .9rem; }
.docs-main { min-width: 0; }
.docs-main .prose { max-width: 860px; }
.docs-main .prose h1 { font-size: 2.2rem; }
.docs-main .prose h2 { padding-top: .4em; border-top: 1px solid var(--border); }
.docs-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); max-width: 860px; }
.docs-pager a { display: block; border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; font-weight: 600; }
.docs-pager a small { display: block; color: var(--text-3); font-weight: 500; }
.docs-menu-btn { display: none; }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 16px; padding-top: 18px; }
  .docs-nav { position: static; max-height: none; display: none; border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
  .docs-nav.open { display: block; }
  .docs-menu-btn { display: inline-flex; }
}
.anchor { opacity: 0; margin-left: 8px; font-weight: 400; color: var(--text-3); }
h2:hover .anchor, h3:hover .anchor { opacity: 1; }

/* footer */
.site-footer { background: var(--navy-950); color: #9fb0c9; padding: 64px 0 36px; font-size: .93rem; }
.site-footer a { color: #c9d6ea; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 8px 0; }
.foot-brand { display: flex; gap: 12px; align-items: center; color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
.foot-brand img { width: 30px; height: 41px; }
.foot-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #7f91ad; }
.theme-btn { background: none; border: 1px solid rgba(255, 255, 255, .2); color: #c9d6ea; border-radius: 8px; padding: 5px 10px; font: inherit; font-size: .82rem; cursor: pointer; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4, 12, 28, .88); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1600px, 100%); max-height: 100%; border-radius: 10px; box-shadow: var(--shadow-lg); }

/* small utilities */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 24px; }
.stack > * + * { margin-top: 16px; }
.kicker-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.kicker-list span { font-size: .84rem; font-weight: 600; color: var(--text-2); background: var(--bg-soft); border: 1px solid var(--border); padding: 5px 11px; border-radius: 999px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--text-3); font-weight: 650; font-size: .95rem; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.sources { font-size: .85rem; color: var(--text-3); }
.sources li { margin: 4px 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* =========================================================
   Motion (polished): reveals, hero constellation, tilt, chips,
   spotlight cards, animated borders, marquee, tab progress.
   Everything is disabled under prefers-reduced-motion.
   ========================================================= */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* scroll progress + header state */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--teal-400), #9ff0d8); z-index: 60; pointer-events: none; }
.site-header { transition: background .3s ease, box-shadow .3s ease; }
.site-header .nav-bar { transition: height .3s ease; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(7, 29, 66, .08); }
.site-header.scrolled .nav-bar { height: 58px; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-scale { opacity: 0; transform: scale(.96) translateY(18px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal-scale.in { opacity: 1; transform: none; }

/* hero: aurora + constellation canvas */
.hero::after {
  content: ""; position: absolute; inset: -20%; pointer-events: none; opacity: .55; filter: blur(60px);
  background:
    radial-gradient(40% 35% at 20% 30%, rgba(17, 167, 181, .45), transparent 70%),
    radial-gradient(35% 30% at 80% 20%, rgba(95, 224, 234, .28), transparent 70%),
    radial-gradient(45% 40% at 60% 90%, rgba(34, 80, 170, .55), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora { 0% { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); } 50% { transform: translate3d(3%, 2%, 0) rotate(4deg) scale(1.06); } 100% { transform: translate3d(-2%, 3%, 0) rotate(-3deg) scale(1.02); } }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.45) 40%, #000 62%); mask-image: linear-gradient(90deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.45) 40%, #000 62%); }
@media (max-width: 960px) { .hero-net { -webkit-mask-image: none; mask-image: none; opacity: .45; } }
.hero .container { z-index: 1; }

/* headline word reveal + moving shine */
.js .h-word { display: inline-block; opacity: 0; transform: translateY(.45em) rotateX(-40deg); transform-origin: 50% 100%; animation: wordIn .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.hero h1 .hl { background: linear-gradient(90deg, #5fe0ea, #9ff0d8, #ffffff, #9ff0d8, #5fe0ea); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite; }
.hero h1 .hl .h-word { background: inherit; background-size: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; animation: wordIn .9s cubic-bezier(.2, .8, .2, 1) forwards, shine 7s linear infinite; animation-delay: calc(var(--i) * 70ms + 120ms), 0s; }
@keyframes shine { to { background-position: -250% 0; } }
.js .hero-fade { opacity: 0; transform: translateY(14px); animation: fadeUp .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: var(--d, 600ms); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* 3D tilted screenshot + glow */
.tilt-wrap { perspective: 1600px; position: relative; }
.tilt { transform-style: preserve-3d; transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 7deg)) translateZ(0); transition: transform .25s ease-out; will-change: transform; }
.tilt::before { content: ""; position: absolute; inset: -14%; z-index: -1; background: radial-gradient(closest-side, rgba(17, 167, 181, .45), transparent 70%); filter: blur(30px); }
.js .tilt-wrap { opacity: 0; transform: translateY(30px) scale(.97); animation: fadeUp 1.2s cubic-bezier(.2, .8, .2, 1) .35s forwards; }
@media (max-width: 960px) { .tilt { --ry: 0deg; --rx: 0deg; } }

/* live notification chips */
.chips { position: absolute; inset: 0; pointer-events: none; transform: translateZ(60px); }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 12px; font-size: .8rem; line-height: 1.25; color: #0f1b2d; background: rgba(255, 255, 255, .93); box-shadow: 0 14px 34px rgba(0, 0, 0, .28); backdrop-filter: blur(8px); white-space: nowrap; opacity: 0; }
.chip b { display: block; font-size: .82rem; }
.chip small { color: #5b6b82; }
.chip i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: .95rem; flex: none; }
.chip.c1 { left: -7%; top: 12%; } .chip.c1 i { background: #d9f4f6; color: #0a8f9d; }
.chip.c2 { right: -6%; top: 46%; } .chip.c2 i { background: #e3f7ec; color: #1f9d63; }
.chip.c3 { left: 4%; bottom: -6%; } .chip.c3 i { background: #fff1dc; color: #b7791f; }
.chip.show { animation: chipIn .7s cubic-bezier(.2, .9, .3, 1.3) forwards, floaty 6s ease-in-out .7s infinite; }
.chip.hide { animation: chipOut .5s ease forwards; }
@keyframes chipIn { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes chipOut { to { opacity: 0; transform: translateY(-10px) scale(.96); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 960px) { .chip.c1 { left: 2%; top: -6%; } .chip.c2 { right: 2%; } .chip.c3 { display: none; } }
@media (max-width: 560px) { .chip { font-size: .72rem; padding: 7px 10px 7px 8px; } .chip b { font-size: .74rem; } .chip i { width: 22px; height: 22px; } }

/* spotlight cards (glow follows the cursor) */
.card { position: relative; isolation: isolate; transition: border-color .25s, transform .25s, box-shadow .25s; }
.card.spot::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--teal-500) 16%, transparent), transparent 45%); }
.card.spot:hover::before { opacity: 1; }
.card.spot:hover { border-color: color-mix(in srgb, var(--teal-500) 55%, var(--border)); transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon { transition: transform .4s cubic-bezier(.2, .9, .3, 1.4); }
.card.spot:hover .icon { transform: scale(1.08) rotate(-4deg); }

/* animated gradient border on the featured price card */
.price-card.featured { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--angle), var(--teal-400), #9ff0d8, var(--navy-700), var(--teal-500), var(--teal-400)) border-box; animation: spin 6s linear infinite; }
@keyframes spin { to { --angle: 360deg; } }

/* button shine */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .7s ease; }
.btn-primary:hover::after { left: 130%; }

/* marquee of supported platforms */
.marquee { position: relative; overflow: hidden; padding: 22px 0; border-bottom: 1px solid var(--border); background: var(--bg); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-weight: 650; color: var(--text-3); white-space: nowrap; font-size: .98rem; letter-spacing: -.01em; }
.marquee span::before { content: "◆"; color: var(--teal-500); font-size: .55em; margin-right: 46px; vertical-align: middle; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* screenshot tabs: crossfade + progress */
.tab { position: relative; overflow: hidden; }
.tab .bar-fill { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--teal-400); transform-origin: 0 50%; transform: scaleX(0); }
.tab-panel.enter { animation: panelIn .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }

/* frames lift on hover */
.frame { transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; }
.split .frame:hover, .tab-panel .frame:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(7, 29, 66, .22); }

.js .bars.wait .bar i { width: 0 !important; }
.bar i { transition: width 1.3s cubic-bezier(.2, .8, .2, 1); }

/* glowing $0 and count-up */
.glow-text { text-shadow: 0 0 24px rgba(95, 224, 234, .55); }
.num { font-variant-numeric: tabular-nums; }

/* section headings: underline sweep */
.section-head h2 { position: relative; }
.js .section-head.reveal h2::after { content: ""; display: block; width: 64px; height: 3px; margin: 18px auto 0; border-radius: 3px; background: linear-gradient(90deg, var(--teal-400), #9ff0d8); transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .8, .2, 1) .25s; }
.js .section-head.reveal.in h2::after { transform: scaleX(1); }

/* certificate lifetime cards */
.life-card .price b { transition: color .4s; }
.life-card.hot { border-color: var(--teal-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal-500) 14%, transparent); }
.life-bar { height: 6px; border-radius: 6px; background: var(--bg-soft); overflow: hidden; margin: 12px 0 4px; }
.life-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--teal-400), var(--teal-600)); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }

@media (prefers-reduced-motion: reduce) {
  .hero::after, .marquee-track, .price-card.featured, .hero h1 .hl, .chip.show, .tab .bar-fill { animation: none !important; }
  .js .reveal, .js .reveal-scale, .js .h-word, .js .hero-fade, .js .tilt-wrap, .chip { opacity: 1 !important; transform: none !important; animation: none !important; }
  .tilt { transform: none !important; }
  .hero-net { display: none; }
}
.hero-points li.more a { display: inline-flex; align-items: center; gap: 8px; color: #7fe3ec; font-weight: 650; }
.hero-points li.more a svg { margin-top: 0; transition: transform .25s ease; }
.hero-points li.more a:hover { color: #b5f3f7; text-decoration: none; }
.hero-points li.more a:hover svg { transform: translateX(4px); }
/* "Census at work" on pages without the screenshot: no dimming, the header logo is the hub */
.hero-compact .hero-net { -webkit-mask-image: none; mask-image: none; opacity: 1; }

/* download page */
.dl-group { margin-top: 28px; }
.dl-group:first-child { margin-top: 0; }
.dl-group h3 { margin: 0 0 4px; }
.dl-group > p { margin: 0 0 12px; }
.dl-table table { width: 100%; border-collapse: collapse; }
.dl-table th, .dl-table td { padding: 14px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.dl-table tr:last-child td { border-bottom: 0; }
.dl-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; background: var(--bg-soft); }
.dl-table td:last-child { text-align: right; white-space: nowrap; }
.dl-table code.sha { font-size: .72rem; word-break: break-all; display: inline-block; max-width: 34ch; }
@media (max-width: 640px) { .dl-table th:nth-child(2), .dl-table td:nth-child(2) { display: none; } }
