/* Shared by index.html and privacy.html.
 *
 * The type, spacing and component set are Radar Forecast's, so the two apps'
 * pages read as one family. What differs is the accent: every colour named
 * here is one the dial itself uses. Amber #F0A72B is the rate index, green
 * #5DCAA5 the seconds index, red the unit index on 10. Nothing was invented
 * for the web page.
 */

:root {
  /* Light: pale chart paper, greenish grey. */
  --bg: #eaefed; --bg2: #dfe6e2; --panel: #f6f8f7; --line: rgba(20,40,34,0.14);
  --text: #172029; --muted: #55636f;
  --amber: #8a5910; --amber-soft: rgba(138,89,16,0.10);
  --green: #1f7a5c; --green-soft: rgba(31,122,92,0.10);
  --cran: #a52a3b; --cran-soft: rgba(165,42,59,0.08);
  --face: #131316; --band: #1B3950;
  --shadow: 0 10px 30px rgba(20,40,34,0.12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1620; --bg2: #1a2538; --panel: #17212f; --line: rgba(255,255,255,0.10);
    --text: #d7dee8; --muted: #8a96a6;
    --amber: #F0A72B; --amber-soft: rgba(240,167,43,0.09);
    --green: #5DCAA5; --green-soft: rgba(93,202,165,0.10);
    --cran: #d0475c; --cran-soft: rgba(208,71,92,0.10);
    --shadow: 0 14px 40px rgba(0,0,0,0.45);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1620; --bg2: #1a2538; --panel: #17212f; --line: rgba(255,255,255,0.10);
  --text: #d7dee8; --muted: #8a96a6;
  --amber: #F0A72B; --amber-soft: rgba(240,167,43,0.09);
  --green: #5DCAA5; --green-soft: rgba(93,202,165,0.10);
  --cran: #d0475c; --cran-soft: rgba(208,71,92,0.10);
  --shadow: 0 14px 40px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
img, video { max-width: 100%; }
body {
  margin: 0; background: linear-gradient(165deg, var(--bg), var(--bg2)) fixed; color: var(--text);
  font: 400 17px/1.55 "IBM Plex Sans", -apple-system, system-ui, sans-serif;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 40px 22px 64px; }
h1, h2, h3 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.7rem, 8vw, 4.2rem); font-weight: 700; line-height: 0.95; letter-spacing: 0.005em; text-transform: uppercase; }
h2 { font-size: 1.9rem; font-weight: 600; line-height: 1.05; margin-bottom: 14px; }
h3 { font-size: 1.25rem; font-weight: 600; }
.eyebrow { font: 500 0.74rem/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
p { margin: 0 0 12px; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
b, strong { font-weight: 600; }
code, .mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.92em; }
a { color: var(--amber); }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Header */
.top { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.top img { width: 44px; height: 44px; border-radius: 11px; box-shadow: var(--shadow); }
.top .name { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.15rem; letter-spacing: 0.03em; text-transform: uppercase; }
.top a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 14px; }

/* Hero */
/* minmax(0,1fr), not the implicit auto track: the video reports an intrinsic
   width of 640, which would size the track to that and push the whole hero
   past a phone's viewport. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 26px; }
.tagline { font-size: 1.28rem; line-height: 1.4; max-width: 34ch; }
.slogan { color: var(--cran); font-style: italic; font-size: 1rem; max-width: 40ch; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 8px 16px 8px 12px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  text-decoration: none; box-shadow: var(--shadow); cursor: default;
}
.store span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; font-size: 1.05rem; font-family: "Barlow Condensed", sans-serif; letter-spacing: 0.01em; }
.store small { font: 400 0.68rem/1.2 "IBM Plex Sans", sans-serif; color: var(--muted); }
.store svg { color: var(--amber); flex: none; }

/* The dial — the app's signature object, so it gets the panel treatment.
   It keeps the face's own near-black ground in both themes, the way a radar
   colour table would: these are the instrument's colours, not the page's. */
figure.dial { margin: 8px 0 0; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
/* Sized to the video exactly: the capture carries its own black margins, and
   any strip of screen showing beside them reads as a seam. */
figure.dial .screen { background: var(--face); border-radius: 12px; overflow: hidden; width: 100%; max-width: 460px; margin: 0 auto; }
figure.dial video { display: block; width: 100%; height: auto; }
figure.dial figcaption { margin-top: 14px; color: var(--muted); font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.key { display: inline-flex; align-items: center; gap: 8px; }
.key i { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid currentColor; display: inline-block; flex: none; }
.key.rate { color: var(--amber); }
.key.unit { color: var(--cran); }
.key.sec  { color: var(--green); }
.key span { color: var(--muted); }

/* Sections */
section { padding: 34px 0 0; }
section + section { margin-top: 34px; border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  font: 600 2rem/1 "Barlow Condensed", sans-serif; color: var(--amber); padding-top: 2px;
}
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 0.98rem; }
.steps .mono, .steps b { color: var(--text); }

/* Scales table */
.layers { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.layer { display: grid; grid-template-columns: 106px 1fr; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); align-items: start; }
.layer:first-child { border-top: none; }
.pill { justify-self: start; font: 500 0.78rem/1 "IBM Plex Mono", ui-monospace, monospace; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--amber); color: var(--amber); background: var(--amber-soft); white-space: nowrap; }
.pill.green { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.layer p { font-size: 0.97rem; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 16px; }
.fact { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.fact .v { font: 600 1.6rem/1.1 "Barlow Condensed", sans-serif; font-variant-numeric: tabular-nums; }
.fact .k { color: var(--muted); font-size: 0.86rem; margin-top: 4px; }

/* Plain lists, and the "what it doesn't do" list */
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
ul.plain li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font-size: 0.98rem; color: var(--muted); }
ul.plain li::before { content: "—"; color: var(--amber); }
ul.plain b { color: var(--text); }

.note { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--green); background: var(--green-soft); border-radius: 0 10px 10px 0; }
.note p { font-size: 0.98rem; }

.disclaimer { margin-top: 44px; padding: 16px 18px; border: 1px solid var(--cran); border-radius: 12px; background: var(--cran-soft); }
.disclaimer b { color: var(--cran); }
footer { margin-top: 28px; color: var(--muted); font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }

@media (max-width: 520px) {
  .wrap { padding: 28px 16px 56px; }
  .layer { grid-template-columns: 1fr; gap: 8px; }
  .steps li { grid-template-columns: 44px 1fr; }
}
