/* GHResponds brand styles.
   Palette from the brand sheet: Navy #12304A, Research Teal #087F8C, Golden Amber #F2A900,
   Off White #F7F9FA, Charcoal #1F2933. Mobile-first, system fonts (no web-font download),
   no JavaScript needed. */
:root {
  --navy: #12304a;
  --navy-dark: #0b2237;
  --teal: #087f8c;
  --teal-dark: #066570;
  --amber: #f2a900;
  --amber-soft: #fff4d6;
  --ink: #1f2933;
  --muted: #4a5a68;
  --bg: #f7f9fa;
  --card: #ffffff;
  --line: #d6dee3;
  --error: #b00020;
  --error-bg: #fdecef;
  --success-bg: #e6f4f0;
  --info-bg: #e9f4f6;
  --focus: #087f8c;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; padding: 1.25rem 0 3rem; }

.container { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 30rem; }

h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 .75rem; letter-spacing: -.01em; color: var(--navy); }
h2 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; color: var(--navy); }
p { margin: 0 0 1rem; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: .5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0; }

/* Header and brand lockup */
.site-header { background: var(--card); border-top: 4px solid var(--amber); border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1rem; padding-top: .7rem; padding-bottom: .7rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); }
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; color: var(--navy); }
.brand-name .brand-responds { color: var(--teal); }
.brand-tagline {
  font-size: .58rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-top: .18rem;
}
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.1rem; }
.site-header nav a { color: var(--navy); text-decoration: none; padding: .5rem 0; font-weight: 600; }
.site-header nav a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: .2rem; }
.site-header :focus-visible { outline-color: var(--teal); }

.inline-form { display: inline; margin: 0; }
.link-button {
  background: none; border: 0; padding: .5rem 0; color: inherit; font: inherit;
  cursor: pointer; text-decoration: none;
}
.link-button:hover { text-decoration: underline; }

/* Cards, forms, buttons */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1rem; border-top: 3px solid var(--teal);
}
.card h2 { margin-top: 0; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .25rem; color: var(--ink); }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="tel"], .field input[type="search"] {
  width: 100%; min-height: 2.75rem; padding: .5rem .75rem; font: inherit;
  border: 1px solid #9aa7b1; border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus-visible { border-color: var(--teal); }
.has-error input { border-color: var(--error); }
.hint { color: var(--muted); font-size: .9rem; margin: .25rem 0 0; }
.error { color: var(--error); font-size: .9rem; margin: .25rem 0 0; }

.checks ul { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; align-items: flex-start; gap: .5rem; padding: .35rem 0; }
.checks input { margin-top: .3rem; width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--teal); }
.checks label { font-weight: 400; margin: 0; }
.checkbox-row { display: flex; align-items: flex-start; gap: .5rem; }
.checkbox-row input { margin-top: .3rem; width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--teal); }
.checkbox-row label { font-weight: 400; margin: 0; }

.btn {
  display: inline-block; min-height: 2.75rem; padding: .6rem 1.25rem; font: inherit;
  font-weight: 600; text-align: center; text-decoration: none; cursor: pointer;
  color: #fff; background: var(--navy); border: 2px solid var(--navy); border-radius: 8px;
}
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-secondary { color: var(--navy); background: #fff; border-color: var(--navy); }
.btn-secondary:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
.btn-accent { color: var(--navy); background: var(--amber); border-color: var(--amber); }
.btn-accent:hover { color: var(--navy); background: #dc9a00; border-color: #dc9a00; }
.btn-danger { background: var(--error); border-color: var(--error); }
.btn-danger:hover { background: #7f0017; border-color: #7f0017; }
.btn-small { min-height: 2.25rem; padding: .3rem .8rem; font-size: .9rem; }

/* Messages */
.flashes { margin-bottom: 1rem; }
.flash {
  padding: .75rem 1rem; border-radius: 8px; margin-bottom: .5rem;
  border: 1px solid #b7dde2; background: var(--info-bg); color: var(--ink);
}
.flash-success { background: var(--success-bg); border-color: #9bd0c4; }
.flash-error { background: var(--error-bg); border-color: #e8a1ae; color: #6d0016; }

/* Landing and dashboard */
.hero { padding: 1.5rem 0 .5rem; }
.hero h1 { font-size: 2.1rem; max-width: 22ch; }
.hero .eyebrow {
  display: inline-block; margin: 0 0 .6rem; padding: .15rem .6rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); background: var(--amber-soft); border: 1px solid #f0d68a;
}
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 46rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.pill {
  display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .85rem;
  background: var(--info-bg); border: 1px solid #b7dde2; color: var(--ink); margin-right: .25rem;
}
.pill-soon { background: var(--amber-soft); border-color: #f0d68a; }

/* Brand statement panel */
.brand-panel {
  margin: 2rem 0 1.5rem; padding: 1.5rem; border-radius: var(--radius);
  background: var(--navy); color: #fff;
}
.brand-panel .brand-statement { font-size: 1.15rem; color: #e7eef3; max-width: 40rem; }
.brand-panel .pillars {
  list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1rem;
}
.brand-panel .pillars li { border-left: 3px solid var(--amber); padding-left: .75rem; }
.brand-panel .pillars strong {
  display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber);
}
.brand-panel .pillars span { color: #dce6ec; font-size: .92rem; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.search-form { display: flex; gap: .5rem; margin-bottom: 1rem; }
.search-form input { flex: 1; min-height: 2.75rem; padding: .5rem .75rem; font: inherit; border: 1px solid #9aa7b1; border-radius: 8px; }
.pager { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }

/* Footer */
.site-footer { background: var(--navy); color: #dce6ec; font-size: .9rem; padding: 1.25rem 0; }
.site-footer a { color: #fff; }
.site-footer .footer-brand { color: #fff; font-weight: 700; }
.site-footer .footer-tagline { color: var(--amber); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 26rem) {
  /* Very narrow phones: keep the header on one line by dropping the tagline. */
  .brand-tagline { display: none; }
  .header-inner { gap: .35rem; }
}

@media (min-width: 40rem) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.6rem; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .brand-panel { padding: 2rem; }
  .brand-panel .pillars { grid-template-columns: repeat(2, 1fr); }
  main { padding-top: 2rem; }
}

@media (min-width: 62rem) {
  .brand-panel .pillars { grid-template-columns: repeat(3, 1fr); }
}

/* Auth pages and small helpers */
.mfa-secret {
  display: block; padding: .7rem .8rem; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; font-size: 1.05rem; letter-spacing: .12em; overflow-wrap: anywhere;
}
.form-footer { margin-top: 1rem; }
.resend-form { margin-top: 1.5rem; }
.link-button-inline { padding: 0; color: var(--teal); text-decoration: underline; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.field input[type="number"], .field input[type="date"], .field input[type="datetime-local"],
.field textarea, .field select {
  width: 100%; min-height: 2.75rem; padding: .5rem .75rem; font: inherit;
  border: 1px solid #9aa7b1; border-radius: 8px; background: #fff; color: var(--ink);
}

/* Survey builder */
.page-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: .75rem; margin-bottom: 1rem;
}
.page-head h1 { margin: 0 0 .35rem; }
.page-head .hint { margin-bottom: 0; }
.survey-list { display: grid; gap: 1rem; }
.survey-card { border-top-color: var(--amber); }
.survey-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem;
}
.survey-head h2 { margin: 0; font-size: 1.1rem; }
.item-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .75rem;
}
.item-actions .btn { margin: 0; }
.link-danger { color: var(--error); }
.link-danger:hover { color: #7f0017; }
.question-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; }
.question-item {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: 10px; padding: 1rem;
}
.question-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.question-number { font-weight: 700; color: var(--teal); }
.question-label { font-weight: 600; }
.question-meta { color: var(--muted); font-size: .9rem; margin: .35rem 0 0; }
.question-meta code { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: .05rem .3rem; }
.fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin: 0 0 1rem; }
.fieldset legend { font-weight: 600; padding: 0 .35rem; }

/* Enumerator data entry */
fieldset.field { border: 0; padding: 0; margin: 0 0 1.25rem; }
fieldset.field legend {
  font-weight: 600; padding: 0; margin-bottom: .35rem; color: var(--ink);
}
.answer { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.answer:last-of-type { border-bottom: 0; }
.required-mark { color: var(--error); font-weight: 700; }
.consent-card { border-top-color: var(--amber); }
.consent-text {
  border-left: 3px solid var(--teal); padding: .25rem 0 .25rem .85rem;
  margin: 0 0 1rem; color: var(--ink); white-space: pre-line;
}
.rating-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.rating-option {
  display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line);
  border-radius: 8px; padding: .45rem .7rem; cursor: pointer;
}
.rating-option input { margin: 0; }
.collection-card { border-top-color: var(--amber); }
.link-code {
  display: block; padding: .6rem .75rem; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; overflow-wrap: anywhere; font-size: .9rem;
}
input:disabled, textarea:disabled, select:disabled { opacity: .65; }

/* Response review and export */
.filter-form {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem;
  align-items: end; margin: 0 0 1rem; padding: 1rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.filter-form .field { margin: 0; }
.filter-form select, .filter-form input {
  width: 100%; min-height: 2.5rem; padding: .45rem .6rem; font: inherit;
  border: 1px solid #9aa7b1; border-radius: 8px; background: #fff; color: var(--ink);
}
.filter-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-warning { background: var(--amber-soft); border-color: #f0d68a; color: var(--navy); }
.meta-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem 1rem;
  margin: 0;
}
.meta-list dt {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.meta-list dd { margin: .1rem 0 0; }
.answer-list { margin: 0; }
.answer-row { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.answer-row:last-child { border-bottom: 0; }
.answer-row dt { font-weight: 600; }
.answer-row dt code { font-weight: 400; color: var(--muted); }
.answer-row dd { margin: .25rem 0 0; }

/* Profiles and verification */
.pill-success { background: var(--success-bg); border-color: #9bd0c4; }
.pill-danger { background: var(--error-bg); border-color: #e8a1ae; color: #6d0016; }
.notice {
  margin: 1rem 0; padding: 1rem 1.1rem; border-radius: var(--radius);
  background: var(--info-bg); border: 1px solid #b7dde2;
}
.notice h2 { margin-top: 0; font-size: 1.05rem; }
.checklist { margin: .4rem 0 0; padding-left: 1.2rem; }
.checklist li { margin: .2rem 0; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.tab {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--navy);
  background: #fff; text-decoration: none; font-size: .92rem;
}
.tab-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab-count {
  display: inline-block; min-width: 1.4rem; padding: 0 .35rem; border-radius: 999px;
  background: var(--bg); color: var(--navy); font-size: .78rem; text-align: center;
}
.tab-active .tab-count { background: #fff; }
.document-list { margin: 0; padding: 0; list-style: none; }
.document-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.document-list li:last-child { border-bottom: 0; }
.document-list .hint { display: block; margin: .15rem 0 0; }
.meta-list dd { overflow-wrap: anywhere; }

/* Enumerator jobs */
.pill-paid { background: #e6f4ec; border-color: #9bd0c4; color: #14532d; }
.job-list { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.job-card { border-top-color: var(--teal); }
.job-pay { margin: .25rem 0 .75rem; font-weight: 700; color: var(--navy); }
.job-card .meta-list { margin: 0 0 .9rem; }
.plain-list { margin: 0; padding-left: 1.1rem; }
.plain-list li { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.plain-list .hint { display: block; }
.gps-card { border-top-color: var(--teal); }
.gps-card .item-actions { margin-top: .5rem; }

@media (min-width: 720px) {
  .job-list { grid-template-columns: repeat(2, 1fr); }
}

/* Flash messages: category flashes fade out through app/static/js/ui.js */
.flash { transition: opacity .4s ease, transform .4s ease; }
.flash-hiding { opacity: 0; transform: translateY(-6px); }

/* Landing page
   A field console rather than a stock hero: route, sample response and escrow
   shown together so the product is visible before the first scroll. */
.landing-page main { padding: 0; }
.container.landing-shell { max-width: none; padding: 0; }
.landing-wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

.landing-hero {
  position: relative;
  overflow: hidden;
  color: #f3f8fa;
  background:
    radial-gradient(90% 110% at 88% 8%, #1b4a67 0%, rgba(27, 74, 103, 0) 48%),
    radial-gradient(70% 90% at 8% 95%, #0d4050 0%, rgba(13, 64, 80, 0) 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-bottom: 1px solid #0a1c2c;
}
.landing-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--amber) 0 22px,
    var(--teal) 22px 44px,
    var(--navy-dark) 44px 66px
  );
  opacity: .92;
}
.hero-contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(231, 242, 247, .10);
  pointer-events: none;
}
.hero-contours path { fill: none; stroke: currentColor; stroke-width: 1.2; }

.landing-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  padding-top: 2.75rem;
  padding-bottom: 4rem;
}
.landing-hero-copy { max-width: 38rem; }
.landing-kicker,
.section-kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 .9rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
}
.kicker-rule { width: 2.2rem; height: 2px; background: var(--amber); flex: none; }
.landing-hero h1 {
  margin: 0 0 1.15rem;
  max-width: 22ch;
  font-size: clamp(2.1rem, 8vw, 3.35rem);
  line-height: 1;
  letter-spacing: -.035em;
  color: #fff;
}
.landing-lead {
  max-width: 35rem;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #d5e3eb;
}
.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.6rem;
}
.btn-large { min-height: 3rem; padding: .7rem 1.35rem; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }
.landing-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.35rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .88rem;
  color: #c4d5e0;
}
.landing-trust li { position: relative; padding-left: .9rem; }
.landing-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5rem;
  width: .34rem;
  height: .34rem;
  background: var(--amber);
}

.landing-hero-copy > * {
  animation: landing-rise .75s cubic-bezier(.2, .7, .2, 1) both;
}
.landing-hero-copy > :nth-child(1) { animation-delay: .04s; }
.landing-hero-copy > :nth-child(2) { animation-delay: .12s; }
.landing-hero-copy > :nth-child(3) { animation-delay: .2s; }
.landing-hero-copy > :nth-child(4) { animation-delay: .28s; }
.landing-hero-copy > :nth-child(5) { animation-delay: .36s; }
.field-console { animation: landing-rise .9s .24s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes landing-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero field console */
.field-console {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: .5rem;
}
.console-map {
  position: relative;
  height: 14rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
}
.route-map { display: block; width: 100%; height: 100%; }
.route-grid { fill: none; stroke: rgba(255, 255, 255, .10); stroke-width: 1; }
.route-line {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  animation: route-march 6s linear infinite;
}
.route-node { fill: var(--teal); stroke: #fff; stroke-width: 2; }
.route-halo {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: halo-pulse 3.2s ease-out infinite;
}
@keyframes route-march { to { stroke-dashoffset: -64; } }
@keyframes halo-pulse {
  0% { transform: scale(.55); opacity: .85; }
  75%, 100% { transform: scale(1.7); opacity: 0; }
}
.map-label {
  position: absolute;
  top: .95rem;
  left: 1rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #dbe8ef;
}
.map-foot {
  position: absolute;
  right: 1rem;
  bottom: .8rem;
  left: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .72rem;
  color: #b6c8d5;
}
.console-card {
  position: relative;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 18px 40px rgba(3, 15, 24, .28);
}
.response-card { background: #fff; color: var(--ink); }
.escrow-card { background: var(--amber); color: var(--navy); }
.response-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.console-label {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.review-stamp {
  display: inline-block;
  padding: .12rem .4rem;
  border: 1.5px solid var(--teal);
  border-radius: 3px;
  color: var(--teal);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: rotate(3deg);
}
.response-question { margin: .7rem 0 .8rem; font-weight: 700; color: var(--navy); }
.answer-bar {
  display: grid;
  grid-template-columns: 4.9rem minmax(0, 1fr) 2.2rem;
  align-items: center;
  gap: .5rem;
  margin-bottom: .42rem;
  font-size: .75rem;
}
.answer-name { color: var(--muted); }
.answer-track { height: .42rem; overflow: hidden; border-radius: 999px; background: #e8eef1; }
.answer-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  animation: bar-grow 1.1s ease-out both;
}
.fill-a { width: 62%; background: var(--teal); }
.fill-b { width: 27%; background: var(--navy); animation-delay: .12s; }
.fill-c { width: 11%; background: var(--amber); animation-delay: .24s; }
.answer-value { color: var(--navy); font-weight: 700; text-align: right; }
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.response-meta { margin: .75rem 0 0; font-size: .7rem; line-height: 1.45; color: var(--muted); }
.escrow-amount { margin: .25rem 0 .55rem; font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.escrow-track {
  display: block;
  height: .4rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 48, 74, .2);
}
.escrow-fill {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: var(--navy);
  transform-origin: left center;
  animation: bar-grow 1.3s .35s ease-out both;
}
.escrow-meta { margin: .55rem 0 0; font-size: .7rem; line-height: 1.4; color: #294355; }

/* Landing sections */
.landing-section { padding: 3.25rem 0; }
.landing-section-tint {
  background: linear-gradient(180deg, #eef5f7 0%, var(--bg) 70%);
  border-top: 1px solid #dbe5ea;
  border-bottom: 1px solid #dbe5ea;
}
.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-kicker { color: var(--teal); }
.section-kicker-light { color: var(--amber); }
.landing-section h2,
.landing-cta h2 {
  margin: 0 0 .75rem;
  color: var(--navy);
  font-size: clamp(1.75rem, 4.5vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.section-lead { max-width: 42rem; margin: 0; color: var(--muted); font-size: 1.02rem; }

/* How it works */
.steps { display: grid; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding-top: 1.15rem; border-top: 2px solid var(--line); }
.step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 2.75rem;
  height: 2px;
  background: var(--amber);
}
.step-number {
  display: block;
  margin-bottom: .55rem;
  color: var(--teal);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.step h3 { margin: 0 0 .45rem; color: var(--navy); font-size: 1.12rem; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }

/* Audience panels */
.audience-grid { display: grid; gap: 1.25rem; }
.audience-panel {
  position: relative;
  overflow: hidden;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform .35s ease, box-shadow .35s ease;
}
.audience-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--teal);
}
.audience-enumerator::before { background: var(--amber); }
.audience-panel:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(18, 48, 74, .10); }
.audience-watermark {
  position: absolute;
  right: -1.5rem;
  bottom: -1.2rem;
  width: 11rem;
  max-width: 45%;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  opacity: .08;
  pointer-events: none;
}
.audience-kicker {
  position: relative;
  margin: 0 0 .55rem;
  color: var(--teal);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.audience-enumerator .audience-kicker { color: #9a6b00; }
.audience-panel h2 { position: relative; margin: 0 0 .9rem; font-size: 1.45rem; line-height: 1.2; max-width: 20ch; }
.audience-list {
  position: relative;
  display: grid;
  gap: .55rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}
.audience-list li { position: relative; padding-left: 1rem; color: var(--muted); font-size: .95rem; }
.audience-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52rem;
  width: .38rem;
  height: .38rem;
  border: 1.5px solid var(--teal);
}
.audience-enumerator .audience-list li::before { border-color: #b17c00; }
.text-link {
  position: relative;
  display: inline-block;
  padding-bottom: .12rem;
  border-bottom: 2px solid var(--amber);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover { color: var(--teal); border-bottom-color: var(--teal); }

/* Escrow and ledger */
.trust-panel {
  position: relative;
  display: grid;
  gap: 1.8rem;
  overflow: hidden;
  padding: 1.9rem;
  border-radius: 20px;
  background: linear-gradient(140deg, var(--navy) 0%, #0a2639 100%);
  color: #e4eef4;
}
.trust-panel::after {
  content: "";
  position: absolute;
  top: -6rem;
  right: -5rem;
  width: 16rem;
  height: 16rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow:
    0 0 0 2.5rem rgba(255, 255, 255, .025),
    0 0 0 5rem rgba(255, 255, 255, .015);
  pointer-events: none;
}
.trust-copy { position: relative; z-index: 1; }
.trust-panel h2 { color: #fff; }
.trust-copy p:last-child { margin: 0; color: #c6d8e3; font-size: .98rem; }
.ledger-flow {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ledger-step { padding-top: .7rem; border-top: 2px solid rgba(255, 255, 255, .22); }
.ledger-step span {
  display: block;
  color: var(--amber);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ledger-step strong { display: block; margin: .2rem 0 .25rem; color: #fff; font-size: 1.05rem; }
.ledger-step small { display: block; color: #b8ccd9; font-size: .8rem; line-height: 1.45; }

/* FAQ */
.faq-grid { display: grid; gap: 1.75rem; }
.faq-intro { max-width: 26rem; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 1rem 2rem 1rem 0;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  top: .85rem;
  right: .15rem;
  color: var(--teal);
  font-size: 1.25rem;
  font-weight: 600;
}
.faq-list details[open] summary::after { content: "-"; }
.faq-list details p { max-width: 40rem; margin: 0 0 1rem; color: var(--muted); font-size: .95rem; }

/* Closing call to action */
.landing-cta {
  position: relative;
  overflow: hidden;
  padding: 3.25rem 0;
  background: var(--amber);
  color: var(--navy);
}
.landing-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(18, 48, 74, .055) 0 2px,
    transparent 2px 14px
  );
  pointer-events: none;
}
.landing-cta::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  background: repeating-linear-gradient(
    90deg,
    var(--navy) 0 22px,
    var(--teal) 22px 44px,
    var(--amber) 44px 66px
  );
}
.landing-cta .landing-wrap { position: relative; z-index: 1; }
.landing-cta h2 { max-width: 22ch; }
.landing-cta .section-kicker { margin: 0 0 .9rem; color: var(--navy); }
.landing-cta p { max-width: 34rem; margin: 0; color: #2b4458; }
.landing-cta .btn-secondary { background: transparent; border-color: var(--navy); color: var(--navy); }
.landing-cta .btn-secondary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Reveal on scroll. landing.js adds reveal-ready only when motion is allowed,
   so the content stays visible without JavaScript. */
.reveal-ready {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-ready.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 48rem) {
  .landing-hero-grid { padding-top: 4rem; padding-bottom: 5rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .landing-section { padding: 4rem 0; }
  .ledger-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: .75fr 1.25fr; gap: 2.5rem; }
}

@media (min-width: 60rem) {
  .landing-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: 2.5rem;
    padding-top: 5rem;
    padding-bottom: 6rem;
  }
  .field-console { display: block; min-height: 31rem; }
  .console-map { position: absolute; top: 0; right: 0; left: 0; height: 18rem; }
  .response-card {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 72%;
    transform: rotate(-2deg);
    animation: float-left 7s ease-in-out infinite;
  }
  .escrow-card {
    position: absolute;
    top: 13.2rem;
    right: 0;
    width: 48%;
    transform: rotate(2deg);
    animation: float-right 7s .9s ease-in-out infinite;
  }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience-panel { padding: 2.1rem; }
  .audience-panel h2 { font-size: 1.65rem; }
  .trust-panel { grid-template-columns: 1.05fr 1fr; align-items: start; gap: 2.5rem; padding: 2.5rem; }
  .landing-cta { padding: 4rem 0; }
}

@keyframes float-left {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-8px); }
}
@keyframes float-right {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero-copy > *,
  .field-console,
  .console-card,
  .route-line,
  .route-halo,
  .answer-fill,
  .escrow-fill {
    animation: none !important;
  }
  .reveal-ready { opacity: 1; transform: none; transition: none; }
  .audience-panel { transition: none; }
  .flash { transition: none; }
}
