/* PermitBriefly — shared design system */
:root {
  --navy: #0e1b33;
  --navy-2: #16294a;
  --ink: #1a2436;
  --muted: #5b6b84;
  --line: #e3e8f0;
  --bg: #f5f7fa;
  --card: #ffffff;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --green: #16a34a;
  --green-bg: #e8f7ee;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(14, 27, 51, .06), 0 8px 24px rgba(14, 27, 51, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 27, 51, .96);
  backdrop-filter: blur(8px);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--accent), #f97316);
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; color: #c6d2e3; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 22px; border-radius: 10px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  border: 0; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #1a1206; box-shadow: 0 4px 14px rgba(245, 158, 11, .35); }
.btn-accent:hover { background: #fbbf24; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }
.nav .btn-sm { margin-left: 4px; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 500px at 70% -10%, #1e3a6e 0%, var(--navy) 55%) ; color: #fff; padding: 84px 0 72px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; max-width: 15em; }
.hero h1 .hl { color: var(--accent); }
.hero p.sub { font-size: 18.5px; color: #b9c6da; max-width: 34em; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: #8fa1ba; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 18px 20px; }
.stat b { display: block; font-size: 30px; letter-spacing: -.02em; color: #fff; }
.stat span { font-size: 13.5px; color: #9fb0c9; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.025em; margin: 0 0 12px; }
.section .lede { color: var(--muted); font-size: 17px; max-width: 40em; margin: 0 0 36px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark); background: #fef3c7; border-radius: 6px; padding: 3px 9px; margin-bottom: 12px; }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 17px; }

/* ---------- sample table ---------- */
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-card .table-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.table-card .table-head h3 { margin: 0; font-size: 16.5px; }
.fresh { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #166534; background: var(--green-bg); border-radius: 999px; padding: 5px 12px; }
.fresh i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
table.data td { padding: 12px 16px; border-bottom: 1px solid #eef1f6; vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #f8fafd; }
.addr { font-weight: 600; }
.val { font-variant-numeric: tabular-nums; white-space: nowrap; }
.work { color: var(--muted); font-size: 13px; max-width: 340px; }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--accent); }
.price-card .pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #1a1206; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 2px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
ul.check { list-style: none; margin: 18px 0 24px; padding: 0; font-size: 14.5px; color: #33415c; flex: 1; }
ul.check li { padding: 7px 0 7px 30px; position: relative; border-bottom: 1px dashed #edf0f5; }
ul.check li:last-child { border-bottom: 0; }
ul.check li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 800; }

/* ---------- faq ---------- */
.faq { max-width: 760px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; font-size: 15.5px; }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

/* ---------- cta band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, #1e3a6e 100%); color: #fff; border-radius: 20px; padding: 56px 48px; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #b9c6da; max-width: 34em; margin: 0 auto 28px; font-size: 17px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- dashboard ---------- */
.dash-top { background: var(--navy); color: #fff; padding: 22px 0; }
.dash-top .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dash-top h1 { font-size: 20px; margin: 0; letter-spacing: -.01em; }
.dash-top .spacer { flex: 1; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 26px 0; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); cursor: pointer; transition: border-color .15s ease; }
.kpi:hover { border-color: #b9c6da; }
.kpi.active { border: 2px solid var(--accent); padding: 15px 17px; }
.kpi b { display: block; font-size: 26px; letter-spacing: -.02em; }
.kpi span { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.tabs { display: flex; gap: 8px; margin: 0 0 18px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 18px; font-size: 14.5px; font-weight: 600; cursor: pointer; color: var(--muted); }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.controls { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.controls input[type="search"], .controls select {
  font: inherit; font-size: 14.5px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.controls input[type="search"] { flex: 1; min-width: 200px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.pager .pg-btns { display: flex; gap: 8px; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cards, .pricing { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .cta-band { padding: 40px 24px; }
  table.data .work { display: none; }
}
/* Workspace enhancements */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b87509; outline-offset: 3px; }
.intro { margin: 36px 0 20px; }
.intro h2 { font-size: clamp(26px,4vw,38px); letter-spacing: -.03em; margin: 8px 0; }
.intro p { color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: .13em; font-weight: 800; }
#data-note { padding: 12px 16px; border: 1px solid #e5d7ae; background: #fff9e9; border-radius: 10px; font-size: 13px; }
.kpis { grid-template-columns: repeat(4,1fr); }
.kpi { cursor: default; }
.secondary { align-items: end; gap: 18px; margin: 20px 0; }
.secondary label { font-size: 13px; color: var(--muted); }
.secondary input[type=date] { display: block; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.saved-filter { padding-bottom: 10px; }
.save-btn { background: transparent; border: 0; font-size: 25px; color: #806016; cursor: pointer; }
.record-link { font: inherit; font-weight: 600; color: #203d69; text-align: left; padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.coverage { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: 14px; }
.coverage summary { font-weight: 700; cursor: pointer; }
dialog { border: 1px solid var(--line); border-radius: 18px; padding: 28px; max-width: 640px; width: calc(100% - 32px); max-height: 85vh; color: var(--ink); box-shadow: 0 24px 80px #0004; }
dialog::backdrop { background: #08162dbb; }
dialog form { text-align: right; }
dialog dt { font-size: 12px; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
dialog dd { margin: 5px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
button:disabled { opacity: .45; cursor: not-allowed; }
@media(max-width:600px) { .kpis { grid-template-columns: repeat(2,1fr); } .controls > input, .controls > select { width: 100%; } .dash-top h1 { width: 100%; } }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
