/* ============================================================
   SafetyDocket — Industrial Compliance Design System
   Palette: white · industrial blue · graphite · warning-yellow
   ============================================================ */

:root {
  /* Brand */
  --blue-900: #0f2c56;
  --blue-800: #133a70;
  --blue-700: #17457f;
  --blue-600: #1b4b8f; /* primary industrial blue */
  --blue-500: #2660a8;
  --blue-400: #3a7bc8;
  --blue-200: #b9d0ea;
  --blue-100: #e3edf8;
  --blue-050: #f2f7fc;

  --ink-900: #1c2128; /* graphite / near-black text */
  --ink-800: #2b3038;
  --ink-700: #3a424d;
  --ink-600: #5a6472;
  --ink-500: #77828f;
  --ink-400: #97a2b0;

  --line: #dbe2ec;
  --line-strong: #c3ccd9;
  --surface: #ffffff;
  --surface-2: #f5f8fc;
  --surface-3: #eef2f8;

  --yellow: #f5b301; /* warning-yellow accent */
  --yellow-600: #d99a00;
  --yellow-100: #fdf3d3;

  --green: #1f9d55;
  --green-100: #e3f5ea;
  --red: #d1493f;
  --red-100: #fbe6e4;
  --amber: #e08a1e;
  --amber-100: #fbeed6;

  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 33, 61, 0.06), 0 1px 3px rgba(16, 33, 61, 0.05);
  --shadow: 0 4px 14px rgba(16, 33, 61, 0.08), 0 1px 3px rgba(16, 33, 61, 0.06);
  --shadow-lg: 0 18px 48px rgba(16, 33, 61, 0.16), 0 4px 12px rgba(16, 33, 61, 0.08);
  --shadow-blue: 0 12px 30px rgba(27, 75, 143, 0.24);

  --font-display: "Barlow", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --nav-h: 68px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink-800);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
/* Base icon size — context rules below override where needed */
.ic { width: 18px; height: 18px; flex: none; }
[data-icon] { display: inline-flex; align-items: center; }
.nav-links a .chev { width: 15px; height: 15px; opacity: .7; }
.footer a .ext, .dropdown a .ext { width: 14px; height: 14px; display: inline; vertical-align: -2px; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select, button { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; color: var(--ink-900); letter-spacing: -0.01em; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; }
.section { padding: 92px 0; }
.section-sm { padding: 60px 0; }
.section-tint { background: var(--surface-2); }
.section-dark { background: var(--blue-900); color: #eaf1fb; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}.mt-40{margin-top:40px}
.mb-8{margin-bottom:8px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}.mb-40{margin-bottom:40px}

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--yellow); border-radius: 2px; }
.section-dark .eyebrow { color: var(--yellow); }
.section-dark .eyebrow::before { background: var(--yellow); }

h1.display { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; letter-spacing: -0.025em; }
h2.title { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; }
h3.sub { font-size: 1.28rem; font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-600); line-height: 1.6; }
.muted { color: var(--ink-600); }
.section-dark .muted, .section-dark .lead { color: #b7c6dc; }
.max-60 { max-width: 640px; } .max-52{max-width:560px;}
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: var(--radius); border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(27,75,143,.3); }
.btn-accent { background: var(--yellow); color: var(--ink-900); box-shadow: 0 10px 24px rgba(245,179,1,.32); }
.btn-accent:hover { background: #ffc21f; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--blue-700); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--blue-400); color: var(--blue-700); transform: translateY(-1px); }
.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { padding: 16px 30px; font-size: 1.06rem; }
.btn-sm { padding: 9px 15px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ---------- badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: .02em; padding: 5px 11px; border-radius: 999px; }
.badge-blue { background: var(--blue-100); color: var(--blue-700); }
.badge-yellow { background: var(--yellow-100); color: var(--yellow-600); }
.badge-green { background: var(--green-100); color: var(--green); }
.badge-red { background: var(--red-100); color: var(--red); }
.badge-gray { background: var(--surface-3); color: var(--ink-600); }
.badge-dot::before { content:""; width:7px;height:7px;border-radius:50%;background:currentColor; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; color: var(--blue-600); letter-spacing: -0.02em; }
.brand .mark { width: 40px; height: 37px; flex: none; }
.brand b { color: var(--blue-900); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 600; font-size: .96rem; color: var(--ink-700); padding: 9px 13px; border-radius: 8px; transition: background .15s, color .15s; }
.nav-links a:hover { color: var(--blue-700); background: var(--blue-050); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-mobile-cta { display: none; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line-strong); border-radius: 8px; width: 42px; height: 40px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink-800); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .16s ease;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; gap: 11px; padding: 10px 12px; border-radius: 8px; }
.dropdown a:hover { background: var(--blue-050); }
.dropdown .di { width: 34px; height: 34px; flex: none; border-radius: 8px; background: var(--blue-050); display: grid; place-items: center; color: var(--blue-600); }
.dropdown .di svg { width: 18px; height: 18px; }
.dropdown b { display: block; font-size: .92rem; color: var(--ink-900); font-family: var(--font-display); }
.dropdown span { font-size: .82rem; color: var(--ink-600); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 74px 0 84px; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-assure { display: flex; gap: 20px; flex-wrap: wrap; font-size: .9rem; color: var(--ink-600); }
.hero-assure span { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.hero-assure svg { width: 17px; height: 17px; color: var(--green); }

.hero-visual { position: relative; }
.hero-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); aspect-ratio: 3/2; background: var(--surface-3); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge-card {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 13px 16px; display: flex; align-items: center; gap: 12px;
}
.hero-badge-card .ico { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.hero-badge-card .ico svg { width: 21px; height: 21px; }
.hero-badge-card small { display: block; font-size: .74rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.hero-badge-card strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-900); }
.hero-badge-1 { top: 22px; left: -26px; }
.hero-badge-2 { bottom: 26px; right: -22px; }

.blueprint { position: absolute; inset: 0; background-image: linear-gradient(var(--blue-100) 1px, transparent 1px), linear-gradient(90deg, var(--blue-100) 1px, transparent 1px); background-size: 34px 34px; opacity: .5; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000, transparent 72%); mask-image: radial-gradient(ellipse at 70% 40%, #000, transparent 72%); pointer-events: none; }

/* ---------- trust bar ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: 26px 0; }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.trust-label { font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); }
.trust-logos { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.trust-logos .tl { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: var(--ink-600); opacity: .82; }
.trust-logos .tl svg { width: 22px; height: 22px; color: var(--ink-500); }

/* ---------- feature cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature { padding: 28px; transition: transform .16s ease, box-shadow .2s ease, border-color .2s; height: 100%; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-200); }
.feature .fi { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: var(--blue-050); color: var(--blue-600); border: 1px solid var(--blue-100); }
.feature .fi svg { width: 25px; height: 25px; }
.feature.accent .fi { background: var(--yellow-100); color: var(--yellow-600); border-color: #f6e2ac; }
.feature h3 { font-size: 1.18rem; margin-bottom: 9px; }
.feature p { color: var(--ink-600); font-size: .96rem; }

.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head .lead { margin-top: 14px; }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 28px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.step .num { counter-increment: step; width: 52px; height: 52px; border-radius: 13px; background: var(--blue-600); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; display: grid; place-items: center; box-shadow: var(--shadow-blue); }
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.24rem; margin-bottom: 7px; }
.step p { color: var(--ink-600); }

/* ---------- OSHA form / product mock ---------- */
.mock { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.mock-bar .t { margin-left: 8px; font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--ink-600); }
.mock-body { padding: 20px; }

/* data table (OSHA logs) */
.dtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.dtable th { text-align: left; font-family: var(--font-display); font-weight: 700; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.dtable td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--ink-700); vertical-align: middle; }
.dtable tbody tr:hover { background: var(--blue-050); }
.dtable .mono { font-variant-numeric: tabular-nums; font-family: var(--font-display); font-weight: 600; }

/* ---------- recordability demo ---------- */
.demo-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.demo-q { padding: 34px; border-right: 1px solid var(--line); }
.demo-out { padding: 34px; background: var(--surface-2); }
.demo-progress { height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.demo-progress i { display: block; height: 100%; background: var(--blue-600); border-radius: 999px; transition: width .3s ease; }
.demo-question { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; color: var(--ink-900); margin-bottom: 6px; line-height: 1.25; }
.demo-help { font-size: .92rem; color: var(--ink-600); margin-bottom: 22px; }
.demo-opts { display: grid; gap: 11px; }
.opt { display: flex; align-items: center; gap: 13px; padding: 15px 17px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; text-align: left; transition: all .14s ease; font-weight: 500; }
.opt:hover { border-color: var(--blue-400); background: var(--blue-050); transform: translateX(3px); }
.opt .k { width: 26px; height: 26px; border-radius: 7px; background: var(--surface-3); color: var(--ink-600); font-family: var(--font-display); font-weight: 700; font-size: .82rem; display: grid; place-items: center; flex: none; }
.opt:hover .k { background: var(--blue-600); color: #fff; }

.verdict { border-radius: var(--radius); padding: 22px; margin-bottom: 18px; border: 1.5px solid; }
.verdict.recordable { background: var(--red-100); border-color: #f0b8b2; }
.verdict.not { background: var(--green-100); border-color: #b6e2c6; }
.verdict.pending { background: var(--surface-3); border-color: var(--line-strong); }
.verdict .vtop { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.verdict.recordable .vtop { color: #b23127; }
.verdict.not .vtop { color: #157a41; }
.verdict .vtop svg { width: 22px; height: 22px; }
.verdict p { font-size: .93rem; margin-top: 8px; color: var(--ink-700); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.crumb { font-size: .8rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; color: var(--ink-600); }

/* ---------- pricing ---------- */
.price-toggle { display: inline-flex; background: var(--surface-3); border-radius: 999px; padding: 5px; gap: 4px; margin: 0 auto; }
.price-toggle button { border: none; background: none; padding: 9px 20px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink-600); }
.price-toggle button.active { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-sm); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; position: relative; transition: transform .16s, box-shadow .2s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--blue-600); box-shadow: var(--shadow-lg); }
.plan.featured::before { content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue-600); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; }
.plan h3 { font-size: 1.35rem; }
.plan .ptag { color: var(--ink-600); font-size: .92rem; margin: 6px 0 18px; }
.plan .price { font-family: var(--font-display); font-weight: 800; font-size: 2.9rem; color: var(--ink-900); line-height: 1; letter-spacing: -.02em; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--ink-500); letter-spacing: 0; }
.plan .per { color: var(--ink-500); font-size: .85rem; margin: 6px 0 22px; }
.plan ul.feats { display: grid; gap: 12px; margin: 4px 0 26px; }
.plan ul.feats li { display: flex; gap: 10px; font-size: .93rem; color: var(--ink-700); align-items: flex-start; }
.plan ul.feats li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }
.plan ul.feats li.off { color: var(--ink-400); }
.plan ul.feats li.off svg { color: var(--ink-400); }
.plan .btn { margin-top: auto; }

/* ---------- testimonials ---------- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; }
.quote .stars { color: var(--yellow); display: flex; gap: 2px; margin-bottom: 14px; }
.quote .stars svg { width: 18px; height: 18px; }
.quote p { font-size: 1.02rem; color: var(--ink-800); line-height: 1.6; }
.quote .by { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote .av { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-600); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; flex: none; }
.quote .by b { display: block; font-size: .95rem; color: var(--ink-900); font-family: var(--font-display); }
.quote .by span { font-size: .84rem; color: var(--ink-500); }

/* ---------- stats ---------- */
.stat { text-align: center; }
.stat .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--blue-600); letter-spacing: -.02em; line-height: 1; }
.section-dark .stat .n { color: var(--yellow); }
.stat .l { color: var(--ink-600); font-size: .95rem; margin-top: 8px; }
.section-dark .stat .l { color: #b7c6dc; }

/* ---------- industries ---------- */
.ind { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 280px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow); }
.ind img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.ind::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,44,86,.05) 30%, rgba(15,44,86,.9) 100%); z-index: 1; }
.ind .ind-body { position: relative; z-index: 2; padding: 24px; }
.ind h3 { color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.ind p { color: #d6e2f2; font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 64px; text-align: center; color: #fff; box-shadow: var(--shadow-lg); }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cta-band::after { content:""; position:absolute; inset:0; background: linear-gradient(120deg, rgba(15,44,86,.94), rgba(19,58,112,.82)); z-index: 1; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--ink-800); margin-bottom: 7px; }
.field .req { color: var(--red); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; font-size: .97rem; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .84rem; color: var(--ink-500); margin-top: 6px; }
.form-msg { padding: 12px 15px; border-radius: var(--radius-sm); font-size: .92rem; margin-top: 14px; display: none; }
.form-msg.ok { display: block; background: var(--green-100); color: #157a41; border: 1px solid #b6e2c6; }
.form-msg.err { display: block; background: var(--red-100); color: #b23127; border: 1px solid #f0b8b2; }

/* ---------- auth pages ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-form-col { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-aside { position: relative; background: var(--blue-900); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-aside .blueprint { opacity: .18; -webkit-mask-image: none; mask-image: none; }
.auth-aside h2 { color: #fff; font-size: 2rem; }
.auth-aside .ap { position: relative; z-index: 2; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; font-family: var(--font-display); font-weight: 600; transition: all .15s; }
.oauth-btn:hover { background: var(--surface-2); border-color: var(--ink-400); }
.oauth-btn svg { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--ink-400); font-size: .82rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- footer ---------- */
.footer { background: var(--ink-900); color: #c7cfdb; padding: 64px 0 30px; }
.footer a { color: #a9b4c4; font-size: .93rem; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 34px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .fdesc { font-size: .92rem; color: #9aa6b6; max-width: 300px; margin-bottom: 18px; }
.fcontact { display: grid; gap: 10px; margin-bottom: 18px; max-width: 320px; }
.fcontact a { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; color: #a9b4c4; line-height: 1.4; }
.fcontact a:hover { color: #fff; }
.fcontact a .ic { width: 16px; height: 16px; color: var(--yellow); flex: none; margin-top: 2px; }
.footer h5 { color: #fff; font-family: var(--font-display); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; flex-wrap: wrap; font-size: .86rem; color: #8a95a6; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.06); display: grid; place-items: center; }
.footer-social a:hover { background: var(--blue-600); }
.footer-social svg { width: 18px; height: 18px; }

/* ============================================================
   DASHBOARD / WORKSPACE
   ============================================================ */
body.dash { background: var(--surface-3); }
.dash-top { position: sticky; top: 0; z-index: 50; height: 62px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.dash-top-left { display: flex; align-items: center; gap: 16px; }
.dash-est { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink-600); padding-left: 16px; border-left: 1px solid var(--line); }
.dash-top-right { display: flex; align-items: center; gap: 12px; position: relative; }
.dash-user { display: flex; align-items: center; gap: 9px; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 5px 10px 5px 6px; }
.dash-user:hover { background: var(--surface-2); }
.dash-avatar { width: 32px; height: 32px; border-radius: 8px; background: var(--blue-600); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .82rem; flex: none; }
.dash-user-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.dash-user-meta b { font-family: var(--font-display); font-size: .86rem; }
.dash-user-meta .badge { font-size: 10px; padding: 1px 7px; }
.dash-user .ic { color: var(--ink-500); }
.dash-user-drop { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 190px; z-index: 60; }
.dash-user-drop a, .dash-user-drop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; background: none; border: none; text-align: left; font-size: .9rem; color: var(--ink-700); font-family: var(--font-body); }
.dash-user-drop a:hover, .dash-user-drop button:hover { background: var(--surface-2); color: var(--blue-700); }
.dash-user-drop .ic { width: 17px; height: 17px; color: var(--ink-500); }

.dash-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 62px); }
.dash-side { background: #fff; border-right: 1px solid var(--line); padding: 18px 14px; position: sticky; top: 62px; height: calc(100vh - 62px); overflow-y: auto; }
.dash-navgroup { font-family: var(--font-display); font-weight: 700; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); padding: 14px 12px 6px; }
.dash-nav { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; font-family: var(--font-display); font-weight: 600; font-size: .93rem; color: var(--ink-700); cursor: pointer; transition: background .14s, color .14s; margin-bottom: 2px; }
.dash-nav:hover { background: var(--surface-2); color: var(--blue-700); }
.dash-nav.active { background: var(--blue-050); color: var(--blue-700); }
.dash-nav .ic { width: 19px; height: 19px; color: currentColor; flex: none; }
.dash-nav .pill { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; font-family: var(--font-display); }
.dash-nav.active .pill { background: var(--blue-600); }

.dash-main { padding: 30px 34px 60px; max-width: 1180px; width: 100%; }
.dash-loading { color: var(--ink-500); padding: 40px 0; }
.dash-head { margin-bottom: 24px; }
.dash-head h1 { font-size: 1.7rem; }
.dash-head p { color: var(--ink-600); margin-top: 4px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.kpi .kt { display: flex; align-items: center; gap: 8px; color: var(--ink-500); font-size: .82rem; font-weight: 500; }
.kpi .kt .ic { width: 16px; height: 16px; }
.kpi .kv { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--ink-900); line-height: 1.1; margin-top: 8px; letter-spacing: -.01em; }
.kpi .ksub { font-size: .82rem; color: var(--ink-500); margin-top: 2px; }
.kpi.alert { border-color: #f0b8b2; background: var(--red-100); }
.kpi.alert .kv { color: #b23127; }
.kpi.warn { border-color: #f0dfa8; background: var(--yellow-100); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 1.08rem; }
.panel-head .muted { font-size: .85rem; }
.panel-body { padding: 20px; }
.panel-body.flush { padding: 0; }

.empty { text-align: center; padding: 46px 20px; color: var(--ink-500); }
.empty .ei { width: 54px; height: 54px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--ink-400); }
.empty .ei .ic { width: 26px; height: 26px; }

.status-dot { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 500; }
.tbl-actions { display: flex; gap: 6px; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink-600); }
.icon-btn:hover { background: var(--surface-2); color: var(--blue-700); border-color: var(--blue-200); }
.icon-btn .ic { width: 16px; height: 16px; }
.row-link { cursor: pointer; }

/* modal / drawer */
.modal-overlay { position: fixed; inset: 0; background: rgba(16,33,61,.5); backdrop-filter: blur(3px); z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; animation: fadein .18s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 640px; animation: pop .2s ease; }
.modal.wide { max-width: 820px; }
@keyframes pop { from { transform: translateY(14px) scale(.99); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 1.24rem; }
.modal-head .close { width: 36px; height: 36px; border-radius: 9px; border: none; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-600); }
.modal-head .close:hover { background: var(--surface-3); color: var(--ink-900); }
.modal-body { padding: 24px; }
.modal-foot { display: flex; gap: 12px; justify-content: flex-end; padding: 18px 24px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chk { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.chk input { margin-top: 3px; }
.chk:hover { border-color: var(--blue-200); }
.chk b { font-family: var(--font-display); font-size: .92rem; }
.chk span { display: block; font-size: .82rem; color: var(--ink-500); }

/* case detail drawer */
.drawer { position: fixed; top: 0; right: 0; height: 100vh; width: 100%; max-width: 520px; background: #fff; box-shadow: var(--shadow-lg); z-index: 210; overflow-y: auto; animation: slidein-r .22s ease; }
@keyframes slidein-r { from { transform: translateX(30px); opacity: .5; } to { transform: none; opacity: 1; } }
.drawer-head { position: sticky; top: 0; background: #fff; padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.drawer-body { padding: 24px; }
.kv-list { display: grid; gap: 0; }
.kv-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.kv-row .k { color: var(--ink-500); }
.kv-row .v { font-weight: 600; color: var(--ink-900); text-align: right; }
.checklist { display: grid; gap: 8px; }
.checklist .ci { display: flex; align-items: center; gap: 10px; font-size: .9rem; padding: 9px 12px; border-radius: 8px; background: var(--surface-2); }
.checklist .ci.done { color: var(--green); }
.checklist .ci.miss { color: var(--amber); }

/* poster studio */
.poster-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.poster-preview { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; position: relative; }
.poster-preview img { width: 100%; height: 100%; object-fit: cover; }
.poster-skel { text-align: center; color: var(--ink-500); padding: 20px; }
.poster-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.poster-gallery a { border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--blue-100); border-top-color: var(--blue-600); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge-lg { font-size: .8rem; padding: 6px 13px; }
.filter-btn.active-filter { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.filter-btn.active-filter:hover { background: var(--blue-700); color: #fff; }

@media print {
  .dash-top, .dash-side, .btn, .icon-btn, .panel-head .btn { display: none !important; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-main { padding: 0; max-width: none; }
  body.dash { background: #fff; }
  .panel { box-shadow: none; border-color: #ccc; }
}

@media (max-width: 900px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-side { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; border-right: none; border-bottom: 1px solid var(--line); }
  .dash-navgroup { width: 100%; padding: 6px 12px 2px; }
  .dash-nav { margin-bottom: 0; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-main { padding: 22px 18px 50px; }
  .poster-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .dash-user-meta { display: none; }
}

/* ---------- misc ---------- */
.disclaimer { background: var(--yellow-100); border: 1px solid #f0dfa8; border-radius: var(--radius); padding: 14px 18px; font-size: .86rem; color: #7a5c05; display: flex; gap: 10px; }
.disclaimer svg { width: 18px; height: 18px; flex: none; color: var(--yellow-600); margin-top: 1px; }
.kicker-band { background: var(--blue-900); color: #cfe0f5; font-size: .86rem; text-align: center; padding: 9px 16px; }
.kicker-band b { color: var(--yellow); }
.hidden { display: none !important; }
.legal { max-width: 780px; }
.legal h2 { font-size: 1.4rem; margin: 34px 0 12px; }
.legal h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-700); font-size: 1rem; line-height: 1.7; margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal ul li { margin-bottom: 6px; }
.legal a { color: var(--blue-600); }
.legal .updated { color: var(--ink-500); font-size: .9rem; }
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink-900); color: #fff; padding: 13px 18px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .92rem; display: flex; align-items: center; gap: 10px; animation: slidein .25s ease; max-width: 340px; }
.toast.ok { border-left: 3px solid var(--green); }
.toast.err { border-left: 3px solid var(--red); }
.toast svg { width: 18px; height: 18px; flex: none; }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: box-shadow .18s, border-color .18s; }
.faq-item.open { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px; background: none; border: none; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; color: var(--ink-900); }
.faq-q:hover { color: var(--blue-700); }
.faq-ico { color: var(--blue-600); transition: transform .22s ease; flex: none; }
.faq-ico svg { width: 20px; height: 20px; }
.faq-item.open .faq-ico { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 22px 20px; color: var(--ink-600); font-size: .97rem; }

/* ---------- pricing annual note ---------- */
.save-pill { background: var(--green-100); color: var(--green); font-family: var(--font-display); font-weight: 700; font-size: .74rem; padding: 3px 9px; border-radius: 999px; letter-spacing: .03em; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-aside { display: none; }
  .auth-wrap { grid-template-columns: 1fr; }
  .demo-shell { grid-template-columns: 1fr; }
  .demo-q { border-right: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px; box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
  .nav.open .nav-links > a { padding: 13px; }
  .nav-mobile-cta { display: none; }
  .nav.open .nav-mobile-cta { display: grid; gap: 10px; padding: 12px 4px 4px; margin-top: 6px; border-top: 1px solid var(--line); }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .trust-inner { justify-content: center; text-align: center; }
  .cta-band { padding: 40px 24px; }
  .hero-badge-1, .hero-badge-2 { display: none; }
}
