/* FuelFi website — Ember theme, same colors as the app (FuelFi/Theme/Theme.swift). */
:root {
  --bg: #0D0D0E;
  --card: #1A1A1C;
  --card2: #222225;
  --ink: #F6F3EF;
  --muted: #A8A39D;
  --line: #2A2A2D;
  --accent: #FF7A1A;
  --on-accent: #140A02;
  --accent-text: #FF8A33;
  --accent-soft: #2E1D10;
  --carbs: #F2C14E;
  --fat: #6FA8DC;
  --radius: 20px;
  --max: 1040px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand .fi, .wordmark .fi { color: var(--accent); }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero .app-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 12px 40px rgba(255, 122, 26, 0.18); }
.hero h1 { font-size: clamp(36px, 7vw, 60px); line-height: 1.05; letter-spacing: -0.03em; margin: 28px auto 16px; max-width: 14ch; }
.hero p.lede { color: var(--muted); font-size: clamp(18px, 2.4vw, 21px); max-width: 36ch; margin: 0 auto 28px; }
.badge-soon { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 800; padding: 14px 24px; border-radius: 999px; font-size: 16px; }
.hero .small { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.section-lede { color: var(--muted); max-width: 52ch; margin: 0 0 32px; }

/* The loop */
.loop { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.loop li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; counter-increment: step; }
.loop li::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.loop strong { display: block; font-size: 18px; margin-bottom: 4px; }
.loop span { color: var(--muted); font-size: 15px; }

/* Feature cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 16px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.price.best { border-color: var(--accent); }
.price .tag { position: absolute; top: -12px; right: 18px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.price .name { color: var(--muted); font-weight: 700; font-size: 15px; }
.price .amount { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.price .amount small { font-size: 16px; color: var(--muted); font-weight: 600; }
.fine { color: var(--muted); font-size: 14px; margin-top: 18px; max-width: 60ch; }

/* Promises */
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.promises li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.promises strong { display: block; margin-bottom: 2px; }
.promises span { color: var(--muted); font-size: 16px; }

/* Long text pages (privacy, support) */
.doc { padding: 56px 0 72px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(32px, 6vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc p, .doc li { color: #DCD8D3; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .callout { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; }
.doc .callout p { margin: 0; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 2px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Phones */
@media (max-width: 860px) {
  .loop { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-nav { gap: 14px; }
  .site-nav a.hide-sm { display: none; }
  .hero { padding: 48px 0 40px; }
  .loop, .grid, .promises, .prices { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
}
