/* Shared visual layer. Content and controls remain usable without JavaScript. */
:root {
  --bg: #0c1219;
  --panel: #131c25;
  --panel2: #1b2732;
  --text: #f1f5f7;
  --muted: #acbac7;
  --line: #30404d;
  --accent: #d1ef8e;
  --accent2: #b9d879;
  --good: #91e3b6;
  --bad: #ffaba6;
  --info: #a9d5ff;
  --radius: 18px;
  --surface-inset: #0e1720;
  --shadow: 0 12px 32px rgb(0 0 0 / 10%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.35; }
.brand, .hero h1, .dash-head h1, .auth-card h1, .section h2,
.scanner-page h1 { letter-spacing: -.025em; }
p, li { text-wrap: pretty; }
::selection { background: #d1ef8e; color: #10190e; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(209 239 142 / 12%);
}
input, select, textarea {
  min-height: 48px;
  background: var(--surface-inset);
  border-color: #455563;
  color: var(--text);
  border-radius: 11px;
}
input::placeholder, textarea::placeholder { color: #92a4b3; opacity: 1; }
input[type="checkbox"], input[type="radio"] { min-height: 0; accent-color: var(--accent); }
label { font-size: 14px; color: #d4dee7; }
.field-help, .muted { color: var(--muted); line-height: 1.8; }
.field-help { margin-block: 9px; }
.btn {
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #17220d;
  font-weight: 750;
  line-height: 1.5;
  box-shadow: 0 2px 0 rgb(0 0 0 / 9%);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn:hover { background: #def5b0; }
.btn.small { min-height: 44px; }
.btn.secondary { background: #253542; border-color: #455867; color: var(--text); }
.btn.secondary:hover { background: #304452; border-color: #6b8191; }
.btn.danger { background: #f4a7a1; color: #321614; }
.btn:disabled { transform: none; opacity: .72; }
a.text-link:hover, .sub-link:hover, .public-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.card, .glass { background: var(--panel); box-shadow: var(--shadow); }
.panel { padding: 26px; margin-bottom: 18px; }
.panel h2 { font-size: 22px; line-height: 1.5; }
.panel > p, .panel-head p { max-width: 88ch; }
.eyebrow, .pill { letter-spacing: .025em; font-size: 12px; }
.eyebrow { line-height: 1.8; }
.pill { display: inline-flex; align-items: center; border: 1px solid #455a3c; padding: 5px 12px; border-radius: 99px; background: #1a291e; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; white-space: nowrap; direction: ltr; }
.brand::before {
  content: "";
  display: block;
  width: 23px;
  height: 27px;
  flex: 0 0 23px;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 5px 12px no-repeat,
              linear-gradient(var(--accent), var(--accent)) center bottom / 5px 20px no-repeat,
              linear-gradient(var(--accent), var(--accent)) right bottom / 5px 27px no-repeat;
}
.sidebar { background: #0f1720; border-color: #2a3945; padding: 26px 17px 18px; }
.sidebar .brand { padding: 0 9px; }
.sidebar .account { padding: 16px; background: #19242e; border: 1px solid #30414e; margin: 25px 0 17px; }
.sidebar .account b { font-size: 16px; }
.sidebar .account span { font-size: 12px; }
.sidebar nav a { padding: 10px 12px; min-height: 44px; color: #b9c5cf; border: 1px solid transparent; transition: background-color 150ms ease, color 150ms ease; }
.sidebar nav a:hover { background: #1a2934; color: #f7fafb; }
.sidebar nav a.active { border-color: #435740; background: #24332a; color: #e1f6b9; font-weight: 700; }
.nav-group { margin: 12px 0 4px; border-top-color: #293845; }
.nav-group summary { min-height: 44px; color: #d2dce4; }
.nav-group > div { padding-inline-start: 7px; margin-inline-start: 7px; }
.logout button { min-height: 44px; padding: 8px 12px; color: #becbd5; font-size: 14px; }
.operator-link { border-color: #637184; color: #c6d6e4; }
.dashboard { padding: 36px clamp(22px, 3vw, 48px) 64px; }
.dash-head { margin-bottom: 28px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.dash-head h1 { font-size: clamp(28px, 2.8vw, 39px); margin: 10px 0 7px; }
.dash-head .page-description { margin-bottom: 0; }
.scan-button { padding: 14px 16px; border: 1px solid #334551; border-radius: 14px; background: #121d26; }
.scan-button .btn { width: 100%; }
.mobile-head { background: #0f1720; box-shadow: 0 7px 20px rgb(0 0 0 / 10%); }
.mobile-menu > summary { min-height: 44px; }
.mobile-menu-body nav a { min-height: 44px; }
.mobile-menu a.active { background: #24332a; color: #e1f6b9; }
.next-step { border-color: #526d47; background: linear-gradient(120deg, #202e23, #15222a 85%); position: relative; }
.next-step::before { content: ""; position: absolute; inset-block: 24px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--accent); }
.next-step h2 { font-size: clamp(23px, 2.5vw, 29px); }
.kpis, .grid2 { gap: 16px; }
.kpi { padding: 24px; }
.kpi b, .result-number, .growth-number, .funnel-row b, td { font-variant-numeric: tabular-nums; }
.kpi b { letter-spacing: -.025em; }
.kpi span { color: #c0ccd5; font-size: 14px; }
.kpi small { color: var(--muted); display: block; font-size: 13px; line-height: 1.65; }
.kpi.primary { background: #1b2926; border-color: #52694b; }
.mini-card { border-color: #3a4c59; background: #17232d; }
.quick-steps { gap: 14px; }
.quick-steps a.mini-card { transition: border-color 160ms ease, background-color 160ms ease; }
.quick-steps a.mini-card:hover { border-color: #a4bf78; background: #1d3031; }
.mini-card span, .mini-card small { font-size: 13px; }
.method, .empty-inline { background: #0f1922; border: 1px solid #2c3c49; }
.empty-inline { padding: 24px; line-height: 1.85; }
.alert { padding: 16px 18px; line-height: 1.85; }
.alert a { text-decoration: underline; text-underline-offset: 3px; font-weight: 650; }
.alert.info { background: #152839; border-color: #365877; color: #c6e3ff; }
.alert.success { background: #173128; border-color: #36654f; color: #b5f0cf; }
.alert.error { background: #351f23; border-color: #825158; color: #ffd0cb; }
.table-wrap { border: 1px solid #344654; border-radius: 12px; }
th { background: #1c2a36; color: #d5dee5; font-size: 13px; padding-block: 15px; }
td { color: #e0e7ed; font-size: 13px; padding-block: 15px; }
td small { font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgb(255 255 255 / 2%); }
.chips a, .chips span { font-size: 12px; padding: 6px 10px; background: #22313d; }
.chips a { min-height: 34px; text-decoration: underline; text-underline-offset: 3px; }
summary { line-height: 1.65; }
.panel > details > summary, .autopilot-options > summary, .action-full > summary { padding-block: 12px; min-height: 44px; }
details[open] > summary { color: #eef3f6; }
.answer-meta { gap: 10px; font-size: 13px; }
.answer-card h3 { margin-block: 16px 12px; }
.answer-excerpt { color: #c6d3dc; }
.answer-text { border-inline-start: 3px solid #5f7979; padding: 16px 20px; margin-block: 12px; background: #0f1a24; border-radius: 8px; }
.publish-card { border-color: #486171; background: #12202a; padding: 24px; }
.draft-preview { border: 1px solid #3f5464; background: #1c2c39; }
.scan-report { gap: 22px; }
.scan-report .result-summary { border-color: #5b7451; background: linear-gradient(120deg, #1b2a24, #14212a 85%); }
.result-stat { background: #15212b; border-color: #3d525f; padding: 22px; }
.result-stat h3, .result-stat h4 { color: #c8d5df; }
.result-summary .result-number { color: #e4f5c9; }
.result-jumps { gap: 8px; }
.result-jumps a, .page-section-links a { min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; color: #d2dee7; background: #17242e; border-color: #405562; }
.result-jumps a:hover, .page-section-links a:hover { color: #e2f5bd; border-color: #a0ba79; background: #22332b; }
.result-row { padding-block: 23px; }
.connection-status { background: #162831; font-size: 13px; color: #d4e2eb; }
.auth-shell { background: radial-gradient(ellipse at 50% 0, #223331 0, transparent 60%); padding-block: 48px; }
.auth-card { padding: 38px; box-shadow: 0 24px 80px rgb(0 0 0 / 24%); border-color: #405461; }
.auth-card h1 { line-height: 1.4; }
.auth-card .brand { margin-bottom: 28px; }
.auth-card p { line-height: 1.85; }
.auth-card input { margin-top: 9px; }
.onboarding .two { gap: 18px; }
.scanner-page h1 { line-height: 1.12; }
.scanner-form, .scanner-result { border-color: #405461; }
.public-nav { min-height: 86px; height: auto; padding-block: 16px; }
.public-nav nav > a:not(.btn) { display: inline-flex; min-height: 44px; align-items: center; }
.public-footer { padding-block: 30px; }
.public-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* Landing: a quiet, editorial introduction to the real product. */
.landing { background: radial-gradient(ellipse 65% 32% at 10% 6%, #1e3236 0, transparent 80%); }
.landing-hero { max-width: 1180px; margin: 58px auto 0; padding: 0 24px 74px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.landing-hero > div { min-width: 0; }
.landing-hero h1 { font-size: clamp(40px, 5vw, 66px); line-height: 1.14; margin: 22px 0; letter-spacing: -.03em; }
.landing-hero h1 em { color: #d4edac; font-style: normal; }
.landing-intro { font-size: 19px; line-height: 1.85; color: #c1cfda; max-width: 38ch; }
.landing-hero .cta { flex-wrap: wrap; gap: 16px 24px; margin-top: 28px; }
.landing-hero .proof-row { gap: 13px; margin-top: 26px; }
.landing-hero .proof-row span { font-size: 13px; }
.report-window { border: 1px solid #506472; border-radius: 21px; background: #15212b; box-shadow: 0 20px 54px rgb(0 0 0 / 24%); }
.report-window-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 24px; border-bottom: 1px solid #364b59; }
.report-window-head b { font-size: 14px; }
.report-window-head > span { border: 1px solid #51644c; background: #253429; color: #dcf0c1; padding: 3px 9px; border-radius: 6px; font-size: 12px; white-space: nowrap; }
.report-window-body { padding: 26px; }
.report-window-body h2 { font-size: 25px; margin: 0 0 8px; }
.report-window-body > p { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.report-question { display: grid; grid-template-columns: 32px 1fr; align-items: start; gap: 15px; padding: 18px 0; border-top: 1px solid #354956; }
.report-question > span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #4f6359; border-radius: 9px; color: #d9edb8; background: #22352c; font-size: 13px; font-weight: 700; }
.report-question h3 { font-size: 17px; margin: 0 0 6px; }
.report-question p { font-size: 14px; color: #b6c5d0; margin: 0; }
.report-window-foot { border-top: 1px solid #364b59; padding: 16px 24px; color: #c4d6df; font-size: 13px; background: #10202a; border-radius: 0 0 21px 21px; }
.engine-strip { gap: 28px; border-color: #344752; background: rgb(13 23 30 / 70%); font-size: 14px; }
.engine-strip .strip-label { color: var(--accent); }
.landing .section { margin-block: 80px; }
.landing .section h2 { font-size: clamp(30px, 3.5vw, 43px); margin-block: 12px 30px; }
.landing .features article { padding: 26px; border: 1px solid #364a58; border-radius: 17px; background: #15212a; }
.landing .features article > b:not(.price) { display: inline-block; font-size: 13px; padding-bottom: 17px; border-bottom: 1px solid #597144; min-width: 36px; }
.landing .features h3 { font-size: 21px; margin-bottom: 12px; }
.landing .features p { font-size: 16px; margin-bottom: 0; }
.measurement-note { border-inline-start: 3px solid #829e74; padding-inline-start: 28px; }
.landing .measurement-note h2 { font-size: 30px; margin-bottom: 18px; }
.measurement-note p { color: #c1cfda; }
.landing .pricing { padding: 38px; background: #18272c; border: 1px solid #405e5c; border-radius: 22px; }
.landing .pricing h2 { margin-bottom: 20px; }
.landing .pricing > p { max-width: 80ch; color: #c8d5de; }
.landing .pricing .btn { margin-top: 10px; }
.landing .pilot-note { margin-top: 24px; font-size: 14px; }
.pilot-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.guide-page { max-width: 1000px; margin: 26px auto 64px; padding: 0 24px; }
.guide-intro { padding-block: 22px 30px; }
.guide-intro h1 { font-size: clamp(30px, 4vw, 45px); max-width: 23ch; margin: 16px 0; }
.guide-intro p { max-width: 75ch; color: #c0ced8; font-size: 18px; }
.guide-intro .page-section-links { margin-top: 22px; }
.guide-steps { list-style: none; counter-reset: setup; padding: 0; margin: 12px 0; }
.guide-steps > li { counter-increment: setup; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.guide-steps > li::before { content: counter(setup); display: grid; place-items: center; align-self: start; width: 36px; height: 36px; border-radius: 10px; background: #273d2e; color: #dff3bb; border: 1px solid #587647; font-weight: 750; }
.guide-steps h3 { margin: 0 0 8px; font-size: 19px; }
.guide-steps p { margin: 0; color: var(--muted); }
.guide-page section[id] { scroll-margin-top: 24px; }
.guide-page .faq > details { border-top: 1px solid var(--line); padding-block: 5px; }
.guide-page .faq > details > summary { font-weight: 650; padding-block: 14px; cursor: pointer; }
.guide-page .faq > details p { color: #bdccd7; }
.guide-page .simple-list { line-height: 1.85; padding-inline-start: 22px; }
.guide-page .simple-list li { padding-block: 8px; }
.guide-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.password-field { display: flex; align-items: stretch; gap: 8px; margin-block: 7px 18px; }
.password-field input { flex: 1; min-width: 0; width: 0; margin: 0; }
.password-toggle { flex: 0 0 auto; min-height: 48px; padding: 8px 12px; border: 1px solid #526979; border-radius: 10px; background: #213240; color: #e3eef6; font-size: 13px; cursor: pointer; }
.password-toggle:hover { background: #304858; }
.password-toggle[aria-pressed="true"] { border-color: #acc985; color: #e4f5cb; }
.customer-path { background: #111e28; }
.customer-path h2 { font-size: 21px; }
.path-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; }
.path-steps > li { min-width: 0; border: 1px solid #3e5260; border-radius: 12px; background: #172530; }
.path-steps a { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 8px 10px; min-height: 100%; padding: 16px 14px; border-radius: inherit; }
.path-steps a:hover { background: rgb(255 255 255 / 3%); }
.path-index { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #637684; border-radius: 8px; color: #ccdae5; font-size: 12px; }
.path-steps b { font-size: 14px; line-height: 1.8; }
.path-steps small { display: block; grid-column: 2; color: var(--muted); font-size: 12px; line-height: 1.75; }
.path-steps [data-state="current"] { background: #233128; border-color: #94ac74; }
.path-steps [data-state="current"] .path-index { color: #17220d; border-color: var(--accent); background: var(--accent); }
.path-steps [data-state="current"] b { color: #e1f4c6; }
.path-steps [data-state="done"] .path-index { color: #b0e5c5; border-color: #507b68; background: #1e382f; }
.follow-up-plan { border-color: #456270; }
.follow-up-plan a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.follow-up-plan li { margin-bottom: 7px; }

@media (prefers-reduced-motion: no-preference) {
  .dash-head, .guide-intro, .landing-hero { animation: arrive 220ms ease-out both; }
  @keyframes arrive { from { opacity: .7; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1100px) {
  .landing-hero { gap: 32px; }
  .dashboard { padding: 28px 24px 56px; }
  .path-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .dashboard { padding: 24px 16px 48px; }
  .dash-head { gap: 20px; }
  .panel { padding: 22px; }
  .landing-hero { grid-template-columns: 1fr; max-width: 740px; gap: 38px; margin-top: 26px; padding-bottom: 46px; }
  .landing-hero h1 { max-width: 17ch; }
  .landing-intro { max-width: 54ch; }
  .landing .section { margin-block: 50px; }
  .landing .pricing { margin-inline: 20px; padding: 27px; }
  .landing .engine-strip { justify-content: flex-start; gap: 14px 24px; }
  .landing .engine-strip .strip-label { flex-basis: 100%; }
  .guide-page { padding-inline: 18px; }
  .guide-intro h1 { max-width: 28ch; }
}
@media (max-width: 520px) {
  .brand { font-size: 17px; gap: 8px; }
  .brand::before { width: 19px; flex-basis: 19px; height: 23px; background-size: 4px 10px, 4px 17px, 4px 23px; }
  .public-nav { padding-inline: 16px; gap: 12px; flex-wrap: wrap; }
  .public-nav nav { gap: 12px; font-size: 14px; }
  .public-nav .btn.small { padding-inline: 11px; }
  .dashboard { padding-inline: 12px; }
  .panel { padding: 20px 18px; }
  .panel h2 { font-size: 21px; }
  .dash-head { padding-bottom: 22px; }
  .scan-button { max-width: none; }
  .scan-button small { font-size: 13px; }
  .result-stat { padding: 18px; }
  .auth-shell { padding: 20px 14px; }
  .auth-card { padding: 26px 22px; }
  .auth-card h1 { font-size: 31px; }
  .publish-card { padding: 18px 14px; }
  .landing-hero { padding-inline: 20px; }
  .landing-hero h1 { font-size: 42px; }
  .landing-intro { font-size: 18px; }
  .landing-hero .cta { align-items: stretch; }
  .landing-hero .cta .text-link { min-height: 44px; display: flex; justify-content: center; align-items: center; }
  .landing-hero .proof-row { gap: 9px; }
  .report-window-head, .report-window-foot { padding: 17px 20px; }
  .report-window-body { padding: 22px 20px; }
  .report-question { gap: 12px; }
  .report-window-body h2 { font-size: 23px; }
  .landing .section { padding-inline: 20px; }
  .landing .pricing { padding: 24px 20px; margin-inline: 14px; }
  .landing .measurement-note { margin-inline: 20px; padding-inline: 18px 0; }
  .guide-page { padding-inline: 12px; }
  .guide-intro { padding-inline: 6px; }
  .guide-intro p { font-size: 16px; }
  .guide-steps > li { gap: 12px; }
  .guide-cta .btn { width: 100%; }
  .path-steps { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .path-steps a { padding: 13px 14px; }
  .password-toggle { padding-inline: 9px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}
@media (forced-colors: active) {
  .brand::before { border: 2px solid currentColor; }
  .btn, .card, .result-stat, .report-window, .mini-card { border: 1px solid CanvasText; }
  .sidebar nav a.active { outline: 2px solid Highlight; }
}
