/* Spot website. Minimal: short copy, real app screens in straight rows, the app's colours
   (system blue, target-building orange, near-white). Light only, like the app. */
:root {
  --paper: #fcfcfa;
  --card: #ffffff;
  --ink: #101828;
  --muted: #526071;      /* 6.4:1 on white */
  --blue: #007aff;       /* app accent: large text, marks */
  --link: #0062cc;       /* small links (5.6:1) */
  --orange: #f97316;
  --line: #e4e7ec;
  --shadow: 0 24px 50px -24px rgba(16, 24, 40, .35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 "Outfit", system-ui, -apple-system, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.08; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { left: 8px; z-index: 20; }

/* Header */
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; }
.brand { display: inline-block; width: fit-content; color: var(--ink); text-decoration: none; font-size: 30px; font-weight: 600; letter-spacing: -.04em; }
.brand span { color: var(--blue); }
.site-nav { display: flex; gap: 32px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--link); }
.store { display: inline-flex; flex-direction: column; justify-content: center; padding: 7px 18px; border-radius: 12px;
  background: #0b0d10; color: #fff; text-decoration: none; line-height: 1.1; }
.store small { font-size: 11px; opacity: .85; }
.store strong { font-size: 19px; font-weight: 600; }
.header-store { justify-self: end; }

/* Phone frame */
.phone { border: 8px solid #111; border-radius: 42px; overflow: hidden; background: #111; box-shadow: var(--shadow); }
.phone img { border-radius: 34px; }

/* Hero: headline centred, three screens in a straight row */
.hero { text-align: center; padding: 72px 0 0; overflow: hidden; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 700; }
.lede { margin: 18px auto 28px; max-width: 30rem; color: var(--muted); font-size: 20px; }
.hero-phones { display: grid; grid-template-columns: repeat(3, 250px); justify-content: center; align-items: start;
  gap: 36px; margin: 64px 0 88px; }

/* How it works */
.how { padding: 96px 0; background: var(--card); border-top: 1px solid var(--line); }
.how h2, .faq h2 { text-align: center; font-size: clamp(32px, 4vw, 46px); font-weight: 700; }
.sub { margin: 14px auto 56px; max-width: 34rem; text-align: center; color: var(--muted); font-size: 19px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 56px; }
.steps figure { margin: 0; }
.steps figcaption { margin-top: 22px; color: var(--muted); font-size: 16px; line-height: 1.5; text-align: center; }
.steps figcaption strong { display: block; color: var(--ink); font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin: 72px 0 0; padding: 0; list-style: none; font-weight: 500; }
.facts li::before { content: ""; display: inline-block; width: 13px; height: 7px; margin-right: 10px;
  border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: translateY(-3px) rotate(-45deg); }

/* FAQ */
.faq { padding: 96px 0; }
.faq .wrap { max-width: 720px; }
.faq h2 { margin-bottom: 36px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 12px; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: -6px 24px 20px; color: var(--muted); }

/* Long-form pages: privacy, terms, data sources */
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 760px; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 48px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 700; margin-bottom: 8px; }
.doc .updated { margin: 0 0 32px; color: var(--muted); font-size: 15px; }
.doc h2 { margin: 34px 0 10px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.doc p, .doc li { color: #2b3644; }
.credits { margin-top: 28px; }
.credits details { border-radius: 14px; }
.credits summary { font-size: 17px; }
.credits summary span { color: var(--muted); font-weight: 400; }
.credits summary::after { display: none; }
.credits dl { margin: 0 24px 20px; display: grid; grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr); gap: 6px 16px; font-size: 15px; }
.credits dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }

/* Footer */
.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--line); background: var(--card); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.site-footer p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 500; }
.site-footer nav a { color: var(--link); text-decoration: none; }

@media (max-width: 900px) {
  .hero-phones { grid-template-columns: repeat(3, 190px); gap: 20px; }
  .steps { gap: 28px; }
}
@media (max-width: 680px) {
  .site-header .wrap { grid-template-columns: 1fr auto; height: auto; padding: 14px 0; gap: 10px; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; gap: 28px; }
  .header-store { grid-column: 2; grid-row: 1; }
  .hero { padding-top: 40px; }
  .lede { font-size: 18px; }
  /* One screen on phones; the row of three doesn't fit. */
  .hero-phones { grid-template-columns: 240px; margin: 44px 0 64px; }
  .hero-phones .phone:not(:nth-child(2)) { display: none; }
  .how, .faq { padding: 64px 0; }
  .sub { margin-bottom: 40px; }
  .steps { grid-template-columns: 240px; gap: 44px; }
  .facts { flex-direction: column; align-items: center; gap: 10px; margin-top: 52px; }
  .doc { padding: 24px 0 64px; }
  .doc .wrap { padding: 28px 22px; border-radius: 22px; }
  .credits dl { grid-template-columns: 1fr; gap: 2px; margin: 0 16px 16px; }
  .credits dd { margin-bottom: 10px; }
  .site-footer .wrap { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
