/* ==========================================================================
   Outodo landing — design tokens
   Source of truth: docs/design_handoff_outodo_landing/README.md
   ========================================================================== */

:root {
  --accent: #1E40AF;
  --accent-hover: #16307F;
  --accent-soft: rgba(30, 64, 175, 0.1);
  --accent-line: rgba(30, 64, 175, 0.32);
  --accent-ring: rgba(30, 64, 175, 0.16);

  --ink: #101318;
  --paper: #FFFFFF;
  --terrain: #E6E8E4;
  --location: #3B6DF0;
  --danger: #C4452F;

  --hairline: rgba(16, 19, 24, 0.08);
  --border: rgba(16, 19, 24, 0.12);

  --ink-28: rgba(16, 19, 24, 0.28);
  --ink-38: rgba(16, 19, 24, 0.38);
  --ink-42: rgba(16, 19, 24, 0.42);
  --ink-45: rgba(16, 19, 24, 0.45);
  --ink-50: rgba(16, 19, 24, 0.5);
  --ink-55: rgba(16, 19, 24, 0.55);
  --ink-60: rgba(16, 19, 24, 0.6);
  --ink-62: rgba(16, 19, 24, 0.62);
  --ink-72: rgba(16, 19, 24, 0.72);

  --curve: cubic-bezier(0.32, 0.72, 0, 1);
  --shell: 1120px;
  --measure: 680px;
  --pad-x: clamp(16px, 5vw, 24px);
  --pad-b: clamp(56px, 12vw, 96px);

  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

input, button { font-family: inherit; }

h1, h2, h3, p, figure, blockquote { margin: 0; }

svg { display: block; flex: none; }

/* Icon containers carry their own line box; grid centring keeps glyphs true. */
.icon { display: grid; place-items: center; line-height: 0; }

/* ==========================================================================
   Shared primitives
   ========================================================================== */

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 60;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
}
.skip:focus { left: 16px; color: var(--paper); }

.section {
  display: flex;
  justify-content: center;
  padding: 0 var(--pad-x) var(--pad-b);
  scroll-margin-top: 96px;
}

.shell { width: 100%; max-width: var(--shell); }

.h2 {
  font-size: clamp(26px, 5.5vw, 36px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.card {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.lift {
  transition: transform 700ms var(--curve), background 700ms var(--curve),
    border-color 700ms var(--curve), box-shadow 700ms var(--curve);
}
.lift:hover { transform: translateY(-1px); }
.lift:active { transform: scale(0.98); }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 24px 24px 0;
  pointer-events: none;
}

.nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  max-width: 100%;
  flex-wrap: wrap;
  padding: 8px 8px 8px 20px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav__links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }

.nav__link {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-60);
  white-space: nowrap;
}
.nav__link:hover { color: var(--ink); }

.nav__cta {
  padding: 9px 16px;
  border: none;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.nav__cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Below this width the pill cannot hold logo + two anchors + CTA on one row, and
   a three-row sticky bar eats the hero. Paid traffic scrolls; it does not use a
   nav. Keep the mark and the CTA, drop the anchors. */
@media (max-width: 560px) {
  .nav { padding: 16px 16px 0; }
  .nav__pill { gap: 12px; padding: 8px 8px 8px 16px; }
  .nav__link { display: none; }
}

/* ==========================================================================
   Logo
   ========================================================================== */

.logo { display: inline-flex; align-items: center; gap: 0; vertical-align: middle; }
.logo__word {
  font-family: Archivo, Manrope, sans-serif;
  font-weight: 800;
  line-height: 1;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(32px, 8vw, 64px) var(--pad-x) var(--pad-b);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
}
.eyebrow__text { letter-spacing: 0.06em; }

.hero__title {
  margin-bottom: 24px;
  max-width: var(--measure);
  font-size: clamp(34px, 8vw, 60px);
  /* line-height must stay >= 1.1 with padding-bottom — clip-to-text crops descenders. */
  line-height: 1.1;
  padding-bottom: 0.08em;
  font-weight: 700;
  letter-spacing: -0.035em;
  white-space: pre-line;
  text-wrap: balance;
  background: linear-gradient(90deg, #000000 0%, #666666 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin-bottom: 32px;
  max-width: var(--measure);
  font-size: clamp(16px, 4vw, 18px);
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink-62);
  text-wrap: pretty;
}

/* ==========================================================================
   Signup form
   ========================================================================== */

.signup { width: 100%; max-width: 440px; }

.signup__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}

.signup__input {
  flex: 1 1 200px;
  min-width: 0;
  height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  outline: none;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 700ms var(--curve), box-shadow 700ms var(--curve);
}
.signup__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
/* Must sit after :focus — a failed submit returns focus to the field, and the
   focus ring would otherwise repaint the error border blue. */
.signup[data-invalid="true"] .signup__input,
.signup[data-invalid="true"] .signup__input:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(196, 69, 47, 0.16);
}

.signup__submit {
  flex: 1 1 140px;
  min-height: 44px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--paper);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.signup__submit:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.signup__submit[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.signup__error {
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--danger);
  text-align: left;
}

.signup__proof {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-45);
}

/* Honeypot — off screen, never focusable, invisible to assistive tech. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.done {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
.done__text { font-size: 16px; line-height: 24px; font-weight: 600; }
.done__share {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.done--stacked {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: none;
  padding: 0;
}
.done--stacked .done__text { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.5px; }
.done--stacked .done__share { margin-left: 0; font-size: 16px; line-height: 24px; }

[hidden] { display: none !important; }

/* ==========================================================================
   Product shot
   ========================================================================== */

.shot__frame {
  width: 100%;
  max-width: var(--shell);
  margin-top: 64px;
  padding: 8px;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: var(--paper);
}

.shot {
  position: relative;
  height: clamp(360px, 64vw, 520px);
  border-radius: 16px;
  overflow: hidden;
  background: var(--terrain);
}

/* Keep every rule here at one class of specificity, or the roads paint over the
   parks and the water. */
.shot > i { position: absolute; }

.shot__rd-h1 { left: -5%; top: 22%; width: 110%; height: 16px; background: var(--paper); }
.shot__rd-h2 { left: -5%; top: 64%; width: 110%; height: 12px; background: var(--paper); }
.shot__rd-v1 { left: 22%; top: -5%; width: 14px; height: 110%; background: var(--paper); }
.shot__rd-v2 { left: 63%; top: -5%; width: 10px; height: 110%; background: var(--paper); }

.shot__park { left: 5%; top: 4%; width: 14%; height: 14%; background: #CFE2C6; border-radius: 8px; }
.shot__blk1 { left: 34%; top: 30%; width: 22%; height: 24%; background: #ECEDEA; border-radius: 6px; }
.shot__blk2 { left: 70%; top: 32%; width: 22%; height: 20%; background: #ECEDEA; border-radius: 6px; }
.shot__water { left: -8%; bottom: -10%; width: 130%; height: 20%; background: #BCD6E2; transform: rotate(-4deg); }

.shot__street {
  position: absolute;
  left: 26%;
  top: 22.8%;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: rgba(16, 19, 24, 0.32);
}

.shot__me { position: absolute; left: 63.6%; top: 43%; width: 20px; height: 20px; }
.shot__me-pulse {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--location);
  animation: opulse 2600ms var(--curve) infinite;
}
.shot__me-dot {
  position: absolute;
  inset: 4px;
  border-radius: 9999px;
  background: var(--location);
  border: 2px solid var(--paper);
}
@keyframes opulse {
  0% { transform: scale(1); opacity: 0.5; }
  70%, 100% { transform: scale(2.7); opacity: 0; }
}

.shot__pin { position: absolute; left: 56%; top: 34%; }
.shot__pin-ring {
  position: absolute;
  left: 24px;
  top: 24px;
  transform: translate(-50%, -50%);
  width: 132px;
  height: 132px;
  border-radius: 9999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.shot__pin-face {
  position: relative;
  display: grid;
  place-items: center;
  line-height: 0;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: var(--paper);
  box-shadow: 0 0 0 2px var(--accent), 0 4px 16px rgba(16, 19, 24, 0.16);
}
.shot__pin-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  border-radius: 9999px;
  border: 2px solid var(--paper);
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.shot__poi {
  position: absolute;
  left: 14%;
  top: 78%;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: var(--paper);
  box-shadow: 0 2px 6px rgba(16, 19, 24, 0.28);
}

.shot__circle {
  position: absolute;
  left: 16px;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.shot__circle-badge {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: var(--accent);
  display: grid;
  place-items: center;
  line-height: 0;
}
.shot__circle-name { font-size: 14px; line-height: 20px; font-weight: 600; }
.shot__faces { display: flex; }
.shot__faces span {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  border: 2px solid var(--paper);
}
.shot__faces span + span { margin-left: -6px; }

.shot__notif {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(16, 19, 24, 0.14);
}
.shot__notif-app {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  display: grid;
  place-items: center;
  line-height: 0;
}
.shot__notif-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-42);
}
.shot__notif-title {
  display: block;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.shot__notif-body {
  display: block;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-55);
}

/* ==========================================================================
   Mechanism
   ========================================================================== */

.mechanism {
  width: 100%;
  max-width: var(--shell);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: clamp(28px, 7vw, 48px) clamp(20px, 5vw, 32px);
}
.mechanism p {
  margin: 0 auto;
  max-width: var(--measure);
  text-align: center;
  font-size: clamp(19px, 4.4vw, 24px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

/* ==========================================================================
   Use-case chips
   ========================================================================== */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
}
.chip span {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--ink-72);
}

/* ==========================================================================
   Benefits + steps
   ========================================================================== */

.tile__title {
  margin: 16px 0 8px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.tile__body {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--ink-60);
  text-wrap: pretty;
}

.step__n {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.step__title { margin-top: 12px; }

/* ==========================================================================
   Tagline
   ========================================================================== */

.tagline {
  max-width: var(--measure);
  text-align: center;
  font-size: clamp(28px, 7vw, 48px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.033em;
  text-wrap: balance;
}
.tagline span {
  color: var(--ink-28);
  transition: color 800ms var(--curve);
}
.tagline span[data-lit] { color: var(--ink); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { display: flex; flex-direction: column; gap: 8px; }

.faq__item { border: 1px solid var(--hairline); border-radius: 12px; }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--ink);
  transition: background 700ms var(--curve);
}
.faq__q:hover { background: rgba(16, 19, 24, 0.03); }
/* Inset ring — an outset one overlaps the answer's first line. */
.faq__q:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.faq__q span { flex: 1; }
.faq__q .icon { color: rgba(16, 19, 24, 0.4); }
.faq__q .faq__minus { display: none; }
.faq__q[aria-expanded="true"] .faq__plus { display: none; }
.faq__q[aria-expanded="true"] .faq__minus { display: block; }

.faq__a {
  padding: 4px 12px 14px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--ink-62);
  text-wrap: pretty;
}

/* ==========================================================================
   Close card
   ========================================================================== */

.close {
  width: 100%;
  max-width: var(--shell);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: clamp(28px, 7vw, 48px) clamp(20px, 5vw, 32px);
}
.close h2 { margin-bottom: 16px; max-width: var(--measure); }
.close p {
  margin-bottom: 32px;
  max-width: var(--measure);
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: var(--ink-62);
  text-wrap: pretty;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--hairline);
  padding: 32px 24px 48px;
}
.footer__inner {
  width: 100%;
  max-width: var(--shell);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.footer__links { display: flex; gap: 16px; margin-left: auto; }
.footer__links a {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-55);
}
.footer__links a:hover { color: var(--ink); }
.footer__note {
  width: 100%;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-38);
}

/* ==========================================================================
   Funnel panel (?kpi=1 only)
   ========================================================================== */

.kpi {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.kpi__panel {
  width: min(320px, calc(100vw - 48px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #181818;
}
.kpi__head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.kpi__head span { font-size: 14px; line-height: 20px; font-weight: 600; color: #FFF; }
.kpi__head .icon { color: rgba(255, 255, 255, 0.6); }
.kpi__reset {
  margin-left: auto;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  cursor: pointer;
}
.kpi__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.kpi__cell { padding: 8px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; }
.kpi__val {
  display: block;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  color: #FFF;
  letter-spacing: -0.5px;
}
.kpi__lbl {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.45);
}
.kpi__log { max-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.kpi__log div { display: flex; gap: 8px; align-items: baseline; }
.kpi__at, .kpi__meta { font-family: var(--mono); font-size: 12px; line-height: 16px; }
.kpi__at { color: rgba(255, 255, 255, 0.35); }
.kpi__meta { margin-left: auto; color: rgba(255, 255, 255, 0.4); }
.kpi__name { font-size: 12px; line-height: 16px; font-weight: 600; color: rgba(255, 255, 255, 0.8); }
.kpi__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 800ms var(--curve), transform 800ms var(--curve);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* No JS: never leave the page invisible. */
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .tagline span { color: var(--ink); }
}
