/* Recno site styles.
   Palette, radii AND typefaces are the app's own (src/theme/appTheme.ts):
   Bricolage Grotesque for display, Geist for body, Geist Mono for data.
   Fonts are self-hosted — a page whose argument is "nothing leaves your device"
   should not hand every visitor's IP to a font CDN before first paint.
   Both families are SIL Open Font License 1.1. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("assets/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0e0e11;
  --night-2: #17171b;
  --night-3: #1f1f24;
  --canvas: #f5f4f2;
  --paper: #ffffff;
  --paper-2: #eeece8;
  --ink: #16161a;
  --ink-2: #5b5a56;
  /* Darker than the app's #8e8c86 muted token: at the small sizes this text is
     set in, that value lands at 2.85-3.36:1 on these surfaces. This clears AA. */
  --ink-3: #6b6963;
  --safety: #c74312;
  /* Accent as TEXT needs more weight than accent as a fill. */
  --safety-ink: #a9360d;
  --safety-hi: #e4632f;
  --safety-tint: #fbe9e0;
  --line: #e2e0dc;
  --line-2: #d5d2cc;
  --line-dark: #2a2a31;
  --dark-text-2: #b8b6b0;
  --dark-text-3: #86847e;
  --ok: #1f6a3f;

  --display: "Bricolage Grotesque", "Trebuchet MS", ui-sans-serif, sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;
  --gut: clamp(20px, 5vw, 64px);
  --topbar-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* height:auto is load-bearing: the width/height attributes on the images set a
   used height, and max-width alone would scale width only, stretching them. */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: var(--safety-ink); }

:focus-visible {
  outline: 3px solid var(--safety);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Anchor targets must clear the sticky header. */
[id] { scroll-margin-top: calc(var(--topbar-h) + 16px); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* Visually hidden but always announced. Kept separate from .skip so a change to
   the skip link's focus behaviour can never reveal a form label mid-page. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- shared type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--safety-ink);
  margin: 0 0 clamp(18px, 2vw, 30px);
}

.eyebrow--dark { color: var(--safety-hi); }

/* Section eyebrows carry real record data - job, temperature, hours on the
   clock - instead of 01/02/03 numbering. These sections are topics, not a
   sequence, and the whole product argument is that a record is worth nothing
   without its context. The leading tick is the same mark the App Store cards
   use, so the page and the store listing read as one thing. */
.eyebrow--stamp {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.eyebrow--stamp::before {
  content: "";
  flex: none;
  width: 3px;
  height: 0.95em;
  background: currentColor;
  border-radius: 1px;
  transform: translateY(0.08em);
}

/* The 0.95 line-height leaves the ink box slightly proud of the layout box;
   the padding/margin pair reserves that overhang so display type can never
   collide with the eyebrow above or the lead below. */
.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0;
  padding-block-start: 0.1em;
  margin-block-start: -0.1em;
  text-wrap: balance;
}

h1.display {
  font-size: clamp(40px, 7.2vw, 84px);
  max-width: 13ch;
}

h2.display {
  font-size: clamp(32px, 4.6vw, 58px);
  max-width: 16ch;
}

.lead {
  font-size: clamp(17px, 2.1vw, 21px);
  color: var(--ink-2);
  max-width: 58ch;
  margin: 22px 0 0;
}

.band--dark .lead { color: var(--dark-text-2); }

.section-note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 14px 0 0;
}

.band--dark .section-note { color: var(--dark-text-3); }
.band--dark .section-note a { color: var(--safety-hi); }

/* ---------- marketing shell ---------- */

.wrap {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding-inline: var(--gut);
}

.band { padding-block: clamp(72px, 11vw, 140px); }

.band--dark {
  background: var(--night);
  color: #f4f3f0;
}

/* A visible step from --canvas, unlike plain white. */
.band--paper { background: var(--paper-2); }

/* ---------- top bar (home) ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 244, 242, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar__in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--topbar-h);
  flex-wrap: wrap;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

/* The wordmark carries the app's own icon - the viewfinder reticle from
   assets/icon.png, redrawn as inline SVG so it stays sharp and costs no
   request. It replaced a floating orange square that matched nothing in the
   product and read as a rendering fault. */
.mark__icon {
  flex: none;
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.foot .mark__icon { width: 24px; height: 24px; }

.topbar__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 15px;
}

.topbar__links a {
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.topbar__links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 24px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  background: var(--safety);
  color: #fff;
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:hover { background: var(--safety-ink); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 10px 18px; font-size: 15px; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 .accent { color: var(--safety); }

.hero__form { margin-top: 32px; max-width: 520px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }

.hero__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--safety);
}

/* ---------- phone + the stamp caption ---------- */

/* Set like the app's burned-in photo stamp: mono, uppercase, label in orange. */
.shot__cap {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  margin: 20px 0 0;
}

.shot__cap b {
  display: block;
  color: var(--safety-ink);
  font-weight: 500;
}

.band--dark .shot__cap { color: var(--dark-text-3); }
.band--dark .shot__cap b { color: var(--safety-hi); }

/* ---------- app store call to action ---------- */

.btn--lg { padding: 16px 30px; font-size: 17px; }

.cta { margin-top: 32px; max-width: 540px; }

.cta__note {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 16px 0 0;
}

/* ---------- device frames ---------- */

/* One screen, one frame. The headline that used to be burned into the App Store
   panel is real text above the frame now: selectable, translatable, findable,
   and readable by a screen reader - none of which a JPEG of type can be.
   The frame is cropped square at the bottom because the capture is the top of a
   taller screen; a phone running off the edge reads as deliberate, where a
   full bezel with the feet chopped off reads as a mistake. */
.phone {
  width: min(100%, 300px);
  margin-inline: auto;
  padding: 10px 10px 0;
  background: linear-gradient(160deg, #2c2c33, #101014);
  border-radius: 42px 42px 14px 14px;
  box-shadow: 0 26px 56px rgba(22, 22, 26, 0.24), 0 2px 0 rgba(255, 255, 255, 0.12) inset;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 33px 33px 0 0;
}

.phone--hero { width: min(100%, 320px); }

.rail {
  list-style: none;
  margin: 0;
  padding: 0 0 16px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80vw, 288px);
  gap: clamp(22px, 3.5vw, 40px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  align-items: end;
}

.rail__item { scroll-snap-align: start; min-width: 0; }

.rail__title {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 8px;
}

.rail__sub {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 22px;
}

.rail .phone { width: 100%; }


/* ---------- counter strip ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-block: clamp(36px, 5vw, 56px) clamp(48px, 7vw, 84px);
}

.stat__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stat__num span { color: var(--safety); }

.stat__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 12px;
}

/* ---------- section head ---------- */

.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }

/* ---------- split layout ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.split--reverse .split__media { order: -1; }

/* ---------- point lists ---------- */

.points { margin: 28px 0 0; padding: 0; list-style: none; }

.points li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.band--dark .points li { border-top-color: var(--line-dark); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.band--dark .points li:last-child { border-bottom-color: var(--line-dark); }

.points strong { display: block; font-weight: 600; }
.points p { margin: 4px 0 0; color: var(--ink-2); font-size: 15.5px; }
.band--dark .points p { color: var(--dark-text-2); }

/* ---------- sifter scan demo ---------- */

.scan {
  background: var(--night-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px);
}

.scan__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.scan__title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-text-3);
}

.scan__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.tile {
  position: relative;
  aspect-ratio: 1;
  min-height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-dark);
  overflow: hidden;
  transition: opacity 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.tile__art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.tile[data-kind="other"] .tile__art { filter: grayscale(1) brightness(0.55); }

.tile__tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 5px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffd9c7;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tile.is-matched {
  border-color: var(--safety-hi);
  box-shadow: 0 0 0 2px var(--safety-hi);
}

.tile.is-matched .tile__tag { opacity: 1; transform: none; }
.tile.is-passed { opacity: 0.25; }

.tile.is-scanning::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(228, 99, 47, 0.6), transparent);
  animation: sweep 0.5s ease;
}

@keyframes sweep {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

.scan__out {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--dark-text-3);
  text-transform: uppercase;
}

.scan__count { color: var(--safety-hi); font-size: 22px; }

/* ---------- stamp builder ---------- */

.builder {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px);
}

.plate {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background-image: url("assets/plate.webp");
  background-size: cover;
  background-position: center;
}

.plate__stamp {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 16px 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
  font-family: var(--mono);
  font-size: clamp(10px, 1.4vw, 12px);
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff1e8;
}

.plate__stamp .is-off { display: none; }
.plate__stamp .k { color: var(--safety-hi); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }

.chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  background: var(--canvas);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip[aria-pressed="true"] {
  background: var(--safety-tint);
  border-color: var(--safety);
  color: var(--safety-ink);
}

.chip:hover { border-color: var(--safety); }

/* CSV carries only the hours table, so the section chips have nothing to act on. */
.chip:disabled { opacity: 0.45; cursor: default; }
.chip:disabled:hover { border-color: var(--line-2); }

/* ---------- report builder ---------- */

.report {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.report__bar {
  display: flex;
  gap: 6px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  flex-wrap: wrap;
}

.tab {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
}

.tab[aria-pressed="true"] { background: var(--ink); color: #fff; }

.sheet {
  padding: clamp(20px, 3vw, 30px);
  min-height: 340px;
  font-size: 14px;
}

.sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
}

.sheet__logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.sheet__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.sheet__meta--right { text-align: right; }

.sheet__block { padding: 14px 0; border-bottom: 1px solid var(--line); }
.sheet__block[hidden] { display: none; }

.sheet__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--safety-ink);
  margin-bottom: 9px;
}

.sheet__note { margin: 0; color: var(--ink-2); }

.sheet__photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

.sheet__photo {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: var(--paper-2);
}

.sheet__photo:nth-child(6n + 1) { background-image: url("assets/tile-1.webp"); }
.sheet__photo:nth-child(6n + 2) { background-image: url("assets/tile-2.webp"); }
.sheet__photo:nth-child(6n + 3) { background-image: url("assets/tile-3.webp"); }
.sheet__photo:nth-child(6n + 4) { background-image: url("assets/tile-4.webp"); }
.sheet__photo:nth-child(6n + 5) { background-image: url("assets/tile-5.webp"); }
.sheet__photo:nth-child(6n) { background-image: url("assets/tile-6.webp"); }

.sheet__rows { font-family: var(--mono); font-size: 12px; }

.sheet__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  color: var(--ink-2);
}

.sheet__row b { color: var(--ink); font-weight: 500; }

.sheet__empty {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 30px 0;
  text-align: center;
}

/* A <pre>, so the line breaks are structural rather than a styling accident. */
.sheet__csv {
  font-family: var(--mono);
  font-size: 12px;
  overflow-x: auto;
  color: var(--ink-2);
  line-height: 1.9;
  margin: 0;
}

.report__foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px clamp(20px, 3vw, 30px);
  border-top: 1px solid var(--line);
  background: var(--canvas);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- feature cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}

.card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- privacy band ---------- */

.truths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.truth {
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  padding: 22px;
  background: var(--night-2);
}

.truth h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--safety-hi);
  margin: 0 0 10px;
  font-weight: 500;
}

.truth p { margin: 0; color: var(--dark-text-2); font-size: 15px; }

/* ---------- closing call to action ---------- */

.join { text-align: center; }
.join .display, .join .lead { margin-inline: auto; }
.join__cta { margin: 32px 0 0; }

/* .eyebrow--stamp is a flex row, so it does not inherit .join's text-align. */
.join .eyebrow--stamp { justify-content: center; }

.foot__store { margin: 10px 0 0; font-size: 15px; }
.foot__store a { color: var(--safety-ink); }

/* ---------- pricing line ---------- */

.plan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 36px;
  text-align: left;
}

.plan__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  background: var(--paper);
}

.plan__k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--safety-ink);
  margin: 0 0 8px;
}

.plan__item p { margin: 0; font-size: 15px; color: var(--ink-2); }
.plan__item strong { color: var(--ink); }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  padding-block: 44px 56px;
  font-size: 15px;
}

.foot__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 44px;
  justify-content: space-between;
  align-items: flex-start;
}

.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__links a { color: var(--ink-2); text-decoration: none; }
.foot__links a:hover { color: var(--safety-ink); }

.foot__note {
  color: var(--ink-3);
  font-size: 13.5px;
  max-width: 62ch;
  margin: 22px 0 0;
}

/* ---------- reveal ----------
   Gated on .js so the content is never hidden when the script does not run. */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- legal pages ---------- */

.shell {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 26px var(--gut) 64px;
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}

.brand {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.nav-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.nav-links a { color: var(--ink-2); text-decoration: none; }
.nav-links a:hover { color: var(--safety-ink); }

.legal h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 5.5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}

.legal h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 29px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 42px 0 12px;
}

.legal p, .legal li { color: var(--ink-2); }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero__grid,
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 0; }
  .hero__media { max-width: 300px; margin-inline: auto; }
  /* The shot used to sit above the ask, back when the ask was "join a waitlist"
     and the picture was the only proof the app existed. The app ships now and
     the ask is a download button, so on a phone the headline and that button
     come first - above the fold - and the store card follows as support. */
  .hero__media { order: 0; margin-top: 40px; }
  .sheet__photos { grid-template-columns: repeat(3, 1fr); }
  .scan__grid { grid-template-columns: repeat(4, 1fr); }

  /* Section nav becomes a one-swipe rail rather than disappearing. */
  .topbar__in { padding-block: 10px; }
  .topbar__links {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .topbar__links::-webkit-scrollbar { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .scan__grid { grid-template-columns: repeat(3, 1fr); }
  .sheet__photos { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- print (the legal pages get saved as PDFs) ---------- */

@media print {
  .topbar, .nav, .foot, .rail, .scan, .builder, .report { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .shell, .wrap { width: auto; max-width: none; padding: 0; }
  .legal a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}
