/* tankswitch.radarforecast.app — design system.
   Used by index and privacy.

   The same system as radarforecast.app and e6b.radarforecast.app, so the
   sites read as one family. The accent is the app's own Garmin cyan
   (#00E0FF): in the app it marks the values you set. */

:root {
  --bg:        #0f1620;
  --bg-alt:    #131c27;
  --surface:   #16202c;
  --line:      rgba(148, 170, 196, 0.16);
  --line-soft: rgba(148, 170, 196, 0.12);

  --text:        #d8dee6;
  --text-strong: #f2f5f8;
  --text-mute:   #9fabb9;
  --text-dim:    #7d8998;

  --accent:      #00e0ff;   /* the app's Garmin cyan: things you set */
  --accent-ink:  #00262d;
  --accent-soft: rgba(0, 224, 255, 0.10);

  /* The app's tank colours, used for the two tanks and nowhere else. */
  --tank-l: #8ec5f0;
  --tank-r: #f0a72b;

  --warn: #e8736a;

  --shadow:    0 26px 60px rgba(6, 12, 22, 0.72);
  --shadow-sm: 0 10px 26px rgba(6, 12, 22, 0.60);

  --wrap: 1180px;
  --gutter: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "IBM Plex Sans", -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* A faint graticule, the page's only texture. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image:
    repeating-linear-gradient(to right,  rgba(148, 170, 196, 0.045) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(to bottom, rgba(148, 170, 196, 0.045) 0 1px, transparent 1px 120px);
}
body > * { position: relative; z-index: 1; }

h1, h2, h3 {
  font-family: "Outfit", -apple-system, system-ui, sans-serif;
  color: var(--text-strong); text-wrap: balance; margin: 0;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 22px; }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 8px; }

p { margin: 0 0 16px; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
b, strong { font-weight: 600; color: var(--text-strong); }
ul { max-width: 62ch; padding-left: 1.15em; }
li { margin-bottom: 9px; }

code, .mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.93em; color: var(--text-strong);
}

a { color: var(--accent); transition: color 200ms ease, background 200ms ease, border-color 200ms ease; }
a:hover { color: #7ff0ff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--tank-l); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus {
  left: 16px; top: 12px; z-index: 99; background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section, h2, [id] { scroll-margin-top: 92px; }

/* ---- Nav ------------------------------------------------------------- */
.rf-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(15, 22, 32, 0.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.rf-nav-in {
  max-width: var(--wrap); margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 10px) var(--gutter) 10px;
  display: flex; align-items: center; gap: 12px;
}
.rf-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.rf-brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.rf-brand span {
  font-family: "Outfit", sans-serif; font-size: 20px; font-weight: 600;
  letter-spacing: -0.015em; color: var(--text-strong);
}
.rf-nav-links { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 15px; }
.rf-nav-links > a {
  color: var(--text-dim); text-decoration: none;
  padding: 9px 15px; border-radius: 8px; white-space: nowrap;
}
.rf-nav-links > a:hover { color: var(--text-strong); background: var(--accent-soft); }
.rf-nav-links > a.on { color: var(--accent); background: var(--accent-soft); }

/* ---- Hero ------------------------------------------------------------ */
.hero {
  display: grid; grid-template-columns: minmax(0, 50%) minmax(0, 50%);
  align-items: center; min-height: 560px;
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  padding: 64px var(--gutter) 64px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: flex; flex-direction: column; gap: 22px;
}
.hero-copy .sub { font-size: 1.2rem; line-height: 1.45; color: var(--text-mute); margin: 0; max-width: 40ch; }
.slogan { color: var(--warn); font-style: italic; font-size: 1rem; margin: 0; max-width: 44ch; }

/* Hero: the Fuel page on iPhone, the watch beside it. */
.devices {
  margin: 0; padding: 48px var(--gutter) 48px 0;
  display: flex; justify-content: center; align-items: flex-end; gap: 28px;
}
.devices .phone { width: 100%; max-width: 300px; }
.devices .watch { width: 100%; max-width: 170px; margin-bottom: 24px; }

.cta {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 54px; padding: 0 26px; border-radius: 12px;
  background: var(--surface); color: var(--text-mute); border: 1px solid var(--line);
  text-decoration: none; font-family: "Outfit", sans-serif; font-size: 17px; font-weight: 600;
  transition: transform 200ms ease, background 200ms ease;
}
.cta.live { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: var(--shadow-sm); }
.cta.live:hover { background: #7ff0ff; color: var(--accent-ink); transform: translateY(-1px); }
.cta.live:active { transform: translateY(1px) scale(0.99); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cta-note { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; color: var(--text-dim); }

/* ---- Sections -------------------------------------------------------- */
section { padding: 84px 0; }
.band { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.statement {
  font-family: "Outfit", sans-serif; font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500; line-height: 1.34; letter-spacing: -0.02em;
  color: var(--text-strong); max-width: 26ch; margin: 0 0 30px;
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.split p, .split ul { max-width: none; }

.caution {
  margin-top: 28px; padding: 20px 24px;
  border-left: 3px solid var(--accent); border-radius: 4px 14px 14px 4px;
  background: var(--accent-soft); color: var(--text); font-size: 1rem; line-height: 1.55;
}
.caution p { max-width: none; }

.plain { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.plain li { margin: 0; color: var(--text-mute); padding-left: 18px; border-left: 2px solid var(--line); }

.disclaimer {
  padding: 28px 32px; margin-bottom: 48px;
  border: 1px solid rgba(232, 115, 106, 0.4); border-radius: 16px;
  background: rgba(232, 115, 106, 0.06);
}
.disclaimer p { max-width: none; font-size: 1rem; color: var(--text); }

.note {
  margin-top: 26px; padding: 20px 24px; background: var(--surface);
  border-left: 3px solid var(--line); border-radius: 4px 14px 14px 4px; color: var(--text-mute);
}

/* ---- Screenshots ---------------------------------------------------- */
/* Real screens from the app, unframed: a rounded edge and a shadow. */
.phone { display: block; height: auto; border-radius: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #000; }
.watch { display: block; height: auto; border-radius: 34px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #000; }

.steps { list-style: none; padding: 0; margin: 8px 0 0; max-width: none; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; margin: 0; padding: 18px 0; border-top: 1px solid var(--line-soft); color: var(--text-mute); }
.steps li:first-child { border-top: none; padding-top: 0; }
.steps li::before { content: counter(step); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 15px; color: var(--accent); padding-top: 2px; }
.steps b { display: block; margin-bottom: 2px; }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 12px; }
.gallery figure { margin: 0; display: grid; gap: 14px; align-content: start; }
.gallery .phone { width: 100%; }
.gallery figcaption { font-size: 15px; color: var(--text-mute); line-height: 1.45; }
.gallery figcaption b { display: block; color: var(--text-strong); font-family: "Outfit", sans-serif; font-size: 17px; margin-bottom: 2px; }

.watches { display: flex; gap: 22px; align-items: flex-start; }
.watches figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.watches .watch { width: 100%; max-width: 210px; }
.watches figcaption { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; color: var(--text-dim); }

/* ---- Article pages --------------------------------------------------- */
.page-head { padding: 72px 0 40px; }
.page-head h1 { margin-bottom: 18px; }
.page-head .sub { font-size: 1.2rem; color: var(--text-mute); max-width: 52ch; margin: 0 0 18px; }
.article section { padding: 44px 0; border-top: 1px solid var(--line-soft); }
.article section:first-of-type { border-top: none; padding-top: 0; }
.article h2 { font-size: 1.8rem; }
.article p, .article ul { color: var(--text-mute); }

/* ---- Footer ---------------------------------------------------------- */
.site-foot {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; padding: 40px 0 56px; border-top: 1px solid var(--line);
  font-size: 14.5px; color: var(--text-dim);
}
.site-foot p { max-width: none; margin: 0 0 6px; }
.site-foot .fh { color: var(--text); font-weight: 600; margin-bottom: 10px; }
.site-foot a { color: var(--text-mute); text-decoration: none; }
.site-foot a:hover { color: var(--accent); }
.foot-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.foot-brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.foot-brand span { font-family: "Outfit", sans-serif; font-size: 17px; font-weight: 600; color: var(--text); }

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --gutter: 32px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding: 36px var(--gutter) 32px; order: 2; }
  .devices { order: 1; padding: 36px var(--gutter) 0; }
  .devices .phone { max-width: 230px; }
  .devices .watch { max-width: 130px; }
  section { padding: 60px 0; }
  .site-foot { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 620px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .rf-nav-in { flex-wrap: wrap; gap: 8px; }
  .rf-nav-links { margin-left: 0; width: 100%; }
  .disclaimer { padding: 22px; }
  .gallery { gap: 18px; }
  .watches { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
