/* Get Justice Today: one design system for every page. Mobile-first: the quiz sits above the fold on a phone. */
:root {
  --ink: #0f172a; --muted: #55607a; --line: #e3e7ef; --soft: #f4f6fa; --navy: #10224a;
  --blue: #1d4ed8; --blue-d: #1e40af; --green: #138a4b; --red: #c81e2c; --yellow: #ffe45c;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; line-height: 1.55; }
a { color: inherit; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 18px; }
svg.i { width: 18px; height: 18px; flex: 0 0 auto; }

/* top bar */
.bar { background: var(--navy); color: #fff; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 50px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; text-decoration: none; letter-spacing: -.01em; }
.brand svg { width: 22px; height: 22px; color: var(--yellow); }
.bar small { font-size: 12px; font-weight: 600; opacity: .85; white-space: nowrap; }
.alert { background: var(--red); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: center; padding: 7px 12px; }
.alert .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 7px; vertical-align: 1px; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

/* hero */
.hero { padding: 18px 0 8px; text-align: center; }
h1 { font-size: 30px; line-height: 1.1; font-weight: 900; letter-spacing: -.02em; }
.hl { background: linear-gradient(transparent 58%, var(--yellow) 58%); padding: 0 2px; }
.sub { font-size: 16px; color: var(--muted); margin-top: 8px; }

/* quiz card */
.card { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 28px rgba(16,34,74,.10); overflow: hidden; margin: 14px 0 0; background: #fff; }
.card-h { background: var(--soft); border-bottom: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-h b { font-size: 14px; }
.card-h span { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.prog { height: 6px; background: var(--line); }
.prog i { display: block; height: 100%; width: 0; background: var(--green); transition: width .4s ease; }
.card-b { padding: 20px 16px 18px; }
.q { font-size: 21px; line-height: 1.25; font-weight: 800; text-align: center; letter-spacing: -.01em; }
.qhint { font-size: 13px; color: var(--muted); text-align: center; margin-top: 4px; }
.opts { display: grid; gap: 10px; margin-top: 16px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; font: inherit; font-size: 17px; font-weight: 700;
  color: #fff; background: var(--blue); border: 0; border-radius: 12px; padding: 16px 16px; cursor: pointer; box-shadow: 0 4px 0 var(--blue-d);
  -webkit-tap-highlight-color: transparent; transition: transform .06s; }
.opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--blue-d); }
.opt svg { width: 18px; height: 18px; opacity: .85; }
.opt.sel { background: var(--blue-d); }
.warn { margin-top: 12px; border: 1px solid #f3c3c7; background: #fff3f4; color: #8f1520; border-radius: 10px; padding: 11px 13px; font-size: 14px; font-weight: 600; }
.reass { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 14px; }
.reass span { display: inline-flex; align-items: center; gap: 5px; }
.reass svg { width: 14px; height: 14px; color: var(--green); }

/* checking */
.calc { text-align: center; }
.spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--blue); margin: 14px auto; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.calc ul { list-style: none; text-align: left; max-width: 330px; margin: 0 auto; display: grid; gap: 8px; font-size: 14px; color: #9aa3b5; }
.calc li { display: flex; gap: 9px; align-items: center; }
.calc li.done { color: var(--ink); }
.calc li b { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c9cfdb; flex: 0 0 18px; display: grid; place-items: center; }
.calc li.done b { background: var(--green); border-color: var(--green); }
.calc li.done b:after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px,-1px); }

/* form */
.good { display: flex; gap: 10px; align-items: flex-start; background: #ecf8f1; border: 1px solid #bfe5cf; border-radius: 12px; padding: 12px 13px; margin-bottom: 14px; }
.good svg { width: 22px; height: 22px; color: var(--green); }
.good b { display: block; font-size: 16px; }
.good span { font-size: 14px; color: #2d4a3a; }
form { display: grid; gap: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
input[type=text], input[type=tel], input[type=email] { width: 100%; font: inherit; font-size: 17px; padding: 13px 13px; border: 1.5px solid #cbd2df; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,216,.15); }
input.bad { border-color: var(--red); }
.err { color: var(--red); font-size: 12px; font-weight: 600; margin-top: 3px; min-height: 0; }
.submit { margin-top: 4px; width: 100%; font: inherit; font-size: 19px; font-weight: 900; color: #fff; background: var(--green); border: 0; border-radius: 12px; padding: 17px 12px;
  box-shadow: 0 5px 0 #0c6234; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.submit:active { transform: translateY(3px); box-shadow: 0 2px 0 #0c6234; }
.submit[disabled] { opacity: .7; cursor: default; }
.lock { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.lock svg { width: 13px; height: 13px; }
.tcpa { font-size: 10.5px; line-height: 1.5; color: #6b7387; text-align: center; margin-top: 2px; }

/* thank you */
.thanks { text-align: center; padding: 10px 0 4px; }
.thanks .ok { width: 60px; height: 60px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; }
.thanks .ok svg { width: 30px; height: 30px; }
.thanks h2 { font-size: 26px; margin: 0; }
.thanks p { color: var(--muted); margin-top: 8px; }
.thanks .next { text-align: left; margin-top: 16px; background: var(--soft); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; font-size: 14px; }
.thanks .next div { display: flex; gap: 9px; }
.thanks .next b { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; display: grid; place-items: center; }

/* content sections */
.sec { padding: 34px 0 0; }
.sec h2 { font-size: 25px; line-height: 1.15; font-weight: 900; letter-spacing: -.015em; margin-bottom: 12px; }
.sec p { font-size: 16px; color: #2a3245; margin-top: 10px; }
.sec p:first-of-type { margin-top: 0; }
.checks { list-style: none; display: grid; gap: 9px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; background: var(--soft); border-radius: 10px; padding: 11px 12px; font-size: 15px; font-weight: 600; }
.checks svg { width: 22px; height: 22px; flex: 0 0 22px; color: #fff; background: var(--green); border-radius: 50%; padding: 4px; margin-top: 0; }
.facts { border-left: 4px solid var(--navy); padding: 2px 0 2px 14px; display: grid; gap: 14px; }
.facts .when { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts .what { font-size: 15.5px; font-weight: 600; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 13px; }
.tile b { display: block; font-size: 15px; }
.tile span { font-size: 13px; color: var(--muted); display: block; margin-top: 3px; line-height: 1.4; }
.steps { display: grid; gap: 10px; counter-reset: s; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step:before { counter-increment: s; content: counter(s); flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.step b { display: block; font-size: 16px; }
.step span { font-size: 14px; color: var(--muted); }
.note { margin-top: 14px; border: 1px solid #f0d77a; background: #fffbea; border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 18px; text-decoration: none; font-size: 18px; font-weight: 900;
  color: #fff; background: var(--blue); border-radius: 12px; padding: 16px 12px; box-shadow: 0 5px 0 var(--blue-d); }
.cta:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--blue-d); }
.cta svg { width: 18px; height: 18px; }
.urgent { background: var(--navy); color: #fff; border-radius: 16px; padding: 22px 18px; text-align: center; }
.urgent h2 { color: #fff; }
.urgent p { color: #d6dcf0 !important; }
.urgent .cta { background: var(--yellow); color: var(--ink); box-shadow: 0 5px 0 #c9a900; }
details { border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; }
summary { list-style: none; cursor: pointer; padding: 13px 40px 13px 14px; font-weight: 700; font-size: 15px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary:after { content: "+"; position: absolute; right: 14px; top: 10px; font-size: 20px; color: var(--blue); font-weight: 600; }
details[open] summary:after { content: "–"; }
details p { padding: 0 14px 13px; margin: 0 !important; font-size: 15px !important; color: var(--muted) !important; }
.src { font-size: 12px !important; color: var(--muted) !important; }

/* footer */
footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--soft); padding: 24px 0 30px; text-align: center; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
footer p + p { margin-top: 9px; }
footer a { text-decoration: underline; }

/* sticky mobile CTA (shown after the quiz scrolls away) */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s; z-index: 20; }
.sticky.on { transform: none; }
.sticky .cta { margin: 0 auto; max-width: 600px; }

/* simple pages */
.page { padding: 34px 0 10px; }
.page h1 { text-align: left; font-size: 28px; margin-bottom: 14px; }
.page h2 { font-size: 18px; margin: 22px 0 6px; }
.page p, .page li { font-size: 15px; color: #2a3245; }
.page ul { padding-left: 20px; margin-top: 6px; }
.home { min-height: calc(100vh - 230px); display: grid; place-items: center; text-align: center; padding: 50px 0; }
.home svg { width: 46px; height: 46px; color: var(--navy); margin: 0 auto 14px; display: block; }
.home h1 { font-size: 34px; }
.home p { color: var(--muted); font-size: 17px; margin-top: 10px; max-width: 420px; }

@media (min-width: 700px) {
  h1 { font-size: 40px; }
  .hero { padding-top: 30px; }
  .card-b { padding: 26px 28px 22px; }
  .q { font-size: 24px; }
  .sticky { display: none; }
}
