/* Health Tracker — celest-watches.com/health-tracker/
 *
 * The palette is the app's own dark theme, not a scheme invented for the web:
 * BgDark, SurfaceDark, SurfaceVarDark, OutlineDark, OnSurfaceDark and
 * OnSurfaceVarDark are lifted from ui/theme/Theme.kt. The accent is sampled
 * from the launcher icon's gradient — top, middle and bottom. Someone who
 * installs the app should recognise the page they came from.
 *
 * No web fonts. A page whose argument is "nothing about you leaves your
 * device" has no business calling a font CDN on load.
 */

:root {
  --bg:        #121110;  /* Theme.kt BgDark          */
  --surface:   #1c1c1e;  /* Theme.kt SurfaceDark     */
  --surface-2: #2a2a2c;  /* Theme.kt SurfaceVarDark  */
  --line:      #3a3a3c;  /* Theme.kt OutlineDark     */
  --text:      #f2f1ef;  /* Theme.kt OnSurfaceDark   */
  --muted:     #98948e;  /* Theme.kt OnSurfaceVarDark*/
  --accent:    #ec7823;  /* icon gradient, midpoint  */
  --accent-hi: #fd9930;  /* icon gradient, top       */
  --accent-lo: #db5616;  /* icon gradient, bottom    */

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu,
          Cantarell, "Helvetica Neue", sans-serif;
  /* The display face. The product is a log, and a log is monospaced — so the
   * headings are set in it and the prose is not, which is the reverse of the
   * usual arrangement and the point. */
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --measure: 62ch;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* The header is sticky; without this an in-page jump parks the heading
     underneath it. */
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-underline-offset: 0.2em;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.prose { max-width: var(--measure); }

/* ── Type ─────────────────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.05rem; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-hi); }
a:hover { color: var(--text); }

strong { color: var(--text); font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

/* An eyebrow marks a section by what it answers, not by a number — the
 * sections are not a sequence and numbering them would imply an order the
 * reader does not have to follow. */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--muted);
  max-width: 46ch;
}

/* Secondary prose under a section heading. */
.section-body { margin-top: 1rem; }
.section-body p { color: var(--muted); }

.hero .lede { margin-top: 1rem; }

/* The log sample sits inside a section now rather than beside the hero. */
figure.log { margin: 0; }

/* Everything in "what you can log" was stacked in a narrow left column with
   the right half of the page empty: prose, then the sample, then eleven pills
   wrapping so that one of them was orphaned on its own row. Two columns puts
   the sample next to the list it illustrates and gives the pills room to break
   evenly. */
.logs-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
  margin-top: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 58rem) {
  .logs-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.logs-grid .kinds-head {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

/* ── Header ───────────────────────────────────────────────────────────── */

.site-head {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo));
  flex: none;
}

.site-head nav {
  display: flex;
  /* Wraps because the list grew past what a phone fits on one line. Without
     this the nav pushes the whole document 70px wider than the viewport and
     the entire page scrolls sideways. */
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.9rem;
  font-family: var(--mono);
}

.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover,
.site-head nav a[aria-current="page"] { color: var(--text); }

/* ── Sections ─────────────────────────────────────────────────────────── */

section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
section + section { border-top: 1px solid var(--line); }

.hero { padding-top: clamp(2.5rem, 7vw, 4.5rem); }

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
}

/* ── The hero screenshot ──────────────────────────────────────────────── */

/* The launcher icon's colour, glowing behind the phone. It is the only colour
   on an otherwise very dark page, so it does the work of a hero image without
   being one.
 *
 * A background gradient, not an absolutely positioned pseudo-element. The
 * pseudo-element version had to spill past the phone to be visible at all —
 * the screenshot's own dark bezel swallows anything tucked behind it — and
 * that overhang widened the document by 43px on a phone. Clipping it with
 * `overflow: hidden` fixed the scrollbar and gave the glow four hard
 * rectangular edges instead, which is worse: a blur you can see the corners of
 * reads as a rendering fault.
 *
 * A background cannot affect document width, and one that reaches transparent
 * well before the box edge has no edge to see. Both problems go away and the
 * pseudo-element is not needed at all. */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
  background: radial-gradient(
    58% 42% at 50% 46%,
    color-mix(in srgb, var(--accent) 42%, transparent) 0%,
    color-mix(in srgb, var(--accent) 16%, transparent) 42%,
    transparent 72%
  );
}

.hero-phone img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 34rem);
  height: auto;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-phone img { animation: phone-in 0.7s cubic-bezier(.2,.7,.3,1) backwards; }
}

@keyframes phone-in {
  from { opacity: 0; transform: translateY(1.5rem) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

/* ── The signature: a day out of the log ──────────────────────────────── */

/* This is the product. Not a phone in a bezel — the thing the app actually
 * produces, at the size you would read it. It is also the one artefact that
 * needs no screenshot, which is why the page can ship before there are any. */
figure.log { margin: 0; }

.log {
  font-family: var(--mono);
  font-size: clamp(0.78rem, 1.9vw, 0.9rem);
  line-height: 1.9;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 1.5rem;
  overflow-x: auto;
}

.log-day {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.log-row { display: flex; gap: 1rem; white-space: nowrap; }
.log-row .t { color: var(--accent); flex: none; font-variant-numeric: tabular-nums; }
.log-row .v { color: var(--text); }
.log-row .v em { color: var(--muted); font-style: normal; }

.log-note {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  white-space: normal;
  line-height: 1.6;
}

/* A staged reveal, one line at a time, because that is how a log fills up. */
@media (prefers-reduced-motion: no-preference) {
  .log > * { animation: line-in 0.45s ease-out backwards; }
  .log > :nth-child(1) { animation-delay: 0.05s; }
  .log > :nth-child(2) { animation-delay: 0.20s; }
  .log > :nth-child(3) { animation-delay: 0.35s; }
  .log > :nth-child(4) { animation-delay: 0.50s; }
  .log > :nth-child(5) { animation-delay: 0.65s; }
  .log > :nth-child(6) { animation-delay: 0.85s; }
}

@keyframes line-in {
  from { opacity: 0; transform: translateY(0.4rem); }
  to   { opacity: 1; transform: none; }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo));
  color: #1a0d02;
  border: 1px solid var(--accent-lo);
}

.btn:hover { filter: brightness(1.08); color: #1a0d02; }

.btn-note { color: var(--muted); font-size: 0.85rem; }

/* ── Card grids ───────────────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-top: 2.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

.grid > * {
  background: var(--surface);
  padding: 1.5rem clamp(1.15rem, 2.5vw, 1.6rem);
}

.grid h3 { margin-bottom: 0.4rem; color: var(--text); }
.grid p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* What you can log — plain, dense, no icons. Eleven things is the fact. */
.kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kinds li {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  background: var(--surface-2);
}

/* ── Callout, used for the scope explanation and the medical notice ───── */

.callout {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 0.6rem 0.6rem 0;
  background: var(--surface);
  padding: 1.35rem clamp(1.15rem, 3vw, 1.75rem);
}

.callout h3 { margin-bottom: 0.5rem; }
.callout p { color: var(--muted); font-size: 0.97rem; }
/* .scope is gone with the technical scope string it styled — the exact
   permission is named in the privacy policy now, not on the homepage. */

/* ── Hero subtitle ────────────────────────────────────────────────────── */

/* The Play listing is "Health Tracker: Symptom Diary", but the h1 has to read
 * exactly "Health Tracker" — it must match app_name and the App name on the
 * OAuth consent screen, and a mismatch there is a verification rejection. So
 * the second half sits under it as its own line, which reads better anyway. */
.subtitle {
  font-family: var(--mono);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--accent);
  letter-spacing: 0.02em;
  margin: 0.35rem 0 0;
}

/* ── Use cases and USPs ───────────────────────────────────────────────── */

/* Six USP cards, so two columns on a medium screen rather than the default
   single. */

/* ── The ecosystem panel ──────────────────────────────────────────────── */

/* Deliberately not a .callout and not a card: it sat directly under three
   cards and read as a fourth. Full-width, accent-tinted, with the two apps as
   links you can obviously click rather than prose with underlines in it. */
.ecosystem {
  margin-top: 2.25rem;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 0.75rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  background:
    radial-gradient(120% 140% at 0% 0%,
      color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    var(--surface);
}

.ecosystem h3 { margin-bottom: 0.5rem; }
.ecosystem > p { color: var(--muted); max-width: var(--measure); }

.eco-apps {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 44rem) { .eco-apps { grid-template-columns: 1fr 1fr; } }

.eco-app {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1rem 1.15rem;
  background: var(--bg);
  transition: border-color 0.15s, transform 0.15s;
}

.eco-app:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.eco-app b {
  display: block;
  font-family: var(--mono);
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

/* Block, not the inline a span defaults to — otherwise the "open in a new tab"
   line runs on from the end of the description like part of the sentence. */
.eco-app span { display: block; color: var(--muted); font-size: 0.9rem; }

.eco-app .go {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent-hi);
}

/* ── The six things it does not do ────────────────────────────────────── */

/* Not cards. Six equal bordered cells in a 2x3 grid is a table with the word
   "table" taken off it, and it had the usual grid problems: every cell
   stretched to the tallest in its row, so the short ones sat in a pool of
   empty space. A two-column flow lets each item be its own height. */
.nots {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  columns: 1;
  column-gap: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 46rem) { .nots { columns: 2; } }

.nots li {
  break-inside: avoid;
  margin-bottom: 2.25rem;
}

.nots h3 {
  color: var(--accent-hi);
  margin-bottom: 0.45rem;
}

/* The accent bar carries the "no" without a box around it. */
.nots h3::before {
  content: "";
  display: inline-block;
  width: 1.1rem;
  height: 2px;
  vertical-align: 0.35em;
  margin-right: 0.5rem;
  background: var(--accent);
}

.nots p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.nots p + p { margin-top: 0.7rem; }

/* No rule above it. In a two-column flow a full-width dashed line reads as a
   divider between items rather than as part of one. */
.nots .note {
  border-top: 0;
  padding-top: 0;
  color: var(--accent);
  opacity: 0.85;
}

/* ── Scenarios ────────────────────────────────────────────────────────── */

/* Not cards. These are five things someone says to themselves before they go
   looking for an app, and boxing them in a grid made them read like a feature
   matrix — which is the opposite of the point. Numbered, stacked, and given
   room, so they read as a list of people rather than of functions. */
.scenarios {
  list-style: none;
  counter-reset: scenario;
  padding: 0;
  margin: 2.5rem 0 0;
  max-width: 54rem;
}

.scenarios li {
  counter-increment: scenario;
  position: relative;
  padding: 1.75rem 0 1.75rem clamp(2.75rem, 6vw, 4rem);
  border-top: 1px dashed var(--line);
}

.scenarios li:last-child { border-bottom: 1px dashed var(--line); }

.scenarios li::before {
  content: counter(scenario, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.9rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.scenarios h3 {
  color: var(--text);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  margin-bottom: 0.55rem;
}

.scenarios p {
  color: var(--muted);
  max-width: var(--measure);
  margin: 0;
}

/* The qualifying note inside a scenario drops its own dashed rule — the item
   already sits between two, and a third reads as a mistake. */
.scenarios .note {
  border-top: 0;
  padding-top: 0;
  margin-top: 0.7rem;
  color: var(--accent);
  opacity: 0.85;
}

/* ── Screenshot slider ────────────────────────────────────────────────── */

/* Full-bleed: it breaks out of .wrap so the strip runs edge to edge, which is
   what makes it read as something to drag rather than a row of thumbnails. */
.shots-section { overflow: hidden; }

.slider {
  margin-top: 2.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  /* The bar is redundant next to the dots and adds a scrolling artefact under
     transparent PNGs. */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.slider::-webkit-scrollbar { display: none; }

/* It is focusable for keyboard scrolling, so it needs a visible focus ring —
   the global :focus-visible rule does not reach it because the outline would
   be clipped by the overflow. */
.slider:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: -2px;
  border-radius: 0.5rem;
}
.slider.is-dragging { cursor: grabbing; }
.slider.is-dragging img { pointer-events: none; }

.slider-track {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  padding: 0 var(--pad);
  width: max-content;
}

/* When everything fits there is nothing to drag, and a short row pinned to the
   left edge looks like a layout that failed to load. */
.slider.is-centred .slider-track {
  margin: 0 auto;
  width: auto;
}
.slider.is-centred { cursor: default; }

.slider-track img {
  display: block;
  height: auto;
  width: clamp(9rem, 26vw, 15rem);
  flex: none;
  user-select: none;
  -webkit-user-drag: none;
}

.slider-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.slider-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.slider-dot:hover { background: var(--muted); }
.slider-dot.is-on { background: var(--accent); transform: scale(1.35); }

/* A qualifying line under a card: what a feature needs, in smaller type, so it
   does not compete with what the feature is. */
.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line);
}

/* ── Lightbox ─────────────────────────────────────────────────────────── */

/* The thumbnails are buttons so they are keyboard-reachable and announced as
   controls; the button itself must leave no trace of one. */
.shot {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  display: block;
  flex: none;
  border-radius: 0.5rem;
}

.shot img { display: block; }
.slider.is-dragging .shot { cursor: grabbing; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  padding: clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] { display: none; }

.lb-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

/* Never enlarged past the file's own size — an upscaled screenshot looks
   worse than a smaller sharp one. */
.lb-figure img {
  max-width: min(100%, 28rem);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lb-figure figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  max-width: 34rem;
}

.lb-close,
.lb-nav {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  flex: none;
}

.lb-close {
  position: absolute;
  top: clamp(0.75rem, 3vw, 1.5rem);
  right: clamp(0.75rem, 3vw, 1.5rem);
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
}

.lb-nav {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
}

.lb-close:hover,
.lb-nav:hover { background: var(--surface-2); border-color: var(--accent); }

/* On a phone there is no room either side, so the arrows sit under the image
   rather than beside it. */
@media (max-width: 34rem) {
  .lightbox { flex-wrap: wrap; }
  .lb-figure { order: -1; flex-basis: 100%; }
  /* The arrow row is only 2.75rem, so the image can have more of the screen
     than the desktop figure needs to leave beside itself. */
  .lb-figure img { max-height: 74vh; }
}

/* ── Comparison table ─────────────────────────────────────────────────── */

.table-wrap {
  margin-top: 2.25rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.versus {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 34rem;
}

.versus th,
.versus td {
  text-align: left;
  padding: 0.85rem clamp(0.85rem, 2vw, 1.35rem);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.versus tr:last-child th,
.versus tr:last-child td { border-bottom: 0; }

.versus thead th {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  white-space: nowrap;
}

.versus thead th:nth-child(2) { color: var(--accent); }

.versus tbody th {
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
}

.versus td { color: var(--muted); background: var(--surface); }
.versus td:first-of-type { color: var(--text); }

.table-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  max-width: var(--measure);
}

/* ── Document pages (privacy, terms) ──────────────────────────────────── */

.doc { padding: clamp(2.5rem, 7vw, 4rem) 0 clamp(3rem, 8vw, 5rem); }
.doc .prose > h1 { margin-bottom: 0.5rem; }
.doc .prose > h2 {
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.doc .prose > h2:first-of-type { border-top: 0; padding-top: 0; }
.doc .prose > p:first-of-type {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}
.doc .prose > p:first-of-type em { font-style: normal; }
.doc .prose ul { padding-left: 1.15rem; margin: 0 0 1.1em; }
.doc .prose li { margin-bottom: 0.5em; }
.doc .prose li::marker { color: var(--accent); }

.doc-back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
}
.doc-back:hover { color: var(--text); }

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 3rem 0 3.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-foot .claim {
  font-family: var(--mono);
  color: var(--text);
  margin-bottom: 0.75rem;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.75rem 0 1.5rem;
}

.site-foot nav a { color: var(--muted); text-decoration: none; }
.site-foot nav a:hover { color: var(--accent-hi); }

.site-foot .fine { font-size: 0.82rem; }


/* ── Analytics consent (consent.js) ───────────────────────────────────── */

.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  font-size: 0.92rem;
}
.consent p { margin: 0 0 0.9rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.consent .btn { padding: 0.55rem 1.1rem; cursor: pointer; }
.consent:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent-now { color: var(--muted); font-size: 0.85rem; }
/* Declining is as easy and as visible as accepting: the same button, the same
   size, filled rather than outlined — a faint outline reads as nudging. */
.consent .btn-decline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--muted);
}
.consent .btn-decline:hover { color: var(--text); border-color: var(--text); }

/* ── Print ────────────────────────────────────────────────────────────── */

@media print {
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #ffffff;
    --line: #cccccc;
    --text: #000000;
    --muted: #444444;
    --accent: #8a3d05;
    --accent-hi: #8a3d05;
    --accent-lo: #8a3d05;
  }
  body { font-size: 11pt; line-height: 1.5; }
  .site-head, .doc-back, .site-foot nav, .cta-row,
  .slider, .slider-dots, .lightbox, .consent { display: none; }
  .prose { max-width: none; }
  .doc { padding: 0; }
  a { color: #000; text-decoration: underline; }
  /* A printed policy is read on paper, where a link is only useful if its
     address is visible. */
  .prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    word-break: break-all;
  }
  h1, h2, h3 { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
}
