/* fridgelaps.com. Theme: Automatic follows the device; Light and Dark are kept per browser
   by /theme.js (Canon #31). Amber is a run and blue a lift ride, as on the watch. */
:root {
  --bg: #f1f4f6;
  --surface: #ffffff;
  --ink: #0f1a22;
  --muted: #56666f;
  --line: #d6dfe4;
  --run: #b86a0c;
  --run-dot: #e8952a;
  --lift: #2a74c4;
  --bezel: #2a3034;
  --chip: #e4ecf1;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1015;
    --surface: #111a20;
    --ink: #e6edf2;
    --muted: #94a5b0;
    --line: #22303a;
    --run: #f0a53c;
    --run-dot: #f0a53c;
    --lift: #63a9f0;
    --bezel: #3b444a;
    --chip: #17232c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1015;
  --surface: #111a20;
  --ink: #e6edf2;
  --muted: #94a5b0;
  --line: #22303a;
  --run: #f0a53c;
  --run-dot: #f0a53c;
  --lift: #63a9f0;
  --bezel: #3b444a;
  --chip: #17232c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration-color: var(--run-dot); text-underline-offset: 3px; }
a:hover { color: var(--run); }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px;
  letter-spacing: -0.01em; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.theme { display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; background: var(--surface); }
.theme button { font: inherit; font-size: 13px; color: var(--muted); background: none;
  border: 0; border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.theme button[aria-pressed="true"] { background: var(--chip); color: var(--ink); font-weight: 600; }
.theme button:focus-visible { outline: 2px solid var(--lift); outline-offset: 1px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
  padding: 28px 0 40px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-size: clamp(48px, 8.5vw, 92px); line-height: 0.94; font-weight: 850;
  letter-spacing: -0.035em; }
.lead { margin: 22px 0 0; font-size: 21px; line-height: 1.45; max-width: 30ch; }
.stat { display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 0;
  padding: 8px 14px; border-radius: 999px; background: var(--chip); font-size: 15px; }
.stat::before { content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--run-dot); flex: none; }
.go { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.go a { padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); text-decoration: none; font-weight: 600; font-size: 15px; }
.go a:first-child { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.go a:first-child:hover { color: var(--bg); opacity: 0.88; }
.photo { margin: 0; justify-self: center; max-width: 360px; }
.photo img { border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22); }
figcaption { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* The real altitude line under the hero */
.trace { margin: 8px 0 0; }
.trace img { width: 100%; height: 110px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0;
  list-style: none; font-size: 14px; color: var(--muted); }
.legend li::before { content: ""; display: inline-block; width: 18px; height: 3px;
  border-radius: 2px; margin-right: 7px; vertical-align: middle; background: currentColor; }
.legend .r::before { background: #e8952a; }
.legend .l::before { background: #3d8fe0; }
.legend .s::before { background: #8a99a4; }

/* Sections */
.band { padding: 72px 0; border-top: 1px solid var(--line); }
h2 { margin: 0 0 18px; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.05;
  letter-spacing: -0.025em; font-weight: 800; }
.band p { max-width: 62ch; }
.split { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }

/* Watch screens: the round display in a dark bezel */
.dial { margin: 0; text-align: center; }
.dial img { border-radius: 50%; background: #000; margin: 0 auto;
  box-shadow: 0 0 0 9px var(--bezel), 0 18px 40px rgba(0, 0, 0, 0.28); }
.dial.big img { width: 280px; }
.dial figcaption { max-width: 22ch; margin: 22px auto 0; }

.steps { list-style: none; counter-reset: s; margin: 30px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
.steps li { counter-increment: s; position: relative; padding-left: 50px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--chip); color: var(--run); font-weight: 800; }
.steps b { display: block; font-size: 18px; margin-bottom: 2px; }

.screens { display: grid; grid-template-columns: repeat(5, 1fr); gap: 34px 22px; margin-top: 34px; }
.screens .dial img { width: 168px; box-shadow: 0 0 0 7px var(--bezel), 0 12px 28px rgba(0, 0, 0, 0.25); }
.screens b { display: block; color: var(--ink); }

.montana { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
table { border-collapse: collapse; width: 100%; max-width: 560px; margin: 8px 0 18px; }
th, td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); }
th { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  font-weight: 600; }
td.n { white-space: nowrap; }
.note { font-size: 15px; color: var(--muted); }
.montana .photo img { border-radius: 14px; }

.install { background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 32px; max-width: 760px; }
.install h2 { font-size: clamp(26px, 3.4vw, 34px); }
.install p:last-child { margin-bottom: 0; }

footer { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 14px;
  color: var(--muted); }
footer p { margin: 0 0 8px; max-width: none; }

@media (max-width: 860px) {
  .hero, .split, .montana { grid-template-columns: 1fr; gap: 36px; }
  .photo { max-width: 340px; }
  .screens { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .band { padding: 56px 0; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .screens .dial img { width: 140px; }
  .dial.big img { width: 250px; }
  .install { padding: 22px 20px; }
  .lead { font-size: 19px; }
}
