/* USWDS / ready.gov-inspired light theme.
   Palette and type scale follow the U.S. Web Design System conventions. */

:root {
  /* USWDS-inspired palette */
  --navy:        #162e51;   /* primary-darker */
  --navy-2:      #1a4480;   /* primary-dark */
  --blue:        #005ea2;   /* primary */
  --blue-light:  #d9e8f6;
  --red:         #d83933;   /* secondary */
  --red-dark:    #b50909;
  --red-light:   #f8dfe2;
  --gold:        #ffbe2e;
  --gold-light:  #fff1d2;
  --gold-dark:   #e5a000;
  --green:       #00a91c;
  --green-dark:  #008817;
  --green-light: #d8eddb;

  --bg:          #ffffff;
  --bg-2:        #f0f0f0;
  --bg-3:        #dfe1e2;
  --bg-dark:     #162e51;
  --surface:     #ffffff;
  --border:      #dfe1e2;
  --border-dark: #a9aeb1;

  --text:        #1b1b1b;   /* base-darker */
  --text-2:      #3d4551;   /* base-dark */
  --muted:       #71767a;   /* base */
  --muted-light: #c9c9c9;   /* base-lighter */
  --on-dark:     #ffffff;
  --on-dark-muted: #d6dbe3;

  --maxw:        1200px;
  --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-lg:   0 18px 48px rgba(20, 30, 60, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .12s ease; }
a:hover { color: var(--navy-2); text-decoration: underline; text-underline-offset: 2px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.small { font-size: 14px; }
.muted { color: var(--muted); }

h1, h2, h3, h4 { font-family: 'Public Sans', sans-serif; color: var(--text); }

/* ===== trust banner (top) ===== */
.trust-banner {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-2);
}
.trust-banner-inner {
  display: flex; align-items: center; gap: 10px;
  height: 38px;
}
.trust-banner-flag { color: var(--red); display: inline-flex; }
.trust-banner-flag svg { width: 18px; height: 18px; }
.trust-banner-text { line-height: 1.4; }
.trust-banner-text a { color: var(--blue); font-weight: 600; }
.trust-banner-text a:hover { text-decoration: underline; }

/* ===== topbar ===== */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--text); }
.brand img { border-radius: 8px; }
.brand-name { display: block; font-weight: 700; font-size: 18px; line-height: 1.1; letter-spacing: -0.01em; color: var(--navy); }
.brand-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }
.topbar nav { display: flex; align-items: center; gap: 28px; }
.topbar nav a { color: var(--text); font-size: 15px; font-weight: 600; }
.topbar nav a:hover { color: var(--blue); text-decoration: none; }

@media (max-width: 820px) {
  .topbar nav { gap: 18px; }
  .topbar nav a:not(.btn) { display: none; }
}

/* ===== buttons (USWDS-style: square-ish, bold, no shadows) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 15px;
  padding: 10px 18px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:hover { text-decoration: none; }
.btn-lg { padding: 14px 26px; font-size: 17px; }
.btn-primary {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-secondary {
  background: transparent; color: var(--text); border-color: var(--text);
}
.btn-secondary:hover { background: var(--text); color: #fff; }
.hero .btn-secondary { color: #fff; border-color: #fff; }
.hero .btn-secondary:hover { background: #fff; color: var(--navy); }

/* ===== hero (dark navy block, ready.gov landing-page style) ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--on-dark);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(135deg, transparent 0%, transparent 60%, rgba(216, 57, 51, 0.10) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); font-weight: 800;
  padding: 6px 12px;
  border: 2px solid var(--gold); border-radius: 4px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.0;
  margin: 0 0 22px;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--on-dark);
}
.hero .lead {
  font-size: 19px; color: var(--on-dark-muted);
  max-width: 580px; margin: 0 0 32px;
  line-height: 1.55;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-price { margin: 22px 0 0; font-size: 14px; color: var(--on-dark-muted); letter-spacing: 0.01em; }
.hero-price strong { color: var(--gold); font-weight: 700; }

.hero-art {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-art .device { width: 280px; }

@media (max-width: 980px) {
  .hero { padding: 60px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-art .device { width: 240px; }
}

/* ===== iPhone device frame ===== */
.device {
  position: relative;
  background: #1b1b1b;
  border-radius: 38px;
  padding: 9px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 1px #0a0d13,
    var(--shadow-lg);
}
.device-screen { border-radius: 30px; overflow: hidden; background: #000; position: relative; }
.device-screen img { width: 100%; height: auto; display: block; }
.device-notch {
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 38%; max-width: 110px; height: 26px;
  background: #1b1b1b; border-radius: 18px;
  z-index: 2; pointer-events: none;
}

/* ===== shared section bits ===== */
section { padding: 96px 0; }
.section-head { max-width: 760px; margin: 0 0 56px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center .section-lead { margin-left: auto; margin-right: auto; }
.section-eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue); font-weight: 800; margin-bottom: 14px;
}
.eyebrow-on-light { color: var(--green-dark); }
.section-title {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--navy);
}
.section-lead { color: var(--text-2); font-size: 18px; max-width: 700px; margin: 0; line-height: 1.6; }

/* ===== action cards (ready.gov "Make a Plan / Build a Kit / Be Informed" tiles) ===== */
.actions { background: var(--bg); }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.action-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 6px solid var(--blue);
  padding: 32px 28px 28px;
  color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none;
}
.action-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; color: var(--text); }
.action-card-red { border-top-color: var(--red); }
.action-card-gold { border-top-color: var(--gold-dark); }
.action-num {
  font-family: 'Public Sans', sans-serif;
  font-size: 48px; font-weight: 800; line-height: 1;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.04em;
}
.action-card h3 { font-size: 22px; margin: 0 0 10px; font-weight: 700; letter-spacing: -0.015em; color: var(--navy); }
.action-card p { color: var(--text-2); margin: 0 0 18px; font-size: 16px; line-height: 1.55; }
.action-link { color: var(--blue); font-weight: 700; font-size: 15px; }
.action-card:hover .action-link { color: var(--navy-2); }

@media (max-width: 980px) { .action-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ===== features ===== */
.features { background: var(--bg-2); border-top: 1px solid var(--border); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 26px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--border-dark); }
.feature-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 4px;
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon-red { background: var(--red-light); color: var(--red-dark); }
.feature h3 { font-size: 19px; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
.feature p { color: var(--text-2); margin: 0; font-size: 15.5px; line-height: 1.6; }

@media (max-width: 980px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ===== screenshots ===== */
.screenshots { background: var(--bg); border-top: 1px solid var(--border); }
.shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; align-items: end; }
.shot { margin: 0; text-align: center; }
.shot .device { width: 240px; margin: 0 auto; }
.shot figcaption { color: var(--text-2); margin-top: 18px; font-size: 15px; line-height: 1.5; }
.shot figcaption strong { color: var(--navy); font-weight: 700; }

@media (max-width: 880px) {
  .shot-row { grid-template-columns: 1fr; gap: 48px; }
  .shot .device { width: 230px; }
}

/* ===== privacy (light section) ===== */
.privacy { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: stretch; }

.data-flow {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 6px solid var(--green);
  padding: 32px 28px;
}
.flow-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.flow-node { text-align: center; padding: 18px 14px; background: var(--bg-2); border: 1px solid var(--border); }
.flow-icon {
  width: 44px; height: 44px;
  background: var(--blue-light); color: var(--blue);
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
}
.flow-icon svg { width: 22px; height: 22px; }
.flow-node strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.flow-node span { font-size: 13px; color: var(--text-2); line-height: 1.4; }

.flow-arrow { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--blue); min-width: 100px; }
.flow-arrow svg { width: 80px; height: 12px; }
.flow-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); font-weight: 700; text-align: center; line-height: 1.3; }

.flow-caption { color: var(--text-2); font-size: 15px; margin: 22px 0 0; line-height: 1.55; }

.check-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 6px solid var(--red);
  padding: 32px 28px;
}
.check-card h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin: 0 0 18px; letter-spacing: -0.01em; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-top: 1px solid var(--border);
  font-size: 15.5px;
  color: var(--text-2);
  line-height: 1.55;
}
.check-list li:first-child { border-top: 0; padding-top: 0; }
.check-list li:first-child::before, .check-list li:first-child::after { top: -1px; }
.check-list li:first-child::after { top: 4px; }
.check-list li strong { color: var(--text); font-weight: 700; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 22px; height: 22px;
  background: var(--green-light); border: 2px solid var(--green);
  border-radius: 4px;
}
.check-list li::after {
  content: ""; position: absolute; left: 7px; top: 18px;
  width: 5px; height: 10px;
  border: solid var(--green-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 980px) { .privacy-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 600px) { .flow-row { grid-template-columns: 1fr; } .flow-arrow { transform: rotate(90deg); margin: 4px auto; } }

/* ===== authority quote ===== */
.quote {
  background: var(--navy);
  color: var(--on-dark);
  padding: 80px 0;
  border-bottom: 6px solid var(--gold);
}
.quote-inner {
  max-width: 800px; margin: 0 auto;
  display: grid; grid-template-columns: 60px 1fr; gap: 24px; align-items: start;
}
.quote-mark {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 96px; line-height: 0.6;
  color: var(--gold);
  font-weight: 700;
  margin-top: 4px;
}
.quote blockquote {
  margin: 0;
  font-size: 21px; line-height: 1.55;
  color: var(--on-dark);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.quote blockquote p { margin: 0 0 22px; }
.quote blockquote footer { font-size: 14px; color: var(--on-dark-muted); }
.quote blockquote footer strong { color: #fff; font-weight: 700; }

@media (max-width: 720px) {
  .quote-inner { grid-template-columns: 1fr; gap: 0; }
  .quote-mark { font-size: 64px; margin-bottom: 8px; }
  .quote blockquote { font-size: 19px; }
}

/* ===== faq ===== */
.faq { background: var(--bg); border-top: 1px solid var(--border); }
.faq-inner { max-width: 800px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  padding: 18px 22px;
  margin-bottom: 10px;
  transition: border-color .12s ease, background .12s ease;
}
.faq details[open] { border-color: var(--blue); border-left-width: 6px; padding-left: 17px; }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  position: relative;
  padding-right: 32px;
  letter-spacing: -0.005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: -2px;
  font-size: 24px; line-height: 1;
  color: var(--blue);
  transition: transform .2s ease;
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-2); margin: 12px 0 0; font-size: 16px; line-height: 1.65; }

/* ===== CTA ===== */
.cta {
  background: var(--bg-2);
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-inner h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--navy);
}
.cta-inner p { color: var(--text-2); max-width: 580px; margin: 0 auto 28px; font-size: 18px; line-height: 1.55; }
.cta-inner .btn-lg { margin-bottom: 12px; }

/* ===== footer ===== */
.footer { background: var(--navy); color: var(--on-dark); padding: 64px 0 0; border-top: 8px solid var(--red); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 56px; padding-bottom: 40px; }
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: var(--on-dark-muted); }
.footer .muted { color: var(--on-dark-muted); }
.footer .small { font-size: 14px; line-height: 1.55; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 16px; }
.footer-cols a { display: block; color: var(--on-dark-muted); font-size: 15px; padding: 5px 0; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-org { display: block; color: var(--on-dark-muted); font-size: 15px; padding: 5px 0; }
.brand-footer { font-size: 14px; color: #fff; }
.footer-bar { background: rgba(0,0,0,0.2); padding: 22px 0; }
.footer-bar-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; color: var(--on-dark-muted); font-size: 13px; line-height: 1.55; }

@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  section { padding: 64px 0; }
  .hero h1 { font-size: 44px; }
  .section-head { margin-bottom: 36px; }
}
