/*
 * getroadwise.app: paper and ink, lit by the sky (the app's own look, DESIGN.md).
 * Barlow Semi Condensed was drawn from California highway-sign lettering; it carries the wordmark,
 * the headings, feature names and the numbers on the drawn phones. Reading text stays on the phone UI face.
 * The sky bands take the visitor's hour (sky.js sets data-sky on <html>; "day" without script).
 */

@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/barlow-800-italic-v2.woff') format('woff');
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/barlow-700-v2.woff') format('woff');
}

:root {
  --paper: #ffffff;
  --ink: #111113;
  --muted: #55565e;
  --rule: #dcdce2;
  --accent: #3a3fc8;
  --road: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  /* The sky: three stops top to bottom, each dark enough for white text (4.6:1 or more). */
  --sky-1: #0b3f73;
  --sky-2: #155a97;
  --sky-3: #1f6fb0;
  --horizon: #6fb3e6;
  --glow: rgba(255, 244, 214, 0.22);
  --glow-x: 86%;
  --glow-y: 30%;
  --disc: #fff4d6;
  --disc-glow: rgba(255, 236, 190, 0.55);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
}
:root[data-sky='dawn'] {
  --sky-1: #2b2f6b;
  --sky-2: #5a3d78;
  --sky-3: #8a4a72;
  --horizon: #f0a27a;
  --glow: rgba(255, 196, 150, 0.22);
  --glow-x: 86%;
  --glow-y: 30%;
  --disc: #ffd9b0;
  --disc-glow: rgba(255, 190, 140, 0.55);
}
:root[data-sky='dusk'] {
  --sky-1: #1f1c4a;
  --sky-2: #4a2a5c;
  --sky-3: #7a3352;
  --horizon: #e0795a;
  --glow: rgba(255, 170, 120, 0.22);
  --glow-x: 86%;
  --glow-y: 30%;
  --disc: #ffc89a;
  --disc-glow: rgba(255, 160, 110, 0.55);
}
:root[data-sky='night'] {
  --sky-1: #040a1c;
  --sky-2: #0a1734;
  --sky-3: #13244a;
  --horizon: #2b4170;
  --glow: rgba(214, 226, 255, 0.16);
  --glow-x: 86%;
  --glow-y: 30%;
  --disc: #e6ebf5;
  --disc-glow: rgba(200, 214, 255, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0b0d;
    --ink: #f4f4f2;
    --muted: #b4b4ba;
    --rule: #2a2a2f;
    --accent: #8fb6ff;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--muted) var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--ui);
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.sky :focus-visible {
  outline-color: #ffffff;
}

.wrap {
  width: min(100% - 2.5rem, 64rem);
  margin-inline: auto;
}

/* ------------------------------------------------------------------ the sky */

.sky {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at var(--glow-x) var(--glow-y), var(--glow), transparent 34%),
    linear-gradient(180deg, var(--sky-1), var(--sky-2) 55%, var(--sky-3));
}
/* The bright band low in the sky, where no text sits. */
.sky::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3rem;
  background: linear-gradient(180deg, transparent, var(--horizon));
  opacity: 0.35;
  pointer-events: none;
}
.sky > * {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  font: italic 800 1.55rem/1 var(--road);
}
.brand img {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.6rem;
}
.topbar nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.95rem;
}
.topbar nav a,
.sky .soon a {
  color: #ffffff;
  text-decoration: none;
}
.topbar nav a:hover {
  text-decoration: underline;
}

.hero {
  padding-block: 2.25rem 3rem;
}
/* The sun or the moon, at the glow, on the header's sky only (never behind text). */
.sky .disc {
  position: absolute;
  z-index: 0;
  right: 9%;
  top: 6.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--disc);
  box-shadow:
    0 0 1.5rem 0.5rem var(--disc-glow),
    0 0 5rem 2rem var(--glow);
}
:root[data-sky='night'] .sky .disc {
  width: 2.75rem;
  height: 2.75rem;
  box-shadow:
    inset -0.7rem -0.3rem 0 0 rgba(160, 175, 210, 0.45),
    0 0 1.5rem 0.25rem var(--disc-glow);
}
.hero h1 {
  margin: 0;
  font: italic 800 clamp(4rem, 14vw, 6rem) / 0.9 var(--road);
  letter-spacing: -0.01em;
}
.lede {
  max-width: 40rem;
  margin: 1.1rem 0 1.75rem;
  font-size: 1.25rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  background: #ffffff;
  color: #111113;
  transition: transform 160ms var(--ease);
}
.button:hover {
  transform: translateY(-1px);
}
.button.ghost {
  background: transparent;
  color: #ffffff;
  box-shadow: inset 0 0 0 2px #ffffff;
}
.soon {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

/* Inner pages: a short sky over the title. */
.page-title {
  padding-block: 1.75rem 3.25rem;
}
.page-title h1 {
  margin: 0;
  font: italic 800 clamp(2.75rem, 8vw, 4.5rem) / 0.95 var(--road);
}
.page-title p {
  max-width: 36rem;
  margin: 0.9rem 0 0;
  font-size: 1.1rem;
}


/* The landing hero: the offer beside the driving screen. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem 3rem;
}
.hero-shot {
  margin: 0;
  justify-self: end;
}

/* ------------------------------------------------------------------ feature groups */

.group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.5rem 4rem;
  padding-block: 4rem;
  border-bottom: 1px solid var(--rule);
}
.group.flip .group-text {
  order: 2;
}
.group h2,
.more h2,
.close h2 {
  margin: 0 0 1.25rem;
  font: italic 800 clamp(2rem, 5vw, 2.75rem) / 1 var(--road);
}
.features {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 38rem;
}
.features li {
  padding: 0.7rem 0 0.7rem 1.4rem;
  position: relative;
  color: var(--muted);
  text-wrap: pretty;
}
/* A small road stripe marks each feature. */
.features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.55rem;
  height: 0.2rem;
  border-radius: 1px;
  background: var(--accent);
}
.features strong {
  display: block;
  color: var(--ink);
  font: 700 1.3rem/1.2 var(--road);
  margin-bottom: 0.1rem;
}
.more {
  padding-block: 4rem 2.5rem;
}
.more h2 + .features {
  margin-bottom: 3rem;
}
.features.cols {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  column-gap: 3rem;
}
.note {
  margin: 0;
  max-width: 40rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------ the phones */

.shot {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}
.shot figcaption {
  font-size: 0.9rem;
  color: var(--muted);
}
.sky .shot figcaption {
  color: #ffffff;
}

/* A phone drawn in code: 9 by 19.5, a thin bezel, the Dynamic Island. Sized in px so every screen
   keeps the app's proportions. */
.phone {
  position: relative;
  width: 272px;
  height: 589px;
  border-radius: 46px;
  padding: 11px;
  background: #1b1c20;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 1.5rem 3rem rgba(4, 10, 28, 0.32);
  font-family: var(--ui);
  -webkit-user-select: none;
  user-select: none;
}
.phone > .screen,
.phone.lock::before {
  position: absolute;
  inset: 11px;
  border-radius: 36px;
  overflow: hidden;
}
.island {
  position: absolute;
  z-index: 3;
  top: 21px;
  left: 50%;
  width: 86px;
  height: 25px;
  margin-left: -43px;
  border-radius: 13px;
  background: #000000;
}

/* The driving screen: the hour's sky deepened, the limit sign, the halo, End. */
.phone.hud > .screen {
  background: linear-gradient(180deg, #031a33, #062a4f 55%, #0a3a66);
  color: #f3f6fb;
}
.hud-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 58px 18px 0;
}
.plate {
  display: grid;
  justify-items: center;
  width: 54px;
  padding: 5px 3px 3px;
  border-radius: 5px;
  background: #ffffff;
  color: #000000;
  box-shadow: inset 0 0 0 2px #ffffff, inset 0 0 0 3.5px #000000;
  font: 700 9px/1 var(--road);
  letter-spacing: 0.04em;
}
.plate span {
  line-height: 1.05;
}
.plate b {
  font: 700 27px/1 var(--road);
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}
.sos,
.nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}
.sos {
  margin-top: 6px;
  width: 50px;
  height: 50px;
  background: #d9e6f2;
}
.sos svg {
  width: 23px;
  height: 23px;
  fill: #a51d2e;
}
.nav {
  width: 58px;
  height: 58px;
  background: #d9e6f2;
}
.nav svg {
  width: 24px;
  height: 24px;
  fill: #111113;
  transform: rotate(45deg);
}
.halo {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 34px auto 0;
}
.ring {
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  border: 9px solid #cfe6ff;
  box-shadow:
    0 0 26px 4px rgba(207, 230, 255, 0.45),
    inset 0 0 20px 2px rgba(207, 230, 255, 0.35);
}
.halo > span {
  position: absolute;
  font: italic 800 15px/1 var(--road);
  color: #a9bad6;
}
.halo .cn {
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  color: #f3f6fb;
}
.halo .cs {
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
}
.halo .ce {
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
}
.halo .cw {
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
}
.speed {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.speed b {
  font: italic 800 74px/0.9 var(--road);
  font-variant-numeric: tabular-nums;
}
.speed span {
  font: 700 15px/1 var(--road);
  color: #a9bad6;
}
.not-driving {
  margin-top: 42px;
  text-align: center;
  font-size: 13px;
  color: #a9bad6;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.end {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 22px;
  height: 56px;
  border-radius: 28px;
  background: #e6eef6;
  display: flex;
  align-items: center;
  color: #111113;
  font-weight: 600;
  font-size: 15px;
}
.end i {
  width: 46px;
  height: 46px;
  margin: 0 5px;
  border-radius: 50%;
  background: #111113;
}
.end span {
  flex: 1;
  text-align: center;
  margin-right: 56px;
}

/* The lock screen with the drive's Live Activity. */
.phone.lock::before {
  content: '';
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 196, 150, 0.35), transparent 45%),
    linear-gradient(170deg, #1d2b5a, #3b3f86 50%, #8a4a72);
}
.lock-time,
.lock-date,
.la {
  position: relative;
  z-index: 1;
}
.lock-time {
  margin-top: 70px;
  text-align: center;
  color: #ffffff;
  font: 600 76px/1 var(--ui);
  letter-spacing: -0.02em;
}
.lock-date {
  margin-top: 4px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 600;
}
.la {
  margin: 250px 8px 0;
  padding: 14px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #062a4f, #0a3a66);
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  row-gap: 4px;
}
.la-speed b {
  display: block;
  font: 800 46px/1 var(--ui);
  font-variant-numeric: tabular-nums;
}
.la-speed span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}
.la-hint {
  grid-column: 1 / -1;
  justify-self: end;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

/* App screens on paper: the drive recap. */
.phone.paper > .screen {
  background: #f4f4f2;
  color: #111113;
  padding: 54px 16px 0;
}
.back {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #111113;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.recap-title {
  margin-top: 12px;
  font: 700 23px/1.1 var(--road);
}
.recap-sub {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
}
.recap-when {
  font-size: 11.5px;
  color: #4a4a4f;
}
.mini-map {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 12px;
  border-radius: 18px;
  background: #e9eff3;
}
.mm-street {
  fill: none;
  stroke: #d3dce3;
  stroke-width: 5;
}
.mm-route {
  fill: none;
  stroke: #1f9d55;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mm-flag {
  fill: #f07400;
  stroke: #ffffff;
  stroke-width: 2.5;
}
.mm-start {
  fill: #ffffff;
  stroke: #111113;
  stroke-width: 2.5;
}
.mm-end {
  fill: #111113;
  stroke: #ffffff;
  stroke-width: 2;
}
.scorecard {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(155, 109, 255, 0.12);
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  align-items: center;
  gap: 8px;
  color: #5b34c9;
}
.scorecard .merit {
  width: 26px;
  height: 26px;
  fill: #6b44d9;
}
.scorecard div {
  display: grid;
}
.scorecard b {
  font: italic 800 17px/1.1 var(--road);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.scorecard div:first-of-type b {
  font-size: 26px;
}
.scorecard span {
  font-size: 10.5px;
  color: #4a4a4f;
}
.events-title {
  margin-top: 14px;
  font: 700 15px/1 var(--road);
}
.event {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
}
.event em {
  font-style: normal;
  font-weight: 400;
  color: #4a4a4f;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.moderate {
  background: #f07400;
}
.report {
  margin: 4px 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  color: #3a3fc8;
}

/* App screens on the sky: Analytics and Friends. */
.phone.sky-screen > .screen {
  background: linear-gradient(180deg, #0b3f73, #155a97 40%, #f4f4f2 40%);
  padding: 58px 14px 0;
  color: #111113;
}
.tab-title {
  color: #ffffff;
  font: 700 27px/1 var(--road);
  margin: 0 4px 14px;
}
.card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 2px 10px rgba(4, 10, 28, 0.1);
}
.radar-card {
  padding: 8px;
}
.radar {
  display: block;
  width: 100%;
  height: auto;
}
.radar-grid polygon {
  fill: none;
  stroke: #dfe2ea;
  stroke-width: 1;
}
.radar-shape {
  fill: rgba(17, 17, 19, 0.12);
  stroke: #111113;
  stroke-width: 2;
  stroke-linejoin: round;
}
.radar-num {
  font: italic 800 34px var(--road);
  text-anchor: middle;
  fill: #111113;
}
.radar-cap {
  font: 600 9.5px var(--ui);
  text-anchor: middle;
  fill: #4a4a4f;
}
.radar-axis {
  font: 700 10.5px var(--road);
  text-anchor: middle;
  fill: #4a4a4f;
}
.card.mini {
  margin-top: 10px;
  padding: 4px 14px;
}
.mini-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
}
.mini-row + .mini-row {
  border-top: 1px solid #ececf0;
}
.mini-row em {
  font: italic 800 17px/1 var(--road);
}
.board {
  padding: 4px 12px;
}
.board .row {
  display: grid;
  grid-template-columns: 16px 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  font-size: 13.5px;
  font-weight: 600;
}
.board .row + .row {
  border-top: 1px solid #ececf0;
}
.board em {
  font: italic 800 15px/1 var(--road);
  color: #4a4a4f;
}
.board i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 11px/1 var(--road);
  font-style: normal;
  color: #111113;
}
.board .av-blue { background: #7fb2ff; }
.board .av-gold { background: #ffc300; }
.board .av-green { background: #5ee08a; }
.board .av-purple { background: #b79cff; }
.board .av-pink { background: #ff8fa3; }
.board b {
  font: italic 800 20px/1 var(--road);
  font-variant-numeric: tabular-nums;
}
.board .me {
  background: #eef2ff;
  margin: 0 -12px;
  padding-inline: 12px;
}

.tab-title.with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.add {
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #111113;
  font: 600 12px/1 var(--ui);
}
/* The floating pill tab bar: ink, the current tab on a paper disc. */
.tabbar {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 20px;
  height: 58px;
  border-radius: 29px;
  background: #111113;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
}
.tabbar span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.tabbar span.on {
  background: #ffffff;
}
.tabbar svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #f4f4f2;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tabbar .on svg {
  stroke: #111113;
}

.setting {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
}
.setting em {
  font-style: normal;
  font-weight: 400;
  color: #4a4a4f;
}
.switch {
  width: 38px;
  height: 23px;
  border-radius: 12px;
  background: #3a3fc8;
  position: relative;
}
.switch::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #ffffff;
}
.list-head {
  margin: 16px 2px 6px;
  font: 700 15px/1 var(--road);
}
.hours {
  padding: 4px 14px;
}
.hrow {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 6px;
  padding: 10px 0;
  font-size: 12.5px;
  font-weight: 600;
}
.hrow + .hrow {
  border-top: 1px solid #ececf0;
}
.hrow em {
  font-style: normal;
  font-weight: 400;
  color: #4a4a4f;
  font-variant-numeric: tabular-nums;
}
.hrow i {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #3a3fc8 46%, #e7e8f8 46%);
}
.pdf {
  margin-top: 14px;
  padding: 12px;
  border-radius: 999px;
  background: #111113;
  color: #ffffff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.drivingcard {
  margin-top: 10px;
  padding: 10px 12px 12px;
}
.seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 3px;
  border-radius: 999px;
  background: #ececf0;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.seg span {
  padding: 5px 0;
  border-radius: 999px;
}
.seg .on {
  background: #111113;
  color: #ffffff;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
  text-align: center;
}
.stats b {
  display: block;
  font: italic 800 22px/1 var(--road);
  font-variant-numeric: tabular-nums;
}
.stats span {
  font-size: 10.5px;
  color: #4a4a4f;
}

/* ------------------------------------------------------------------ the close */

.close {
  padding-block: 4rem 4.5rem;
}
.close h2 {
  max-width: 22ch;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

/* ------------------------------------------------------------------ reading pages */

.prose {
  max-width: 42rem;
  padding-block: 3rem 4rem;
}
.prose h2 {
  margin: 2.5rem 0 0.5rem;
  font: 700 1.65rem/1.15 var(--road);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin: 1.75rem 0 0.35rem;
  font-size: 1.05rem;
}
.prose p,
.prose li {
  margin: 0.5rem 0;
}
.prose ul,
.prose ol {
  padding-left: 1.4rem;
}
.prose li.sub {
  margin-left: 1.4rem;
  list-style-type: circle;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}
.contact {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--rule);
  border-radius: 1rem;
}
.contact p {
  margin: 0.25rem 0;
}
.contact a {
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--rule);
  padding-block: 2rem 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
footer a {
  color: inherit;
}
footer p {
  margin: 0;
}


/* ------------------------------------------------------------------ small screens */

@media (max-width: 860px) {
  .hero,
  .group {
    grid-template-columns: 1fr;
  }
  .hero-shot {
    justify-self: center;
  }
  .group.flip .group-text {
    order: 0;
  }
  .group {
    padding-block: 3rem;
  }
}

@media (max-width: 760px) {
  .topbar nav {
    gap: 0.9rem;
    font-size: 0.9rem;
  }
  .brand {
    font-size: 1.3rem;
  }
  .brand img {
    width: 1.9rem;
    height: 1.9rem;
  }
  .hero {
    padding-block: 1.25rem 2.5rem;
  }
  .hero h1 {
    font-size: 3.75rem;
  }
  .lede {
    font-size: 1.12rem;
    margin-bottom: 0.9rem;
  }
  /* No room beside a phone-width title: the sun or moon would sit behind it. */
  .sky .disc {
    display: none;
  }
}

/* The landing's sky holds the phone; the sun or moon would sit behind it. */
.sky:has(.hero-shot) .disc {
  display: none;
}

/* ------------------------------------------------------------------ the one moment */

@media (prefers-reduced-motion: no-preference) {
  /* The driving screen's halo: light moves slowly around it when driving is calm, as in the app. */
  .ring {
    animation: calm 4.5s ease-in-out infinite;
  }
  @keyframes calm {
    0%,
    100% {
      box-shadow:
        0 0 22px 3px rgba(207, 230, 255, 0.38),
        inset 0 0 16px 2px rgba(207, 230, 255, 0.28);
    }
    50% {
      box-shadow:
        0 0 34px 7px rgba(207, 230, 255, 0.55),
        inset 0 0 26px 4px rgba(207, 230, 255, 0.42);
    }
  }
}
