/* ==========================================================================
   Helicopterview design system: "Clean sky"
   Light, airy, precise. Indigo-violet brand, status colours carry meaning.
   Built on Bootstrap 5.3 variables; components below are our own.
   ========================================================================== */

@font-face { font-family: "Geist"; src: url("../fonts/geist-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f6f8f7;
  --bg-2: #edf2ef;
  --surface: #ffffff;
  --line: #e1e8e4;
  --line-2: #cfd9d4;
  --ink: #0f1f1a;
  --ink-2: #475750;
  --ink-3: #87958f;
  --primary: #0e7c5a;
  --primary-600: #0b6b4e;
  --primary-700: #095a41;
  --accent: #34d399;
  --primary-soft: #dcf3e9;
  --primary-tint: #f1faf6;
  --grad: linear-gradient(135deg, #12a072 0%, #0b6b4e 100%);
  --brand-dark: #0f2a22;

  --healthy: #10b981; --healthy-ink: #047857; --healthy-soft: #e7f8f1;
  --attention: #f59e0b; --attention-ink: #b45309; --attention-soft: #fef4e2;
  --critical: #ef4444; --critical-ink: #b91c1c; --critical-soft: #fdecec;
  --down: #b91c1c;
  --pending: #a5adc6; --pending-soft: #eef0f6;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-xs: 0 1px 2px rgba(15, 31, 26, .05);
  --shadow-sm: 0 1px 2px rgba(15, 31, 26, .04), 0 2px 8px rgba(15, 31, 26, .04);
  --shadow: 0 1px 2px rgba(15, 31, 26, .04), 0 8px 24px rgba(15, 31, 26, .06);
  --shadow-lg: 0 2px 4px rgba(15, 31, 26, .04), 0 24px 60px rgba(15, 42, 34, .12);
  --ring: 0 0 0 4px rgba(14, 124, 90, .16);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sidebar-w: 248px;

  --bs-body-font-family: var(--font);
  --bs-body-font-size: .9375rem;
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-emphasis-color: var(--ink);
  --bs-secondary-color: var(--ink-2);
  --bs-border-color: var(--line);
  --bs-border-radius: var(--r-sm);
  --bs-link-color: var(--primary);
  --bs-link-color-rgb: 14, 124, 90;
  --bs-link-hover-color: var(--primary-700);
  --bs-link-hover-color-rgb: 9, 90, 65;
  --bs-heading-color: var(--ink);
  --bs-primary: var(--primary);
  --bs-primary-rgb: 14, 124, 90;
  --bs-focus-ring-color: rgba(14, 124, 90, .25);
}

body { background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "ss01", "cv11"; }
h1, h2, h3, h4, h5 { text-wrap: balance; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: var(--ink); }
p { max-width: 70ch; }
a { text-decoration: none; }
a:hover { text-decoration: none; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.text-ink-2, .text-muted { color: var(--ink-2) !important; }
.text-ink-3, .text-faint { color: var(--ink-3) !important; }
.t-healthy { color: var(--healthy-ink) !important; }
.t-attention { color: var(--attention-ink) !important; }
.t-critical { color: var(--critical-ink) !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--primary-soft); color: var(--ink); }
.small-print { font-size: .8125rem; color: var(--ink-3); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 4px 10px rgba(15, 42, 34, .22)); }

/* ---------- Buttons ---------- */
.btn {
  --bs-btn-font-weight: 500;
  --bs-btn-font-size: .9375rem;
  --bs-btn-padding-x: 1rem;
  --bs-btn-padding-y: .55rem;
  --bs-btn-border-radius: 10px;
  --bs-btn-focus-box-shadow: var(--ring);
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s, transform .15s;
}
.btn-sm { --bs-btn-padding-x: .7rem; --bs-btn-padding-y: .35rem; --bs-btn-font-size: .8125rem; --bs-btn-border-radius: 8px; }
.btn-lg { --bs-btn-padding-x: 1.35rem; --bs-btn-padding-y: .75rem; --bs-btn-font-size: 1rem; --bs-btn-border-radius: 12px; }
.btn-primary {
  --bs-btn-color: #fff; --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--primary-600); --bs-btn-hover-border-color: var(--primary-600);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--primary-700); --bs-btn-active-border-color: var(--primary-700);
  --bs-btn-disabled-bg: #9fd6c1; --bs-btn-disabled-border-color: #9fd6c1;
  box-shadow: 0 1px 2px rgba(9, 90, 65, .3), inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px -6px rgba(14, 124, 90, .55);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-white {
  --bs-btn-color: var(--ink); --bs-btn-bg: #fff; --bs-btn-border-color: var(--line-2);
  --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #b9c6c0;
  --bs-btn-active-bg: var(--bg-2); --bs-btn-active-border-color: var(--line-2);
  box-shadow: var(--shadow-xs);
}
.btn-ghost {
  --bs-btn-color: var(--ink-2); --bs-btn-bg: transparent; --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: var(--bg-2); --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: var(--line);
}
.btn-danger-ghost { --bs-btn-color: var(--critical-ink); --bs-btn-hover-color: var(--critical-ink); --bs-btn-hover-bg: var(--critical-soft); --bs-btn-border-color: transparent; --bs-btn-hover-border-color: transparent; }
.btn-light-on-dark { --bs-btn-color: var(--ink); --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-hover-bg: #e6f6ef; --bs-btn-hover-border-color: #e6f6ef; --bs-btn-hover-color: var(--ink); }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-color: var(--line-2); border-radius: 10px; padding: .6rem .85rem; background-color: #fff;
  font-size: .9375rem; box-shadow: var(--shadow-xs); color: var(--ink);
}
.form-control::placeholder { color: #a3b0aa; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: var(--ring); }
.form-label { font-weight: 500; font-size: .875rem; color: var(--ink); margin-bottom: .4rem; }
.form-text { color: var(--ink-3); font-size: .8125rem; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-input:focus { box-shadow: var(--ring); border-color: var(--primary); }
.invalid-feedback { color: var(--critical-ink); font-size: .8125rem; }
.form-control.is-invalid { border-color: var(--critical); }
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.input-icon > .form-control { padding-left: 2.4rem; }

/* ---------- Status language ---------- */
.s-healthy { --s: var(--healthy); --s-ink: var(--healthy-ink); --s-soft: var(--healthy-soft); }
.s-attention, .s-medium { --s: var(--attention); --s-ink: var(--attention-ink); --s-soft: var(--attention-soft); }
.s-critical, .s-high { --s: var(--critical); --s-ink: var(--critical-ink); --s-soft: var(--critical-soft); }
.s-down { --s: var(--down); --s-ink: #fff; --s-soft: var(--down); }
.s-pending, .s-low { --s: var(--pending); --s-ink: var(--ink-2); --s-soft: var(--pending-soft); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--s, var(--pending)); display: inline-block; flex: none; }
.badge-status {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  font-size: .75rem; font-weight: 500; line-height: 1;
  padding: .32rem .6rem; border-radius: 999px;
  background: var(--s-soft); color: var(--s-ink);
}
.badge-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--s); }
.badge-status.s-down::before { background: #fff; animation: hv-pulse 1.2s ease-in-out infinite; }
.badge-sev { font-size: .6875rem; font-weight: 600; padding: .22rem .5rem; border-radius: 6px; background: var(--s-soft); color: var(--s-ink); line-height: 1; }
.pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 500; color: var(--ink-2); background: var(--bg-2); border-radius: 999px; padding: .28rem .65rem; }

@keyframes hv-pulse { 50% { opacity: .25; } }
@keyframes hv-spin { to { transform: rotate(360deg); } }

/* ---------- Panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { font-size: 1rem; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.panel-head .sub { font-size: .8125rem; color: var(--ink-3); }
.panel-body { padding: 1.25rem; }
.panel-foot { padding: .85rem 1.25rem; border-top: 1px solid var(--line); background: #fafcfb; border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* =========================================================================
   MARKETING
   ========================================================================= */
.mk-header { position: sticky; top: 0; z-index: 40; background: rgba(246, 248, 247, .78); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.mk-header.is-scrolled { border-bottom-color: var(--line); }
.mk-header .navbar { --bs-navbar-padding-y: .9rem; }
.mk-header .nav-link { color: var(--ink-2); font-weight: 500; font-size: .9375rem; padding-inline: .85rem !important; }
.mk-header .nav-link:hover { color: var(--ink); }

.sky { position: relative; overflow: hidden; }
.sky::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(50% 55% at 22% 18%, rgba(16, 185, 129, .10), transparent 70%),
    radial-gradient(45% 50% at 80% 8%, rgba(14, 124, 90, .10), transparent 70%),
    radial-gradient(40% 40% at 55% 45%, rgba(56, 189, 248, .06), transparent 70%);
}
.sky > * { position: relative; z-index: 1; }

.hero { padding: clamp(3.5rem, 8vw, 6rem) 0 0; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .4rem .35rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); box-shadow: var(--shadow-xs); font-size: .8125rem; color: var(--ink-2); margin-bottom: 1.6rem; }
.hero-badge b { font-weight: 500; color: var(--ink); }
.hero-badge span.tag { background: var(--primary-soft); color: var(--primary-700); border-radius: 999px; padding: .15rem .55rem; font-weight: 500; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.9rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02;
  max-width: 15ch; margin: 0 auto 1.4rem;
  background: linear-gradient(180deg, #0f1f1a 30%, #2c4a3f 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { text-wrap: pretty; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 40rem; margin: 0 auto 2.2rem; line-height: 1.55; }

.scan-form { display: flex; gap: .5rem; max-width: 34rem; margin: 0 auto; padding: .45rem; background: #fff; border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); }
.scan-form:focus-within { border-color: var(--primary); box-shadow: var(--shadow), var(--ring); }
.scan-form .input-icon { flex: 1; }
.scan-form .form-control { border: 0; box-shadow: none; font-size: 1rem; background: transparent; height: 100%; }
.scan-form .form-control:focus { box-shadow: none; }
.scan-form .btn { white-space: nowrap; }
.hero-notes { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.1rem; font-size: .8125rem; color: var(--ink-3); }
.hero-notes span { display: inline-flex; align-items: center; gap: .35rem; }
.hero-notes .bi { color: var(--healthy); }

.hero-stage { margin-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-frame { position: relative; border-radius: var(--r-xl); padding: 8px; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.5)); border: 1px solid rgba(213, 218, 230, .8); box-shadow: var(--shadow-lg); }

/* ---------- Helicopter view ---------- */
.heliview { position: relative; border-radius: calc(var(--r-xl) - 6px); overflow: hidden; background: linear-gradient(180deg, #fbfcfb 0%, #f1f5f3 100%); isolation: isolate; }
.heliview-hero { height: clamp(380px, 52vw, 600px); }
.heliview-app { height: 440px; border-radius: var(--r-lg); }
.heliview-full { height: max(480px, calc(100vh - 230px)); }
.heliview-canvas { position: absolute; inset: 0; }
.heliview-canvas canvas { display: block; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .8s ease; }
.heliview.is-ready .heliview-canvas canvas { opacity: 1; }
.heliview-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.heliview-label {
  position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none;
  font-size: .75rem; font-weight: 500; color: var(--ink); background: rgba(255,255,255,.92);
  border: 1px solid var(--line); border-radius: 999px; padding: .25rem .6rem .25rem .5rem; box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: .4rem; transition: opacity .2s;
}
.heliview-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--s); }
.heliview-hud { position: absolute; left: 14px; right: 14px; z-index: 3; display: flex; justify-content: space-between; align-items: flex-end; gap: .75rem; pointer-events: none; }
.heliview-hud.hud-top { top: 14px; align-items: flex-start; }
.heliview-hud.hud-bottom { bottom: 14px; }
.hud-card { pointer-events: auto; display: inline-flex; align-items: center; gap: 1rem; background: rgba(255,255,255,.86); backdrop-filter: blur(10px); border: 1px solid rgba(213, 218, 230, .9); border-radius: 12px; padding: .5rem .75rem; box-shadow: var(--shadow-sm); font-size: .8125rem; color: var(--ink-2); }
.hud-card b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hud-live { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--ink); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--healthy); box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: hv-live 2s infinite; }
@keyframes hv-live { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 70% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.hud-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.hud-legend .lg { width: 10px; height: 10px; border-radius: 3px; background: var(--s); }
.hud-controls { gap: .3rem; padding: .3rem; }
.hud-btn { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-2); display: grid; place-items: center; }
.hud-btn:hover { background: var(--bg-2); color: var(--ink); }
.hud-btn[aria-pressed="true"] { color: var(--primary); background: var(--primary-tint); }
.heliview-tip {
  position: absolute; left: 0; top: 0; z-index: 4; width: 260px; pointer-events: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .85rem .95rem;
}
.heliview-tip strong { font-weight: 600; font-size: .9375rem; word-break: break-all; }
.heliview-tip .tip-score { font-weight: 600; font-size: 1.25rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.heliview-tip .badge-status { margin: .35rem 0 .5rem; }
.heliview-tip p { margin: 0; font-size: .8125rem; color: var(--ink-2); line-height: 1.45; }
.heliview-fallback { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 8px; padding: 70px 24px; align-content: center; }
.hf-plot { aspect-ratio: 1; border-radius: 8px; background: var(--s); opacity: .85; }
.hf-plot.s-healthy { opacity: .35; }
@media (max-width: 575.98px) {
  .hud-legend span:nth-child(n+3) { display: none; }
  .heliview-hud { left: 10px; right: 10px; }
}

/* ---------- Marketing sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 44rem; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.kicker { display: inline-block; font-size: .8125rem; font-weight: 500; color: var(--primary); margin-bottom: .8rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -0.035em; font-weight: 600; }
.section-head p { color: var(--ink-2); font-size: 1.0625rem; margin: 1rem auto 0; }
.section-head.left p { margin-left: 0; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stats-strip > div { background: #fff; padding: 1.5rem 1.4rem; }
.stats-strip b { display: block; font-size: 1.9rem; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stats-strip span { color: var(--ink-2); font-size: .875rem; }
@media (max-width: 767.98px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

.product-shot { position: relative; }
.product-shot .panel { box-shadow: var(--shadow-lg); }
.float-card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .8rem 1rem; font-size: .8125rem; }
.float-card.fc-1 { right: -18px; top: -26px; }
.float-card.fc-2 { left: -22px; bottom: -24px; }
@media (max-width: 991.98px) { .float-card { display: none; } }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-xs); }
.feature .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 1.15rem; margin-bottom: 1rem; background: var(--primary-tint); color: var(--primary); border: 1px solid var(--primary-soft); }
.feature h3 { font-size: 1.0625rem; margin-bottom: .45rem; }
.feature p { color: var(--ink-2); font-size: .9375rem; margin: 0; }
.feature ul { list-style: none; padding: 0; margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.feature li { font-size: .75rem; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .15rem .45rem; }
@media (max-width: 991.98px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .feature-grid { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 1.5rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff; font-weight: 600; font-size: .875rem; margin-bottom: 1rem; box-shadow: 0 6px 14px -4px rgba(14,124,90,.5); }
.steps h3 { font-size: 1.0625rem; margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 767.98px) { .steps { grid-template-columns: 1fr; } }

.integrations { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.integration { display: flex; align-items: center; gap: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .95rem; font-weight: 500; font-size: .9375rem; }
.integration .bi { font-size: 1.2rem; color: var(--ink-2); }
.integration small { margin-left: auto; font-size: .6875rem; font-weight: 500; color: var(--primary-700); background: var(--primary-tint); border-radius: 999px; padding: .15rem .5rem; }
@media (max-width: 575.98px) { .integrations { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 60rem; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 2rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative; }
.plan.is-featured { border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: 0 24px 60px -20px rgba(14, 124, 90, .35); }
.plan .plan-tag { position: absolute; top: -12px; left: 2rem; font-size: .75rem; font-weight: 500; color: #fff; background: var(--grad); padding: .25rem .7rem; border-radius: 999px; }
.plan h3 { font-size: 1.125rem; margin-bottom: .25rem; }
.plan .who { color: var(--ink-2); font-size: .9375rem; margin-bottom: 1.5rem; }
.plan .price { font-size: 3rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-left: .25rem; }
.plan .price-unit { color: var(--ink-3); font-size: .875rem; margin: .5rem 0 1.5rem; }
.plan ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .65rem; }
.plan li { display: flex; gap: .6rem; font-size: .9375rem; color: var(--ink-2); }
.plan li .bi { color: var(--primary); flex: none; margin-top: .1rem; }
@media (max-width: 767.98px) { .plans { grid-template-columns: 1fr; } }

.faq { max-width: 46rem; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.15rem 0; }
.faq summary { font-weight: 500; font-size: 1.0625rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\F64D"; font-family: "bootstrap-icons"; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: .75rem 0 0; }

.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--grad); color: #fff; padding: clamp(2.5rem, 6vw, 4rem); text-align: center; box-shadow: 0 30px 70px -30px rgba(14, 124, 90, .7); }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 0%, rgba(255,255,255,.22), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(255,255,255,.12), transparent 60%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.035em; }
.cta-band p { color: rgba(255,255,255,.85); margin: .9rem auto 1.8rem; font-size: 1.0625rem; }

.mk-footer { padding: 3.5rem 0 2.5rem; font-size: .875rem; color: var(--ink-2); }
.mk-footer h4 { font-size: .8125rem; font-weight: 600; color: var(--ink); margin-bottom: .9rem; letter-spacing: 0; }
.mk-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.mk-footer a { color: var(--ink-2); }
.mk-footer a:hover { color: var(--primary); }
.mk-footer .bottom { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; color: var(--ink-3); font-size: .8125rem; }

/* =========================================================================
   SHARED: findings, readings
   ========================================================================= */
.findings { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
details.finding { border-top: 1px solid var(--line); }
details.finding:first-child { border-top: 0; }
details.finding > summary { display: flex; gap: .9rem; align-items: center; padding: .95rem 1.15rem; cursor: pointer; list-style: none; transition: background .12s; }
details.finding > summary::-webkit-details-marker { display: none; }
details.finding > summary:hover { background: #f8fbf9; }
details.finding[open] > summary { background: #f8fbf9; }
.f-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--s-soft); color: var(--s-ink); font-size: 1rem; }
.f-main { flex: 1; min-width: 0; }
.finding-title { display: block; font-weight: 500; font-size: .9375rem; line-height: 1.4; color: var(--ink); }
.finding-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin-top: .3rem; font-size: .75rem; color: var(--ink-3); }
.chev { color: var(--ink-3); transition: transform .2s; flex: none; }
details.finding[open] .chev { transform: rotate(180deg); }
.finding-inner { padding: .25rem 1.15rem 1.2rem calc(1.15rem + 34px + .9rem); background: #f8fbf9; }
.finding-body p { color: var(--ink-2); font-size: .9rem; margin-bottom: .75rem; }
.evidence { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; font-size: .8125rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .65rem .85rem; margin-bottom: .75rem; }
.evidence dt { color: var(--ink-3); font-weight: 400; }
.evidence dd { margin: 0; color: var(--ink); word-break: break-word; font-variant-numeric: tabular-nums; }
.finding-fix { display: flex; gap: .65rem; background: var(--primary-tint); border: 1px solid var(--primary-soft); border-radius: 10px; padding: .7rem .85rem; font-size: .875rem; color: var(--ink); }
.finding-fix .bi { color: var(--primary); margin-top: .1rem; }
.finding-fix b { font-weight: 600; }
.finding-actions { display: flex; gap: .5rem; margin-top: .9rem; }

.findings-locked { position: relative; margin-top: .75rem; }
.findings-locked .ghost-row { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.15rem; border-top: 1px solid var(--line); filter: blur(4px); }
.findings-locked .ghost-row:first-child { border-top: 0; }
.findings-locked .ghost-bar { height: 10px; border-radius: 6px; background: var(--line); }
.findings-locked .unlock { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1.5rem; background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.96) 45%); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; font-size: .875rem; margin: 0; }
.kv dt { color: var(--ink-2); font-weight: 400; }
.kv dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; word-break: break-word; }
.kv .ok { color: var(--healthy-ink); }
.kv .warn { color: var(--attention-ink); }
.kv .bad { color: var(--critical-ink); }
.reading + .reading { border-top: 1px solid var(--line); }
.reading { padding: 1.1rem 1.25rem; }
.reading h3 { font-size: .875rem; font-weight: 600; margin-bottom: .8rem; display: flex; align-items: center; gap: .5rem; letter-spacing: -0.005em; }
.reading h3 .bi { color: var(--ink-3); }
.reading h3 .right { margin-left: auto; font-variant-numeric: tabular-nums; }
.uptime-strip { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; height: 28px; margin-bottom: .8rem; }
.uptime-strip i { background: var(--healthy); border-radius: 3px; opacity: .9; }
.uptime-strip i.part { background: var(--attention); }
.uptime-strip i.bad { background: var(--critical); }
.uptime-strip i.none { background: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { font-size: .75rem; font-weight: 500; padding: .25rem .55rem; border-radius: 7px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.chip em { font-style: normal; color: var(--ink-3); margin-left: .25rem; font-weight: 400; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: .8125rem; position: relative; }
.timeline li { display: grid; grid-template-columns: 14px 1fr auto; gap: .65rem; padding: .35rem 0; align-items: baseline; }
.timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transform: translateY(1px); }
.timeline li.hi::before { background: var(--attention); }
.timeline time { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.connect-row { display: flex; align-items: center; gap: .65rem; font-size: .875rem; padding: .4rem 0; }
.connect-row .logo { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.connect-row .soon { margin-left: auto; font-size: .6875rem; color: var(--primary-700); background: var(--primary-tint); border-radius: 999px; padding: .15rem .5rem; font-weight: 500; }

/* Score ring */
.score-ring { --size: 112px; --p: 0; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; position: relative; flex: none;
  background: conic-gradient(var(--s, var(--primary)) calc(var(--p) * 1%), var(--line) 0); }
.score-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.score-ring .v { position: relative; text-align: center; line-height: 1; }
.score-ring .v b { display: block; font-size: 2.1rem; font-weight: 600; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.score-ring .v span { font-size: .6875rem; color: var(--ink-3); }
.score-ring.sm { --size: 44px; }
.score-ring.sm::before { inset: 4px; }
.score-ring.sm .v b { font-size: .875rem; letter-spacing: -0.02em; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; box-shadow: var(--shadow-xs); }
.cat .k { display: flex; align-items: center; gap: .45rem; font-size: .8125rem; color: var(--ink-2); }
.cat .k .bi { color: var(--ink-3); }
.cat .v { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.04em; margin-top: .3rem; font-variant-numeric: tabular-nums; }
.cat .bar { height: 4px; border-radius: 4px; background: var(--line); margin-top: .5rem; overflow: hidden; }
.cat .bar i { display: block; height: 100%; border-radius: 4px; background: var(--s); }
@media (max-width: 1199.98px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* Scan progress */
.scan-card { max-width: 36rem; margin: 0 auto; }
.scan-steps { list-style: none; padding: 0; margin: 0; }
.scan-steps li { display: flex; gap: .8rem; align-items: center; padding: .75rem 1.25rem; color: var(--ink-3); border-top: 1px solid var(--line); font-size: .9375rem; }
.scan-steps li:first-child { border-top: 0; }
.scan-steps li.is-active { color: var(--ink); font-weight: 500; background: var(--primary-tint); }
.scan-steps li.is-done { color: var(--ink-2); }
.scan-steps .tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; }
.scan-steps li.is-active .tick { border-color: var(--primary); border-top-color: transparent; animation: hv-spin .7s linear infinite; }
.scan-steps li.is-done .tick { background: var(--healthy); border-color: var(--healthy); }
.scan-steps li.is-done .tick::after { content: "\F633"; font-family: "bootstrap-icons"; color: #fff; font-size: .75rem; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .scan-steps li.is-active .tick { animation: none; border-top-color: var(--primary); } }

/* Auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-form { display: flex; flex-direction: column; padding: 2rem clamp(1.5rem, 5vw, 4.5rem); }
.auth-form .inner { width: 100%; max-width: 24rem; margin: auto; padding: 2rem 0; }
.auth-form h1 { font-size: 1.85rem; letter-spacing: -0.035em; margin-bottom: .5rem; }
.auth-aside { position: relative; overflow: hidden; background: var(--grad); color: #fff; padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: flex-end; }
.auth-aside::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 20%, rgba(255,255,255,.22), transparent 70%); }
.auth-aside > * { position: relative; }
.auth-aside h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.035em; max-width: 18ch; }
.auth-aside ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; color: rgba(255,255,255,.9); }
.auth-aside li { display: flex; gap: .6rem; }
.auth-aside .mini-city { position: absolute; top: 12%; left: 50%; transform: translateX(-50%); width: min(80%, 420px); }
@media (max-width: 991.98px) { .auth { grid-template-columns: 1fr; } .auth-aside { display: none; } }

.alert { border-radius: 12px; font-size: .9rem; border: 1px solid transparent; display: flex; gap: .6rem; align-items: flex-start; }
.alert-note { background: var(--primary-tint); border-color: var(--primary-soft); color: var(--ink); }
.alert-error { background: var(--critical-soft); border-color: #f9d0d0; color: var(--critical-ink); }
.alert-ok { background: var(--healthy-soft); border-color: #c6eedd; color: var(--healthy-ink); }

/* =========================================================================
   APP SHELL
   ========================================================================= */
.app-body { background: var(--bg); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 50;
  background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 1.1rem .9rem;
}
.sidebar .brand { padding: .2rem .5rem 1.4rem; }
.side-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.side-label { font-size: .6875rem; font-weight: 500; color: var(--ink-3); padding: 1.1rem .7rem .4rem; }
.side-nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: .875rem; transition: background .12s, color .12s; }
.side-nav a .bi { font-size: 1.05rem; color: var(--ink-3); transition: color .12s; }
.side-nav a:hover { background: var(--bg); color: var(--ink); }
.side-nav a.active { background: var(--primary-tint); color: var(--primary-700); }
.side-nav a.active .bi { color: var(--primary); }
.side-nav .count { margin-left: auto; font-size: .6875rem; font-weight: 600; background: var(--critical-soft); color: var(--critical-ink); border-radius: 999px; padding: .1rem .45rem; }
.side-foot { margin-top: auto; display: grid; gap: .75rem; }
.trial-card { border-radius: 14px; padding: 1rem; background: linear-gradient(160deg, var(--primary-tint), #fff); border: 1px solid var(--primary-soft); font-size: .8125rem; color: var(--ink-2); }
.trial-card b { color: var(--ink); font-weight: 600; }
.trial-card .bar { height: 6px; border-radius: 6px; background: var(--primary-soft); margin: .6rem 0 .8rem; overflow: hidden; }
.trial-card .bar i { display: block; height: 100%; border-radius: 6px; background: var(--grad); }
.user-chip { display: flex; align-items: center; gap: .65rem; padding: .5rem; border-radius: 10px; width: 100%; background: transparent; border: 0; text-align: left; }
.user-chip:hover { background: var(--bg); }
.avatar { width: 32px; height: 32px; border-radius: 9px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .8125rem; flex: none; }
.user-chip .who { min-width: 0; line-height: 1.25; }
.user-chip .who b { display: block; font-size: .8125rem; font-weight: 600; color: var(--ink); }
.user-chip .who span { display: block; font-size: .75rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app-main { margin-left: var(--sidebar-w); min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem; height: 64px; padding: 0 2rem; background: rgba(246, 248, 247, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .crumbs { font-size: .875rem; color: var(--ink-3); display: flex; align-items: center; gap: .5rem; min-width: 0; }
.topbar .crumbs a { color: var(--ink-3); }
.topbar .crumbs a:hover { color: var(--ink); }
.topbar .crumbs b { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.app-content { padding: 1.75rem 2rem 4rem; max-width: 1440px; }
.mobile-toggle { display: none; }

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .sidebar.is-open { transform: none; }
  .app-main { margin-left: 0; }
  .mobile-toggle { display: inline-flex; }
  .topbar, .app-content { padding-left: 1rem; padding-right: 1rem; }
  .sidebar-scrim { position: fixed; inset: 0; background: rgba(15,22,48,.3); z-index: 45; }
}

.page-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-title h1 { font-size: 1.6rem; letter-spacing: -0.035em; margin: 0; }
.page-title p { color: var(--ink-2); margin: .35rem 0 0; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-xs); }
.kpi .k { display: flex; align-items: center; justify-content: space-between; font-size: .8125rem; color: var(--ink-2); }
.kpi .k .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); }
.kpi .v { font-size: 1.85rem; font-weight: 600; letter-spacing: -0.045em; margin-top: .35rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .v small { font-size: .9rem; color: var(--ink-3); font-weight: 500; letter-spacing: 0; margin-left: .2rem; }
.kpi .d { font-size: .75rem; color: var(--ink-3); margin-top: .25rem; }
.kpi.alert-kpi { border-color: #f9d0d0; background: linear-gradient(160deg, #fff7f7, #fff 60%); }
.kpi.alert-kpi .ico { background: var(--critical-soft); color: var(--critical-ink); }
@media (max-width: 1199.98px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

.view-toggle { display: inline-flex; background: var(--bg-2); border-radius: 10px; padding: 3px; gap: 2px; }
.view-toggle button { border: 0; background: transparent; color: var(--ink-2); font-size: .8125rem; font-weight: 500; padding: .35rem .7rem; border-radius: 8px; display: inline-flex; gap: .4rem; align-items: center; }
.view-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }

/* Sites table */
.table-sites { margin: 0; --bs-table-bg: transparent; --bs-table-hover-bg: #f8fbf9; font-size: .875rem; }
.table-sites thead th { font-size: .75rem; font-weight: 500; color: var(--ink-3); border-bottom: 1px solid var(--line); padding: .7rem 1rem; background: #fafcfb; white-space: nowrap; }
.table-sites td { padding: .85rem 1rem; border-color: var(--line); vertical-align: middle; }
.table-sites tbody tr { cursor: pointer; }
.table-sites tbody tr:last-child td { border-bottom: 0; }
.site-cell { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.favicon { width: 32px; height: 32px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 600; font-size: .8125rem; color: var(--ink-2); flex: none; text-transform: uppercase; }
.site-cell b { display: block; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-cell span { display: block; font-size: .75rem; color: var(--ink-3); }
.site-cell > .favicon { display: grid; font-size: .8125rem; color: var(--ink-2); }
.score-bar { display: flex; align-items: center; gap: .6rem; min-width: 110px; }
.score-bar b { font-weight: 600; width: 1.9rem; font-variant-numeric: tabular-nums; }
.score-bar .track { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.score-bar .track i { display: block; height: 100%; border-radius: 6px; background: var(--s); }
.issue-cell { color: var(--ink-2); max-width: 22rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fixnext a { display: flex; gap: .8rem; align-items: center; padding: .85rem 1.15rem; border-top: 1px solid var(--line); color: inherit; transition: background .12s; }
.fixnext a:first-child { border-top: 0; }
.fixnext a:hover { background: #f8fbf9; }
.fixnext .what { flex: 1; min-width: 0; }
.fixnext .what b { display: block; font-weight: 500; font-size: .875rem; line-height: 1.4; }
.fixnext .what span { font-size: .75rem; color: var(--ink-3); }
.fixnext .bi-chevron-right { color: var(--ink-3); }

.sev-bars { display: grid; gap: .7rem; }
.sev-bars .row-i { display: grid; grid-template-columns: 5.5rem 1fr 2rem; align-items: center; gap: .75rem; font-size: .8125rem; color: var(--ink-2); }
.sev-bars .track { height: 8px; border-radius: 8px; background: var(--bg-2); overflow: hidden; }
.sev-bars .track i { display: block; height: 100%; border-radius: 8px; background: var(--s); }
.sev-bars b { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.domain-hero { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.domain-hero .info { flex: 1; min-width: 16rem; }
.domain-hero h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.04em; margin: .5rem 0 .4rem; word-break: break-all; }
.domain-hero .meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .8125rem; color: var(--ink-3); align-items: center; }
.domain-hero .meta .bi { margin-right: .3rem; }

.empty-state { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; }
.empty-state .ico { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 1.1rem; display: grid; place-items: center; font-size: 1.5rem; background: var(--primary-tint); color: var(--primary); border: 1px solid var(--primary-soft); }
.empty-state h2 { font-size: 1.35rem; letter-spacing: -0.03em; }
.empty-state p { color: var(--ink-2); margin: .5rem auto 1.4rem; max-width: 30rem; }

.settings-section { display: grid; grid-template-columns: 16rem 1fr; gap: 2rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.settings-section:first-of-type { border-top: 0; padding-top: 0; }
.settings-section h2 { font-size: 1rem; margin-bottom: .3rem; }
.settings-section > div:first-child p { font-size: .875rem; color: var(--ink-3); }
@media (max-width: 767.98px) { .settings-section { grid-template-columns: 1fr; gap: 1rem; } }

.dropdown-menu { --bs-dropdown-border-color: var(--line); --bs-dropdown-border-radius: 12px; --bs-dropdown-link-active-bg: var(--primary-tint); --bs-dropdown-link-active-color: var(--ink); --bs-dropdown-font-size: .875rem; box-shadow: var(--shadow-lg); padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .45rem .7rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Compact HUD on small screens */
.hud-card, .hud-stat { white-space: nowrap; }
@media (max-width: 575.98px) {
  .hud-top .hud-stat:last-child { display: none; }
  .hud-controls .text-ink-3 { display: none; }
}

/* =========================================================================
   v0.3: multi-page marketing, legal, deep-green brand surfaces
   ========================================================================= */
.mk-header .nav-link.active { color: var(--ink); }
.mk-header .dropdown-toggle::after { border: 0; content: "\F282"; font-family: "bootstrap-icons"; font-size: .7rem; vertical-align: .05em; margin-left: .35rem; }
.mega-menu { padding: .6rem; width: min(640px, 92vw); border-radius: 16px; }
@media (min-width: 992px) { .mega .mega-menu { left: 50%; transform: translateX(-50%); } }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-item { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem; border-radius: 10px; color: var(--ink); }
.mega-item:hover { background: var(--bg); color: var(--ink); }
.mega-item b { display: block; font-weight: 500; font-size: .9rem; }
.mega-item small { display: block; color: var(--ink-3); font-size: .8rem; line-height: 1.35; margin-top: .1rem; }
.mega-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--primary-tint); color: var(--primary); border: 1px solid var(--primary-soft); font-size: 1rem; }
.mega-foot { display: flex; align-items: center; justify-content: center; gap: .2rem; margin-top: .4rem; padding: .6rem; border-radius: 10px; background: var(--bg); font-size: .85rem; font-weight: 500; }
@media (max-width: 991.98px) { .mega-menu { width: 100%; box-shadow: none; border: 0; padding: 0; } .mega-grid { grid-template-columns: 1fr; } }

.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); letter-spacing: -0.042em; line-height: 1.05; margin-bottom: 1.1rem; }
.page-hero .lede { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-2); margin-bottom: 1.8rem; max-width: 38rem; line-height: 1.55; }
.crumb-trail { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .8125rem; color: var(--ink-3); margin-bottom: 2rem; }
.crumb-trail a { color: var(--ink-3); }
.crumb-trail a:hover { color: var(--primary); }
.crumb-trail .bi { font-size: .65rem; }
.feature-badge { display: inline-flex; align-items: center; gap: .45rem; font-size: .8125rem; font-weight: 500; color: var(--primary-700); background: var(--primary-tint); border: 1px solid var(--primary-soft); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1.2rem; }

a.feature { color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.feature:hover { border-color: var(--primary-soft); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
a.feature .more { display: inline-flex; align-items: center; gap: .25rem; margin-top: .9rem; font-size: .85rem; font-weight: 500; color: var(--primary); }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s, transform .15s; }
.related:hover { color: var(--ink); border-color: var(--primary-soft); box-shadow: var(--shadow); transform: translateY(-2px); }
.related b { font-weight: 600; font-size: 1.02rem; margin-top: .4rem; }
.related span:not(.mega-ico) { color: var(--ink-2); font-size: .9rem; line-height: 1.5; padding-right: 1.5rem; }
.related .go { position: absolute; right: 1.2rem; top: 1.4rem; color: var(--ink-3); transition: transform .15s, color .15s; }
.related:hover .go { transform: translateX(3px); color: var(--primary); }
@media (max-width: 991.98px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .related-grid { grid-template-columns: 1fr; } }

/* Deep green brand surfaces */
.cta-band { background: var(--brand-dark); box-shadow: 0 30px 70px -30px rgba(15, 42, 34, .6); }
.cta-band::after { background: radial-gradient(55% 90% at 85% 0%, rgba(52, 211, 153, .28), transparent 65%), radial-gradient(45% 80% at 0% 100%, rgba(16, 185, 129, .18), transparent 60%); }
.cta-band p { color: rgba(220, 243, 233, .82); }
.btn-outline-light-soft { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.35); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255,255,255,.08); --bs-btn-hover-border-color: rgba(255,255,255,.6); }
.auth-aside { background: var(--brand-dark); }
.auth-aside::before { background: radial-gradient(60% 50% at 70% 20%, rgba(52, 211, 153, .25), transparent 70%); }
.plan .plan-tag { background: var(--brand-dark); }
.avatar { background: var(--brand-dark); }
.steps li::before { background: var(--brand-dark); box-shadow: none; }

/* Legal */
.legal-wrap { max-width: 50rem; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.6rem; }
.legal-tabs a { font-size: .875rem; font-weight: 500; color: var(--ink-2); padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.legal-tabs a:hover { color: var(--ink); border-color: var(--line-2); }
.legal-tabs a.active { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.legal { font-size: 1rem; line-height: 1.7; color: var(--ink-2); }
.legal .intro { font-size: 1.125rem; color: var(--ink); padding: 1.25rem 1.4rem; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: 12px; }
.legal h2 { font-size: 1.25rem; color: var(--ink); margin: 2.4rem 0 .8rem; letter-spacing: -0.02em; scroll-margin-top: 90px; }
.legal p, .legal li { max-width: 72ch; }
.legal ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.legal b { color: var(--ink); font-weight: 600; }
.legal i { color: var(--ink-3); font-style: normal; }
.legal-table { font-size: .875rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; --bs-table-bg: #fff; }
.legal-table th { font-weight: 600; color: var(--ink); background: var(--bg); font-size: .8125rem; }
.legal-table td, .legal-table th { padding: .75rem .9rem; border-color: var(--line); vertical-align: top; }
.contact-kv dd { text-align: right; }
