/* Mandate · canvassing software for local campaigns.
   Brand: Harry's Nov 13 kit. Navy #0E2236, gold #B39849 (Gold-lo #8A7431 for gold
   on white), Archivo with Archivo Narrow 850 caps titles in two tones.
   Every product picture is a real Mandate screenshot (sample campaign, invented
   voters) inside a real-proportion device. Devices sit flat; nothing moves on
   scroll except the numbers counting up once. */

:root {
  --navy: #0E2236; --navy2: #1D3A57; --gold: #B39849; --gold-hi: #D6BD72; --gold-lo: #8A7431;
  --ink: #0B1A2A; --ink2: #33475C; --muted: #5D6F82; --line: #D9E0E8; --soft: #F3F6F9; --paper: #FFFFFF;
  --no: #C8494D;
  --ease: cubic-bezier(.22, .68, .18, 1);
  --pad: clamp(20px, 5vw, 64px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink2);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- type ---------- */
.display {
  font-family: "Archivo", "Arial Narrow", Arial, sans-serif; font-stretch: 70%; font-weight: 850;
  text-transform: uppercase; line-height: .88; letter-spacing: 0; color: var(--navy);
  font-size: clamp(50px, 6.8vw, 104px);
}
.display .line { display: block; padding-bottom: .04em; }
.display .gold { color: var(--gold-lo); }
.h2 { font-family: "Archivo", Arial, sans-serif; font-weight: 750; font-stretch: 88%; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.018em; color: var(--navy); max-width: 16em; text-wrap: balance; }
.field .h2 { color: #fff; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--gold-lo); margin-bottom: 22px; }
.kicker--gold { color: var(--gold-hi); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px;
  border-radius: 999px; font: 650 16px/1 "Archivo", sans-serif; text-decoration: none; border: 0; cursor: pointer;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy2); }
.btn-line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px #C5CFDA; }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { height: 58px; padding: 0 32px; font-size: 17px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px var(--pad); background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); transition: box-shadow .3s var(--ease); }
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(217, 224, 232, .8); }
.nav-in { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.nav-mark img { height: 23px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 15px; font-weight: 550; color: var(--ink2); text-decoration: none; }
.nav-links a:hover { color: var(--navy); }
.nav .btn { margin-left: 8px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- devices ---------- */
/* iPhone 15 Pro proportions. The screen is inset by the bezel and its corner radius is the
   frame's radius minus the bezel, so the two curves stay concentric at every size. */
.phone {
  position: relative; container-type: inline-size; aspect-ratio: 1 / 2.09; border-radius: 17% / 8.13%;
  background: linear-gradient(160deg, #343A43 0%, #11151B 22%, #0B0E13 70%, #22272E 100%);
  box-shadow:
    inset 0 0 0 1.2px #5D6570,
    inset 0 0 0 2.6px #0B0E13,
    0 1px 2px rgba(11, 15, 20, .18),
    0 30px 60px -28px rgba(14, 34, 54, .45),
    0 70px 100px -60px rgba(14, 34, 54, .35);
}
.phone::before, .phone::after { content: ""; position: absolute; width: 1.1%; border-radius: 2px; background: #3A4049; }
.phone::before { left: -.8%; top: 18%; height: 4%; box-shadow: 0 6cqw 0 #3A4049, 0 12.4cqw 0 #3A4049; }
.phone::after { right: -.8%; top: 25%; height: 8.6%; }
.screen { position: absolute; inset: 3.1cqw; border-radius: 13.9cqw; overflow: hidden; background: #F4F3EF; container-type: inline-size; }
.screen > img { width: 100%; height: 100%; object-fit: cover; }
.chrome { position: absolute; inset: 0; font-size: calc(100cqw / 24.375); pointer-events: none; }
.chrome::before { /* iOS scroll-edge softening under the status bar */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3.6em;
  background: linear-gradient(180deg, rgba(246, 245, 241, .92) 0%, rgba(246, 245, 241, .7) 55%, rgba(246, 245, 241, 0) 100%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.sbar { position: absolute; left: 0; right: 0; top: 0; height: 3.1em; display: flex; align-items: center; justify-content: space-between; padding: .2em 1.85em 0 2.15em; color: #000; font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; }
.sbar b { font-size: 1.06em; font-weight: 600; letter-spacing: -.01em; }
.sbar span { display: flex; align-items: center; gap: .3em; }
.sbar svg { display: block; height: .72em; width: auto; fill: currentColor; }
.island { position: absolute; left: 50%; top: .69em; width: 7.75em; height: 2.3em; margin-left: -3.875em; border-radius: 99px; background: #000; }
.homebar { position: absolute; left: 50%; bottom: .5em; width: 8.6em; height: .3em; margin-left: -4.3em; border-radius: 99px; background: rgba(0, 0, 0, .8); }

.window {
  border-radius: 12px; overflow: hidden; background: #F2F4F7;
  box-shadow: 0 0 0 1px rgba(11, 15, 20, .08), 0 30px 60px -30px rgba(14, 34, 54, .35), 0 70px 100px -60px rgba(14, 34, 54, .3);
}
.window-bar { display: flex; gap: 7px; align-items: center; height: 30px; padding: 0 13px; background: #FBFBFC; border-bottom: 1px solid #E6E9EE; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); }
.window-bar i:nth-child(2) { background: #FEBC2E; } .window-bar i:nth-child(3) { background: #28C840; }
.window > img { width: 100%; }
.window--tall { max-width: 470px; margin: 0 auto; }

/* ---------- hero ---------- */
.hero {
  max-width: 1280px; margin: 0 auto; padding: clamp(118px, 15vh, 156px) var(--pad) clamp(64px, 9vw, 120px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center;
}
.hero-title { font-size: clamp(50px, 6.05vw, 92px); }
.hero-title .line { overflow: hidden; white-space: nowrap; }
.lede { margin-top: 28px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink2); max-width: 31em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fine { margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.hero-stage { position: relative; aspect-ratio: 1 / .92; }
.hero-window { position: absolute; left: 0; top: 2%; width: 90%; }
.hero-phone { position: absolute; right: 1%; bottom: 0; width: 34%; }
@media (max-width: 920px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-title { font-size: clamp(50px, 14.2vw, 118px); }
  .hero-stage { margin-top: 8px; aspect-ratio: 1 / .95; }
  .hero-window { width: 92%; }
  .hero-phone { width: 38%; }
}
/* entrance: one beat, under 1.2s, pure CSS so a slow script can never hide the hero */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s var(--ease) var(--d, 0ms) both; }
  .hero-title .rise { display: inline-block; animation-name: rise-line; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise-line { from { transform: translateY(102%); } to { transform: none; } }

/* ---------- how it works ---------- */
.sec-head { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.how { padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 110px); background: var(--soft); }
.step {
  max-width: 1280px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--pad) 0;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center;
}
.step--flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.step--flip .step-copy { order: 2; }
.step-copy h3 { text-wrap: balance; font-size: clamp(30px, 3.1vw, 44px); line-height: 1.04; font-weight: 800; font-stretch: 78%; color: var(--navy); letter-spacing: -.005em; }
.step-copy p { margin-top: 18px; font-size: 18px; max-width: 30em; }
.step-copy .aside { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--muted); }
.step-visual figcaption, .data-visual figcaption { margin-top: 16px; font-size: 13px; color: var(--muted); }
.duo { display: flex; justify-content: center; gap: 7%; padding: 0 6% 4%; }
.duo .phone { width: 40%; }
.duo .phone--b { margin-top: 12%; }
@media (max-width: 860px) {
  .step, .step--flip { grid-template-columns: minmax(0, 1fr); }
  .step--flip .step-copy { order: 0; }
  .duo { padding: 0 2% 4%; gap: 6%; } .duo .phone { width: 44%; }
}

/* ---------- in the field ---------- */
.field { background: radial-gradient(120% 140% at 85% 0%, #1D3A57 0%, #13293F 45%, #0A1B2C 85%); color: #fff; }
.field-in { max-width: 1280px; margin: 0 auto; padding: clamp(90px, 11vw, 150px) var(--pad); }
.field .display { color: #fff; }
.field .display .gold { color: var(--gold-hi); }
.field-lede { margin-top: 26px; max-width: 34em; font-size: clamp(18px, 1.5vw, 20px); color: #C5D0DC; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(48px, 7vw, 90px); border-top: 1px solid rgba(214, 189, 114, .35); }
.stats div { padding: 30px 28px 0 0; }
.stats div + div { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .1); }
.stats dd { font-size: clamp(64px, 8.6vw, 132px); line-height: .9; font-weight: 850; font-stretch: 70%; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.stats dt { margin-top: 14px; font-size: 16px; color: #C5D0DC; max-width: 17em; }
.source { margin-top: 44px; font-size: 13px; color: #8FA3B8; }
@media (max-width: 760px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats div, .stats div + div { padding: 26px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
}

/* ---------- one race ---------- */
.race { padding: clamp(90px, 11vw, 150px) 0; }
.points { max-width: 1280px; margin: clamp(44px, 6vw, 80px) auto 0; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.points div { border-top: 3px solid var(--gold); padding-top: 22px; }
.points h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.05; font-weight: 850; font-stretch: 72%; text-transform: uppercase; color: var(--navy); }
.points p { margin-top: 12px; font-size: 17px; max-width: 24em; }
@media (max-width: 860px) { .points { grid-template-columns: minmax(0, 1fr); gap: 30px; } }

/* ---------- voter data ---------- */
.data { background: var(--paper); }
.data-in { max-width: 1280px; margin: 0 auto; padding: clamp(90px, 11vw, 150px) var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.data .display { color: #fff; font-size: clamp(50px, 6vw, 92px); }
.data .display .gold { color: var(--gold-hi); }
.facts { margin-top: 36px; }
.facts li { position: relative; padding: 16px 0 16px 26px; border-top: 1px solid var(--line); color: var(--ink2); font-size: 17px; }
.facts li::before { content: ""; position: absolute; left: 0; top: 25px; width: 9px; height: 9px; background: var(--gold); }
.data-visual figcaption { color: var(--muted); }
.filter { display: grid; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); align-items: center; background: var(--navy); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: clamp(18px, 3vw, 30px); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .6); }
.filter-h { font-size: 15px; font-weight: 700; color: var(--gold-hi); margin-bottom: 12px; }
.filter-col li { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; color: #C5D0DC; padding: 7px 10px; border-radius: 7px; background: rgba(255, 255, 255, .04); margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; }
.filter-col li.cut { color: #6E8296; }
.filter-col li.cut::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1.5px; background: var(--no); transform-origin: left; }
.filter-col--in li { font-family: "Archivo", sans-serif; font-size: 14px; font-weight: 600; color: #fff; background: rgba(214, 189, 114, .1); box-shadow: inset 2px 0 0 var(--gold); }
.filter-note { margin-top: 14px; font-size: 13px; color: #8FA3B8; }
.filter-arrow { display: grid; place-items: center; }
.filter-arrow span { width: 26px; height: 2px; background: var(--gold); position: relative; }
.filter-arrow span::after { content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border: solid var(--gold); border-width: 2px 2px 0 0; transform: rotate(45deg); }
@media (max-width: 860px) { .data-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .filter { grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); padding: 14px; } .filter-col li { font-size: 10.5px; padding: 6px 7px; } .filter-col--in li { font-size: 12px; } .filter-arrow span { width: 16px; } }

/* ---------- faq ---------- */
.faq { padding: clamp(90px, 11vw, 150px) 0; background: var(--soft); }
.qa { max-width: 1280px; margin: clamp(40px, 5vw, 70px) auto 0; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.qa div { padding: 24px 0 26px; border-top: 1px solid #D3DAE2; }
.qa dt { font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--navy); }
.qa dd { margin-top: 8px; font-size: 16.5px; color: var(--ink2); max-width: 34em; }
@media (max-width: 760px) { .qa { grid-template-columns: minmax(0, 1fr); } }

/* ---------- talk ---------- */
.talk { background: var(--paper); }
.talk-in { max-width: 1280px; margin: 0 auto; padding: clamp(90px, 11vw, 150px) var(--pad); }
.talk-lede { margin-top: 24px; font-size: clamp(18px, 1.5vw, 20px); max-width: 30em; }
.form { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; max-width: 1000px; }
.field-l { display: grid; gap: 8px; font-size: 14px; font-weight: 650; color: var(--ink); }
.field-l em { font-style: normal; font-weight: 450; color: var(--muted); }
.field-l input { height: 58px; border-radius: 14px; border: 1px solid #C9D2DC; background: #fff; padding: 0 18px; font: 17px "Archivo", sans-serif; color: var(--ink); width: 100%; }
.field-l input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(14, 34, 54, .12); }
.field-l input[aria-invalid="true"] { border-color: var(--no); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { grid-column: 1 / -1; min-height: 1.5em; font-size: 15.5px; color: var(--ink2); }
.form-msg.is-ok { color: #2E9466; font-weight: 600; }
.form-msg.is-err { color: var(--no); }
.form button[disabled] { opacity: .6; cursor: progress; }
.talk-alt { margin-top: 10px; font-size: 15px; color: var(--muted); }
.talk-alt a { color: var(--navy); font-weight: 600; }
@media (max-width: 760px) { .form { grid-template-columns: minmax(0, 1fr); } .form .btn { width: 100%; } }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: #C5D0DC; }
.foot-in { max-width: 1280px; margin: 0 auto; padding: 48px var(--pad) 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; font-size: 14.5px; }
.foot img { height: 22px; width: auto; }
.foot p:last-child { margin-left: auto; }
.foot a { color: #fff; text-decoration: none; }
@media (max-width: 760px) { .foot p:last-child { margin-left: 0; } }
@media (max-width: 520px) { .hero .kicker { font-size: 11px; letter-spacing: .11em; } }

/* ---------- the only scroll moment: the voter-file columns get struck through once ---------- */
.motion [data-play]:not(.play) .filter-col li.cut::after { transform: scaleX(0); }
.motion .filter-col li.cut::after { transition: transform .5s var(--ease) calc(.3s + var(--i, 0) * .2s); }
.no-motion *, .no-motion *::before, .no-motion *::after { transition: none !important; animation: none !important; }
