/* Pacefield website. Floodlight tokens, mirrored from App/Brand.swift (docs/DESIGN.md §3). */
:root {
  --canvas: #F3F4F7;
  --surface: #FFFFFF;
  --sunken: #E9EBF0;
  --text: #0D1017;
  --text-2: #565C68;
  --text-3: #868C98;
  --accent: #3A47F5;
  --accent-text: #3A47F5;
  --accent-tint: #ECEDFF;
  --hairline: rgba(13, 16, 23, 0.08);
  --field-top: #3A47F5;
  --field-bottom: #242CC4;
  --on-field: #FFFFFF;
  --on-field-2: rgba(255, 255, 255, 0.85);
  --field-chip: rgba(255, 255, 255, 0.14);
  --field-hairline: rgba(255, 255, 255, 0.16);
  --station: #FFB23E;
  --shadow: rgba(27, 34, 80, 0.10);
  --lane-run: #DDF3F4;   --lane-run-ink: #00727E;
  --lane-strength: #FFEFD5; --lane-strength-ink: #975400;
  --lane-test: #ECEDFF;  --lane-test-ink: #3A47F5;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0A0B0E;
    --surface: #15171C;
    --sunken: #23262E;
    --text: #F4F5F8;
    --text-2: #A2A7B2;
    --text-3: #6D7380;
    --accent-text: #8F99FF;
    --accent-tint: #1D2050;
    --hairline: rgba(255, 255, 255, 0.09);
    --shadow: rgba(0, 0, 0, 0.4);
    --lane-run: #0E2B2F;   --lane-run-ink: #45D4DF;
    --lane-strength: #33250D; --lane-strength-ink: #FFB23E;
    --lane-test: #1D2050;  --lane-test-ink: #8F99FF;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { color: var(--text-2); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }

/* Type */
h1 { font-size: clamp(34px, 7vw, 48px); line-height: 1.08; letter-spacing: -0.025em; margin: 32px 0 12px; font-weight: 800; font-stretch: 125%; }
h2 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; margin: 40px 0 8px; font-weight: 700; }
h3 { font-size: 17px; margin: 24px 0 4px; font-weight: 700; }
p, li { color: var(--text); }
.lede { font-size: 19px; color: var(--text-2); margin: 0 0 24px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.meta { font-size: 13px; color: var(--text-2); }

/* The electric field card, as on the reveal screen */
.field {
  position: relative;
  margin: 32px 0 8px;
  padding: 24px;
  border-radius: 24px;
  color: var(--on-field);
  background: linear-gradient(160deg, var(--field-top), var(--field-bottom));
  box-shadow: 0 24px 60px -20px rgba(58, 71, 245, 0.55);
}
.field .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field .eyebrow { color: var(--on-field-2); }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--field-chip); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.time { font-size: clamp(48px, 13vw, 72px); font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; line-height: 1.05; margin: 16px 0 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.field p { color: var(--on-field-2); margin: 0; }
.course { display: flex; align-items: center; gap: 6px; margin: 24px 0 4px; }
.course .run { flex: 1; height: 5px; border-radius: 3px; background: var(--on-field); }
.course .stn { width: 7px; height: 7px; border-radius: 50%; background: var(--on-field); flex: none; }
.course .stn.amber { background: var(--station); width: 9px; height: 9px; }
.course .todo { opacity: 0.4; }
.field .foot { border-top: 1px solid var(--field-hairline); margin-top: 20px; padding-top: 16px; font-size: 15px; }

/* Store badge placeholder until the App Store link exists */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 32px 0 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
.button[aria-disabled="true"] { cursor: default; }

/* Feature list */
.features { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 12px; }
.features li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: 0 1px 0 var(--hairline), 0 8px 24px -16px var(--shadow); }
.tile { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.tile svg { width: 22px; height: 22px; }
.tile.run { background: var(--lane-run); color: var(--lane-run-ink); }
.tile.strength { background: var(--lane-strength); color: var(--lane-strength-ink); }
.tile.test { background: var(--lane-test); color: var(--lane-test-ink); }
.features strong { display: block; font-size: 17px; }
.features span { color: var(--text-2); font-size: 15px; }

/* Documents (privacy, support) */
.doc { padding-bottom: 24px; }
.doc h1 { font-size: clamp(30px, 6vw, 40px); }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.card { background: var(--surface); border-radius: 16px; padding: 4px 20px 12px; margin: 16px 0; box-shadow: 0 1px 0 var(--hairline), 0 8px 24px -16px var(--shadow); }
.card > h2:first-child { margin-top: 20px; }
.contact { background: var(--accent-tint); border-radius: 16px; padding: 16px 20px; margin: 24px 0; }
.contact p { margin: 0; }
details { border-bottom: 1px solid var(--hairline); padding: 12px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-3); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 8px 0 4px; color: var(--text-2); }

/* Footer */
footer { margin-top: 64px; padding: 24px 0 40px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--text-2); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
footer a { color: var(--text-2); }
footer p { color: var(--text-3); margin: 4px 0; }

:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 420px) {
  .top nav { gap: 14px; }
  .field { padding: 20px; }
}
