/* FuelQuest tokens: docs/fuelquest-design/HANDOFF.md */
:root {
  --red: #C8102E;
  --red-dark: #8E0B20;
  --gold: #F2B705;
  --ink: #1B1A17;
  --cream: #F7F4EE;
  --surface: #FFFFFF;
  --muted: #4A463F;
  --subtle: #6B665C;
  --line: #E4DED3;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Work Sans', system-ui, sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

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

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

/* Lockup: icon plus wordmark, built in HTML so it uses the page's web font. */
.lockup { display: inline-flex; align-items: center; gap: .32em; text-decoration: none; font: 800 28px/1 var(--display); letter-spacing: .02em; }
.lockup img { width: 1.25em; height: 1.25em; }
.lockup .fuel { color: var(--cream); }
.lockup .quest { color: var(--gold); }
.lockup.on-light .fuel { color: var(--ink); }
.lockup.on-light .quest { color: var(--red); }

.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .95; letter-spacing: .01em; margin: 0; }

/* ---------- Splash ---------- */

.hero { background: var(--ink); color: var(--cream); overflow: hidden; position: relative; }
.hero::after {
  /* the gold route from the mark, turning right */
  content: ""; position: absolute; right: -60px; bottom: -40px; width: 340px; height: 300px;
  border-top: 34px solid var(--gold); border-left: 34px solid var(--gold); border-top-left-radius: 40px;
  transform: skewX(-8deg); opacity: .14; pointer-events: none;
}
.hero-nav { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.hero-nav a.plain { color: var(--cream); text-decoration: none; font-weight: 600; font-size: 15px; opacity: .8; }
.hero-nav a.plain:hover { opacity: 1; color: var(--cream); }

.hero-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 96px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(56px, 9vw, 104px); }
.hero h1 .gold { color: var(--gold); }
.hero .lede { font-size: 19px; max-width: 34ch; color: #D9D4CA; margin: 24px 0 32px; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px;
  border-radius: 14px; border: 2px solid #3A3832; color: var(--cream); text-decoration: none; font-weight: 600; font-size: 15px;
}
.store-btn svg { width: 22px; height: 22px; flex: none; }
.store-btn small { display: block; font-size: 11px; font-weight: 500; opacity: .7; text-transform: uppercase; letter-spacing: .06em; line-height: 1.1; }
.store-btn span { line-height: 1.2; }
a.store-btn { background: var(--red); border-color: var(--red); }
a.store-btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--cream); }

.hero-mark { justify-self: center; width: min(340px, 80%); border-radius: 22.5%; box-shadow: 0 0 0 3px #3A3832, 0 30px 60px rgba(0,0,0,.45); }

/* patch strip */
.patches { background: var(--gold); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); overflow: hidden; padding: 22px 0; }
.patch-track { display: flex; gap: 22px; padding-right: 22px; width: max-content; animation: drive 48s linear infinite; }
.patch-track img { width: 92px; height: 92px; }
@keyframes drive { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .patch-track { animation: none; } }

.features { padding: 88px 0; }
.features h2 { font-size: clamp(40px, 6vw, 64px); max-width: 14ch; margin-bottom: 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.card .num { font: 800 15px/1 var(--display); color: var(--red); letter-spacing: .08em; }
.card h3 { font: 800 30px/1 var(--display); text-transform: uppercase; margin: 12px 0 10px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.callout { background: var(--ink); color: var(--cream); border-radius: 22px; padding: 48px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 88px; }
.callout h2 { font-size: clamp(36px, 5vw, 52px); }
.callout h2 .gold { color: var(--gold); }
.callout p { margin: 8px 0 0; color: #D9D4CA; }

/* ---------- Document pages ---------- */

.doc-head { background: var(--ink); padding: 22px 0; }
.doc-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.doc-head a.plain { color: var(--cream); text-decoration: none; font-size: 15px; font-weight: 600; opacity: .8; }

.doc { padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(48px, 8vw, 72px); margin-bottom: 8px; }
.doc .meta { color: var(--subtle); font-size: 15px; margin: 0 0 40px; }
.doc h2 { font: 800 28px/1.05 var(--display); text-transform: uppercase; margin: 44px 0 12px; }
.doc h3 { font-size: 17px; font-weight: 700; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--ink); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: 14px; padding: 20px 24px; margin-bottom: 8px; }
.doc .summary p { margin: 0; color: var(--ink); }
.doc .summary ul { margin: 10px 0 0; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 16px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; color: var(--ink); background: #EFEAE1; }
.doc tr:last-child td { border-bottom: 0; }
.doc td { color: var(--muted); }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; min-height: 36px; margin: 14px 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font: 800 18px/34px var(--display); text-align: center;
}

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; min-height: 44px; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 4px; }

.button {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 26px; border-radius: 14px;
  background: var(--red); color: var(--cream); font-weight: 700; text-decoration: none;
}
.button:hover { background: var(--red-dark); color: var(--cream); }

/* ---------- Footer ---------- */

.site-foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--subtle); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-foot nav a:hover { color: var(--red); }
.site-foot p { margin: 0; max-width: 60ch; }

/* ---------- Small screens ---------- */

@media (max-width: 820px) {
  .hero-body { grid-template-columns: 1fr; padding-top: 16px; padding-bottom: 64px; gap: 40px; }
  .hero-mark { order: -1; width: 168px; justify-self: start; }
  .feature-grid { grid-template-columns: 1fr; }
  .callout { padding: 32px 24px; }
  .features { padding: 64px 0; }
}
@media (max-width: 600px) {
  /* stack table rows: Information, then When (small), then Why */
  .doc table { min-width: 0; }
  .doc thead { display: none; }
  .doc tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .doc tr:last-child { border-bottom: 0; }
  .doc td { display: block; border: 0; padding: 0; }
  .doc td:nth-child(2) { font-size: 13px; color: var(--subtle); margin: 2px 0 6px; }
}
@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .doc { padding: 40px 16px 64px; }
  .store-btn { flex: 1 1 100%; }
  .hero-nav a.plain { display: none; }
}
