/* VERT — the same palette as the app: ink, paper-white type, one orange accent. */
:root {
  --ink: #0b0d10;
  --ink-2: #12161b;
  --line: rgba(255, 255, 255, 0.10);
  --text: #f4f6f8;
  --muted: #9aa4ae;
  --accent: #ff5a1f;
  --ski: #4ab8ff;
  --wrap: 1080px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .14em; }
/* A mark drawn for this size, not the app icon shrunk into it. An app icon is made to
   be read at 60px+ with a rounded mask; at 28px its fine detail turns to mush — which is
   exactly what it looked like. This is the product's own line: a ridge, and the climb. */
.brand .mark { width: 26px; height: 26px; color: var(--accent); flex: none; }
.brand:hover .mark { color: var(--accent); }
.brand span { color: var(--text); }
.top nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.top nav a { color: var(--muted); font-size: 15px; }
.top nav a:hover { color: var(--text); text-decoration: none; }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
/* The scene is drawn, not photographed — see assets/hero.js. This veil keeps the
   headline readable over it without hiding the ridges. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,13,16,.30) 0%, rgba(11,13,16,.55) 58%, var(--ink) 100%);
}
/* A horizon along the foot of the hero rather than a full-bleed backdrop: the ridges
   sit under the phone, which then reads as standing in front of them. */
.hero-scene {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 78%;
  z-index: 0; display: block;
}
.hero-alt {
  fill: #FF5A1F; font-size: 26px; font-weight: 700;
  font-family: inherit; font-variant-numeric: tabular-nums;
}
.hero .wrap { position: relative; z-index: 2; padding-top: 92px; padding-bottom: 84px; }
.hero-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 52px; align-items: center; }
.eyebrow {
  color: var(--accent); font-size: 13px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; margin: 0 0 18px;
}
h1 {
  font-size: clamp(36px, 4.9vw, 56px); line-height: 1.06;
  letter-spacing: -.022em; margin: 0 0 20px; font-weight: 700;
  /* Each sentence should own its line. Where the column is too narrow for that,
     balance splits the remainder evenly instead of leaving "day." stranded alone. */
  text-wrap: balance;
}
.lede { font-size: 20px; color: #d7dde3; margin: 0 0 30px; max-width: 30em; }
.cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 17px;
  padding: 14px 26px; border-radius: 999px;
}
.btn:hover { text-decoration: none; filter: brightness(1.07); }
.btn-quiet { background: transparent; color: var(--text); border: 1px solid var(--line); }
.price-note { color: var(--muted); font-size: 15px; }

.phone {
  width: 100%; max-width: 320px; margin: 0 auto; display: block;
  border-radius: 34px; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
}

/* ---------- generic sections ---------- */
section { padding: 84px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
h2 {
  font-size: clamp(27px, 3.4vw, 38px); line-height: 1.15;
  letter-spacing: -.02em; margin: 0 0 18px; font-weight: 700;
}
h3 { font-size: 19px; margin: 0 0 8px; font-weight: 600; }
p { margin: 0 0 18px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.narrow { max-width: 44em; margin-left: auto; margin-right: auto; }

/* ---------- features ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card .k { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; display: block; margin-bottom: 12px; }

/* ---------- story ---------- */
.story { background: var(--ink-2); }
.story-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 46px; align-items: start; }
.portrait {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  /* 3:2, because she is sitting with legs out and a hand planted — a portrait
     crop amputates a foot or a hand no matter where you put it. */
  aspect-ratio: 3 / 2; object-fit: cover;
  background: linear-gradient(160deg, #1c2229, #12161b);
}
.sig { font-style: italic; color: var(--muted); margin-top: 22px; }

/* ---------- shots ---------- */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; margin-top: 44px; }
.shots figure { margin: 0; }
.shots img { width: 100%; border-radius: 20px; border: 1px solid var(--line); display: block; }
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; text-align: center; }

/* ---------- honesty / pricing ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel.free { background: transparent; }
.panel.pro { background: var(--ink-2); border-color: rgba(255, 90, 31, .45); }
.panel h3 { font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.panel .amount { font-size: 34px; font-weight: 700; margin: 6px 0 18px; }
.panel ul { list-style: none; padding: 0; margin: 0; }
.panel li { padding: 8px 0 8px 26px; position: relative; color: #cfd6dd; }
.panel li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- footer ---------- */
footer { padding: 54px 0 70px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
/* The credit is its own line: two names deserve air, and jamming them into the row of
   legal links made both harder to read. */
footer .made { flex-basis: 100%; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
.copy { margin-left: auto; }

/* ---------- legal pages ---------- */
.legal { padding: 60px 0 90px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { color: #cbd3da; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 9px; }
.legal .box {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px; margin: 26px 0;
}
.legal .box p:last-child { margin-bottom: 0; }
.legal dl { margin: 0; }
.legal dt { color: var(--muted); font-size: 14px; margin-top: 16px; }
.legal dd { margin: 2px 0 0; color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .story-grid { grid-template-columns: 1fr; gap: 28px; }
  .portrait { max-width: 100%; }
  .split { grid-template-columns: 1fr; }
  section { padding: 62px 0; }
  .top nav { gap: 14px; }
  .top nav a.hide-sm { display: none; }
}

/* ---- Scenery band: the claim about real photographs, shown rather than stated ---- */
.scenery { padding: 0 0 var(--section-gap); }
.scenery-marquee {
  overflow: hidden;
  /* Soft edges so cards drift in and out instead of hard-cutting at the frame. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.scenery-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: scenery-scroll 65s linear infinite;
}
.scenery-marquee:hover .scenery-track,
.scenery-track:focus-within { animation-play-state: paused; }
.scenery-track figure {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(240px, 30vw, 340px);
}
.scenery-track img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.scenery-track figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
@keyframes scenery-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .scenery-track { animation: none; }
  .scenery-marquee { overflow-x: auto; }
}
.scenery-note {
  margin: 22px auto 0;
  max-width: 60ch;
  text-align: center;
  color: var(--muted);
}

/* ---- hero readout: the altitude the drawn track has climbed to ---- */
.hero-phone { display: flex; justify-content: center; }
.write { margin-top: 26px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--accent); color: var(--accent);
  font-weight: 600; font-size: 16px; padding: 11px 22px; border-radius: 999px;
}
.btn-ghost:hover { text-decoration: none; background: rgba(255,90,31,.10); }

.portrait-figure { margin: 0; }
.portrait-figure figcaption {
  margin-top: 10px; font-size: 13px; color: var(--muted);
}

/* ---- footer credit: two people, said quietly, above the legal links ---- */
.made {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin: 0 0 26px; padding-bottom: 22px; font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.made-label { color: var(--muted); }
.made-amp { color: var(--muted); }
.made a {
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,.22);
  padding-bottom: 1px;
}
.made a:hover { text-decoration: none; border-bottom-color: var(--accent); color: var(--accent); }

/* ---- platforms: what you can install today, and what is coming ---- */
.platforms {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  gap: 14px; margin-top: 26px; justify-content: center;
}
.platform {
  display: flex; flex-direction: column; gap: 4px; text-align: center;
  padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--line);
}
.platform-os { font-weight: 600; color: var(--text); }
.platform-state { color: var(--muted); font-size: 15px; }
.platform.live { border-color: rgba(255,90,31,.35); }
.platform.live .platform-os { color: var(--accent); }
.platform.soon { opacity: .82; }

.price-note a { color: var(--muted); border-bottom: 1px solid rgba(255,255,255,.2); }
.price-note a:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }

/* ---- sibling app: a genuine cross-link to the other app by the same makers ---- */
.sibling { padding: 0 0 var(--section-gap); }
.sibling-card {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface, #12171d);
}
.sibling-mark { flex: none; width: 44px; height: 44px; color: #7cae5a; }
.sibling-mark svg { width: 100%; height: 100%; }
.sibling-text { flex: 1; min-width: 0; }
.sibling-eyebrow {
  color: var(--muted); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.sibling-text h3 { margin: 4px 0 6px; font-size: 18px; }
.sibling-text p { margin: 0; color: var(--muted); font-size: 15px; }
.sibling-link {
  flex: none; color: var(--text); font-weight: 600; white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,.22); padding-bottom: 1px;
}
.sibling-link:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }
@media (max-width: 640px) {
  .sibling-card { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* The iPhone card is now a link to the App Store. */
a.platform.live { text-decoration: none; transition: border-color .15s; }
a.platform.live:hover { border-color: var(--accent); text-decoration: none; }
a.platform.live .platform-state { color: var(--accent); }

/* Official App Store badge as the primary download link. */
.appstore { display: inline-block; line-height: 0; border-radius: 11px; transition: transform .12s, box-shadow .12s; }
.appstore svg { height: 56px; width: auto; display: block; }
.appstore:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.35); text-decoration: none; }
@media (max-width: 480px) { .appstore svg { height: 50px; } }

/* ---------- elevation lookup (/what-is-my-elevation/, /de/wie-hoch-bin-ich/) ----------
   The tool borrows the home page's own scene rather than inventing a second look: the
   number stands in front of the drawn ridges, which is exactly what the app does. The
   roaming label the scene animates is hidden here — on a page whose whole job is to show
   one number, a second number wandering behind it is noise. */
.hero-tool .hero-alt { display: none; }
.hero-tool .hero-grid { grid-template-columns: 1fr .92fr; align-items: center; }

.readout {
  background: rgba(18, 22, 27, .82);
  backdrop-filter: saturate(1.2) blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px 22px; min-height: 210px;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.readout.is-error { border-color: rgba(255, 90, 31, .45); }
.readout .status { margin: 0; color: var(--muted); font-size: 16px; }
.readout-label {
  margin: 0 0 6px; color: var(--muted); font-size: 12px;
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.readout .big {
  margin: 0; font-size: clamp(46px, 6vw, 62px); font-weight: 700;
  line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.readout .big .unit { font-size: .38em; font-weight: 600; color: var(--muted); margin-left: 4px; }
.readout .big-alt { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.readout .source { margin: 16px 0 0; color: var(--muted); font-size: 12px; }

/* A grid of small facts, not full-width rows: at this width a label on the left and a
   note on the right leave a lake of empty space between them. */
.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line);
}
.stat-label { display: block; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.stat-value {
  display: block; margin-top: 3px; font-size: 17px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stat-note { display: block; color: var(--muted); font-size: 12px; }
.stat-wide { grid-column: 1 / -1; }

/* The start block is the card's content until the reading replaces it: one big target,
   and one line saying what pressing it will do. */
.readout-start { display: flex; flex-direction: column; gap: 14px; }
.readout-start[hidden] { display: none; }
.btn-lg {
  width: 100%; justify-content: center;
  font-size: 19px; padding: 17px 30px;
}
.readout-hint { margin: 0; color: var(--muted); font-size: 14px; }
.readout-body:empty { display: none; }

/* The fields are folded away, but the way to them is present in every state: someone who
   will not hand over a location still came here for a height. The disclosure opens itself
   when a location lookup fails, because then this is no longer the alternative — it is the
   only route left. */
.manual-toggle { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.manual-toggle > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 14px;
}
.manual-toggle > summary::-webkit-details-marker { display: none; }
.manual-toggle > summary::before {
  content: ""; width: 7px; height: 7px; flex: none;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg) translate(-1px, -1px); transition: transform .15s;
}
.manual-toggle[open] > summary::before { transform: rotate(45deg) translate(-2px, -2px); }
.manual-toggle > summary:hover { color: var(--text); }
.manual-toggle > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.manual {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 16px;
}
.manual input { width: 100%; }
.manual label { flex: 1 1 8em; }
.manual button { flex: none; }

/* ---- the explanation below the fold ---- */
.tool-note { color: var(--muted); max-width: 46em; margin: 0 0 4px; }
.manual label { color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.manual input {
  background: #0e1216; color: var(--text); font: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px;
}
.manual input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.privacy-note { color: var(--muted); font-size: 12.5px; line-height: 1.6; margin: 14px 0 0; }

button.btn, button.btn-quiet { border: 0; font-family: inherit; cursor: pointer; }
button.btn-quiet { border: 1px solid var(--line); padding: 12px 22px; font-size: 16px; }

@media (max-width: 900px) {
  .hero-tool .hero-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; gap: 14px; }
  .manual label, .manual button { flex-basis: 100%; }
  .manual button { width: 100%; }
}
.manual-hint { margin: 12px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- articles (/altimeter/, /altitude-vs-elevation/) ----------
   Same scene as everywhere else, but a single column: an article has no second thing to
   put beside the headline, and a hero grid with one child just leaves a hole. */
.hero-article .hero-alt { display: none; }
.hero-article .wrap { padding-top: 76px; padding-bottom: 68px; }
.hero-article h1 { max-width: 15em; }
.hero-article .lede { max-width: 32em; margin-bottom: 0; }

.article { padding: 62px 0 20px; }
.article .wrap { max-width: 720px; }
.article h2 { font-size: 26px; margin: 46px 0 14px; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 19px; margin: 30px 0 8px; }
.article p, .article li { color: #cbd3da; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 9px; }
.article strong { color: var(--text); }

/* A fact worth stopping on, not a decorative pull-quote. */
.callout {
  background: var(--ink-2); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 18px 22px; margin: 26px 0;
}
.callout p { margin: 0; }
.callout p + p { margin-top: 10px; }

figure.diagram { margin: 30px 0; }
figure.diagram img { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; border-radius: 16px; }
figure.diagram figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; text-align: center; }

/* A comparison that is genuinely two-sided reads better as two columns than as prose. */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0; }
.compare > div { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.compare h3 { margin: 0 0 8px; font-size: 17px; }
.compare p { margin: 0; font-size: 15px; color: var(--muted); }

/* The tool is the point of the articles; the link to it should not look like a footnote. */
.try-tool {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  margin: 34px 0; padding: 20px 24px;
  background: var(--ink-2); border: 1px solid rgba(255,90,31,.38); border-radius: var(--radius);
}
.try-tool p { margin: 0; flex: 1 1 16em; }
.next-read { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; }
.next-read span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.next-read a { font-size: 18px; font-weight: 600; }

@media (max-width: 620px) {
  .compare { grid-template-columns: 1fr; }
}
.article code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 6px; color: var(--text);
}

/* ---- breadcrumbs + guide index cards ---- */
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }

/* A whole card as one target: the heading being the only clickable part of a big card is
   a small target pretending to be a large one. */
.card-link { display: flex; flex-direction: column; color: inherit; transition: border-color .15s, transform .15s; }
.card-link:hover { text-decoration: none; border-color: rgba(255,90,31,.5); transform: translateY(-2px); }
.card-link h2 { font-size: 20px; line-height: 1.3; margin: 0 0 10px; }
.card-link p { flex: 1; }
.card-more { margin-top: 16px; color: var(--accent); font-weight: 600; font-size: 15px; }

/* A file's actual contents, when quoting them is clearer than describing them. */
.article pre {
  background: #0b0e12; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; overflow-x: auto; margin: 22px 0;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.55;
  color: #cbd3da;
}
.article pre code { background: none; border: 0; padding: 0; font-size: inherit; }

/* Guide hubs hold few, wordy cards. auto-fit leaves the fourth one alone in a row of its
   own; a fixed pair reads as a list of guides instead of leftovers. */
.cards-guides { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .cards-guides { grid-template-columns: 1fr; } }
