/* Fuel Gauge brand system.
   White page, near-black type, one orange (the instrument's signal: skylines, live state, primary actions).
   Geist for everything, Geist Mono only for code and instrument readouts. */
:root {
  --bg: #FFFFFF;
  --bg-2: #F6F6F4;
  --bg-3: #EEEEEA;
  --ink: #0E0E0E;
  --ink-2: #3A3A3A;
  --slate: #6E6E6E;
  --line: #E7E7E3;
  --signal: #FF5B1F;
  --signal-2: #FF8A57;
  --signal-soft: #FFF1EA;
  --signal-ink: #C2410C;
  --signal-ink-on: #FFFFFF;
  --field: #1E8C5A;
  --sky: #2C62AE;
  --code-bg: #0E0E0E;
  --code-ink: #EDEDED;
  --font: "Geist", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --radius: 14px;
  --radius-s: 8px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11"; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }
::selection { background: var(--signal); color: #fff; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } body { font-size: 16px; } }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); line-height: 0.98; letter-spacing: -0.05em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.02; letter-spacing: -0.045em; }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.025em; }
h4 { font-size: 1rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 60ch; letter-spacing: -0.01em; }
.muted { color: var(--slate); }
.small { font-size: 0.88rem; line-height: 1.5; }
code, pre, kbd { font-family: var(--mono); }
:not(pre) > code { font-size: 0.86em; background: var(--bg-2); border: 1px solid var(--line); padding: 0.05em 0.35em; border-radius: 5px; }

/* live dot */
.pulse { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--signal); opacity: 0; animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }

/* announcement bar */
.announce { background: var(--ink); color: #fff; font-size: 0.86rem; }
.announce a { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 9px 16px; text-decoration: none; }
.announce b { font-weight: 600; }
.announce span.go { color: var(--signal-2); }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: var(--bg);
  border-bottom: 1px solid transparent; transition: border-color var(--motion-duration-sm) var(--motion-ease-move); }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 30px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 650; font-size: 1.12rem; letter-spacing: -0.04em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav nav { display: flex; gap: 26px; }
.nav nav a { text-decoration: none; color: var(--slate); font-size: 0.93rem; font-weight: 500; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--ink); }
.nav .spacer { flex: 1; }
.nav .actions { display: flex; gap: 10px; align-items: center; }
@media (max-width: 860px) { .nav nav { display: none; } .nav .gh-label { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 0.95rem; font-weight: 550; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--motion-duration-sm) var(--motion-ease-move), background-color var(--motion-duration-sm) var(--motion-ease-move), border-color var(--motion-duration-sm) var(--motion-ease-move), box-shadow var(--motion-duration-sm) var(--motion-ease-move); }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--signal); border-color: var(--signal); color: #fff; box-shadow: 0 6px 20px -8px rgba(255, 91, 31, .7); }
.btn.primary:hover { background: #F24E12; border-color: #F24E12; box-shadow: 0 10px 26px -8px rgba(255, 91, 31, .8); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: #2A2A2A; }
.btn.small { height: 38px; padding: 0 15px; font-size: 0.88rem; }
.btn svg { width: 17px; height: 17px; }
.btn .arr { transition: transform var(--motion-duration-sm) var(--motion-ease-move); }
.btn:hover .arr { transform: translateX(3px); }

/* install chip */
.install { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); max-width: 100%; overflow: hidden; }
.install code { min-width: 0; padding: 0 6px 0 18px; font-size: 0.82rem; white-space: nowrap; overflow-x: auto; background: none; border: 0; line-height: 42px; scrollbar-width: none; }
.install code .p { color: var(--signal); user-select: none; }
.install button { border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink); height: 42px; padding: 0 16px; font: inherit; font-size: 0.84rem; font-weight: 550; cursor: pointer; }
.install button:hover { background: var(--bg-2); }

/* code */
pre.code { margin: 0; background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius-s); padding: 18px 20px; overflow-x: auto; font-size: 0.82rem; line-height: 1.7; }
pre.code .c { color: #7D7D7D; }
pre.code .k { color: var(--signal-2); }
pre.code .s { color: #FFD3BD; }

/* sections */
.section { padding-block: 120px 0; }
.section-head { display: grid; gap: 16px; max-width: 780px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 550; color: var(--signal-ink); background: var(--signal-soft);
  border-radius: 999px; padding: 5px 12px 5px 10px; justify-self: start; }
.section-head.center .kicker { justify-self: center; }

/* reveal: one gentle rise for content as it arrives; nothing moves with reduced motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--motion-duration-lg) var(--motion-ease-enter), transform var(--motion-duration-lg) var(--motion-ease-enter); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* footer */
.foot { margin-top: 0; border-top: 1px solid var(--line); padding-block: 48px 64px; font-size: 0.9rem; color: var(--slate); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { color: var(--ink); margin-bottom: 10px; font-size: 0.92rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* phones: every control is at least 44 px to the thumb */
@media (max-width: 760px) {
  .brand { min-height: 44px; }
  .nav .btn.small { height: 44px; min-width: 44px; }
  .install button { height: 44px; }
  .combo .combo-btn { height: 44px; }
  .foot ul { gap: 0; }
  .foot a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* searchable dropdown (combo.js) */
.combo-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden; }
.combo { position: relative; display: inline-block; min-width: 220px; max-width: 100%; }
.combo-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 42px; padding: 0 14px 0 16px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; font-size: 0.92rem; font-weight: 500; cursor: pointer; text-align: left; transition: border-color var(--motion-duration-sm) var(--motion-ease-move), box-shadow var(--motion-duration-sm) var(--motion-ease-move); }
.combo-btn:hover, .combo.open .combo-btn { border-color: var(--ink); }
.combo.open .combo-btn { box-shadow: 0 0 0 4px var(--signal-soft); }
.combo-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-btn svg { width: 16px; height: 16px; flex: none; color: var(--slate); transition: transform var(--motion-duration-sm) var(--motion-ease-move); }
.combo.open .combo-btn svg { transform: rotate(180deg); }
.combo-pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 40; width: max(100%, 300px); max-width: min(92vw, 520px); background: var(--bg); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 24px 60px -24px rgba(14, 14, 14, .35), 0 2px 6px rgba(0,0,0,.05); overflow: hidden; animation: pop var(--motion-duration-sm) var(--motion-ease-enter); }
.combo.up .combo-pop { top: auto; bottom: calc(100% + 8px); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.combo-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.combo-search svg { width: 16px; height: 16px; color: var(--slate); flex: none; }
.combo-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 0.95rem; height: 46px; color: var(--ink); }
.combo-list { list-style: none; margin: 0; padding: 6px; max-height: 300px; overflow-y: auto; }
.combo-list li { display: grid; gap: 1px; padding: 9px 12px; border-radius: 10px; cursor: pointer; position: relative; padding-right: 34px; }
.combo-list li.active { background: var(--bg-2); }
.combo-list li[aria-selected="true"]::after { content: ""; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); transform: translateY(-50%); }
.combo-main { font-size: 0.93rem; font-weight: 500; color: var(--ink); }
.combo-sub { font-size: 0.8rem; color: var(--slate); }
.combo-empty { padding: 14px 18px 18px; color: var(--slate); font-size: 0.9rem; }
.combo-list li[hidden], .combo-empty[hidden] { display: none; }
