/* Fuelbird website. Same tokens as the app (app/src/constants/theme.ts):
   mint glass, coral accent, ink text, system font, tabular prices. Light only, like the app. */
:root {
  --coral: #EE4D5F;
  --coral-deep: #D93A4D;
  --coral-ink: #C2293D;          /* coral dark enough for small text on white (AA) */
  --ink: #0F1211;
  --muted: #59625F;
  --page: #F4F7F5;
  --card: #FFFFFF;
  --mint: #E4FBF7;
  --mint-2: #D7F6EF;
  --lime: #EEFAD8;
  --mint-line: rgba(24, 64, 58, 0.10);
  --hair: rgba(15, 18, 17, 0.08);
  --oil: #E39A12;
  --shadow: 0 10px 30px rgba(24, 64, 58, 0.12), 0 2px 6px rgba(24, 64, 58, 0.06);
  --r-card: 30px;
  --r-pill: 999px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--page); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); background: rgba(244, 247, 245, 0.78); border-bottom: 1px solid var(--hair); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); padding: 8px 12px; border-radius: var(--r-pill); }
.nav a:hover { color: var(--ink); background: rgba(15, 18, 17, 0.05); }
.nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } .brand img { height: 30px; } }

/* Hero */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1200px 520px at 85% -10%, var(--lime) 0%, rgba(238, 250, 216, 0) 60%),
  radial-gradient(900px 600px at 0% 20%, var(--mint) 0%, rgba(228, 251, 247, 0) 70%),
  linear-gradient(180deg, var(--mint-2) 0%, var(--page) 100%);
}
.hero .wrap { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 72px; align-items: center; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; padding-top: 88px; padding-bottom: 104px; } }
.hero .wrap > * { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, 0.7); border: 1px solid var(--mint-line); padding: 6px 12px 6px 8px; border-radius: var(--r-pill); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #22B07D; box-shadow: 0 0 0 4px rgba(34, 176, 125, 0.18); }
h1 { font-size: clamp(48px, 9vw, 92px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; margin: 20px 0 18px; }
h1 em { font-style: normal; color: var(--coral); }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: #2C3331; max-width: 34em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; text-decoration: none; padding: 12px 22px 12px 18px; border-radius: 16px; min-height: 56px; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 12px; opacity: 0.75; line-height: 1.1; }
.store b { display: block; font-size: 19px; line-height: 1.15; letter-spacing: -0.01em; }
.store[aria-disabled="true"] { cursor: default; }
.cta .note { font-size: 15px; color: var(--muted); }

/* Live price card (real data from the Fuelbird server; hidden if it can't load) */
.live { background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow); border-radius: 34px; padding: 22px; }
.live-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.live-head h2 { font-size: 15px; font-weight: 700; color: var(--muted); margin: 0; letter-spacing: 0; }
.live-head .fuel { font-size: 13px; font-weight: 800; background: var(--mint); border: 1px solid var(--mint-line); padding: 4px 10px; border-radius: var(--r-pill); }
.cities { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -22px 16px; padding: 2px 22px 4px; }
.cities::-webkit-scrollbar { display: none; }
.cities button { flex: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--hair); border-radius: var(--r-pill); padding: 7px 13px; cursor: pointer; min-height: 36px; }
.cities button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: end; padding: 14px 0; border-top: 1px solid var(--hair); }
.row:first-of-type { border-top: 0; }
.row .label { align-self: center; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.row .label.cheap { color: #0E7A55; }
.row .label.dear { color: var(--muted); }
.row .where { grid-column: 1 / -1; font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .price { grid-column: 2; grid-row: 1; font-size: 44px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.row .price small { font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.row.cheap .price { color: var(--ink); }
.row.dear .price { color: #8A928F; }
.save { margin-top: 6px; background: linear-gradient(135deg, var(--coral), var(--coral-deep)); color: #fff; border-radius: 22px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.save b { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.save span { font-size: 15px; line-height: 1.35; }
.live-foot { font-size: 13px; color: var(--muted); margin: 12px 2px 0; }
.live[data-state="loading"] .price, .live[data-state="loading"] .save b { color: transparent; background: linear-gradient(90deg, #eef2f0, #f8faf9, #eef2f0); border-radius: 10px; }
.hero-bird { display: none; }
.live[hidden] + .hero-bird { display: block; width: min(360px, 70%); margin: 0 auto; }

/* Sections */
section { padding: 80px 0; }
@media (max-width: 720px) { section { padding: 60px 0; } }
.kicker { font-size: 14px; font-weight: 800; color: var(--coral-ink); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }
h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 16px; }
.sub { font-size: 19px; color: var(--muted); max-width: 36em; margin: 0; }

.steps { display: grid; gap: 16px; margin-top: 40px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--card); border-radius: var(--r-card); padding: 26px; box-shadow: 0 1px 0 var(--hair); border: 1px solid var(--hair); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mint); border: 1px solid var(--mint-line); font-weight: 800; margin-bottom: 18px; }
.step h3 { font-size: 21px; letter-spacing: -0.01em; margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); }

.features { display: grid; gap: 12px; margin-top: 40px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 24px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--hair); }
.feature .ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--mint); border: 1px solid var(--mint-line); font-size: 22px; }
.feature h3 { font-size: 17px; margin: 0 0 2px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); }
.soon { font-size: 12px; font-weight: 800; color: var(--coral-ink); background: #FDECEE; padding: 2px 8px; border-radius: var(--r-pill); margin-left: 6px; vertical-align: 2px; white-space: nowrap; }

.band { background: var(--ink); color: #fff; border-radius: 40px; margin: 0 16px; }
@media (min-width: 1176px) { .band { margin: 0 auto; max-width: calc(var(--wrap) + 56px); } }
.band .wrap { padding-top: 64px; padding-bottom: 64px; }
.band h2 { color: #fff; }
.band .sub { color: rgba(255, 255, 255, 0.72); }
.feeds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 36px; }
@media (min-width: 720px) { .feeds { grid-template-columns: repeat(4, 1fr); } }
.feed { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 20px; padding: 16px; min-width: 0; }
.feed b { font-size: 22px; letter-spacing: -0.01em; display: block; }
.feed .src { font-size: 13px; color: rgba(255, 255, 255, 0.66); display: block; margin-top: 2px; }
.feed .fresh { font-size: 13px; font-weight: 700; margin-top: 10px; display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.85); }
.feed .fresh::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); flex: none; }
.feed .fresh.ok::before { background: #3DDC97; }
.feed .fresh.late::before { background: #F5AE1E; }
.band .fine { font-size: 14px; color: rgba(255, 255, 255, 0.6); margin: 24px 0 0; max-width: 46em; }

.final { text-align: center; }
.final img { width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 22px; box-shadow: var(--shadow); }
.final .cta { justify-content: center; margin-top: 28px; }

/* Footer */
footer { border-top: 1px solid var(--hair); padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--ink); }

/* Long-form pages (privacy, terms, support) */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(40px, 7vw, 60px); margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 36px; }
.doc h2 { font-size: 26px; letter-spacing: -0.015em; margin: 44px 0 10px; }
.doc h3 { font-size: 19px; margin: 28px 0 6px; }
.doc p, .doc li { color: #2C3331; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--coral-ink); font-weight: 600; }
.summary { background: var(--card); border: 1px solid var(--hair); border-radius: 24px; padding: 20px 24px; }
.summary ul { margin: 8px 0 0; }
.mail { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff !important; text-decoration: none; padding: 14px 22px; border-radius: 16px; font-weight: 700; font-size: 18px; margin: 8px 0 6px; }
details { background: var(--card); border: 1px solid var(--hair); border-radius: 20px; padding: 0 20px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 600; color: var(--muted); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > p, details > ul { margin: 0 0 18px; }

@media (prefers-reduced-motion: no-preference) {
  .store, .cities button, .nav a { transition: background-color .15s ease, color .15s ease, transform .15s ease; }
  .cities button:active { transform: scale(0.96); }
}
