/* Mizen website.

   One family, Archivo, at two widths: expanded for headlines, normal for
   reading. Service blue is the app's own primary colour. Day-dot yellow
   (the coloured dots kitchens use to date food) only ever marks a number
   that has just changed.

   The one bold moment is the costing ticket hanging on the pass rail on the
   home page. Everything around it stays quiet: white and stainless-steel
   greys, generous space, left-aligned text. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations'),
    url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations'),
    url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0e2335;
  --ink-soft: #2e4256;
  --steel: #576574;
  --rule: #dfe5ea;
  --rule-strong: #c6d0d8;
  --plate: #f2f5f7;
  --paper: #ffffff;
  --blue: #0369a1;
  --blue-dark: #075985;
  --blue-wash: #e7f2f9;
  --blue-light: #8ccdf2;
  --on-ink: #c3cfd9;
  --on-ink-quiet: #8c9eae;
  --dot: #ffd43b;
  --error: #b42318;
  --ok: #1d6b45;

  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wide: 118%;
  --measure: 36rem;
  --page: 74rem;
  --gutter: 1rem;

  /* Radius grows with the size of the thing: controls, panels, stages. */
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 20px;

  --shadow-paper: 0 1px 2px rgba(14, 35, 53, 0.06), 0 14px 32px -14px rgba(14, 35, 53, 0.3);
  --shadow-lift: 0 2px 4px rgba(14, 35, 53, 0.06), 0 34px 64px -28px rgba(14, 35, 53, 0.42);
}

@media (min-width: 40rem) {
  :root { --gutter: 1.5rem; }
}

@media (min-width: 64rem) {
  :root { --gutter: 2rem; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: 'kern';
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-stretch: var(--wide);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 1.3rem + 3.8vw, 3.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.026em;
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 770;
  line-height: 1.06;
  letter-spacing: -0.018em;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 720;
  line-height: 1.25;
  font-stretch: 106%;
  letter-spacing: -0.004em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

p + p {
  margin-top: 1em;
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--blue-dark);
  text-decoration-thickness: 2px;
}

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

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

.lede {
  max-width: var(--measure);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-s);
}

.skip-link:focus {
  top: 0.75rem;
  color: #fff;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--blue);
  border-radius: var(--radius-s);
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 650;
  font-stretch: 104%;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(14, 35, 53, 0.2);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.button-quiet {
  background: var(--paper);
  border-color: var(--rule-strong);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(14, 35, 53, 0.06);
}

.button-quiet:hover {
  background: var(--plate);
  border-color: var(--rule-strong);
  color: var(--ink);
}

.button-large {
  min-height: 3.25rem;
  padding: 0.85rem 1.55rem;
  font-size: 1.0625rem;
}

.button-small {
  min-height: 2.375rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.9375rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Anything on the dark ink background */

.on-ink {
  background: var(--ink);
  color: #fff;
}

.on-ink h2,
.on-ink h3 {
  color: #fff;
}

.on-ink a:not(.button) {
  color: var(--blue-light);
}

.on-ink .button {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  box-shadow: none;
}

.on-ink .button:hover {
  background: var(--blue-wash);
  border-color: var(--blue-wash);
  color: var(--ink);
}

.on-ink .button-quiet {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.on-ink .button-quiet:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* A plain text link that leads somewhere else on the site */

.more {
  display: inline-block;
  font-weight: 650;
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

@supports (backdrop-filter: blur(10px)) {
  .site-header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(1.4) blur(10px);
  }
}

.site-header.is-scrolled,
.site-header.menu-open {
  border-bottom-color: var(--rule);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}

/* The logo includes the name, so it's the link's only content. */
.brand-logo {
  display: block;
  width: auto;
  height: 2rem;
}

/* A little smaller on phones, so the header buttons stay on one line. */
@media (max-width: 30rem) {
  .site-header .brand-logo {
    height: 1.625rem;
  }
}

.site-nav {
  flex: 1;
}

.site-nav ul {
  display: flex;
  justify-content: center;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-s);
  color: var(--ink-soft);
  font-weight: 560;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--plate);
  color: var(--ink);
}

.site-nav a[aria-current='page'] {
  color: var(--blue);
  font-weight: 650;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-login {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-s);
  color: var(--ink-soft);
  font-weight: 560;
  text-decoration: none;
}

.header-login:hover {
  background: var(--plate);
  color: var(--ink);
}

.menu-button,
.nav-login {
  display: none;
}

@media (max-width: 61.99rem) {
  .header-login {
    display: none;
  }

  .nav-login {
    display: block;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.375rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-s);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
  }

  .menu-button svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: none;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 16px 32px -12px rgba(14, 35, 53, 0.18);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav li + li {
    border-top: 1px solid var(--rule);
  }

  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-radius: 0;
    font-size: 1.0625rem;
  }

  .site-nav a:hover {
    background: none;
  }
}

@media (max-width: 24rem) {
  .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

/* Bands: the page sections */

.band {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.band-plate {
  background: var(--plate);
}

.band-head {
  max-width: 46rem;
}

.band-head p {
  margin-top: 1rem;
  max-width: var(--measure);
  color: var(--steel);
  font-size: 1.1875rem;
}

.band-link {
  margin-top: 2.5rem;
}

/* Home: hero */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 4.5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2.75rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 62rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

.hero h1 {
  font-size: clamp(2.3rem, 1.5rem + 2.7vw, 3.5rem);
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.03em;
}

@media (max-width: 30rem) {
  .hero h1 {
    font-stretch: 108%;
  }

  .hero .actions .button,
  .page-head .actions .button {
    flex: 1 1 100%;
  }
}

.hero .lede {
  margin-top: 1.5rem;
}

.hero .actions {
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1rem;
  color: var(--steel);
  font-size: 0.9375rem;
}

/* Facts under the hero: four things worth knowing straight away. */

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: clamp(3rem, 7vw, 5rem) 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

@media (min-width: 52rem) {
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

.facts strong {
  display: block;
  font-weight: 720;
  font-stretch: 110%;
  line-height: 1.3;
}

.facts span {
  display: block;
  margin-top: 0.2rem;
  color: var(--steel);
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* The pass: a stainless-steel stage with a rail the tickets hang from. */

.pass {
  position: relative;
  margin: 0;
  padding: 2.25rem clamp(1rem, 3vw, 1.5rem) 1.5rem;
  border-radius: var(--radius-l);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 1px, rgba(255, 255, 255, 0) 1px 4px),
    linear-gradient(180deg, #e3e9ee 0%, #eef2f5 55%, #f5f7f9 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(14, 35, 53, 0.05);
}

.rail {
  position: relative;
  z-index: 3;
  height: 14px;
  margin-inline: -0.25rem;
  border-radius: 7px;
  background: linear-gradient(180deg, #fbfcfd 0%, #dbe2e7 38%, #a9b5bf 82%, #8e9ba6 100%);
  box-shadow: 0 5px 8px -3px rgba(14, 35, 53, 0.32), inset 0 -1px 0 rgba(14, 35, 53, 0.12);
}

.rail::before,
.rail::after {
  content: '';
  position: absolute;
  top: -2.25rem;
  width: 10px;
  height: 2.6rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #95a3ae, #d5dce2 50%, #95a3ae);
}

.rail::before {
  left: 9%;
}

.rail::after {
  right: 9%;
}

.tickets {
  position: relative;
  display: grid;
  justify-items: center;
}

.ticket-hang {
  position: relative;
  margin-top: -7px;
  transform-origin: 50% 0;
  filter: drop-shadow(0 2px 2px rgba(14, 35, 53, 0.08)) drop-shadow(0 18px 22px rgba(14, 35, 53, 0.16));
}

.ticket-main {
  z-index: 2;
  width: min(100%, 23rem);
  transform: rotate(-0.8deg);
  animation: hang 1.1s cubic-bezier(0.25, 0.8, 0.3, 1) 0.2s both;
}

/* A batch recipe ticket hanging behind: the gravy that goes on the plate. */
.ticket-ghost {
  display: none;
}

/* Only shown where there's room for it to peek out from behind the main ticket. */
@media (min-width: 74rem) {
  .tickets {
    justify-items: end;
  }

  .ticket-ghost {
    display: block;
    position: absolute;
    z-index: 1;
    top: 0;
    left: max(0px, calc(100% - 31.5rem));
    width: 11rem;
    transform: rotate(2.6deg);
    animation: hang-back 1.1s cubic-bezier(0.25, 0.8, 0.3, 1) 0.05s both;
  }
}

@keyframes hang {
  0% {
    opacity: 0;
    transform: translateY(-1.75rem) rotate(-4deg);
  }
  55% {
    opacity: 1;
    transform: translateY(0) rotate(1.2deg);
  }
  80% {
    transform: rotate(-1.5deg);
  }
  100% {
    transform: rotate(-0.8deg);
  }
}

@keyframes hang-back {
  0% {
    opacity: 0;
    transform: translateY(-1.5rem) rotate(6deg);
  }
  60% {
    opacity: 1;
    transform: translateY(0) rotate(1.8deg);
  }
  100% {
    transform: rotate(2.6deg);
  }
}

.pass-caption {
  max-width: 25rem;
  margin: 1.25rem auto 0;
  color: var(--steel);
  font-size: 0.9375rem;
  text-align: center;
}

/* The ticket itself: torn along the bottom edge like a docket. */

.ticket {
  --tooth: 9px;
  padding-bottom: var(--tooth);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat,
    conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat,
    conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
}

.ticket-head {
  padding: 1.05rem 1.35rem 0.95rem;
  background: var(--blue);
  color: #fff;
}

.ticket-kind {
  font-size: 0.875rem;
  opacity: 0.82;
}

.ticket-title {
  margin-top: 0.1rem;
  font-size: 1.25rem;
  font-weight: 740;
  font-stretch: 110%;
  line-height: 1.2;
  letter-spacing: -0.006em;
}

.ticket-body {
  padding: 0.6rem 1.35rem 1.15rem;
}

.ticket-section + .ticket-section {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--rule-strong);
}

.ticket-ghost .ticket-head {
  background: var(--ink);
  padding: 0.8rem 1rem 0.75rem;
}

.ticket-ghost .ticket-title {
  font-size: 1.0625rem;
}

.ticket-ghost .ticket-body {
  padding: 0.7rem 1rem 1rem;
}

.ghost-note {
  color: var(--steel);
  font-size: 0.875rem;
}

.ghost-figure {
  margin-block: 0.1rem 0.35rem;
  font-size: 1.375rem;
  font-weight: 780;
  font-stretch: 110%;
}

.ghost-figure + .ghost-note {
  margin-top: 0;
}

.lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.line {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding-block: 0.3rem;
}

.line-name {
  min-width: 0;
}

.line-qty {
  color: var(--steel);
  white-space: nowrap;
}

.leader {
  flex: 1 1 1.5rem;
  min-width: 1.25rem;
  border-bottom: 2px dotted #b6c2cc;
  transform: translateY(-0.28em);
}

.money {
  font-weight: 650;
  white-space: nowrap;
}

.line-note {
  display: block;
  margin-top: -0.15rem;
  padding-bottom: 0.25rem;
  color: var(--steel);
  font-size: 0.875rem;
}

.line-total {
  font-weight: 700;
}

.line-big {
  padding-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 760;
  font-stretch: 108%;
}

.line-big .money {
  font-weight: 820;
}

.line-big > span:first-child {
  white-space: nowrap;
}

@media (max-width: 30rem) {
  .ticket-head,
  .ticket-body {
    padding-inline: 1rem;
  }

  .line-big {
    font-size: 1.0625rem;
    font-stretch: 100%;
  }
}

/* A value that has just changed gets a day dot behind it, which fades. */
.figure {
  display: inline-block;
  padding: 0 0.2em;
  margin: 0 -0.2em;
  border-radius: 4px;
}

.figure.changed {
  animation: day-dot 1.8s ease-out both;
}

/* A value shown as changed, without the fade. */
.figure.is-new {
  background-color: var(--dot);
}

.line-note .figure {
  padding: 0 0.15em;
  margin: 0 -0.1em;
}

@keyframes day-dot {
  0%,
  35% {
    background-color: var(--dot);
  }
  100% {
    background-color: rgba(255, 212, 59, 0);
  }
}

.controls {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.25rem;
  padding: 0.9rem 1rem 1rem;
  background: var(--plate);
  border-radius: var(--radius-s);
}

.control label {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.control output {
  font-weight: 700;
}

input[type='range'] {
  width: 100%;
  height: 2rem;
  margin: 0.15rem 0 0;
  background: transparent;
  accent-color: var(--blue);
  cursor: pointer;
}

/* Home: real screens from the app, overlapping on a steel stage. */

.screens {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(0.5rem, 3vw, 2rem) 0;
  overflow: hidden;
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 90% at 50% 100%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #e2e8ed, #eef2f5);
}

.screen {
  margin: 0;
  flex: none;
}

.screen img {
  width: 100%;
}

.screen-phone {
  width: clamp(8.5rem, 22vw, 15.5rem);
  margin-bottom: -2.5rem;
  border: 7px solid var(--ink);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lift);
}

.screen-phone img {
  height: clamp(16rem, 40vw, 29rem);
  object-fit: cover;
  object-position: 50% 0;
}

.screen-panel {
  position: relative;
  z-index: 2;
  width: clamp(15rem, 40vw, 27rem);
  margin-inline: clamp(-3rem, -4vw, -1.5rem);
  margin-bottom: 0;
  border: 1px solid var(--rule);
  border-bottom: 0;
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lift);
}

.screen-panel img {
  height: clamp(18rem, 44vw, 31rem);
  object-fit: cover;
  object-position: 50% 100%;
}

/* The costing screen is cropped from the top; fade the cut edge in. */
.screen-panel img,
.shot-costing img {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 4rem);
  mask-image: linear-gradient(to bottom, transparent 0, #000 4rem);
}

.screen-left {
  transform: translateY(1.5rem);
}

.screen-right {
  transform: translateY(1.5rem);
}

/* On a phone, one screen shown large reads better than three shown tiny. */
@media (max-width: 47.99rem) {
  .screen-phone {
    display: none;
  }

  .screen-panel {
    width: min(100%, 22rem);
    margin-inline: 0;
  }
}

/* Home: three outcomes under the screens. */

.outcomes {
  display: grid;
  gap: 2rem;
  margin: clamp(3rem, 6vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 56rem) {
  .outcomes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
  }
}

.outcomes li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-strong);
}

.outcomes p {
  margin-top: 0.6rem;
  color: var(--steel);
}

.outcomes .more {
  margin-top: 0.9rem;
}

/* How it fits together: a real sequence, so it's numbered. */

.flow {
  display: grid;
  gap: 0;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow li {
  position: relative;
  padding: 0 0 2rem 3.5rem;
  counter-increment: flow;
}

.flow li::before {
  content: counter(flow);
  position: absolute;
  left: 0;
  top: -0.1rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 760;
}

.flow li::after {
  content: '';
  position: absolute;
  left: calc(1.125rem - 1px);
  top: 2rem;
  bottom: 0;
  width: 2px;
  background: #b9d6e8;
}

.flow li:last-child {
  padding-bottom: 0;
}

.flow li:last-child::after {
  display: none;
}

.flow p {
  margin-top: 0.4rem;
  color: var(--steel);
}

.flow strong {
  color: var(--ink);
  font-weight: 650;
}

@media (min-width: 56rem) {
  .flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }

  .flow li {
    padding: 3.25rem 0 0;
  }

  .flow li::before {
    top: 0;
  }

  .flow li::after {
    left: 2.25rem;
    right: -2rem;
    top: calc(1.125rem - 1px);
    bottom: auto;
    width: auto;
    height: 2px;
  }
}

/* Closing call to action, on ink, sitting on the footer. */

.closing {
  padding-block: clamp(4rem, 8vw, 6rem);
}

.closing-row {
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 56rem) {
  .closing-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4rem;
  }
}

.closing h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);
  letter-spacing: -0.024em;
}

.closing p {
  margin-top: 1rem;
  max-width: var(--measure);
  color: var(--on-ink);
  font-size: 1.125rem;
}

/* Footer */

.site-footer {
  padding-block: 3.5rem 2.5rem;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--on-ink);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}

.footer-brand {
  grid-column: 1 / -1;
}

@media (min-width: 56rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }

  .footer-brand {
    grid-column: auto;
  }
}

.site-footer .brand-logo {
  height: 1.75rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  max-width: 18rem;
}

.footer-col h2 {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 650;
  font-stretch: 100%;
  letter-spacing: 0;
}

.footer-col ul {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-col li + li {
  margin-top: 0.5rem;
}

.site-footer a:not(.brand) {
  color: var(--on-ink);
  text-decoration: none;
}

.site-footer a:not(.brand):hover {
  color: #fff;
  text-decoration: underline;
}

.footer-base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--on-ink-quiet);
}

/* Inner pages */

.page-head {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem);
}

.page-head h1 {
  max-width: 20ch;
}

.page-head .lede {
  margin-top: 1.25rem;
  max-width: 38rem;
}

.page-head .actions {
  margin-top: 2rem;
}

/* Links to the sections of a page */

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.jump a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 560;
  text-decoration: none;
}

.jump a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Features page: one feature per row, text beside a real screenshot. */

.feature {
  display: grid;
  gap: 2.25rem;
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.feature + .feature {
  border-top: 1px solid var(--rule);
}

.page-head + .feature {
  padding-top: clamp(1rem, 3vw, 2rem);
}

.feature-text {
  max-width: var(--measure);
}

.feature-text h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem);
}

.feature-text > p {
  margin-top: 1rem;
  color: var(--ink-soft);
}

.feature-text .small-print {
  margin-top: 1.5rem;
  color: var(--steel);
  font-size: 0.9375rem;
}

@media (min-width: 56rem) {
  .feature {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(3rem, 6vw, 6rem);
  }

  .feature-flip .feature-text {
    order: 2;
  }

  .feature-wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-wide .feature-text {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 0 clamp(3rem, 6vw, 6rem);
    max-width: none;
  }

  .feature-wide .feature-text > * {
    grid-column: 2;
  }

  .feature-wide .feature-text > h2 {
    grid-column: 1;
    grid-row: 1 / span 4;
  }

  .feature-wide .feature-text > p:first-of-type {
    margin-top: 0;
  }
}

.ticks {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 1.75rem;
}

.ticks li + li {
  margin-top: 0.55rem;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.5em;
  width: 0.75rem;
  height: 0.4rem;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.on-ink .ticks li::before {
  border-color: var(--blue-light);
}

.shot {
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, #e8edf1, var(--plate));
}

.shot img {
  border: 1px solid var(--rule);
  border-radius: var(--radius-s);
  background: #fff;
  box-shadow: var(--shadow-paper);
}

.shot-phone img {
  width: min(100%, 16rem);
  border: 7px solid var(--ink);
  border-radius: 30px;
}

.shot-costing {
  padding-bottom: 0;
  overflow: hidden;
  align-items: end;
}

.shot-costing img {
  width: min(100%, 24rem);
  height: clamp(22rem, 48vw, 32rem);
  object-fit: cover;
  object-position: 50% 100%;
  border-bottom: 0;
  border-radius: var(--radius-s) var(--radius-s) 0 0;
}

.shot-sheet img {
  width: min(100%, 28rem);
}

.shot-table {
  margin-top: 2.25rem;
}

@media (max-width: 40rem) {
  /* On a phone the table is cropped to its first columns; the fade shows it carries on. */
  .shot-table img {
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
    mask-image: linear-gradient(to right, #000 82%, transparent);
    border-right: 0;
    border-radius: var(--radius-s) 0 0 var(--radius-s);
  }
}

/* A short list of smaller points, set out in columns. */

.details {
  display: grid;
  gap: 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
  }
}

.details li {
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule-strong);
}

.details p {
  margin-top: 0.5rem;
  color: var(--steel);
}

/* How it works page: the four layers, each with its line from the example. */

.layers {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: layer;
}

.layer {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding: 0 0 3.5rem 3.75rem;
  counter-increment: layer;
}

.layer::before {
  content: counter(layer);
  position: absolute;
  left: 0;
  top: -0.2rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 780;
  font-size: 1.0625rem;
}

.layer::after {
  content: '';
  position: absolute;
  left: calc(1.25rem - 1px);
  top: 2.25rem;
  bottom: 0;
  width: 2px;
  background: #b9d6e8;
}

.layer:last-child {
  padding-bottom: 0;
}

.layer:last-child::after {
  display: none;
}

.layer h2 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem);
}

.layer-text p {
  margin-top: 0.6rem;
  max-width: 32rem;
  color: var(--ink-soft);
}

@media (min-width: 56rem) {
  .layer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
    gap: 4rem;
    align-items: start;
    padding-left: 4.5rem;
  }
}

/* A torn-off strip of a ticket, showing one line of the example. */

.stub {
  padding: 0.85rem 1.15rem 0.95rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-s);
  background: var(--paper);
  box-shadow: var(--shadow-paper);
  font-variant-numeric: tabular-nums;
}

.stub-kind {
  margin-bottom: 0.2rem;
  color: var(--steel);
  font-size: 0.875rem;
}

/* How it works page: before and after a price rise. */

.change {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .change {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}

.change-text > p {
  margin-top: 1rem;
  color: var(--ink-soft);
}

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  background: var(--paper);
  box-shadow: var(--shadow-paper);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}

.compare caption {
  padding: 0 0 0.75rem;
  color: var(--steel);
  font-size: 0.9375rem;
  text-align: left;
}

.compare th,
.compare td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  text-align: right;
  vertical-align: baseline;
}

.compare th[scope='row'] {
  font-weight: 500;
  text-align: left;
}

.compare thead th {
  background: var(--plate);
  color: var(--steel);
  font-size: 0.9375rem;
  font-weight: 600;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
  font-weight: 720;
}

.compare td:last-child {
  font-weight: 650;
}

@media (max-width: 30rem) {
  .compare th,
  .compare td {
    padding: 0.75rem 0.7rem;
    font-size: 0.9375rem;
  }
}

/* Steps that happen one after another, set in a row. */

.steps {
  display: grid;
  gap: 2rem;
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.steps li {
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.75rem;
  color: var(--blue);
  font-size: 1.75rem;
  font-weight: 820;
  font-stretch: 120%;
  line-height: 1;
}

.steps p {
  margin-top: 0.5rem;
  color: var(--steel);
}

/* Pricing page */

.pricing-head {
  padding-bottom: 0;
}

.price-hero {
  max-width: 14ch;
}

.plans {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

@media (min-width: 50rem) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 58rem;
  }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-l);
  background: var(--paper);
}

.plan-featured {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

.plan h2 {
  font-size: 1.25rem;
  font-weight: 720;
  font-stretch: 110%;
  letter-spacing: 0;
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin-top: 1.25rem;
}

.plan-amount {
  font-size: clamp(2.9rem, 2.2rem + 2.4vw, 3.75rem);
  font-weight: 820;
  font-stretch: 116%;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan-period {
  color: var(--steel);
  font-size: 1.0625rem;
}

.plan-note {
  margin-top: 0.75rem;
  color: var(--steel);
}

.plan-featured .plan-period,
.plan-featured .plan-note {
  color: var(--on-ink);
}

.plan-save {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.25rem);
  right: clamp(1.5rem, 3vw, 2.25rem);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(140, 205, 242, 0.16);
  color: var(--blue-light);
  font-size: 0.875rem;
  font-weight: 650;
}

.plan .button {
  margin-top: 2rem;
  align-self: stretch;
}

.plans-note {
  margin-top: 1.25rem;
  max-width: 44rem;
  color: var(--steel);
  font-size: 0.9375rem;
}

.included {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .included {
    columns: 2;
    column-gap: 3rem;
    max-width: 52rem;
  }
}

.included li {
  break-inside: avoid;
}

/* The free trial, from sign-up to the first payment. */

.timeline {
  display: grid;
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 2rem 2.25rem;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  z-index: 1;
  width: 0.9rem;
  height: 0.9rem;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: var(--paper);
}

.timeline li::after {
  content: '';
  position: absolute;
  left: calc(0.45rem - 1px);
  top: 1.3rem;
  bottom: 0;
  width: 2px;
  background: #b9d6e8;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li:last-child::before {
  background: var(--blue);
}

.timeline li:last-child::after {
  display: none;
}

.timeline h3 {
  font-size: 1.125rem;
}

.timeline p {
  margin-top: 0.35rem;
  max-width: 22rem;
  color: var(--steel);
}

@media (min-width: 56rem) {
  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .timeline li {
    padding: 2.25rem 0 0;
  }

  .timeline li::before {
    top: 0;
  }

  .timeline li::after {
    left: 1.2rem;
    right: -2.5rem;
    top: calc(0.45rem - 1px);
    bottom: auto;
    width: auto;
    height: 2px;
  }
}

/* A quiet last step at the end of a page. */

.next-step {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-l);
}

@media (min-width: 52rem) {
  .next-step {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
  }
}

.next-step h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
}

.next-step p {
  margin-top: 0.5rem;
  color: var(--steel);
}

/* Questions */

.faq-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 60rem) {
  .faq-layout {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 4.5rem;
    align-items: start;
  }

  .faq-nav {
    position: sticky;
    top: 6rem;
  }

  .faq-nav .jump {
    flex-direction: column;
    gap: 0.15rem;
    margin: 0;
  }

  .faq-nav .jump a {
    display: block;
    padding: 0.45rem 0.75rem;
    border: 0;
    border-radius: var(--radius-s);
    background: none;
    color: var(--ink-soft);
  }

  .faq-nav .jump a:hover {
    background: var(--plate);
    color: var(--ink);
  }
}

.faq-group + .faq-group {
  margin-top: clamp(3rem, 6vw, 4rem);
}

.faq-group h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
}

.faq {
  max-width: 48rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--rule-strong);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  position: relative;
  display: block;
  padding: 1.1rem 2.75rem 1.1rem 0;
  font-weight: 650;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before,
.faq summary::after {
  content: '';
  position: absolute;
  right: 0.6rem;
  top: 50%;
  width: 0.85rem;
  height: 2px;
  background: var(--blue);
  transition: transform 0.2s;
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::after {
  transform: rotate(0deg);
}

.faq summary:hover {
  color: var(--blue-dark);
}

.faq .answer {
  max-width: var(--measure);
  padding-bottom: 1.35rem;
  color: var(--ink-soft);
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 56rem) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 4.5rem;
    align-items: start;
  }
}

.form-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: var(--shadow-paper);
}

.form {
  display: grid;
  gap: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 650;
}

.field .optional {
  color: var(--steel);
  font-weight: 450;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #a9b6c2;
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(3, 105, 161, 0.25);
  outline-offset: 0;
}

.field-hint {
  color: var(--steel);
  font-size: 0.875rem;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-status {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-s);
  border-left: 4px solid;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  border-color: var(--error);
  background: #fdf0ee;
  color: var(--error);
}

.form-status.is-ok {
  border-color: var(--ok);
  background: #ecf6f0;
  color: var(--ok);
}

.aside-block + .aside-block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.aside-block h2 {
  font-size: 1.1875rem;
  font-stretch: 108%;
  letter-spacing: 0;
}

.aside-block p {
  margin-top: 0.5rem;
  color: var(--steel);
}

/* Legal pages */

.legal {
  max-width: 44rem;
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.legal .page-head {
  padding-bottom: 0;
}

.draft-notice {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  background: #fff8db;
  border-left: 4px solid #e0b100;
  border-radius: var(--radius-s);
}

.draft-notice strong {
  font-weight: 700;
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.45rem;
}

.legal h3 {
  margin-top: 1.5rem;
}

.legal h2 + p,
.legal h3 + p,
.legal h2 + ul,
.legal h3 + ul {
  margin-top: 0.75rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 0.4rem;
}

.legal .to-check {
  background: #fff1b8;
  padding: 0 0.2em;
  border-radius: 3px;
}

.legal table {
  width: 100%;
  margin-top: 0.75rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.legal th,
.legal td {
  padding: 0.55rem 0.6rem 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.legal th {
  font-weight: 650;
}

.legal-updated {
  margin-top: 0.75rem;
  color: var(--steel);
}

/* Not found */

.not-found {
  padding-bottom: clamp(4rem, 10vw, 8rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .ticket-main,
  .ticket-ghost {
    animation: none;
  }

  .figure.changed {
    animation: none;
    background-color: var(--dot);
  }
}

/* Space at the foot of a page that ends without a band. */
.band-tail {
  padding-bottom: clamp(4rem, 9vw, 7rem);
}
