/**
 * pages.css: the product, trust, company and guide pages.
 *
 * Linked AFTER style.css, and only by: product-floor, product-voice,
 * product-books, product-intelligence, product-apps, security, about,
 * contact, guides and the two guide-*.html articles. Everything here is a
 * component style.css does not have; nothing here restyles one it does.
 * Colours come from style.css's tokens only, so light and dark follow it.
 *
 * COMPONENTS
 *   .hero-split            page hero with text beside a screenshot (feature pages)
 *   ul.hero-facts          small facts under the hero actions
 *   .in-plan               "Included in" row: span.plan-pill (.off when not)
 *   ol.week > li           a week on the desk: .week-day, h3, p, span.screen
 *   ul.units > li          what a desk records: b (unit) + span
 *   .limits                "What it does not do": h2, p, ul.crosses
 *   ul.crosses             drawn crosses, the opposite of ul.ticks
 *   .scope > .scope-col    two columns: what we keep, what stays elsewhere
 *   table.facts            plain data table; cards with td[data-label] at <=860px
 *   .brief                 numbered summary box (security)
 *   .controls              control cards with a .label
 *   .prose                 long-form article text (guides, story)
 *   .guide-layout          article + sticky .toc aside
 *   .short-answer          the answer first, boxed
 *   .label-law / .label-fit  tags that separate the law from the product
 *   .guide-cards > a.guide-card   guide index cards
 *   .mail-card, ol.steps, .demo-card, .principles
 */

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

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.hero-split .frame {
  margin-top: 0;
}
.hero-split h1 {
  max-width: 19ch;
}
.hero-split .phone {
  max-width: 300px;
  margin: 0 auto;
}
.hero-visual-duo {
  position: relative;
  padding-bottom: 36px;
}
.hero-visual-duo .frame {
  margin-right: 18%;
}
.hero-visual-duo .phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26%;
  min-width: 96px;
  margin: 0;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.hero-facts b {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px dashed var(--stitch);
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.page-hero.center .hero-facts {
  justify-content: center;
}

/* --------------------------------------------------------------- in-plan */

.in-plan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.tint .in-plan {
  background: var(--ground);
}
.in-plan > b {
  font-size: 15px;
  margin-right: 4px;
}
.in-plan .plan-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plan-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
}
.plan-pill small {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.plan-pill.off {
  border: 1.5px dashed var(--line-strong);
  background: transparent;
  color: var(--ink-3);
}
.plan-pill.off small {
  color: var(--ink-3);
}
.in-plan .more {
  margin-left: auto;
}

/* ------------------------------------------------------------------ week */

/* A week on the desk, drawn as a seam down the left: one stitch per day. */
.week {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  position: relative;
}
.week::before {
  content: '';
  position: absolute;
  left: 63px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--stitch) 0 6px, transparent 6px 11px);
}
.week li {
  position: relative;
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 24px;
  align-items: start;
}
.week-day {
  position: relative;
  z-index: 1;
  justify-self: start;
  width: 128px;
  padding: 9px 0;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: var(--surface);
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.tint .week-day {
  background: var(--ground);
}
.week-body {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.tint .week-body {
  background: var(--ground);
}
.week-body h3 {
  font-size: 18px;
}
.week-body p {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 72ch;
}
.screen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.screen::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.tint .screen {
  background: var(--surface);
}

/* ----------------------------------------------------------------- units */

.units {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.units li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.tint .units li {
  background: var(--ground);
}
.units b {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 34px;
  padding: 0 9px;
  border-radius: 10px;
  border: 1px dashed var(--stitch);
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.units strong {
  display: block;
  margin-top: 14px;
  font-size: 16px;
}
.units span {
  display: block;
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- limits */

/* What it does not do: a sewn-on label, dashed inside its own border. */
.limits {
  position: relative;
  padding: 34px 34px 30px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
}
.tint .limits {
  background: var(--ground);
}
.limits::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1.5px dashed var(--stitch-quiet);
  border-radius: 14px;
  pointer-events: none;
}
.limits > * {
  position: relative;
  z-index: 1;
}
.limits h2 {
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.02em;
}
.limits > p {
  margin-top: 10px;
  color: var(--ink-2);
  max-width: 70ch;
}
.limits .crosses {
  columns: 2;
  column-gap: 36px;
  margin-top: 22px;
}
.limits .crosses li {
  break-inside: avoid;
}
.limits .limits-foot {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-3);
}

.crosses {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15.5px;
}
.crosses li {
  position: relative;
  padding: 9px 0 9px 32px;
  border-top: 1px solid var(--line);
}
.crosses li::before {
  content: '\00d7';
  position: absolute;
  left: 0;
  top: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bad-tint);
  color: var(--bad);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.crosses b {
  font-weight: 600;
}
.crosses span {
  color: var(--ink-2);
}

/* ----------------------------------------------------------------- scope */

.scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.scope-col {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.tint .scope-col {
  background: var(--ground);
}
.scope-col.ours {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: inset 3px 0 0 var(--accent);
}
.scope-col h3 {
  font-size: 19px;
}
.scope-col > p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
}
.scope-col .ticks,
.scope-col .crosses {
  margin-top: 18px;
}
.scope-col .crosses li::before {
  background: var(--muted-tint);
  color: var(--ink-2);
}

/* ----------------------------------------------------------- data table */

/**
 * A plain table for facts (who sees what, a worked example). It sits in a
 * .compare-scroll so the site's measurement of hidden width applies to it;
 * it never sets a min-width, and at 860px and below every row becomes a
 * card whose cells print their column name from data-label.
 */
table.facts {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
table.facts th,
table.facts td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
table.facts thead th {
  font-size: 13px;
  font-weight: 700;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-strong);
}
table.facts tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 24%;
}
table.facts td {
  color: var(--ink-2);
}
table.facts td.num {
  text-align: right;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
}
table.facts thead th.num {
  text-align: right;
}
table.facts tbody tr:last-child > * {
  border-bottom: 0;
}
table.facts .m {
  margin-bottom: 0;
}
@media (max-width: 860px) {
  table.facts,
  table.facts tbody,
  table.facts tr {
    display: block;
  }
  table.facts thead {
    display: none;
  }
  table.facts tr {
    border-bottom: 1px solid var(--line);
  }
  table.facts tbody tr:last-child {
    border-bottom: 0;
  }
  table.facts tbody th {
    display: block;
    width: auto;
    padding: 14px 16px 6px;
    border-bottom: 0;
    font-size: 16px;
  }
  /* Block, not grid: a status chip and the words after it must flow as
     one line of text, and a grid would make each its own cell. */
  table.facts td {
    display: block;
    position: relative;
    /* The label column is a third of the card on a phone, but capped, so
       a tablet-width card does not open a 260px gap before each value. */
    padding: 6px 16px 6px calc(min(36%, 172px) + 22px);
    border-bottom: 0;
  }
  table.facts td:last-child {
    padding-bottom: 14px;
  }
  table.facts td.num {
    text-align: left;
  }
  table.facts td::before {
    content: attr(data-label);
    position: absolute;
    left: 16px;
    top: 6px;
    width: min(36%, 172px);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-3);
    line-height: 1.7;
  }
}

/* ----------------------------------------------------------------- brief */

.brief {
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--raise);
}
.brief > b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.brief ol {
  list-style: none;
  counter-reset: brief;
  margin: 14px 0 0;
  padding: 0;
}
.brief li {
  counter-increment: brief;
  position: relative;
  padding: 12px 0 12px 44px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}
.brief li::before {
  content: counter(brief, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.brief li:first-child {
  border-top: 0;
}

/* -------------------------------------------------------------- controls */

.controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.controls .card h3 {
  font-size: 18px;
}
.controls .card p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
.controls .card p + p {
  margin-top: 8px;
}
.controls .card .ticks {
  margin-top: 14px;
  font-size: 15px;
}
.label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-tint);
  color: var(--accent-ink);
}
.label.label-demo {
  background: var(--warn-tint);
  color: var(--warn);
}
.label.label-law {
  background: var(--info-tint);
  color: var(--info);
}
.label.label-fit {
  background: var(--accent-tint);
  color: var(--accent-ink);
}
.controls .demo-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--warn-tint);
  font-size: 14.5px;
  color: var(--ink);
}

/* ----------------------------------------------------------------- prose */

.prose {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}
.prose > * + * {
  margin-top: 16px;
}
.prose h2 {
  margin-top: 52px;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.02em;
  scroll-margin-top: 88px;
}
.prose h3 {
  margin-top: 30px;
  font-size: 19px;
}
.prose h2 + *,
.prose h3 + * {
  margin-top: 12px;
}
.prose ul,
.prose ol {
  padding-left: 1.3rem;
}
.prose li + li {
  margin-top: 6px;
}
.prose .callout,
.prose .compare-scroll,
.prose .scope {
  margin-top: 22px;
}
.prose .callout p + p {
  margin-top: 8px;
}
.prose .muted {
  color: var(--ink-2);
  font-size: 15px;
}

/* --------------------------------------------------------------- guides */

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: start;
}
.guide-layout .prose {
  max-width: 720px;
}
.toc {
  position: sticky;
  top: 88px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14.5px;
}
.toc > b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.toc ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}
.toc ol a {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--line);
  color: var(--ink-2);
  text-decoration: none;
}
.toc ol a:hover {
  border-left-color: var(--accent);
  color: var(--ink);
}
.toc .toc-meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}
.toc .toc-meta p + p {
  margin-top: 6px;
}

.short-answer {
  position: relative;
  padding: 24px 26px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: var(--radius);
  background: var(--accent-tint);
}
.short-answer > b {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.short-answer p {
  margin-top: 8px;
  font-size: 17px;
  color: var(--ink);
}
.short-answer ul {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-2);
}
.page-hero.center .guide-meta {
  justify-content: center;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 0.15s ease-out,
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out;
}
.guide-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-2px);
  box-shadow: var(--raise);
}
.guide-card .guide-no {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.guide-card h2 {
  font-size: clamp(22px, 2.6vw, 26px);
  letter-spacing: -0.02em;
}
.guide-card p {
  font-size: 15.5px;
  color: var(--ink-2);
}
.guide-card ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  flex: 1;
  font-size: 14.5px;
  color: var(--ink-2);
}
.guide-card ul li {
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.guide-card .card-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* -------------------------------------------------------------- contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: start;
}
.mail-card {
  padding: 32px;
  border: 2px solid var(--accent);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--raise);
}
.mail-card .kicker {
  margin-bottom: 8px;
}
.mail-card .address {
  display: inline-block;
  margin-top: 6px;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mail-card .address:hover {
  color: var(--accent);
}
.mail-card > p {
  margin-top: 12px;
  color: var(--ink-2);
}
.mail-card .btn {
  margin-top: 22px;
}
.mail-card h2 {
  margin-top: 28px;
  font-size: 18px;
}
.mail-card .ticks {
  margin-top: 12px;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 22px 20px 70px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.tint .steps li {
  background: var(--ground);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--stitch);
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 800;
}
.steps b {
  display: block;
  font-size: 16px;
}
.steps span {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--ink-2);
}

.demo-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.tint .demo-card {
  background: var(--ground);
}
.demo-card h2,
.demo-card h3 {
  font-size: 19px;
}
.demo-card > p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
}
.demo-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 18px 0 0;
  font-size: 15px;
}
.demo-card dt {
  color: var(--ink-3);
  font-weight: 600;
}
.demo-card dd {
  margin: 0;
}
.demo-card code,
.logins code {
  font-family: inherit;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.demo-card .btn {
  margin-top: 20px;
}
details.logins {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
details.logins summary {
  cursor: pointer;
  padding: 14px 0 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
}
details.logins ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
}
details.logins li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  color: var(--ink-2);
}

.routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.routes .card h3 {
  font-size: 17px;
}
.routes .card p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
}
.routes .card .more {
  display: inline-block;
  margin-top: 12px;
}

/* ---------------------------------------------------------------- about */

.story {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}
.pull {
  margin: 0;
  padding: 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--raise);
}
.pull p {
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.pull footer {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-3);
}
.pull .ticks {
  margin-top: 18px;
}

.principles {
  list-style: none;
  counter-reset: pr;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.principles li {
  counter-increment: pr;
  position: relative;
  padding: 26px 26px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.tint .principles li {
  background: var(--ground);
}
.principles li::before {
  content: counter(pr, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.principles b {
  display: block;
  font-size: 17.5px;
}
.principles span {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
}

/* ------------------------------------------------------------- spacing */

.section-head + .limits,
.section-head + .week,
.section-head + .units {
  margin-top: 0;
}
.block-gap {
  margin-top: 40px;
}
.lede-note {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--ink-3);
}

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

@media (max-width: 1040px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .toc {
    position: static;
    order: -1;
  }
  /* Above a phone, the contents run in two columns, so the box is a short
     strip rather than a tall card before any of the article. */
  .toc ol {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
  .units {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Three routes stay three across down to 720px, then stack: two columns
   left the third card alone at half width beside an empty cell. */
@media (max-width: 719px) {
  .routes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero-split,
  .story,
  .contact-grid,
  .scope,
  .controls,
  .guide-cards,
  .principles {
    grid-template-columns: 1fr;
  }
  .hero-split {
    gap: 36px;
  }
  .limits .crosses {
    columns: 1;
  }
  .story {
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .week::before {
    left: 15px;
    top: 0;
    bottom: 0;
  }
  .week li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 34px;
  }
  .week li::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--ground);
  }
  .tint .week li::before {
    box-shadow: 0 0 0 4px var(--surface);
  }
  .week-day {
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
  }
  .tint .week-day {
    background: transparent;
  }
  .week-body {
    padding: 18px;
  }
  .units,
  .routes {
    grid-template-columns: 1fr;
  }
  .limits {
    padding: 26px 22px 22px;
  }
  .in-plan .more {
    margin-left: 0;
  }
  .mail-card,
  .guide-card {
    padding: 24px;
  }
  .toc ol {
    grid-template-columns: 1fr;
  }
  .toc ol a {
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .mail-card .address {
    padding: 3px 0;
  }
  .steps li {
    padding: 18px 18px 18px 62px;
  }
  .steps li::before {
    left: 16px;
    top: 18px;
  }
  .hero-visual-duo .frame {
    margin-right: 22%;
  }
  .hero-visual-duo .phone {
    width: 30%;
    border-width: 4px;
    border-radius: 16px;
  }
  .hero-visual-duo .phone img {
    border-radius: 12px;
  }
}

/* A phone screenshot as the visual half of a .feature row. */
.phone-feature {
  justify-self: center;
  width: 100%;
  max-width: 300px;
}
@media (max-width: 640px) {
  .phone-feature {
    max-width: 240px;
  }
}

/* Four sourced figures in a row; six entries in threes. */
.stats.stats-4 {
  grid-template-columns: repeat(4, 1fr);
}
.units.units-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1040px) {
  .stats.stats-4,
  .units.units-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .stats.stats-4,
  .units.units-3 {
    grid-template-columns: 1fr;
  }
}

/* A kicker is inline-flex for the section heads; in these blocks it must
   sit on its own line above what follows. */
.mail-card .kicker,
.prose .kicker,
.limits .kicker {
  display: flex;
}
.mail-card .address {
  display: block;
}
.prose .kicker + h2 {
  margin-top: 0;
}

/* A guide's body starts close under its hero. */
section.guide-section {
  padding-top: 56px;
}
/* Desktop only: below 861px the row heading is a full-width card title,
   and this width (more specific than the phone rule) squeezed it into a
   third of the card, one or two words to a line. */
@media (min-width: 861px) {
  table.facts.examples tbody th {
    width: 32%;
  }
}
@media (max-width: 640px) {
  section.guide-section {
    padding-top: 32px;
  }
}
