/* WashPass marketing site — hand-written, zero build, zero JS.
   Palette + type choices explained in docs/superpowers/specs/2026-07-13-washpass-marketing-site-design.md */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
input { font: inherit; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0f172a;
  --ink-soft: #45564f;
  --ink-faint: #6b7c76;
  --paper: #ffffff;
  --paper-tint: #f5f9f8;
  --accent: #0d7d72;
  --accent-deep: #0a5c54;
  --accent-tint: #e6f5f3;
  --line: #dbe6e4;
  --line-soft: #eaf1ef;
  --focus: #0a5c54;

  --font-display: ui-serif, "Iowan Old Style", "Apple Garamond", Baskerville,
    "Times New Roman", "Droid Serif", Times, "Source Serif Pro", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --measure: 68ch;
  --wrap: 1120px;

  /* Phone-frame bezel: dark in both themes, like real device hardware —
     lightened a step in dark mode below so it stays visible against a
     near-black page instead of disappearing into it. */
  --phone-bezel: #142523;
  --phone-bezel-edge: #26403c;
  --phone-shadow: 0 1.75rem 3.5rem -1.25rem rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(15, 23, 42, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7edeb;
    --ink-soft: #aebdb8;
    --ink-faint: #839994;
    --paper: #0a1413;
    --paper-tint: #0f1c1a;
    --accent: #34d0bd;
    --accent-deep: #6ee9d9;
    --accent-tint: #12302c;
    --line: #1d3532;
    --line-soft: #162927;
    --focus: #6ee9d9;

    /* Lighter bezel + a faint teal ring so the phone frame still reads as
       separate hardware against the dark page instead of blending into it. */
    --phone-bezel: #1c3532;
    --phone-bezel-edge: #3d615b;
    --phone-shadow: 0 1.75rem 3.5rem -1.25rem rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(110, 233, 217, 0.18);
  }
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }

p { color: var(--ink-soft); }
p + p { margin-top: 1em; }

a.link {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.15em;
}
a.link:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  transition: top 0.15s ease;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.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;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.band { padding-block: clamp(2.5rem, 4vw, 4.5rem); }
.band--tint { background: var(--paper-tint); }
.band--border-top { border-top: 1px solid var(--line); }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { margin-top: 0.9em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.5em; }
.prose strong { color: var(--ink); }

/* ---------- Header / nav (CSS-only mobile toggle) ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wordmark span { color: var(--accent); }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-label:hover { background: var(--paper-tint); }
.nav-toggle-label svg { width: 1.4rem; height: 1.4rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #ffffff;
}
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

@media (max-width: 720px) {
  .nav-toggle-label { display: inline-flex; }
  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 4.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }
  .site-nav a, .site-nav .btn {
    padding: 0.9rem 1.5rem;
    border-top: 1px solid var(--line-soft);
    border-radius: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .site-header { position: relative; }
  .nav-toggle:checked ~ .site-nav { max-height: 20rem; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(2.75rem, 7vw, 6rem);
}
.hero--with-art { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 860px) {
  .hero--with-art { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; }
}
.hero__eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-tint);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero__lede {
  font-size: 1.2rem;
  max-width: 46ch;
  margin-top: 1.1rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.85rem;
}

/* Hero product art: phone mockup on a soft teal glow, CSS only */
.hero__art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  min-height: 18rem;
  margin: 0;
}
.hero__art::before {
  content: "";
  position: absolute;
  inset: -6% 8%;
  background: radial-gradient(closest-side, var(--accent-tint) 0%, transparent 70%);
  z-index: 0;
}
.hero__art .phone { z-index: 1; }
.hero__art-caption {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 26ch;
}
@media (max-width: 859px) {
  .hero__art { min-height: 0; margin-top: 0.5rem; }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.35em; }
.step p { font-size: 0.98rem; }

/* ---------- Phone frame (real product screenshots, CSS only) ---------- */
.phone {
  --phone-w: 240px;
  width: var(--phone-w);
  max-width: 100%;
  flex-shrink: 0;
  aspect-ratio: 700 / 1571;
  position: relative;
  border-radius: calc(var(--phone-w) * 0.15);
  background: linear-gradient(155deg, var(--phone-bezel-edge), var(--phone-bezel) 55%);
  padding: calc(var(--phone-w) * 0.045) calc(var(--phone-w) * 0.032);
  box-shadow: var(--phone-shadow);
}
.phone::before {
  content: "";
  position: absolute;
  top: calc(var(--phone-w) * 0.02);
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--phone-w) * 0.028);
  height: calc(var(--phone-w) * 0.028);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  z-index: 2;
}
.phone::after {
  content: "";
  position: absolute;
  right: calc(var(--phone-w) * -0.016);
  top: 22%;
  width: calc(var(--phone-w) * 0.018);
  height: 14%;
  background: var(--phone-bezel-edge);
  border-radius: 3px;
}
.phone__screen {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--phone-w) * 0.11);
  overflow: hidden;
  background: var(--paper);
}
.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.phone--tilt-left { transform: rotate(-4deg); }
.phone--tilt-right { transform: rotate(3deg); }
@media (max-width: 640px) {
  .phone--tilt-left, .phone--tilt-right { transform: none; }
}

/* ---------- Screenshot gallery (with honest captions) ---------- */
.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem 2rem;
  margin-top: 2.75rem;
}
.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 15rem;
  max-width: 100%;
  text-align: center;
}
.shot .phone { margin-bottom: 1.15rem; }
.shot__caption {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 24ch;
}
.shot__caption strong { color: var(--ink); }

/* Small accent rule used to punctuate a few section heads */
.accent-rule {
  display: block;
  width: 3rem;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  margin-bottom: 1.15rem;
}
.text-center .accent-rule { margin-inline: auto; }

/* Soft teal wash for a couple of high-emphasis bands */
.band--accent {
  background: linear-gradient(180deg, var(--paper) 0%, var(--accent-tint) 100%);
}

/* Paired image + text proof (Operators page) */
.proof {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 760px) {
  .proof { grid-template-columns: auto 1fr; }
}
.proof .phone { margin-inline: auto; }

/* ---------- Fact / evidence cards (Operators page) ---------- */
.facts {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.fact {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.fact__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.6rem;
}
.fact p { font-size: 0.98rem; }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-tint);
  padding: 1.1rem 1.4rem;
  border-radius: 0 10px 10px 0;
}
.callout p { color: var(--ink); font-size: 0.98rem; }
.callout p:first-child { margin-top: 0; }

/* ---------- App badges (honest, plain, no fake store artwork) ---------- */
.app-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.app-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.app-badge strong { color: var(--ink); font-size: 0.95rem; }

/* ---------- Draft banner (Terms / Privacy) ---------- */
.draft-banner {
  background: var(--accent-tint);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
  padding: 0.7rem 0;
  text-align: center;
}
.draft-banner strong { color: var(--accent-deep); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-tint);
  padding-block: 2.5rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-nav a { font-size: 0.9rem; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--accent-deep); }
.footer-legal {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ---------- Section heading helper ---------- */
.section-head { max-width: 56ch; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: 0.5rem; }

/* ---------- Utility ---------- */
.text-center { text-align: center; margin-inline: auto; }
.mt-lg { margin-top: 1.5rem; }
