/* "Civic Plain" lander + simulated search flow. Plain CSS on purpose —
   this design is USWDS-flavored and lives outside the Tailwind app shell. */

:root {
  --blue: #005ea2;
  --blue-dark: #1a4480;
  --blue-darker: #162e51;
  --gray-bg: #f0f0f0;
  --gray-line: #dfe1e2;
  --text: #1b1b1b;
  --muted: #565c65;
  --gold: #ffbe2e;
  --green: #00a91c;
  --red: #b50909;
  --focus: #2491ff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Public Sans", system-ui, sans-serif; color: var(--text); background: #fff; line-height: 1.6; font-size: 16px; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1024px; margin: 0 auto; padding: 0 20px; }

/* disclosure banner — replaces the .gov "official website" strip */
.disclosure { background: var(--gray-bg); border-bottom: 1px solid var(--gray-line); font-size: 13px; color: var(--text); }
.disclosure .wrap { display: flex; gap: 8px; align-items: center; padding: 6px 20px; }
.disclosure .flag { font-size: 14px; }

header.site { background: var(--blue-darker); color: #fff; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 20px; }
.brand small { display: block; font-weight: 400; font-size: 12px; color: #a9b6cc; }
header.site nav a { color: #fff; text-decoration: none; font-size: 14px; margin-left: 20px; }
header.site nav a:hover { text-decoration: underline; }

/* hero */
.hero { background: var(--blue-dark); color: #fff; padding: 44px 0 48px; }
.hero h1 { font-family: "Merriweather", serif; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.25; max-width: 24ch; }
.hero p { margin-top: 10px; font-size: 17px; color: #dbe2ec; max-width: 60ch; }

/* search panel */
.panel { background: var(--gray-bg); border-bottom: 1px solid var(--gray-line); padding: 32px 0 36px; }
.panel form { max-width: 720px; }
.panel h2 { font-size: 19px; margin-bottom: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 5px; }
.field .hint { font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.field input[type=text], .field select {
  width: 100%; max-width: 480px; font: inherit; padding: 10px 12px;
  border: 1px solid #71767a; border-radius: 0; background: #fff;
}
.field .error { font-size: 13px; color: var(--red); margin-top: 4px; }
fieldset { border: 0; margin-bottom: 18px; }
legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(200px, 240px)); gap: 6px 24px; }
.checks label { font-size: 15px; display: flex; gap: 8px; align-items: center; }
.checks input { width: 18px; height: 18px; accent-color: var(--blue); }
.btn {
  font: inherit; font-weight: 700; font-size: 16px; color: #fff; background: var(--blue);
  border: 0; border-radius: 4px; padding: 12px 28px; cursor: pointer;
  display: inline-block; text-decoration: none;
}
.btn:hover { background: var(--blue-dark); }
.fcra { margin-top: 16px; font-size: 12.5px; color: var(--muted); max-width: 72ch; }

/* info sections */
.info { padding: 40px 0; }
.info h2 { font-family: "Merriweather", serif; font-size: 24px; margin-bottom: 16px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cols h3 { font-size: 16px; margin-bottom: 6px; }
.cols p { font-size: 14.5px; color: var(--muted); }
.cols ul { margin: 6px 0 0 18px; font-size: 14.5px; color: var(--muted); }

/* alert box */
.alert { border-left: 8px solid var(--gold); background: #faf3d1; padding: 16px 20px; margin: 8px 0 40px; }
.alert b { display: block; margin-bottom: 4px; }
.alert p { font-size: 14px; }

/* faq */
.faq { padding: 0 0 44px; }
.faq h2 { font-family: "Merriweather", serif; font-size: 24px; margin-bottom: 14px; }
.faq details { border-top: 1px solid var(--gray-line); max-width: 780px; }
.faq details:last-child { border-bottom: 1px solid var(--gray-line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; padding: 13px 0; }
.faq details p { padding: 0 0 14px; font-size: 14.5px; max-width: 68ch; }

.legal { background: #f8eded; border-top: 4px solid var(--red); padding: 26px 0; }
.legal .wrap { max-width: 900px; }
.legal h2 { color: var(--red); font-size: 15px; letter-spacing: .04em; margin-bottom: 8px; }
.legal p, .legal li { font-size: 13.5px; }
.legal ul { margin: 6px 0 0 20px; }

footer.site { background: var(--blue-darker); color: #dbe2ec; padding: 28px 0; font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer.site a { color: #fff; margin-right: 16px; }

/* ---- simulated search progress page ---- */

.search-stage { padding: 40px 0 56px; }
.search-stage h1 { font-family: "Merriweather", serif; font-size: 26px; line-height: 1.3; }
.search-stage .subject { color: var(--blue-dark); }
.search-stage .scope { margin-top: 6px; font-size: 14.5px; color: var(--muted); }

.progress-track { margin: 26px 0 10px; height: 14px; background: var(--gray-bg); border: 1px solid var(--gray-line); max-width: 720px; }
.progress-fill { height: 100%; width: 0%; background: var(--blue); transition: width .4s linear; }
.progress-label { font-size: 13px; color: var(--muted); max-width: 720px; display: flex; justify-content: space-between; }

.steps { list-style: none; margin: 26px 0 0; max-width: 720px; }
.steps li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--gray-line); font-size: 15px; color: var(--muted); }
.steps li:last-child { border-bottom: 1px solid var(--gray-line); }
.steps .mark { width: 20px; flex: none; text-align: center; font-weight: 700; }
.steps li.active { color: var(--text); }
.steps li.active .mark::after { content: "…"; color: var(--blue); }
.steps li.done { color: var(--text); }
.steps li.done .mark::after { content: "✓"; color: var(--green); }
.steps .detail { display: block; font-size: 12.5px; color: var(--muted); }

/* result reveal */
.result { display: none; }
.result.show { display: block; }
.result .found { border-left: 8px solid var(--green); background: #ecf3ec; padding: 16px 20px; margin: 26px 0; max-width: 720px; }
.result .found b { display: block; font-size: 17px; margin-bottom: 4px; }
.result .found p { font-size: 14.5px; }
.result h2 { font-family: "Merriweather", serif; font-size: 22px; margin: 28px 0 4px; }
.result .choose { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(240px, 340px)); gap: 20px; }
.plan { background: #fff; border: 1px solid var(--gray-line); border-top: 4px solid var(--blue); padding: 20px; }
.plan.featured { border-top-color: var(--gold); }
.plan .flag-line { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--blue-dark); text-transform: uppercase; }
.plan h3 { font-size: 16px; margin: 2px 0 6px; }
.plan .price { font-family: "Merriweather", serif; font-size: 30px; }
.plan .price small { font-family: "Public Sans", system-ui, sans-serif; font-size: 13px; color: var(--muted); font-weight: 400; }
.plan ul { margin: 10px 0 16px 18px; font-size: 13.5px; color: var(--muted); }
.plan .btn { width: 100%; text-align: center; }

/* ---- checkout ---- */

.checkout { padding: 40px 0 56px; }
.checkout h1 { font-family: "Merriweather", serif; font-size: 26px; line-height: 1.3; }
.checkout .lead { margin-top: 6px; font-size: 14.5px; color: var(--muted); max-width: 60ch; }

.checkout-card { background: #fff; border: 1px solid var(--gray-line); border-top: 4px solid var(--blue); padding: 24px; margin-top: 24px; max-width: 560px; }
.checkout-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; font-size: 15px; }
.checkout-card .row + .row { border-top: 1px solid var(--gray-line); }
.checkout-card .row .price { font-weight: 700; }
.checkout-card .row .sub { font-size: 13px; color: var(--muted); }
.checkout-card .field input[type=email] { width: 100%; max-width: none; font: inherit; padding: 10px 12px; border: 1px solid #71767a; border-radius: 0; background: #fff; }
.checkout-card .field input[type=email]:read-only { background: var(--gray-bg); color: var(--muted); }
.checkout-card .btn { width: 100%; text-align: center; margin-top: 14px; }
.checkout-card .btn:disabled { opacity: .5; cursor: not-allowed; }
.checkout-card .link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--blue); text-decoration: underline; cursor: pointer; }

.notice { border-left: 8px solid var(--blue); background: #e7f2f8; padding: 12px 16px; margin: 14px 0 0; font-size: 14px; }
.notice-error { border-left: 8px solid var(--red); background: #f8eded; padding: 12px 16px; margin: 14px 0 0; font-size: 14px; color: var(--red); }

.card-brands { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 14px; }
.card-brands svg { height: 24px; width: 36px; }

.checkout .fine { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.5; }

/* ---- legal pages (terms & privacy) ---- */

.legal-page { padding: 40px 0 56px; }
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { font-family: "Merriweather", serif; font-size: 28px; line-height: 1.3; }
.legal-page .updated { font-size: 13px; color: var(--muted); margin: 4px 0 24px; }
.legal-page h2 { font-family: "Merriweather", serif; font-size: 20px; margin: 30px 0 8px; }
.legal-page h3 { font-size: 16px; margin: 20px 0 6px; }
.legal-page p { font-size: 15px; margin: 0 0 12px; }
.legal-page ul { margin: 0 0 12px 22px; font-size: 15px; }
.legal-page li { margin-bottom: 6px; }
.legal-page .callout { border-left: 8px solid var(--gold); background: #faf3d1; padding: 12px 16px; margin: 0 0 12px; font-size: 14px; }

/* The opt-out URLs in the privacy policy are long and unbroken. */
.legal-page p, .legal-page li { overflow-wrap: break-word; }

/* .btn's explicit display beats the UA rule for [hidden], so state it here. */
[hidden] { display: none !important; }

/* The qualifier is its own line — inline it widows "days" at card width. */
.plan .price small { display: block; margin-top: 2px; }

/* ---- card fields ---- */

.checkout-card .card-fields { margin-top: 16px; }
.checkout-card .card-fields .field { margin-bottom: 12px; }
.checkout-card .card-fields label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.checkout-card .card-fields input[type=text] {
  width: 100%; max-width: none; font: inherit; padding: 10px 12px;
  border: 1px solid #71767a; border-radius: 0; background: #fff;
}
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---- pricing block on the lander ---- */

.pricing { padding: 0 0 40px; }
.pricing h2 { font-family: "Merriweather", serif; font-size: 24px; margin-bottom: 6px; }
.pricing .choose { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.pricing .terms-line { margin-top: 14px; font-size: 12.5px; color: var(--muted); max-width: 72ch; }

@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}
