/* Fichi: the page speaks the app's own visual language.
 *
 * The app is a white iOS screen whose whole vocabulary is three states: green while working,
 * amber on a break, grey when clocked out, with red reserved for stopping and for a balance in
 * deficit. The page is the same white and grouped grey, and those colours appear only where they
 * carry the same meaning as in the app.
 *
 * The one bold element is the rail down the left margin. The page is laid out as one working
 * day, and the rail is coloured by the state at each point of it: green from the clock-in, amber
 * through the break, grey after clocking out.
 */

:root {
  color-scheme: light dark;

  /* iOS system surfaces: background, grouped background, separators. */
  --paper: #ffffff;
  --paper-2: #f2f2f7;
  --rule: #d8d8de;
  --rule-soft: #e8e8ed;
  --ink: #000000;
  --ink-2: #3c3c43;
  --ink-3: #6c6c70;

  /* The app's states. Each fill has an -ink twin dark enough to read as text on white, and an
     on- colour for text set on the fill itself. */
  --working: #34c759;
  --working-ink: #1f7a35;
  --on-working: #04210d;
  --paused: #f5a524;
  --paused-ink: #8a4f08;
  --on-paused: #2c1701;
  --stop: #e83a3a;
  --stop-ink: #c0262a;
  --off: #c7c7cc;

  /* iOS tint, darkened for small text on white. Links and focus only. */
  --link: #0062cc;
  --focus: #0a84ff;

  --frame: #0a0a0a;

  --display: Archivo, "Archivo Fallback", Impact, sans-serif;
  --sans: "IBM Plex Sans", "IBM Plex Sans Fallback", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 74rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --rail: clamp(0px, 12vw, 10.5rem);
  --section: clamp(4rem, 8vw, 7rem);
  /* Distance from the top of a timeline section to the centre of its stamp's dot. */
  --dot-y: calc(var(--section) + 0.7rem);

  --shadow-device: 0 1px 2px rgba(0, 0, 0, 0.12), 0 24px 40px -24px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 1px 2px rgba(0, 0, 0, 0.05), 0 10px 24px -16px rgba(0, 0, 0, 0.25);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000000;
    --paper-2: #1c1c1e;
    --rule: #38383a;
    --rule-soft: #2c2c2e;
    --ink: #ffffff;
    --ink-2: #d1d1d6;
    --ink-3: #98989f;

    --working: #30d158;
    --working-ink: #30d158;
    --paused: #ff9f0a;
    --paused-ink: #ffb340;
    --stop: #ff453a;
    --stop-ink: #ff6961;
    --off: #48484a;

    --link: #409cff;
    --focus: #409cff;

    /* A black phone on a black page needs a visible edge. */
    --frame: #3a3a3c;
  }
}

@font-face {
  font-family: Archivo;
  src: url("/fonts/archivo-var.woff2?v=b82ab2aead") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/plexsans-var.woff2?v=b82ab2aead") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plexmono-400.woff2?v=b82ab2aead") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plexmono-600.woff2?v=b82ab2aead") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* Metric-matched fallbacks, so the swap does not move the page under the reader. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial Bold"), local("Helvetica Bold"), local("Liberation Sans Bold");
  size-adjust: 102%;
  ascent-override: 92%;
  descent-override: 24%;
}

@font-face {
  font-family: "IBM Plex Sans Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 101%;
  ascent-override: 95%;
  descent-override: 26%;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.skip:focus { left: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.tag {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-3);
}

/* Clock values in a fixed-width face, so times line up the way they do in the app's list. */
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.body { color: var(--ink-2); }
.body + .body { margin-top: 1rem; }

.footnote {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-3);
  max-width: 46ch;
}

/* ---------- top bar ---------- */

.topbar {
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper);
}

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark { width: 26px; height: 26px; color: var(--working); border-radius: 7px; }

.topnav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: 0.95rem;
  font-weight: 500;
}

.topnav a {
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.2s ease;
}
.topnav a:hover { color: var(--ink); }

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

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 6vw, 5rem);
}

.hero h1 {
  font-size: min(clamp(2.6rem, 8vw, 6rem), 16cqw);
  margin-top: 0.75rem;
}

.hero-copy { container-type: inline-size; }

.lede {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 40ch;
}

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

/* Shaped like the app's own buttons. */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.4rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn:hover { opacity: 0.82; }
.btn:active { transform: translateY(1px); }

.cta-alt {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-2);
  text-underline-offset: 0.2em;
}

.hero-note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.92rem;
  color: var(--ink-3);
  max-width: 40ch;
}

/* ---------- devices ---------- */

/* The frame sits on the screenshot itself, so a caption can sit below the phone rather than
   inside its bezel. */
.device {
  margin-inline: auto;
  max-width: 340px;
}

.device img,
.device-lock {
  border: 5px solid var(--frame);
  border-radius: 36px;
  background: var(--frame);
  box-shadow: var(--shadow-device);
}

.device-hero { max-width: 375px; }

figcaption {
  margin-top: 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-3);
  text-align: center;
  max-width: 30ch;
  margin-inline: auto;
}

/* ---------- the glance: three answers ---------- */

.glance {
  background: var(--paper-2);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.states {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.state {
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: 18px;
  background: var(--paper);
}

.state-word {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.state-sub {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.state-off .state-word { color: var(--ink-3); }
.state-on { background: var(--working); }
.state-on .state-word, .state-on .state-sub { color: var(--on-working); }
.state-pause { background: var(--paused); }
.state-pause .state-word, .state-pause .state-sub { color: var(--on-paused); }

.states-foot {
  margin-top: 1.5rem;
  color: var(--ink-2);
  max-width: 52ch;
}

/* ---------- the day rail ---------- */

.timeline { position: relative; }

.mom {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  --lead: var(--off);
  --seg: var(--off);
}

/* data-prev colours the rail leading into a stamp, data-state the rail from it onwards. */
.mom[data-prev="working"] { --lead: var(--working); }
.mom[data-prev="paused"] { --lead: var(--paused); }
.mom[data-state="working"] { --seg: var(--working); }
.mom[data-state="paused"] { --seg: var(--paused); }

.mom-mark {
  position: relative;
  padding: var(--section) 1.75rem 0 0;
  text-align: right;
}

.mom-mark::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -2px;
  width: 4px;
  background: linear-gradient(to bottom, var(--lead) 0 var(--dot-y), var(--seg) var(--dot-y) 100%);
}

/* The stamp's dot on the rail, in the state that starts here. */
.mom-mark::after {
  content: "";
  position: absolute;
  right: -8px;
  top: calc(var(--dot-y) - 8px);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--seg);
  border: 3px solid var(--paper);
}

.mom-time {
  display: block;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.mom-label {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.mom-body {
  padding: var(--section) 0 0 clamp(1.5rem, 3vw, 3rem);
}

/* last-of-type: the script appends the .ahora mark after the last section. */
.mom:last-of-type .mom-body { padding-bottom: var(--section); }
.mom:last-of-type .mom-mark { padding-bottom: var(--section); }

.mom-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.mom-flip .mom-art { order: -1; }

.mom-copy > * + * { margin-top: 1.1rem; }
.mom-copy .h2 { margin-top: 0; }

/* Where the reader actually is in the day, on the reader's side of the rail. */
.ahora {
  position: absolute;
  left: calc(var(--gutter) + var(--rail));
  padding-left: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.ahora::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.ahora-time {
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ahora-label {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-3);
}

/* ---------- ticks, ways, artefacts ---------- */

.ticks { margin-top: 1.25rem; }

.ticks li {
  position: relative;
  padding-left: 1.4rem;
  margin-top: 0.6rem;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
}

.ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 2rem;
}

.ways li {
  padding: 1.2rem 1.25rem 1.3rem;
  border-radius: 18px;
  background: var(--paper-2);
}

.way-ico { display: block; width: 22px; height: 22px; color: var(--ink); }
.way-ico svg { width: 100%; height: 100%; }

.ways b {
  display: block;
  margin-top: 0.7rem;
  font-size: 1rem;
  font-weight: 600;
}

.ways span:last-child {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.92rem;
  color: var(--ink-3);
}

/* A notification, a list row, a balance: the app's artefacts, quoted onto the page. */
.notif,
.row-demo,
.balance {
  margin-top: 1.5rem;
  border-radius: 18px;
  background: var(--paper-2);
}

.notif {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.95rem 1.1rem;
  max-width: 34rem;
  box-shadow: var(--shadow-lift);
}

.notif-ico { width: 36px; height: 36px; flex: none; color: var(--working); }
.notif-ico svg { width: 100%; height: 100%; border-radius: 9px; }
.notif-body { display: block; min-width: 0; }

.notif-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.notif-when { color: var(--ink-3); }
.notif-text { display: block; margin-top: 0.1rem; font-size: 0.92rem; color: var(--ink-2); }

.row-demo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  max-width: 30rem;
}

.row-demo-when {
  font-family: var(--mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.row-demo-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--paused-ink);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
}

.row-demo-total {
  margin-left: auto;
  font-family: var(--mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.balance { padding: 1.2rem 1.4rem 1.3rem; max-width: 26rem; }

.balance-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-3);
}

.balance-num {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--working-ink);
  font-variant-numeric: tabular-nums;
}

/* A deficit is red in the app, so it is red here. */
.balance-under .balance-num { color: var(--stop-ink); }

.balance-sub {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.exports {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.exports li {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
}

/* ---------- the lock screen, drawn rather than photographed ---------- */

.device-lock { max-width: 340px; margin-inline: auto; overflow: hidden; }

.lockscreen {
  padding: 2.2rem 1.1rem 1.2rem;
  border-radius: 31px;
  background:
    radial-gradient(120% 70% at 70% 0%, rgba(48, 209, 88, 0.22), transparent 60%),
    linear-gradient(180deg, #0d1a12 0%, #05070a 62%);
  color: #fff;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.ls-lock { display: flex; justify-content: center; opacity: 0.8; }
.ls-lock svg { width: 20px; height: 20px; }

.ls-date {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.86rem;
  opacity: 0.8;
}

.ls-clock {
  text-align: center;
  font-family: var(--display);
  font-size: 4.4rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.la {
  margin-top: auto;
  padding: 0.85rem 0.9rem 0.95rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.la-top { display: flex; align-items: center; gap: 0.5rem; }
.la-mark { width: 18px; height: 18px; color: #30d158; flex: none; }
.la-mark svg { width: 100%; height: 100%; border-radius: 5px; }

.la-state {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #30d158;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.la-time {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.la-since {
  margin-top: 0.1rem;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.62;
}

.la-keys { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0.45rem; margin-top: 0.8rem; }

.la-key {
  padding: 0.65rem 0.4rem;
  border-radius: 12px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.la-key-pause { background: #f08b00; }
.la-key-stop { background: #e83a3a; }

.ls-bottom { display: flex; justify-content: space-between; margin-top: 1.2rem; }

.ls-round {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
}
.ls-round svg { width: 17px; height: 17px; }

.ls-home {
  display: block;
  width: 105px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
  margin: 0.9rem auto 0;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: beat 2.4s ease-out infinite;
}

@keyframes beat {
  0%, 70%, 100% { opacity: 1; }
  85% { opacity: 0.25; }
}

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

.facts {
  margin-top: 1.5rem;
  max-width: 34rem;
  border-radius: 18px;
  background: var(--paper-2);
  padding-inline: 1.1rem;
}

.facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.facts > div:last-child { border-bottom: 0; }

.facts dt { font-size: 0.95rem; color: var(--ink-2); }

.facts dd {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--working-ink);
}

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  color: var(--link);
}
.link-arrow:hover { text-decoration: underline; }

/* ---------- closer ---------- */

.closer {
  background: var(--paper-2);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  text-align: center;
}

.closer .h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
.closer .h2 em { font-style: normal; color: var(--working-ink); }
.closer .cta { justify-content: center; margin-top: 2rem; }
.closer .footnote { margin-inline: auto; text-align: center; margin-top: 2rem; }

.foot {
  border-top: 1px solid var(--rule-soft);
  padding-block: 1.75rem;
  background: var(--paper);
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.foot-brand { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }

/* The company layer every Lumesoft app site shares: the app keeps its own look, and the
   maker is named once, here, with the Lumesoft mark in its own colours. */
.foot-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.1rem; }

.foot-maker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--ink-3);
  text-decoration: none;
}
.foot-maker:hover { color: var(--ink); }
.foot-maker-mark { width: 1.15rem; height: 1.15rem; flex: none; }

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.88rem;
}

.foot-nav a { text-decoration: none; color: var(--ink-3); }
.foot-nav a:hover { color: var(--ink); }

/* ---------- documents ---------- */

.doc-head {
  border-bottom: 1px solid var(--rule-soft);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.doc-head .display { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
.doc-head .tag { display: block; margin-bottom: 0.8rem; }

.doc-updated {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.doc { padding-block: clamp(2.5rem, 5vw, 4rem); }
.doc > * { max-width: 40rem; }

.doc h2 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-top: 2.5rem;
}

.doc > h2:first-child { margin-top: 0; }
.doc p { margin-top: 0.9rem; color: var(--ink-2); }
.doc ul { margin-top: 0.9rem; padding-left: 1.1rem; list-style: disc; }
.doc li { margin-top: 0.4rem; color: var(--ink-2); }
.doc a { color: var(--link); font-weight: 500; }
.doc em { font-style: normal; font-weight: 600; color: var(--ink); }

.doc-callout {
  margin-top: 1.5rem;
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  border-left: 4px solid var(--working);
  background: var(--paper-2);
}

.doc-callout b { color: var(--ink); }

.doc-en {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.92rem;
  color: var(--ink-3);
}

.doc-en h2 { font-size: 1.05rem; margin-top: 0; }

/* ---------- narrow ---------- */

@media (max-width: 1000px) {
  .hero-in,
  .mom-in { grid-template-columns: minmax(0, 1fr); }

  .mom-flip .mom-art { order: 0; }

  .hero-in { padding-block: 2.5rem 3rem; }

  /* The rail folds into the flow: each stamp sits above its section on a bar in the state that
     starts there. */
  .mom { grid-template-columns: minmax(0, 1fr); }

  .mom-mark {
    padding: var(--section) 0 0;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
  }

  .mom-mark::before {
    top: calc(var(--section) - 1.5rem);
    bottom: auto;
    right: auto;
    left: 0;
    width: 3.5rem;
    height: 5px;
    border-radius: 3px;
    background: var(--seg);
  }

  .mom-mark::after { display: none; }
  .mom-body { padding: 1.5rem 0 0; }
  .ahora { display: none; }
}

@media (max-width: 700px) {
  .states { grid-template-columns: minmax(0, 1fr); }
  .row-demo { flex-wrap: wrap; gap: 0.5rem 1rem; }
  .row-demo-total { margin-left: 0; }
  .topnav { display: none; }
  .facts > div { flex-wrap: wrap; gap: 0.2rem 1rem; }
  .device { max-width: 290px; }
}
