/*
 * The public website. The same Marker design as the app: Archivo, condensed heavy
 * headings, squared corners, a marker behind what matters. Light is ink on white with a
 * lime marker; dark is the same page in black with the logo's orange. The colours are
 * the app's own tokens (apps/web/src/styles.css), so the phone in the middle of the page
 * is drawn in the colours the real one would be.
 */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/archivo-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #0f1712;
  --muted-foreground: #56635b;
  /* A touch stronger than muted, for a lead paragraph that should read easily. */
  --lead: #434f49;
  --muted: #eef1ea;
  --border: #e6eae2;
  --marker: #e6f54a;
  --marker-foreground: #0f1712;
  --primary: #0f1712;
  --primary-foreground: #ffffff;
  --success: #16794c;
  --logo: #0f1712;
  --stage: #eef1ea;
  --phone-edge: #0f1712;
  --notice: #0f1712;
  --notice-foreground: #ffffff;
  --notice-border: #0f1712;
}

/*
 * Dark, for whoever has chosen it with the button on the page. Until someone does, the
 * page is light, logo and all, whatever the device itself is set to (Patrick, 2026-10-08).
 */
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0a0a0a;
  --foreground: #fafafa;
  --muted-foreground: #a6a6a6;
  /* Lighter than muted so a lead stays easy to read on black. */
  --lead: #c6cdc6;
  --muted: #1c1c1c;
  --border: #262626;
  --marker: #fb6902;
  --marker-foreground: #0a0a0a;
  --primary: #fb6902;
  --primary-foreground: #0a0a0a;
  --success: #34c77b;
  --logo: #fb6902;
  --stage: #141414;
  --phone-edge: #3a3a3a;
  --notice: #1c1c1c;
  --notice-foreground: #fafafa;
  --notice-border: #3a3a3a;
}

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

/* Hidden means hidden, whatever else a rule says about how the thing is laid out. */
[hidden] {
  display: none;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font:
    400 17px / 1.5 "Archivo",
    ui-sans-serif,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 22px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 5;
  padding: 10px 14px;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 10px;
}

/* ---- The top of the page ---- */

.top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 18px;
}
.top .logo {
  margin-right: auto;
  display: block;
}
.logo svg {
  display: block;
  width: 150px;
  height: auto;
  margin-left: -4px;
}
.logo .swipe {
  fill: var(--marker);
}
.logo .bei {
  stroke: var(--marker-foreground);
}
.logo .bei circle {
  fill: var(--marker-foreground);
}
.logo .book {
  stroke: var(--logo);
}

.quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}
.quiet:hover {
  background: var(--muted);
}
.quiet svg,
.feature svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* One button, two drawings: the one for the mode the page is not in. */
.theme .sun {
  display: none;
}
:root[data-theme="dark"] .theme .sun {
  display: block;
}
:root[data-theme="dark"] .theme .moon {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 16px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.24s ease;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--primary) 60%, transparent);
}
.button:active {
  transform: scale(0.98);
}
.button.small {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 15px;
}
.link {
  font-weight: 700;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

/* ---- The opening ---- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 44px;
  align-items: center;
  padding-block: 24px 60px;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 78%;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(38px, 4.8vw, 58px);
}
h2 {
  font-size: clamp(30px, 3.6vw, 42px);
}
h3 {
  font-size: 24px;
  line-height: 1.1;
}
/* The marker: a little turned, a little wider than the word, as a pen leaves it. */
mark {
  position: relative;
  z-index: 0;
  background: none;
  color: var(--marker-foreground);
  white-space: nowrap;
}
mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.08em -0.14em 0.02em;
  background: var(--marker);
  border-radius: 0.1em;
  transform: rotate(-1.6deg);
}
.lead {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: 19px;
  line-height: 1.45;
  color: var(--lead);
  text-wrap: pretty;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 30px;
}
.note {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--muted-foreground);
}

/* ---- The phone, and the stage it stands on ---- */

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 34px 20px 26px;
  border-radius: 28px;
  background: var(--stage);
  overflow: hidden;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 26% -12% auto;
  height: 42%;
  background: var(--marker);
  border-radius: 14px;
  transform: rotate(-7deg);
}
.steps {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}
.steps li {
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--background);
  color: var(--muted-foreground);
  transition:
    background 0.25s,
    color 0.25s;
}
.steps li.on {
  background: var(--primary);
  color: var(--primary-foreground);
}

.phone {
  position: relative;
  width: 304px;
  max-width: 100%;
  aspect-ratio: 304 / 620;
  padding: 9px;
  border-radius: 46px;
  background: var(--phone-edge);
  box-shadow: 0 30px 60px -28px rgb(0 0 0 / 0.55);
  font-size: 13px;
  line-height: 1.25;
  user-select: none;
}
.p-screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 38px;
  background: var(--background);
  color: var(--foreground);
  overflow: hidden;
}
.phone i,
.phone em {
  font-style: normal;
}
.phone svg {
  width: 1.3em;
  height: 1.3em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.p-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 22px 4px;
  font-size: 11.5px;
  font-weight: 700;
}
.p-island {
  width: 74px;
  height: 20px;
  border-radius: 12px;
  background: #050505;
}
.p-signal {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}
.p-signal i {
  width: 3px;
  border-radius: 1px;
  background: currentColor;
}
.p-signal i:nth-child(1) {
  height: 40%;
}
.p-signal i:nth-child(2) {
  height: 70%;
}
.p-signal i:nth-child(3) {
  height: 100%;
}
.p-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 10px;
}
.p-head strong {
  display: block;
  font-size: 19px;
  font-weight: 800;
  font-stretch: 78%;
  line-height: 1.1;
}
.p-head p {
  margin: 3px 0 0;
  font-size: 11.5px;
  color: var(--muted-foreground);
}
.p-live {
  margin-right: 7px;
  font-weight: 700;
  color: var(--success);
}
.p-live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
.p-me,
.p-add {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--primary);
  color: var(--primary-foreground);
}
.p-label {
  display: flex;
  justify-content: space-between;
  padding: 4px 16px 7px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.p-label.p-when-found {
  padding-block: 2px 9px;
  font-size: 14px;
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: 0;
  text-transform: none;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}
.p-list {
  flex: 1;
  min-height: 0;
}
.p-letter {
  padding: 4px 16px;
  background: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.p-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
}
.p-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 10px;
  font-weight: 700;
}
.p-what {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.p-what b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-what > span {
  font-size: 11px;
  color: var(--muted-foreground);
}
.p-was {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
}
.p-was svg {
  width: 1em;
  height: 1em;
}
.p-price {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 17px;
  font-weight: 800;
  font-stretch: 75%;
  font-variant-numeric: tabular-nums;
}
.p-price small,
.p-sheet > small {
  font-size: 8.5px;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}
.p-new {
  position: relative;
  z-index: 0;
  color: var(--marker-foreground);
}
.p-row .p-new {
  margin-left: 6px;
}
.p-new::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2px -6px;
  border-radius: 5px;
  background: var(--marker);
  transform: rotate(-2deg);
}
.p-dock {
  display: flex;
  gap: 8px;
  padding: 9px 12px 14px;
  border-top: 1px solid var(--border);
}
.p-dock .p-add {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.p-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 12px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: var(--muted);
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
}
.p-typed {
  color: var(--foreground);
  font-weight: 600;
}
.p-typed::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  margin-left: 1px;
  background: currentColor;
  vertical-align: -2px;
  animation: pulse 1s steps(1) infinite;
}
/* News from a teammate, as the app draws it: a slab with the marker's own tile on it. */
.p-toast {
  position: absolute;
  z-index: 3;
  inset: 40px 10px auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--notice-border);
  border-radius: 12px;
  background: var(--notice);
  color: var(--notice-foreground);
  font-size: 12px;
  font-weight: 700;
  font-stretch: 86%;
  line-height: 1.2;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.25s;
}
.p-bell {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--marker);
  color: var(--marker-foreground);
  transform: rotate(-3deg);
}
.p-scrim {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.45);
  opacity: 0;
  transition: opacity 0.3s;
}
.p-sheet {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
  border-radius: 22px 22px 0 0;
  background: var(--background);
  transform: translateY(102%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.p-close {
  margin-bottom: 10px;
}
.p-product {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.p-product .p-tile {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}
.p-product b {
  display: block;
  font-size: 19px;
  font-weight: 800;
  font-stretch: 78%;
}
.p-product span span {
  font-size: 11.5px;
  color: var(--muted-foreground);
}
.p-big {
  margin: 2px 0 16px;
  font-size: 58px;
  font-weight: 800;
  font-stretch: 68%;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.p-big .p-new::before {
  inset: 2px -8px 0;
  border-radius: 8px;
}
.p-button {
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: 13px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 700;
}

/* What each scene shows. "seen" is the resting one, and needs no rule to look right. */
.p-old,
.p-when-found,
.p-typed {
  display: none;
}
.phone:not([data-scene="seen"]) .p-toast {
  opacity: 0;
  transform: translateY(-140%);
}
.phone:not([data-scene="seen"]) .p-was,
.phone:not([data-scene="seen"]) .p-row .p-new,
.phone[data-scene="open"] .p-big .p-new {
  display: none;
}
.phone:not([data-scene="seen"]) .p-row .p-old,
.phone[data-scene="open"] .p-big .p-old {
  display: inline;
}
.phone:is([data-scene="type"], [data-scene="find"], [data-scene="open"], [data-scene="change"])
  :is(.p-when-list, .p-ask, .p-letter) {
  display: none;
}
/* While it is typed, the rows the word so far no longer finds go, a letter at a time. */
.phone[data-scene="type"] .p-row.p-out,
.phone:is([data-scene="find"], [data-scene="open"], [data-scene="change"]) .p-row:not(.p-target) {
  display: none;
}
.phone:is([data-scene="type"], [data-scene="find"], [data-scene="open"], [data-scene="change"])
  :is(.p-when-found, .p-typed) {
  display: block;
}
.phone:is([data-scene="type"], [data-scene="find"], [data-scene="open"], [data-scene="change"]) .p-search {
  border-color: var(--foreground);
  background: var(--background);
}
.phone:is([data-scene="open"], [data-scene="change"]) .p-sheet {
  transform: none;
}
.phone:is([data-scene="open"], [data-scene="change"]) .p-scrim {
  opacity: 1;
}

/* ---- The price book, running past ---- */
/* A line of real prices sliding by, the way the shop's own book is always moving. It
   says nothing a screen reader needs (the page says it all in words), and it stops for
   anyone who has asked their phone for less movement. */
.ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--stage);
}
/* The ends fade into the strip's own colour. Drawn as two still veils over it, not as a mask
   on it: a mask on something that moves is drawn again on every frame, and on a real graphics
   card that alone dropped the page to 40 frames a second with nothing else moving (measured,
   2026-10-15). The veils are drawn once. */
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset-block: 0;
  width: 7%;
  pointer-events: none;
}
.ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--stage), transparent);
}
.ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--stage), transparent);
}
.ticker-row {
  display: flex;
  width: max-content;
  /* Its own layer from the start, so that sliding it is only ever moving a picture. */
  will-change: transform;
  animation: ticker 48s linear infinite;
}
.ticker:hover .ticker-row {
  animation-play-state: paused;
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}
.ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 14px 24px;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  font-size: 16px;
  font-weight: 800;
  font-stretch: 78%;
  font-variant-numeric: tabular-nums;
}
.ticker-item small {
  font-size: 10.5px;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}
.ticker-item .tp {
  font-weight: 600;
  color: var(--muted-foreground);
}

/* ---- What it does ---- */

section {
  padding-block: 64px;
  border-top: 1px solid var(--border);
}
.features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
/* Every thing it does is an even panel, three to a row. The one that is the heart of it —
   change a price once and the whole team has it — is set apart by a dark fill and a live
   price on it, not by being a different size, so the grid stays tidy. */
.feature {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 26px 24px;
  border-radius: 20px;
  background: var(--stage);
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -20px rgb(0 0 0 / 0.35);
}
.feature.key {
  background: var(--notice);
  color: var(--notice-foreground);
  border: 1px solid var(--notice-border);
}
.feature .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--marker);
  color: var(--marker-foreground);
  transform: rotate(-3deg);
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease;
}
.feature:hover .icon {
  transform: rotate(-3deg) translateY(-3px);
  box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--marker) 70%, transparent);
}
.feature .icon svg {
  transform: rotate(3deg);
}
.feature p {
  margin: 0;
  color: var(--muted-foreground);
  text-wrap: pretty;
}
.feature.key p {
  color: var(--notice-foreground);
  opacity: 0.78;
}
.start p {
  margin: 0;
  color: var(--muted-foreground);
  text-wrap: pretty;
}
/* The little price on the heart-of-it slab: a product whose price has just changed, drawn
   the way the app draws one, so the promise is shown and not only said. */
.f-demo {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--notice-foreground) 8%, transparent);
  font-variant-numeric: tabular-nums;
}
.f-demo .f-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--notice-foreground) 12%, transparent);
  font-size: 12px;
  font-weight: 700;
}
.f-demo .f-what {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.f-demo .f-what b {
  font-weight: 700;
}
.f-demo .f-what span {
  font-size: 12px;
  opacity: 0.7;
}
.f-demo .f-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-left: auto;
  font-size: 22px;
  font-weight: 800;
  font-stretch: 72%;
}
.f-demo .f-price small {
  font-size: 10px;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.08em;
  opacity: 0.65;
}
.f-demo .f-new {
  position: relative;
  z-index: 0;
  padding-inline: 0.14em;
  font-style: normal;
  color: var(--marker-foreground);
}
.f-demo .f-new::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -0.08em -0.04em -0.04em;
  border-radius: 0.1em;
  background: var(--marker);
  transform: rotate(-2deg);
  animation: f-flash 3.4s ease-in-out infinite;
}
@keyframes f-flash {
  0%,
  22%,
  100% {
    opacity: 1;
  }
  11% {
    opacity: 0.35;
  }
}

/* ---- beibook's own numbers ---- */

/* A scoreboard: the figures held together in one panel, each cell set off by a hairline
   (the 1px gap lets the panel's own colour show between the cells). */
.numbers dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 36px 0 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}
.numbers dl > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 10px;
  padding: clamp(22px, 3vw, 30px) clamp(18px, 2.4vw, 28px);
  background: var(--background);
}
.numbers dt {
  font-weight: 600;
  line-height: 1.25;
  color: var(--muted-foreground);
}
.numbers dd {
  margin: 0;
  font-size: clamp(42px, 6vw, 66px);
  font-weight: 800;
  font-stretch: 68%;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
/* The one that is true of this very moment, marked as a price that has just changed is. */
.numbers .now span {
  position: relative;
  z-index: 0;
  color: var(--marker-foreground);
}
.numbers .now span::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.04em -0.14em 0;
  border-radius: 0.1em;
  background: var(--marker);
  transform: rotate(-2deg);
}
.numbers .note {
  margin-top: 32px;
}

/* ---- Starting ---- */

.start ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.start li {
  counter-increment: step;
  padding-top: 22px;
  border-top: 2px solid var(--foreground);
}
/* The step's number, with a short marker stroke under it, as a pen would underline it. */
.start li::before {
  content: counter(step);
  display: inline-block;
  margin-bottom: 18px;
  padding-bottom: 6px;
  border-bottom: 5px solid var(--marker);
  font-size: clamp(50px, 5.5vw, 72px);
  font-weight: 800;
  font-stretch: 68%;
  line-height: 0.82;
}
.start p {
  color: var(--foreground);
  font-size: 18px;
  line-height: 1.4;
}
.again {
  margin-top: 44px;
}

/* ---- What it costs ---- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}
.pricing .again {
  margin-top: 30px;
}
/* The two plans, side by side: a name, its price large, and what it holds. */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--background);
}
.plan + .plan {
  border-color: var(--foreground);
}
.plan-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 8px;
  font-size: 40px;
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-currency {
  font-size: 12px;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}
.plan-per {
  font-size: 14px;
  font-weight: 600;
}
.plan-also,
.plan-holds {
  font-size: 14px;
  line-height: 1.35;
  color: var(--lead);
}
.plan-holds {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.plan-note {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--lead);
}
/* On the narrowest phones the two plans stand one above the other. */
@media (max-width: 380px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* The price, drawn as a row of the app's price list, large. */
.tag {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 22px);
  padding: clamp(26px, 5vw, 52px) clamp(20px, 4vw, 44px);
  border-radius: 28px;
  background: var(--stage);
  user-select: none;
}
.tag-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(52px, 7vw, 84px);
  aspect-ratio: 1;
  border-radius: 22%;
  background: var(--background);
  color: var(--muted-foreground);
  font-size: clamp(15px, 2vw, 22px);
  font-weight: 700;
  text-transform: uppercase;
}
/* beibook's own icon as the tile: it is already the tile's shape, in the marker's colours. */
svg.tag-tile {
  height: auto;
  background: none;
}
.tag-mark rect {
  fill: var(--marker);
}
.tag-mark g {
  stroke: var(--marker-foreground);
}
.tag-what {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tag-what b {
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.1;
}
.tag-per {
  font-size: clamp(14px, 1.7vw, 19px);
  color: var(--muted-foreground);
}
.tag-price {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 1.8vw, 22px);
  font-size: clamp(84px, 13vw, 168px);
  font-weight: 800;
  font-stretch: 68%;
  line-height: 0.8;
}
/* A price of several figures, where TSh 0 is one: the row gives it room, and the name and
   the price come down a size, so that each stays on one line, on a phone and on a computer. */
.tag-long {
  gap: clamp(10px, 1.6vw, 18px);
  padding-inline: clamp(18px, 3vw, 30px);
}
.tag-long .tag-what b {
  font-size: clamp(20px, 2.4vw, 28px);
}
.tag-long .tag-per {
  white-space: nowrap;
}
.tag-long .tag-price {
  gap: clamp(8px, 1vw, 12px);
  font-size: clamp(44px, 4.8vw, 64px);
}
/* The narrowest phones: the icon and the figures a size smaller again, the icon kept. */
@media (max-width: 359px) {
  .tag-long .tag-tile {
    width: 42px;
  }
  .tag-long .tag-price {
    font-size: 38px;
  }
}
.tag-price small {
  font-size: clamp(12px, 1.4vw, 17px);
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}
.tag-price i {
  position: relative;
  z-index: 0;
  padding-inline: 0.12em;
  font-style: normal;
  color: var(--marker-foreground);
}
.tag-price i::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -0.12em -0.06em -0.06em;
  border-radius: 0.1em;
  background: var(--marker);
  transform: rotate(-3deg);
}

/* ---- An address that leads nowhere ---- */

.missing {
  padding-block: 56px 96px;
}
.missing h1 {
  font-size: clamp(42px, 5.6vw, 68px);
}
/* Three figures where the price is one, and an address where the name is one word:
   both smaller, so the address can be read whole. */
.missing .tag-price {
  font-size: clamp(60px, 7vw, 96px);
}
.tag-what .asked {
  font-size: clamp(20px, 2.1vw, 26px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The page is a short one: on a tall screen its foot still stands at the bottom, and
   what it says stands in the middle of the room that leaves. */
body:has(.missing) {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body:has(.missing) main {
  flex: 1;
  display: grid;
  align-content: center;
}
/* On the narrowest phones the row gives up its tile, so the address can be read whole. */
@media (max-width: 380px) {
  .missing .tag-tile {
    display: none;
  }
  .missing .tag-price {
    font-size: 52px;
  }
}

/* ---- Reaching us ---- */

.ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.way {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--muted);
  text-decoration: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.24s ease;
}
.way:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -18px rgb(0 0 0 / 0.4);
}
.way:active {
  transform: scale(0.985);
}
.way-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--marker);
  color: var(--marker-foreground);
  transform: rotate(-3deg);
}
.way-mark {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.way-icon .way-mark {
  transform: rotate(3deg);
}
/* WhatsApp's own mark, filled, in the tile's own colours: on the lead card that is white on ink
   (light) or ink on orange (dark), where WhatsApp's green would clash with the card. */
.way-icon .way-mark-whatsapp {
  width: 30px;
  height: 30px;
  fill: currentColor;
  stroke: none;
  transform: none;
}
.way-what {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.way small {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
.way b {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.way-go {
  flex: none;
  opacity: 0.55;
}
/* The first way is the one people here reach for: it is the loud one. */
.way:first-child {
  background: var(--primary);
  color: var(--primary-foreground);
}
.way:first-child .way-icon {
  background: var(--primary-foreground);
  color: var(--primary);
}

/* A fact that has not been given yet. Only ever drawn in a draft. */
.gap {
  margin-top: 28px;
  padding: 22px;
  border: 2px dashed var(--muted-foreground);
  border-radius: 16px;
  color: var(--muted-foreground);
  font-weight: 600;
}

/* ---- A page of small print: privacy, terms ---- */

.doc {
  max-width: 760px;
  padding-block: 28px 80px;
}
.doc h1 {
  font-size: clamp(44px, 7vw, 72px);
}
.doc h2 {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.1;
}
.doc section {
  padding-block: 34px 0;
  border-top: 0;
}
.doc p,
.doc li {
  max-width: 66ch;
  text-wrap: pretty;
}
.doc section p,
.doc ul {
  margin: 14px 0 0;
}
.doc ul {
  padding-left: 1.15em;
}
.doc li + li {
  margin-top: 10px;
}
.doc li::marker {
  color: var(--muted-foreground);
}
.reach {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

/* ---- The foot ---- */

.foot {
  border-top: 1px solid var(--border);
  padding-block: 36px 48px;
  color: var(--muted-foreground);
  font-size: 15px;
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.foot .logo svg {
  width: 112px;
}
.foot .line {
  margin: 0 auto 0 0;
}
/* Who made it: a line to itself under the rest, quiet, as at the foot of the app's menu. */
.foot .made {
  flex-basis: 100%;
  font-size: 14px;
  text-decoration: none;
}
.foot .made b {
  color: var(--foreground);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-block: 12px 56px;
  }
  .features,
  .start ol,
  .split,
  .ways {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature,
  .feature.key {
    grid-column: auto;
  }
  /* On a phone the whole card is the thing to tap: the arrow gives its room to the address. */
  .way-go {
    display: none;
  }
  .way {
    padding-inline: 18px;
    gap: 14px;
  }
  .numbers dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  section {
    padding-block: 56px;
  }
  .top .button {
    display: none;
  }
}

/* For someone who has asked for less movement: nothing pulses, nothing slides, and the
   script leaves the phone resting on its last scene. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .p-live::before,
  .p-typed::after,
  .ticker-row,
  .f-demo .f-new::before {
    animation: none;
  }
  .button,
  .way,
  .steps li,
  .feature .icon,
  .phone .p-toast,
  .phone .p-scrim,
  .phone .p-sheet {
    transition: none;
  }
}
