/* Pannier landing page reference. Regular weight throughout; hierarchy comes from scale and space. */

@font-face {
  font-family: "Gelasio";
  src: url("./fonts/gelasio-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("./fonts/geist-mono-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f0e7;
  --paper-raised: #fbf9f4;
  --paper-sunk: #ece7db;
  --ink: #1e2a23;
  --ink-soft: #4b574e;
  --line: rgba(30, 42, 35, 0.14);
  --line-strong: rgba(30, 42, 35, 0.28);
  --forest: #1f3d2b;
  --forest-deep: #18261e;
  --moss: #dee5d3;
  --sand: #f0e2c8;
  --clay: #a9481f;
  --clay-soft: #f3dccb;

  --serif: "Gelasio", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 1200px;
  --shadow-window: 0 1px 0 rgba(30, 42, 35, 0.04), 0 24px 60px -28px rgba(30, 42, 35, 0.35);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
  font-weight: 400;
}

ul,
ol {
  list-style: none;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

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

.defs {
  position: absolute;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-300%);
}

.skip-link:focus {
  transform: none;
}

main:focus {
  outline: none;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Type */

h1,
h2,
.lead-serif {
  font-family: var(--serif);
  letter-spacing: -0.012em;
}

h1 {
  font-size: clamp(2.125rem, 0.25rem + 9.4vw, 5.75rem);
  line-height: 1.03;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 1.5rem + 2.1vw, 3.25rem);
  line-height: 1.1;
  text-wrap: balance;
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.5;
  text-wrap: pretty;
}

/* Actions */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--paper-raised);
  font-size: 1.0625rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms ease;
}

.btn:hover {
  background: #17301f;
}

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

.btn-small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.9375rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.0625rem;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 160ms ease;
}

.text-link:hover {
  text-decoration-color: var(--ink);
}

/* Opening */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(620px, 100svh, 900px);
  overflow: hidden;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
}

.hero-art img,
.hero-art canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art img {
  object-fit: cover;
  object-position: center top;
}

.hero-art canvas {
  opacity: 0;
  transition: opacity 500ms ease;
}

.hero-art canvas[data-ready] {
  opacity: 1;
}

.site-nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 34px;
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
  font-size: 0.9375rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.4375rem;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--forest);
  flex: none;
}

.nav-inline {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-inline a,
.nav-menu nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.nav-inline a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.nav-menu {
  display: none;
  position: relative;
}

.nav-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  cursor: pointer;
  list-style: none;
}

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

.nav-menu nav {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-raised);
  box-shadow: var(--shadow-window);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 980px;
  margin: auto;
  padding: 24px var(--gutter) 150px;
  text-align: center;
}

.hero-copy h1 {
  max-width: 11.2em;
}

.hero-copy .lead {
  max-width: 27em;
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.4375rem);
  line-height: 1.42;
  letter-spacing: -0.003em;
  text-wrap: balance;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 30px;
  margin-top: 38px;
}

/* Passages */

.passage {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 136px) var(--gutter) 0;
}

/* Carry: the context view and the phone that continues from it */

.carry-words {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 24px 64px;
}

.carry-words h2 {
  max-width: 13em;
}

.carry-words .lead {
  max-width: 24em;
  padding-bottom: 0.35em;
}

.carry-stage {
  position: relative;
  margin-top: clamp(36px, 4.4vw, 64px);
  padding: 56px 56px 104px;
  border-radius: 28px;
  background: var(--moss);
  overflow: hidden;
  isolation: isolate;
}

.stage-ground {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.window {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-raised);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.window-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
}

.window-app svg {
  width: 18px;
  height: 18px;
  color: var(--forest);
}

.context {
  width: calc(100% - 236px);
}

.context-body {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
}

.context-side {
  padding: 20px 10px 24px;
  border-right: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.3;
}

.context-side > li {
  padding: 7px 10px;
}

.context-side ul {
  margin: 7px -10px 0;
}

.context-side ul li {
  padding: 7px 10px 7px 22px;
  border-radius: 8px;
}

.context-side .is-open {
  color: var(--ink);
}

.context-side .is-current {
  background: var(--moss);
  color: var(--ink);
}

.context-side ul li:not(.is-current) {
  color: var(--ink-soft);
}

.context-main {
  padding: 26px 62px 12px 26px;
  min-width: 0;
}

.context-head h3 {
  font-family: var(--serif);
  font-size: 1.625rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.context-head p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  text-wrap: balance;
}

.entries {
  margin-top: 18px;
}

.entry {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto 62px;
  align-items: baseline;
  gap: 4px 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.35;
}

.entry-type {
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.entry-by,
.entry-time {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.entry-time {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.entry-new .entry-by,
.entry-new .entry-type {
  color: var(--clay);
}

.phone {
  position: absolute;
  top: 124px;
  right: 56px;
  z-index: 2;
  width: 272px;
  padding: 9px;
  border-radius: 44px;
  background: var(--ink);
  box-shadow: 0 30px 70px -30px rgba(30, 42, 35, 0.6);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  min-height: 470px;
  border-radius: 35px;
  background: var(--paper-raised);
  overflow: hidden;
}

.phone-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 22px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.phone-bar time {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.chat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px 24px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.bubble {
  max-width: 100%;
  padding: 11px 14px;
  border-radius: 18px;
}

.bubble-me {
  align-self: flex-end;
  max-width: 88%;
  border-bottom-right-radius: 6px;
  background: var(--forest);
  color: var(--paper-raised);
}

.bubble-agent {
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  background: var(--paper);
}

.chat-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.composer {
  margin: auto 12px 14px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 3px var(--clay-soft);
}

/* The handoff plays once when the stage arrives. Without scripts everything is simply shown. */

.seq.is-armed [data-step] {
  opacity: 0;
  transform: translateY(8px);
}

.carry-stage.is-armed .entry[data-step] {
  transform: none;
  background: var(--clay-soft);
}

.seq.is-playing [data-step] {
  transition: opacity 480ms ease, transform 480ms cubic-bezier(0.2, 0.7, 0.2, 1), background-color 1600ms ease 900ms;
}

.seq.is-playing [data-step].is-on {
  opacity: 1;
  transform: none;
}

.carry-stage.is-playing .entry[data-step].is-on {
  background: transparent;
}

.carry-stage .entry[data-read] {
  transition: background-color 700ms ease;
}

.carry-stage .entry[data-read].is-read {
  background: var(--moss);
  transition-duration: 200ms;
}

/* Narrow layouts */

.context {
  container-type: inline-size;
}

@container (max-width: 620px) {
  .entry {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 3px 10px;
    padding: 12px 0;
  }

  .entry-text {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 1239px) {
  .context-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .context-side {
    display: none;
  }
}

@media (max-width: 1099px) {
  .carry-words {
    grid-template-columns: minmax(0, 1fr);
  }

  .carry-stage {
    padding: 40px 40px 64px;
  }

  .phone {
    top: 104px;
    right: 40px;
  }
}

@media (max-width: 759px) {
  .site-nav {
    gap: 14px;
    padding-top: 14px;
  }

  .nav-inline {
    display: none;
  }

  .nav-menu {
    display: block;
    order: 3;
  }

  .hero {
    min-height: clamp(600px, 100svh, 860px);
  }

  .hero-copy {
    padding-bottom: 170px;
  }

  .hero-copy .lead {
    margin-top: 22px;
  }

  .actions {
    flex-direction: column;
    margin-top: 30px;
  }

  .carry-stage {
    margin-inline: calc(-1 * var(--gutter));
    padding: 24px 14px 36px;
    border-radius: 0;
  }

  .entry-wide {
    display: none;
  }

  .context {
    width: 100%;
  }

  .context-main {
    padding: 20px 18px 58px;
  }

  .phone {
    position: relative;
    top: auto;
    right: auto;
    width: min(272px, 84%);
    margin: -46px 8px 0 auto;
  }
}

@media (max-width: 359px) {
  .site-nav {
    gap: 8px;
  }

  .btn-small {
    padding: 0 16px;
  }
}

/* Screen-reader text for product depictions */

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-raised);
  color: var(--ink);
  font-size: 0.8125rem;
  line-height: 1;
  white-space: nowrap;
}

/* Current: a newer decision lands on the one it replaces; a conflict waits beside it */

.current {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 40px 72px;
}

.current-words h2 {
  max-width: 9.2em;
}

.current-words .lead {
  max-width: 21em;
  margin-top: 26px;
}

.current-stage {
  position: relative;
  padding: 60px 52px;
  border-radius: 28px;
  background: var(--sand);
  overflow: hidden;
  isolation: isolate;
}

.record {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-raised);
  box-shadow: var(--shadow-window);
}

.record-state {
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.record-text {
  margin-top: 8px;
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.011em;
}

.record-by {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.record-by time {
  font-variant-numeric: tabular-nums;
}

.pile {
  display: grid;
}

.record-old {
  margin: 0 24px;
  padding: 16px 22px 52px;
  background: var(--paper);
  box-shadow: none;
  transform-origin: 50% 100%;
}

.record-old .record-text {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  letter-spacing: 0;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--ink-soft);
}

.record-old .record-by {
  margin-top: 8px;
}

.record-state .was {
  display: none;
}

.record-latest {
  position: relative;
  margin-top: -36px;
  padding: 24px 28px 24px;
}

.record-latest .record-by span {
  color: var(--clay);
}

.conflict {
  margin-top: 20px;
  overflow: hidden;
}

.conflict-head {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 0 12px 0 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.conflict-head .chip {
  margin-left: auto;
}

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

.choice {
  padding: 18px 24px 20px;
}

.choice + .choice {
  border-left: 1px solid var(--line);
}

.choice .record-text {
  margin-top: 0;
  font-size: 1.0625rem;
  letter-spacing: 0;
}

.choice .record-by {
  margin-top: 8px;
}

/* Until the newer decision lands, the older one still reads as the current decision. */

.seq.is-armed .record-old:not(.is-replaced) {
  transform: translateY(34px) scale(1.05);
  background: var(--paper-raised);
}

.seq.is-armed .record-old:not(.is-replaced) .was {
  display: inline;
}

.seq.is-armed .record-old:not(.is-replaced) .now {
  display: none;
}

.seq.is-armed .record-old:not(.is-replaced) .record-text {
  color: var(--ink);
  text-decoration-color: transparent;
}

.seq.is-playing .record-old {
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1), background-color 700ms ease;
}

.seq.is-playing .record-old .record-text {
  transition: color 700ms ease, text-decoration-color 700ms ease;
}

.seq.is-armed .record-latest[data-step] {
  transform: translateY(46px);
}

.seq.is-playing .record-latest[data-step] {
  transition: opacity 260ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.seq.is-playing .record-latest[data-step].is-on {
  transform: none;
}

/* Connect: the line you paste, and the connection it creates */

.connect {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: 72px;
}

.connect h2 {
  grid-column: 1 / -1;
  max-width: 12em;
}

.snippet {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: clamp(32px, 4.2vw, 60px);
  padding: 22px 40px 124px;
  border-radius: 28px;
  background: var(--forest-deep);
  color: rgba(244, 240, 231, 0.74);
}

.snippet-tabs {
  display: none;
  flex-wrap: wrap;
  gap: 4px 30px;
}

.js .snippet-tabs {
  display: flex;
}

.snippet-tabs button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(244, 240, 231, 0.62);
  font-size: 0.9375rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.snippet-tabs button:hover {
  color: var(--paper);
}

.snippet-tabs button[aria-selected="true"] {
  color: var(--paper);
  text-decoration-color: rgba(244, 240, 231, 0.7);
}

.snippet-tabs button:focus-visible {
  outline-color: var(--sand);
}

.snippet-panel + .snippet-panel {
  margin-top: 22px;
}

/* With scripts the three panels share one cell, so choosing an app never moves the page. */

.js .snippet-panels {
  display: grid;
  align-items: center;
  margin-top: 14px;
}

.js .snippet-panel {
  grid-area: 1 / 1;
  margin-top: 0;
  transition: opacity 200ms ease;
}

.js .snippet-panel[data-off] {
  visibility: hidden;
  opacity: 0;
}

.snippet-name {
  color: rgba(244, 240, 231, 0.62);
  font-size: 0.9375rem;
}

.js .snippet-name {
  display: none;
}

.snippet pre {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 1.0625rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}

.js .snippet pre {
  margin-top: 0;
}

.snippet code {
  font-family: inherit;
}

.snippet .url {
  color: var(--sand);
}

.connect-lead {
  grid-column: 1;
  grid-row: 3;
  max-width: 17em;
  margin-top: 36px;
}

.access {
  position: relative;
  grid-column: 2;
  grid-row: 3;
  margin: -84px 40px 0 0;
}

.access-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.access-table th,
.access-table td {
  padding: 13px 10px;
  border-top: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
}

.access-table thead th {
  padding-block: 14px 12px;
  border-top: 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.access-table tr > :first-child {
  padding-left: 24px;
}

.access-table .tick-cell {
  width: 17%;
  text-align: center;
}

.tick {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: transparent;
  font-size: 0.8125rem;
  line-height: 1;
  vertical-align: middle;
}

.tick.is-on {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper-raised);
}

.access-table .access-text {
  display: none;
}

.access-when {
  display: none;
  margin-top: 2px;
  color: var(--clay);
  font-size: 0.8125rem;
}

.access-new .access-when {
  display: block;
}

.access-table .access-revoke {
  width: 1%;
  padding-right: 18px;
  text-align: right;
}

/* Pricing: both plans on one ledger */

.pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-words {
  text-align: center;
}

.pricing-words h2 {
  max-width: 11em;
  margin-inline: auto;
}

.pricing-words .lead {
  margin-top: 22px;
  font-variant-numeric: lining-nums;
}

.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(7, auto);
  width: 100%;
  max-width: 860px;
  margin-top: clamp(40px, 5vw, 68px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-raised);
  box-shadow: var(--shadow-window);
  font-size: 1.0625rem;
  line-height: 1.35;
  font-variant-numeric: lining-nums;
}

.plan {
  display: grid;
  grid-row: 1 / -1;
  grid-template-rows: subgrid;
  padding: 34px 44px 30px;
}

.plan + .plan {
  border-left: 1px solid var(--line);
}

.plan h3 {
  padding-bottom: 22px;
  font-family: var(--sans);
  font-size: inherit;
  letter-spacing: 0;
  line-height: inherit;
}

.plan-name {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.price {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 2rem + 2vw, 3.5rem);
  letter-spacing: -0.012em;
  line-height: 1.05;
}

.price .per {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.plan ul {
  display: grid;
  grid-column: 1;
  grid-row: 2 / -1;
  grid-template-rows: subgrid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  text-rendering: geometricPrecision;
}

.plan-action {
  grid-row: 5 / -1;
  grid-column: 1;
  align-self: end;
  justify-self: start;
  margin-bottom: 4px;
}

/* Questions: the saved records and their controls sit under the claim; the answers run beside them */

.questions {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  column-gap: 104px;
  align-items: start;
}

.questions h2 {
  max-width: 10.4em;
}

.prefs {
  max-width: 500px;
  margin-top: 52px;
  container-type: inline-size;
}

.prefs-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  padding: 16px 18px 17px 20px;
  border-bottom: 1px solid var(--line);
}

.prefs-text {
  font-size: 1.0625rem;
  line-height: 1.35;
}

.prefs-list .record-by {
  grid-column: 1;
  margin-top: 4px;
}

.prefs-acts {
  display: flex;
  gap: 8px;
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* In a narrow window the controls drop under the record instead of squeezing its text. */
@container (max-width: 330px) {
  .prefs-list li {
    grid-template-columns: minmax(0, 1fr);
  }

  .prefs-acts {
    grid-column: 1;
    grid-row: auto;
    margin-top: 12px;
  }
}

.prefs-export {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px 13px 20px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.prefs-export span:first-child {
  margin-right: auto;
}

.faq-list {
  display: grid;
  row-gap: 30px;
  padding-top: 12px;
}

.faq-list dt {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.008em;
  text-wrap: balance;
}

.faq-list dd {
  max-width: 27em;
  margin-top: 7px;
  color: var(--ink-soft);
  text-wrap: balance;
}

/* Ending: the route arrives at the next step */

.ending {
  position: relative;
  margin-top: clamp(88px, 10vw, 152px);
  background: var(--forest-deep);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

.ending-art {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.ending-art img,
.ending-art canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ending-art img {
  object-fit: cover;
}

.ending-art canvas {
  opacity: 0;
  transition: opacity 500ms ease;
}

.ending-art canvas[data-ready] {
  opacity: 1;
}

.ending-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 120px;
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  min-height: clamp(540px, 48vw, 680px);
  margin: 0 auto;
  padding: clamp(64px, 7.4vw, 108px) var(--gutter) clamp(56px, 6vw, 88px);
}

.ending h2 {
  max-width: 9.4em;
  font-size: clamp(2.375rem, 1.2rem + 4.4vw, 4.75rem);
  line-height: 1.04;
}

.ending-action {
  display: grid;
  justify-items: start;
  gap: 14px;
  align-self: flex-end;
  margin-right: clamp(0px, 4vw, 64px);
}

/* Until the route is drawn (scripts pending or unavailable) the action sits directly under the heading. */

html:not(.js) .ending-inner {
  justify-content: center;
  gap: 44px;
}

html:not(.js) .ending-action {
  align-self: flex-start;
  margin: 0;
}

.btn-light {
  background: var(--paper-raised);
  color: var(--forest-deep);
}

.btn-light:hover {
  background: #ffffff;
}

.ending :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--sand);
}

.terms {
  color: rgba(244, 240, 231, 0.76);
  font-size: 0.9375rem;
  font-variant-numeric: lining-nums;
  text-rendering: geometricPrecision;
  text-wrap: balance;
}

.site-footer {
  border-top: 1px solid rgba(244, 240, 231, 0.14);
  background: var(--forest-deep);
  color: rgba(244, 240, 231, 0.78);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 34px;
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 18px var(--gutter) 26px;
}

.site-footer .brand,
.site-footer .brand-mark {
  color: var(--paper);
}

.footer-nav {
  display: flex;
  gap: 30px;
}

.footer-nav a,
.footer-contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-contact:hover {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

@media (max-width: 1099px) {
  .current {
    grid-template-columns: minmax(0, 1fr);
  }

  .current-words h2 {
    max-width: 13em;
  }

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

  .connect-lead {
    grid-row: auto;
    max-width: 24em;
    margin-top: 20px;
  }

  .snippet {
    grid-row: auto;
    padding: 20px 32px 108px;
  }

  .access {
    grid-column: 1;
    grid-row: auto;
    margin: -76px 32px 0;
  }

  .questions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px 48px;
  }

  .questions-lead {
    display: contents;
  }

  .questions h2 {
    grid-column: 1 / -1;
    max-width: 14em;
  }

  .prefs {
    margin-top: 0;
  }

  .faq-list {
    padding-top: 2px;
  }
}

@media (max-width: 759px) {
  .current-words .lead {
    margin-top: 18px;
  }

  .current-stage {
    margin-inline: calc(-1 * var(--gutter));
    padding: 28px 14px 30px;
    border-radius: 0;
  }

  .record-old {
    margin: 0 12px;
    padding: 14px 16px 48px;
  }

  .record-latest {
    padding: 20px 18px 20px;
  }

  .record-text {
    font-size: 1.1875rem;
  }

  .record-old .record-text,
  .choice .record-text {
    font-size: 0.9375rem;
  }

  .conflict-head {
    padding-left: 18px;
  }

  .choice {
    padding: 16px 14px 18px 18px;
  }

  .snippet {
    margin-inline: calc(-1 * var(--gutter));
    padding: 12px var(--gutter) 76px;
    border-radius: 0;
  }

  .snippet-tabs {
    gap: 0 22px;
  }

  .snippet pre {
    font-size: 0.8125rem;
  }

  .access {
    margin: -52px -6px 0;
  }

  .access-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .access-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    padding: 12px 14px 13px 18px;
    border-top: 1px solid var(--line);
  }

  .access-table tbody tr:first-child {
    border-top: 0;
  }

  .access-table tbody th,
  .access-table tbody td {
    padding: 0;
    border: 0;
  }

  .access-table tr > :first-child {
    padding-left: 0;
  }

  .access-table .tick-cell {
    display: none;
  }

  .access-table .access-text {
    display: block;
    grid-column: 1;
    margin-top: 2px;
    color: var(--ink-soft);
    font-size: 0.8125rem;
  }

  .access-table .access-revoke {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: auto;
  }

  .plans {
    border-radius: 18px;
    font-size: 0.9375rem;
  }

  .plan {
    padding: 22px 16px 20px 18px;
  }

  .plan h3 {
    padding-bottom: 18px;
  }

  .price .per {
    font-size: 0.875rem;
  }

  .plan li {
    padding: 12px 0;
  }

  .plan-action {
    min-height: 48px;
    padding: 0 22px;
  }

  .questions {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  .prefs {
    max-width: none;
  }

  .faq-list {
    padding-top: 12px;
  }

  .prefs-list li {
    padding-inline: 16px 14px;
  }

  .prefs-export {
    padding-inline: 16px 14px;
  }

  .faq-list {
    row-gap: 24px;
  }

  .faq-list dt {
    font-size: 1.25rem;
  }

  .ending-inner {
    gap: 150px;
    min-height: 0;
  }

  .ending-action {
    align-self: flex-start;
    margin: 0 0 0 44px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: 14px;
  }

  .footer-nav {
    gap: 26px;
  }
}

@media (max-width: 359px) {
  .snippet-tabs {
    gap: 0 13px;
  }

  .snippet-tabs button {
    font-size: 0.8125rem;
  }

  /* Keeps the quoted URL on one line at 320 px */
  .snippet pre {
    font-size: 0.75rem;
  }

  .plan {
    padding-inline: 16px 14px;
  }

  .plan-action {
    padding: 0 16px;
    font-size: 0.9375rem;
  }

  .carry-stage {
    padding-inline: 10px;
  }

  .context-main {
    padding-inline: 12px;
  }

  .price .per {
    display: block;
    margin-top: 6px;
  }
}
