/* GovWorkCenter public site. Same design language as the app's login page:
   Public Sans, white + cool field tint, navy dark sections, brand blue actions,
   one brass accent. No animation libraries, no framework. */

:root {
  --navy: #14213d;
  --navy-deep: #0c1730;
  --brand: #2563eb;
  --brand-fg: #1d4ed8;
  --brass: #c9a227;
  --field: #f3f5f9;
  --white: #ffffff;
  --ink-muted: #4b5563;
  --ink-faint: #6b7280;
  --line: rgba(20, 33, 61, 0.1);
  --line-dark: rgba(255, 255, 255, 0.1);
  --wrap: 72rem;
  --font: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ul, ol, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -999px; top: 1rem; z-index: 60;
  padding: 0.5rem 0.75rem; border-radius: 0.5rem; background: var(--navy); color: var(--white);
}
.skip:focus { left: 1rem; }

/* Type */
.h-section {
  font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.h-small { font-size: 0.875rem; font-weight: 500; color: var(--ink-faint); }
.lede { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.6; color: var(--ink-muted); }
.fine { margin-top: 1.5rem; font-size: 0.875rem; color: var(--ink-faint); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1rem; border-radius: 0.5rem; border: 1px solid transparent;
  font: inherit; font-size: 0.875rem; font-weight: 500; line-height: 1.25rem;
  cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-lg { padding: 0.75rem 1.25rem; font-size: 1rem; line-height: 1.5rem; }
.btn-solid { background: var(--brand); color: var(--white); }
.btn-solid:hover { background: var(--brand-fg); }
.btn-outline { border-color: rgba(20, 33, 61, 0.2); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.btn-text { color: var(--navy); text-underline-offset: 4px; }
.btn-text:hover { text-decoration: underline; }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--field); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.wordmark { display: inline-flex; align-items: baseline; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
.wordmark span { font-weight: 500; color: var(--brand); }
.wordmark.small { font-size: 1rem; }
.site-nav { display: none; gap: 1.75rem; font-size: 0.875rem; font-weight: 500; color: rgba(20, 33, 61, 0.8); }
.site-nav a:hover { color: var(--navy); }
@media (min-width: 768px) { .site-nav { display: flex; } }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline-flex; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; align-items: center; padding-top: 4rem; padding-bottom: 5rem; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 7fr 5fr; padding-top: 6rem; padding-bottom: 7rem; }
}
.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.25rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
  text-wrap: balance;
}
.rule { margin-top: 1.5rem; width: 3.5rem; height: 4px; background: var(--brass); }
.hero .lede { max-width: 36rem; margin-top: 1.5rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 2rem; }

/* Product vignette */
.vignette { position: relative; max-width: 32rem; margin: 0 auto 2.5rem; }
@media (min-width: 1024px) { .vignette { max-width: none; margin: 0 -2rem 2.5rem auto; } }
.app-card {
  padding: 1.25rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--white);
  box-shadow: 0 40px 90px -40px rgba(20, 33, 61, 0.45);
}
.app-card-head { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink-faint); }
.app-card-head span:first-child { font-size: 0.875rem; font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1rem; }
.stat { padding: 0.75rem; border-radius: 0.75rem; border: 1px solid var(--line); background: var(--field); }
.stat-n { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.stat-l { margin-top: 0.125rem; font-size: 0.75rem; line-height: 1.3; color: var(--ink-muted); }
.app-card-title { margin-top: 1.25rem; font-size: 0.875rem; font-weight: 500; }
.timeline { margin: 1rem 0 0 0.5rem; padding: 0.125rem 0 0 1.25rem; border-left: 3px solid var(--brand); }
.timeline li { position: relative; padding-bottom: 1.25rem; }
.timeline li:last-child { padding-bottom: 0.25rem; }
.timeline li::before {
  content: ''; position: absolute; left: -29.5px; top: 0.125rem;
  width: 0.875rem; height: 0.875rem; border-radius: 50%;
  border: 3px solid var(--brand); background: var(--white);
}
.timeline p { font-size: 0.875rem; line-height: 1.25rem; }
.timeline .meta { margin-top: 0.125rem; font-size: 0.75rem; font-style: italic; color: var(--ink-muted); }
.timeline .meta span { color: var(--brand); }
.callout {
  margin: 0.75rem 0 0 auto; width: 14rem;
  padding: 1rem; border-radius: 0.75rem; background: var(--navy); color: var(--white);
  box-shadow: 0 24px 50px -24px rgba(20, 33, 61, 0.7);
}
@media (min-width: 640px) {
  .callout { position: absolute; right: -1.25rem; bottom: -2.25rem; margin: 0; }
}
.callout-k { font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }
.callout-v { margin-top: 0.25rem; font-size: 0.875rem; font-weight: 500; }
.callout-s { margin-top: 0.125rem; font-size: 0.75rem; line-height: 1.3; color: rgba(255, 255, 255, 0.7); }

/* Pillars */
.pillars { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--field); }
.pillars-grid { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.pillars h2 { font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.pillars p { margin-top: 0.75rem; color: var(--ink-muted); }
@media (min-width: 768px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .pillars-grid > div { padding: 0 2rem; border-left: 1px solid var(--line); }
  .pillars-grid > div:first-child { padding-left: 0; border-left: 0; }
  .pillars-grid > div:last-child { padding-right: 0; }
}

/* Sections */
.section { padding: 5rem 0; }
@media (min-width: 1024px) { .section { padding: 7rem 0; } }
.tint { background: var(--field); }
.two-col { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 5fr 6fr; column-gap: 5rem; } }
.section-intro { max-width: 42rem; }

.defs { display: grid; gap: 1.5rem; margin-top: 2rem; }
.defs dt { font-weight: 700; }
.defs dd { margin-top: 0.25rem; color: var(--ink-muted); }

.ledger { margin-top: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ledger li { display: grid; gap: 0.25rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.ledger li:first-child { border-top: 0; }
.ledger li span:first-child { font-weight: 700; }
.ledger li span:last-child { color: var(--ink-muted); }
@media (min-width: 640px) { .ledger li { grid-template-columns: 11rem 1fr; gap: 1.5rem; } }

/* Dark band */
.band { padding: 4rem 0; background: var(--navy); color: var(--white); }
@media (min-width: 1024px) { .band { padding: 5rem 0; } }
.band-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .band-grid { grid-template-columns: 5fr 7fr; } }
.band-points { display: grid; gap: 2rem; }
@media (min-width: 640px) { .band-points { grid-template-columns: 1fr 1fr; } }
.band .point { font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
.band-points p:not(.point) { margin-top: 0.5rem; color: rgba(255, 255, 255, 0.7); }

/* Pricing */
.plans { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  display: flex; flex-direction: column; padding: 1.75rem; border-radius: 1rem;
  border: 1px solid var(--line); background: var(--white);
}
.plan.featured {
  border-color: transparent; background: var(--navy); color: var(--white);
  box-shadow: 0 24px 60px -30px rgba(20, 33, 61, 0.6);
}
.plan h3 { font-size: 1.125rem; font-weight: 700; }
.tag {
  align-self: flex-start; margin-top: 0.5rem; padding: 0.125rem 0.5rem;
  border: 1px solid rgba(201, 162, 39, 0.6); border-radius: 0.375rem;
  font-size: 0.75rem; font-weight: 500; color: var(--brass);
}
.price { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 1.25rem; }
.price strong { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.price span { font-size: 0.875rem; color: var(--ink-faint); }
.plan.featured .price span { color: rgba(255, 255, 255, 0.65); }
.plan ul { display: grid; gap: 0.625rem; margin-top: 1.5rem; color: var(--ink-muted); }
.plan.featured ul { color: rgba(255, 255, 255, 0.85); }
.plan li { position: relative; padding-left: 2rem; }
.plan li::before {
  content: ''; position: absolute; left: 0; top: 0.2rem; width: 1.1rem; height: 1.1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--brand);
}
.plan.featured li::before { color: var(--white); }
.plan .btn { margin-top: 2rem; padding: 0.625rem 1rem; }

/* About */
.about { border-top: 1px solid var(--line); padding: 5rem 0; }
.about-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 8fr 4fr; } .about-cta { text-align: right; } }
.about .lede { max-width: 42rem; }

/* Contact */
.contact { padding: 5rem 0; background: var(--navy-deep); color: var(--white); }
@media (min-width: 1024px) { .contact { padding: 6rem 0; } }
.contact .lede { color: rgba(255, 255, 255, 0.7); }
.contact address { margin-top: 1.5rem; font-style: normal; color: rgba(255, 255, 255, 0.8); }
.contacts { margin-top: 2rem; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.contacts > div { display: grid; gap: 0.25rem; padding: 0.75rem 0; border-top: 1px solid var(--line-dark); }
.contacts > div:first-child { border-top: 0; }
.contacts dt { font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }
.contacts a { text-underline-offset: 4px; }
.contacts a:hover { text-decoration: underline; }
@media (min-width: 640px) { .contacts > div { grid-template-columns: 11rem 1fr; } }

.contact-form { display: grid; gap: 0.75rem; align-self: start; }
@media (min-width: 640px) { .contact-form { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.contact-form label { display: block; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.625rem 0.75rem; border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.05);
  font: inherit; font-size: 0.875rem; color: var(--white); resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.1);
}
.contact-form .btn { padding: 0.625rem 1.25rem; }
.form-note { margin-top: 0.5rem; font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-direction: column; gap: 1rem; padding: 2rem 1rem; font-size: 0.875rem; color: var(--ink-faint); }
@media (min-width: 640px) { .footer-row { flex-direction: row; align-items: center; justify-content: space-between; padding: 2rem 1.5rem; } }
