/* MailGraph website. White and warm-grey bands, huge light headlines, black pills,
   rounded stages that hold real windows of the app. Tokens first, then base, then
   one block per part of the page. */

@font-face {
  font-family: 'Host Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fonts/host-grotesk-latin-wght-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: 'Host Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fonts/host-grotesk-latin-ext-wght-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;
}
@font-face {
  font-family: 'Red Hat Mono';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/red-hat-mono-latin-wght-normal.woff2') format('woff2');
}

:root {
  --ink: #17171c;
  --ink-soft: #55555d;
  --paper: #ffffff;
  --stone: #f0eee9;
  --stone-deep: #e4e1d8;
  --hair: rgb(23 23 28 / 0.16);
  --ocean: #173f4d;
  --ocean-light: #497e82;
  --ocean-wash: #e3ece7;
  --ocean-deep: #123441;
  --on-ocean: rgb(255 255 255 / 0.9);

  /* the palette: blue-teal and beige as the base, warm and soft companions beside them */
  --linen: #f7f3ea;
  --oat: #e6dcc8;
  --haze: #f1f2f1; /* the sorted-mail band: a cool grey-white (the owner asked for a grey variant of white) */
  --lagoon: #0a7770; /* links, focus, ticks on light grounds (4.9:1 on linen) */
  --mint: #7fd6c6; /* the same accent on dark bands (6.7:1 on ocean) */
  --terracotta: #b9482b; /* needs you */
  --amber: #e3a336; /* coming up */
  --sage: #8da38a;
  --sage-deep: #4f6b55; /* done */
  --plum: #7a4a73; /* people */
  --rose: #e2b0a6;

  --font: 'Host Grotesk', ui-sans-serif, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Red Hat Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1280px;
  --header: 72px;
  --r-stage: 28px;
  --r-win: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --band: clamp(72px, 9vw, 136px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 24px);
  scrollbar-color: var(--ink-soft) var(--paper);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
::selection {
  background: var(--lagoon);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--lagoon);
  outline-offset: 3px;
  border-radius: 6px;
}
.band--ocean :focus-visible,
.band--ink :focus-visible,
.bcard--glass :focus-visible,
.bcard--black :focus-visible,
.announce :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--mint);
}
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
}
.skip:focus {
  top: 12px;
}
.i {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.mono {
  font-family: var(--mono);
  font-size: 0.875em;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- announcement and header ---------- */

.announce {
  background: #000;
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 10px var(--gutter);
}
.announce a {
  margin-left: 10px;
  text-underline-offset: 0.3em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-stuck {
  border-bottom-color: var(--hair);
}
.site-header__bar {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--header);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.nav {
  display: flex;
  gap: 32px;
  font-size: 15px;
  margin-right: auto;
}
.nav a:not(.pill) {
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:not(.pill):hover,
.nav a[aria-current='page'] {
  border-bottom-color: var(--ink);
}
.nav__cta {
  display: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  margin-right: -8px;
  color: inherit;
  cursor: pointer;
}
.nav-toggle__close {
  display: none;
}

/* ---------- buttons ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s var(--ease);
}
.pill:active {
  transform: scale(0.97);
}
.pill--ink {
  background: var(--ink);
  color: #fff;
}
.pill--ink:hover {
  background: #3a3a44;
}
.pill--line {
  border-color: var(--ink);
  color: var(--ink);
}
.pill--line:hover {
  background: var(--ink);
  color: #fff;
}
.pill--white {
  background: #fff;
  color: var(--ink);
}
.pill--white:hover {
  background: var(--stone);
}
.pill--outline-light {
  border-color: rgb(255 255 255 / 0.7);
  color: #fff;
}
.pill--outline-light:hover {
  background: #fff;
  color: var(--ink);
}
.site-header .pill {
  height: 44px;
  padding: 0 20px;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.more .i {
  transition: transform 0.25s var(--ease);
}
.more:hover .i {
  transform: translateX(4px);
}

/* ---------- layout primitives and type ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.band {
  padding: var(--band) 0;
}
.band--stone {
  background: var(--stone);
}
.band--ocean {
  background: var(--ocean);
  color: #fff;
}
.band--ink {
  background: var(--ink);
  color: #fff;
}
.band--tight-top {
  padding-top: 0;
}

.display {
  font-size: clamp(3rem, 9.4vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 300;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(2.125rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 300;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400;
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  max-width: 54ch;
  text-wrap: pretty;
}
.prose p {
  max-width: 68ch;
  text-wrap: pretty;
}
.prose p + p {
  margin-top: 1em;
}
.soft {
  color: var(--ink-soft);
}
.band--ocean .soft,
.band--ink .soft {
  color: var(--on-ocean);
}
.center {
  text-align: center;
}
.center .lead,
.center .prose p {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- windows of the app ---------- */

.win {
  background: #fff;
  border-radius: var(--r-win);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.1),
    0 28px 64px -16px rgb(0 0 0 / 0.4);
}
.win img {
  display: block;
  width: 100%;
  height: auto;
}
.win--missing {
  aspect-ratio: 16 / 10;
  background: var(--stone-deep);
}

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

.hero {
  text-align: center;
  padding: clamp(48px, 8vw, 112px) var(--gutter) 0;
}
.hero .display span {
  display: block;
}
.hero .lead {
  margin: 28px auto 0;
  max-width: 46ch;
}
.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero-stage {
  position: relative;
  /* almost the full width of the page, as on cohere.com: a small margin on both sides */
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0 clamp(12px, 1.7vw, 28px);
}
.hero-stage__card {
  position: relative;
  isolation: isolate;
  background: var(--ocean-deep);
  border-radius: var(--r-stage);
  padding: clamp(48px, 7vw, 130px) clamp(16px, 4vw, 88px) 0;
  height: clamp(320px, 47vw, 920px);
  overflow: hidden;
}
.hero-stage__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-stage .win {
  max-width: 1280px;
  margin: 0 auto;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 -2px 0 rgb(255 255 255 / 0.12), 0 30px 80px rgb(0 0 0 / 0.45);
}

/* ---------- works with ---------- */

.works {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.works dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 20px 40px;
  align-items: baseline;
  max-width: 900px;
  margin: 0 auto;
}
.works dt {
  color: var(--ink-soft);
  font-size: 15px;
}
.works dd {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}
.works li {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.works li:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 0.8em;
  background: var(--hair);
  margin: 0 0.7em;
  vertical-align: -0.05em;
}

/* ---------- the same mail, sorted by what it is about ----------
   One dark panel holds six emails. Read newest first they sit in one list; sorted, each glides to its
   project. Without script the panel is plain flow in the sorted order. With script (`.is-live`) every
   row and heading is placed from the sizes below, so a change of order is only a change of transform. */

.sort__title {
  max-width: 17ch;
  margin: 0 auto;
}
.sort__title .soft {
  color: var(--ink-soft);
}
.seg {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: rgb(23 23 28 / 0.075);
}
.seg__btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: none;
  padding: 13px 24px;
  border-radius: 999px;
  color: var(--ink-soft);
  font: 500 15px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease;
}
.seg__btn[aria-pressed='true'] {
  color: var(--ink);
}
.seg__btn:not([aria-pressed='true']):hover {
  color: var(--ink);
}
.seg__thumb {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.12),
    0 6px 16px -4px rgb(0 0 0 / 0.12);
  transition: transform 0.55s var(--ease);
}
.sort[data-mode='project'] .seg__thumb {
  transform: translateX(100%);
}
html:not(.js) .seg {
  display: none;
}
.sort__caption {
  max-width: 36ch;
  margin: 24px auto 0;
  color: var(--ink-soft);
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.4;
  text-wrap: balance;
}

/* the panel is pinned while you scroll (see site.js): the track is the scroll distance, the pin is what stays */
.sort__track {
  margin-top: clamp(28px, 4vw, 40px);
}
.sort__pin {
  display: flow-root; /* so the margin that tightens a scaled panel counts in the pin's height */
}
.sort.is-pinned .sort__pin {
  position: sticky;
  top: calc(var(--header) + 12px);
}

.sortstage {
  --row: 68px;
  --head: 50px;
  --gap: 14px;
  --lift: 0.95s;
  max-width: 840px;
  margin: 20px auto 0;
  padding: 18px 12px 12px;
  transform-origin: 50% 0;
  border-radius: var(--r-stage);
  background: #1a1b1f;
  color: #f2f2f4;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.07),
    0 1px 2px rgb(0 0 0 / 0.2),
    0 44px 80px -36px rgb(20 26 34 / 0.6);
}
.sortstage__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2px 16px 16px;
}
.sortstage__head b {
  font-size: 15px;
  font-weight: 600;
}
.sortstage__state {
  display: grid;
  justify-items: end;
  color: #8d8e98;
  font-size: 13px;
}
.sortstage__state > span {
  grid-area: 1 / 1;
  transition: opacity 0.4s ease;
}
.sort[data-mode='project'] .sortstage__s--time,
.sort[data-mode='time'] .sortstage__s--project {
  opacity: 0;
}
.sortstage__list {
  position: relative;
}

/* a project: its panel, its heading, its emails */
.sg {
  position: relative;
}
.sg + .sg {
  margin-top: var(--gap);
}
.sg--teal {
  --c: #14877d;
  --on: #fff;
}
.sg--terracotta {
  --c: #c4512f;
  --on: #fff;
}
.sg--plum {
  --c: #8a5582;
  --on: #fff;
}
.sg--amber {
  --c: #e3a336;
  --on: #17171c;
}
.sg__panel,
.sg__rim {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
}
.sg__panel {
  background: rgb(255 255 255 / 0.05);
}
.sg__rim {
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
}
.sg__head {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  height: var(--head);
  padding: 0 16px;
}
.sg__head i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}
.sg__head h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.sg__head em {
  margin-left: auto;
  color: #8d8e98;
  font-style: normal;
  font-size: 14px;
}
.sg__tag {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  white-space: nowrap;
}
.sg__tag--needs {
  background: rgb(217 112 82 / 0.2);
  color: #f3b9a6;
}
.sg__tag--soon {
  background: rgb(227 163 54 / 0.18);
  color: #f2cf8c;
}
.sg__tag--done {
  background: rgb(141 163 138 / 0.2);
  color: #c9dcc4;
}
.sg li {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  height: var(--row);
  padding: 0 16px;
}
.sg li::before {
  content: '';
  position: absolute;
  top: 0;
  right: 16px;
  left: 70px;
  height: 1px;
  background: rgb(255 255 255 / 0.09);
  transition: opacity 0.5s ease;
}
.sort[data-mode='project'] .sg li.is-first::before,
.sort[data-mode='time'] .sg li[data-t='0']::before {
  opacity: 0;
}
.av {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c);
  color: var(--on);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    background-color 0.7s ease,
    color 0.7s ease;
}
.sort[data-mode='time'] .av {
  background: #36373e;
  color: #c4c5cd;
}
.mail {
  min-width: 0;
}
.mail__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.mail__top b {
  font-size: 15.5px;
  font-weight: 600;
}
.mail__top time {
  flex: none;
  color: #8d8e98;
  font-family: var(--mono);
  font-size: 12.5px;
}
.mail__what {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  color: #acadb7;
  font-size: 14.5px;
  line-height: 1.4;
}

/* with script: every row and heading is placed from the sizes above (see site.js). Position, height and
   --a (0 = a plain list, 1 = fully sorted) come from one number, so scrolling and pressing do the same thing */
.sortstage.is-live .sg,
.sortstage.is-live .sg ul {
  display: contents;
}
.sortstage.is-live li,
.sortstage.is-live .sg__head,
.sortstage.is-live .sg__panel,
.sortstage.is-live .sg__rim {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}
/* a row is an opaque card in the colour of what is behind it, so rows that pass each other hide each other
   instead of printing their words over one another */
.sortstage.is-live li {
  z-index: 1;
  right: 1px;
  left: 1px;
  background-color: rgb(calc(26 + 11 * var(--a, 1)) calc(27 + 11 * var(--a, 1)) calc(31 + 11 * var(--a, 1)));
  will-change: transform;
}
.sortstage.is-live li.is-last {
  border-radius: 0 0 calc(17px * var(--a, 1)) calc(17px * var(--a, 1));
}
.sortstage.is-live .sg__head {
  opacity: var(--a, 1);
  transform: translateY(calc(var(--yp) + (1 - var(--a, 1)) * 10px));
}
.sortstage.is-live .sg__panel,
.sortstage.is-live .sg__rim {
  inset: auto;
  top: 0;
  right: 0;
  left: 0;
  height: var(--hh);
  opacity: var(--a, 1);
  transform: translateY(var(--yp));
}
.sort__note {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- the three stacked cards ("What it makes of your mail") ----------
   As on cohere.com: tall cards that pin one below the other, each with a small label, a large light
   headline, a few words and a pill, and a real piece of the app floating on the right with white chips
   over its edges. The backgrounds are drawn (glass, dots, frost), never photographs. */

.bento {
  margin: clamp(40px, 5vw, 72px) 0 0;
  padding: 0 clamp(12px, 1.4vw, 28px);
}
.bcard {
  --step: 52px;
  --pad: clamp(32px, 6vw, 120px);
  --card-h: min(clamp(560px, 45vw, 820px), calc(100vh - var(--header) - 36px - 2 * var(--step)));
  position: sticky;
  top: calc(var(--header) + 12px + var(--n) * var(--step));
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  height: var(--card-h);
  min-height: 520px;
  margin-bottom: 36px;
  padding: 48px clamp(28px, 4.5vw, 88px) 56px var(--pad);
  overflow: hidden;
  border-radius: 20px;
  transform-origin: 50% 0;
}
.bcard:last-child {
  margin-bottom: 0;
}
.bcard__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bcard__text,
.bcard__ui {
  position: relative;
  z-index: 1;
}
.bcard__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.bcard__text .h2 {
  font-size: clamp(2rem, 3.4vw, 4rem);
  max-width: 15ch;
}
.bcard__text p:not(.kicker) {
  max-width: 44ch;
  font-size: clamp(1rem, 1.05vw, 1.25rem);
  text-wrap: pretty;
}
.bcard__text .pill {
  margin-top: 10px;
}
.kicker {
  font: 500 12.5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.66;
}

/* the three grounds */
.bcard--glass {
  background: #0a1a21;
  color: #fff;
}
.bcard--glass .bcard__art {
  background:
    linear-gradient(90deg, rgb(4 12 16 / 0.85) 0%, rgb(4 12 16 / 0.35) 42%, transparent 62%),
    radial-gradient(60% 85% at 80% 30%, rgb(78 182 176 / 0.42), transparent 70%),
    linear-gradient(135deg, #0b2128 0%, #0d2d36 50%, #08161c 100%);
}
.slab {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(255 255 255 / 0.3) 0%, rgb(190 240 238 / 0.05) 26%, rgb(190 240 238 / 0.1) 72%, rgb(255 255 255 / 0.24) 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.2),
    inset 0 40px 60px -40px rgb(255 255 255 / 0.35);
}
.slab--a {
  top: -14%;
  right: 30%;
  width: 11%;
  height: 100%;
}
.slab--b {
  top: 16%;
  right: 14%;
  width: 15%;
  height: 110%;
}
.slab--c {
  top: -22%;
  right: -3%;
  width: 13%;
  height: 92%;
}
.bcard--black {
  background: #050507;
  color: #fff;
}
.art-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* the dots fade out behind the words */
  -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 56%);
  mask-image: linear-gradient(90deg, transparent 22%, #000 56%);
}
.bcard--dark {
  color: #fff;
}
.bcard--light,
.bcard--frost {
  color: var(--ink);
}
.bcard--frost {
  background: #e9e8e3;
}
.bcard--frost .bcard__art {
  background:
    radial-gradient(34% 55% at 88% 32%, rgb(147 184 150 / 0.6), transparent 70%),
    radial-gradient(40% 60% at 60% 90%, rgb(255 255 255 / 0.7), transparent 70%);
}
.pane {
  position: absolute;
  top: 6%;
  right: 20%;
  width: 26%;
  height: 120%;
  border-radius: 40px;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.85), rgb(255 255 255 / 0.2));
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.9),
    0 30px 80px -30px rgb(60 70 60 / 0.3);
}

/* a picture as the ground: it fills the card, and a soft veil on the side of the words keeps them clear */
.bcard--photo .bcard__art {
  background: #1a1a1c;
}
.bcard__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}
.bcard--photo .bcard__art::after {
  content: '';
  position: absolute;
  inset: 0;
}
.bcard--photo.bcard--dark .bcard__art::after {
  background: linear-gradient(90deg, rgb(8 10 12 / var(--veil, 0.4)) 0%, rgb(8 10 12 / calc(var(--veil, 0.4) * 0.5)) 42%, transparent 68%);
}
.bcard--photo.bcard--light .bcard__art::after {
  background: linear-gradient(90deg, rgb(247 244 238 / var(--veil, 0.5)) 0%, rgb(247 244 238 / calc(var(--veil, 0.5) * 0.5)) 42%, transparent 68%);
}

/* a real piece of the app, floating, with white chips over its edges */
.bcard__ui {
  align-self: center;
  justify-self: center;
  min-width: 0;
  /* never taller than the card allows: --ui-ar is the shape of the panel (width over height) */
  width: min(100%, calc((var(--card-h) - 120px) * var(--ui-ar, 1.2)));
}
.crop {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ar);
  border-radius: var(--r-win);
  background: #131315;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.12),
    0 30px 70px -20px rgb(0 0 0 / 0.55);
}
.crop img {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  width: calc(100% / var(--rw));
  left: calc(-100% * var(--rx) / var(--rw));
  top: calc(-100% * var(--ry) / var(--rh));
}
.bcard--light .crop {
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.08),
    0 30px 60px -22px rgb(30 40 30 / 0.5);
}
.fchip {
  position: absolute;
  z-index: 3;
  left: var(--x, auto);
  top: var(--y, auto);
  right: var(--r, auto);
  bottom: var(--b, auto);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 15px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: clamp(15px, 0.9vw, 18px);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.1),
    0 14px 32px -8px rgb(0 0 0 / 0.4);
}
.fchip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--lagoon));
  flex: none;
}
/* the mail card's two panels: the list, and an open conversation in front of it, lower and to the right */
.bcard__ui--duo {
  aspect-ratio: 1.13;
}
.crop--list,
.crop--reader {
  position: absolute;
}
.crop--list {
  top: 0;
  left: 0;
  width: 46%;
}
.crop--reader {
  top: 40%;
  right: 0;
  width: 80%;
  z-index: 2;
}

/* the preview page (/cards): the same cards one after another, not stacked, each with its number above */
.bento--flat .bcard {
  position: relative;
  top: auto;
  margin-bottom: 0;
}
.bento--flat .opt {
  margin: 56px 0 14px;
  font: 500 13px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bento--flat .opt b {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.bento--flat .opt span {
  color: var(--ink-soft);
}

/* ---------- kinds of project: a gallery of large cards, swiped sideways ---------- */

.kinds__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.kinds__title {
  text-wrap: balance;
}
@media (max-width: 700px) {
  .kinds__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
.kcar__track {
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0 var(--edge) 4px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.kcar__track::-webkit-scrollbar {
  display: none;
}
.kcar__track:focus-visible {
  outline-offset: -4px;
}
.kcard {
  flex: 0 0 min(86vw, max(560px, 40vw), 780px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1.1;
  min-height: 460px;
  overflow: hidden;
  border-radius: 24px;
}
/* as on apple.com's highlights: a light card, or a dark one (the app's near-black with the project's colour washing in) */
.kcard--light {
  background: #f2f2f4;
  color: var(--ink);
}
.kcard--dark {
  background:
    radial-gradient(85% 62% at 8% 0%, rgb(var(--tint) / 0.7), transparent 72%),
    radial-gradient(55% 42% at 100% 0%, rgb(var(--tint) / 0.26), transparent 70%),
    #161618;
  color: #fff;
}
/* a photograph instead of the piece of the app: it fills the card, the sentence sits over its top */
.kcard--photo,
.kcard--photo.kcard--light,
.kcard--photo.kcard--dark {
  position: relative;
  isolation: isolate;
  background: #1c1c1e;
}
.kcard--photo.kcard--light {
  color: var(--ink);
}
.kcard--photo.kcard--dark {
  color: #fff;
}
.kcard__ground {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.kcard__ground::after {
  content: '';
  position: absolute;
  inset: 0;
}
.kcard--photo.kcard--dark .kcard__ground::after {
  background: linear-gradient(180deg, rgb(0 0 0 / 0.5), transparent 48%);
}
.kcard--photo.kcard--light .kcard__ground::after {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.55), transparent 48%);
}
.kcard__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 60%);
}
.kcard--photo .kcard__line em {
  color: inherit;
}
/* one sentence, its last words in the project's colour */
.kcard__line {
  max-width: 28ch;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px) 0;
  font-size: clamp(1.25rem, 1.75vw, 1.65rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.kcard__line em {
  font-style: normal;
  color: var(--hi);
}
/* one piece of the app, rising from the bottom edge */
.kcard__art {
  margin-top: auto;
  padding: 24px clamp(24px, 3vw, 36px) 0;
}
.kcard__art .crop {
  width: 100%;
  border-radius: var(--r-win) var(--r-win) 0 0;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.08),
    0 -10px 40px -14px rgb(0 0 0 / 0.35);
}
.kcard--dark .kcard__art .crop {
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.14),
    0 -10px 40px -14px rgb(0 0 0 / 0.5);
}
/* ---------- the two scenes in the gallery: ask a project, write a mail (see src/demos.mjs and site.js) ----------
   Drawn on a 520 x 380 stage in the app's dark look and scaled to the card. The markup is the FINISHED scene; with
   script it is reset (data-live) and played step by step by adding the classes s-... */

.kcard__art--demo .demo {
  width: 100%;
}
.demo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 520 / 380;
  border-radius: var(--r-win) var(--r-win) 0 0;
  background: #131315;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.08),
    0 -10px 40px -14px rgb(0 0 0 / 0.35);
}
.kcard--dark .demo {
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.14),
    0 -10px 40px -14px rgb(0 0 0 / 0.5);
}
.demo__stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 520px;
  height: 380px;
  transform: scale(var(--demo-scale, 1));
  transform-origin: 0 0;
  color: #f5f5f7;
  font: 400 13px/1.4 -apple-system, BlinkMacSystemFont, 'SF Pro Text', var(--font);
}
.dm-win {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #123f57 0%, #131315 40%);
}
.dm-mail {
  background: linear-gradient(180deg, #1c1b28 0%, #151518 45%);
}
.dm-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px 0;
}
.dm-top b {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.dm-mail .dm-top b {
  font-size: 14px;
  font-weight: 600;
}
.dm-back {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.14);
}
.dm-back::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 10px;
  width: 6px;
  height: 6px;
  border-left: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff;
  transform: rotate(45deg);
}
.dm-field {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  margin: 14px 22px 0;
  padding: 0 6px 0 16px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 20px;
  background: rgb(255 255 255 / 0.09);
  font-size: 13.5px;
}
.dm-typed {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.dm-placeholder {
  display: none;
  position: absolute;
  left: 16px;
  color: #8e8e98;
}
.dm-send {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border-radius: 50%;
  background: #3d8bff;
  color: #fff;
  font-style: normal;
  font-size: 15px;
  font-weight: 600;
}
.dm-caret {
  display: none;
  width: 1.5px;
  height: 17px;
  margin-left: 1px;
  background: #fff;
}
.dm-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 22px 0;
  color: #a3a3ad;
  font-size: 12.5px;
  font-weight: 500;
}
.dm-tabs span {
  padding: 5px 11px;
  border-radius: 14px;
}
.dm-tabs .on {
  background: rgb(110 190 230 / 0.26);
  color: #fff;
}
.dm-tabs small {
  color: #8e8e98;
  font-size: 10.5px;
}
.dm-back-lines {
  margin: 18px 22px 0;
}
.dm-label {
  margin: 0 0 6px;
  color: #8e8e98;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.dm-label small {
  font-size: 11px;
}
.dm-line {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  margin: 0;
  color: #dcdce2;
  font-size: 13px;
}
.dm-line i {
  width: 14px;
  height: 14px;
  border: 1.5px solid #3d8bff;
  border-radius: 4px;
}
.dm-panel {
  position: absolute;
  top: 66px;
  right: 0;
  bottom: 0;
  left: 33%;
  padding: 16px 18px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  border-left: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 14px 0 0 0;
  background: #1d1d21;
  box-shadow: -24px 0 40px -12px rgb(0 0 0 / 0.55);
}
.dm-q {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.dm-wait,
.dm-writing {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #9a9aa5;
  font-size: 12.5px;
}
.dm-spin {
  animation: dm-turn 0.9s linear infinite;
}
@keyframes dm-turn {
  to {
    transform: rotate(360deg);
  }
}
.dm-answer p {
  margin: 0 0 8px;
  color: #e9e9ee;
  font-size: 12.5px;
  line-height: 1.5;
}
.dm-src-label {
  margin-top: 14px;
}
.dm-src {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.06);
  color: #9a9aa5;
  font-size: 11.5px;
}
.dm-src span {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dm-src b {
  display: block;
  color: #f2f2f5;
  font-size: 12px;
  font-weight: 600;
}
/* the mail */
.dm-to {
  display: flex;
  gap: 12px;
  margin: 10px 22px 0;
  color: #f2f2f5;
  font-size: 13px;
}
.dm-to span {
  color: #8e8e98;
}
.dm-body {
  position: relative;
  height: 196px;
  margin: 10px 22px 0;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 13.5px;
  line-height: 1.55;
}
.dm-notes {
  display: none;
  color: #d9d9df;
}
.dm-body .dm-caret {
  vertical-align: -3px;
}
.dm-draft {
  position: absolute;
  inset: 14px 0 0;
}
.dm-draft p {
  margin: 0 0 9px;
  color: #f5f5f7;
}
.dm-writing {
  position: absolute;
  top: 14px;
  left: 0;
}
.dm-menu {
  display: none;
  position: absolute;
  bottom: 62px;
  left: 22px;
  width: 292px;
  padding: 6px;
  border: 1px solid rgb(255 255 255 / 0.13);
  border-radius: 13px;
  background: #27272c;
  box-shadow: 0 18px 40px -8px rgb(0 0 0 / 0.6);
}
.dm-menu p {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 7px 10px;
  border-radius: 8px;
}
.dm-menu b {
  font-size: 13px;
  font-weight: 600;
}
.dm-menu span {
  color: #9a9aa5;
  font-size: 11.5px;
}
.dm-menu .dm-ask-line {
  margin-top: 4px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 0;
  color: #8e8e98;
  font-size: 12px;
}
.dm-bar {
  position: absolute;
  right: 22px;
  bottom: 16px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dm-edit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.1);
  font-size: 12.5px;
  font-weight: 500;
}
.dm-edit svg {
  color: #b7a4ff;
}
.dm-use {
  color: #6aa8ff;
  font-size: 12.5px;
  font-weight: 500;
}
.dm-sendbtn {
  margin-left: auto;
  padding: 8px 20px;
  border-radius: 18px;
  background: #3d8bff;
  font-size: 12.5px;
  font-weight: 600;
}

/* the finished scene is what is shown by default; once script takes over (data-live) the steps bring things in */
.demo[data-live] .dm-placeholder {
  display: block;
}
.demo[data-live] .dm-typed:not(:empty) ~ .dm-placeholder {
  display: none;
}
.demo[data-live].s-focus .dm-caret,
.demo[data-live].s-type .dm-caret {
  display: inline-block;
  animation: dm-blink 1s steps(1) infinite;
}
@keyframes dm-blink {
  50% {
    opacity: 0;
  }
}
.demo[data-live] .dm-send {
  opacity: 0.35;
  transition:
    opacity 0.25s ease,
    transform 0.2s ease;
}
.demo[data-live].s-type .dm-send {
  opacity: 1;
}
.demo[data-live].s-sent .dm-send {
  transform: scale(0.88);
}
.demo[data-live] .dm-panel {
  transform: translateX(105%);
  transition: transform 0.7s var(--ease);
}
.demo[data-live].s-panel .dm-panel {
  transform: none;
}
.demo[data-live].s-wait:not(.s-answer) .dm-wait {
  display: flex;
}
.demo[data-live] .dm-answer,
.demo[data-live] .dm-src-label,
.demo[data-live] .dm-src {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.5s ease,
    transform 0.5s var(--ease);
}
.demo[data-live].s-answer .dm-answer,
.demo[data-live].s-src .dm-src-label,
.demo[data-live].s-src .dm-src {
  opacity: 1;
  transform: none;
}
.demo[data-live].s-src .dm-src:nth-of-type(1) {
  transition-delay: 0.15s;
}
.demo[data-live].s-src .dm-src:nth-of-type(2) {
  transition-delay: 0.35s;
}
/* the mail: notes first, then the menu, then the written mail */
.demo[data-live] .dm-notes {
  display: inline;
}
.demo[data-live] .dm-draft,
.demo[data-live] .dm-use {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.demo[data-live].s-done .dm-draft,
.demo[data-live].s-done .dm-use {
  opacity: 1;
}
.demo[data-live].s-done .dm-notes,
.demo[data-live].s-writing .dm-notes {
  display: none;
}
.demo[data-live].s-menu .dm-menu {
  display: block;
  animation: dm-rise 0.3s var(--ease);
}
@keyframes dm-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.demo[data-live].s-pick .dm-pick {
  background: rgb(61 139 255 / 0.28);
}
.demo[data-live].s-writing:not(.s-done) .dm-writing {
  display: flex;
}
.demo[data-live].s-menu .dm-edit {
  background: rgb(255 255 255 / 0.18);
}
.demo[data-live].s-writing .dm-menu {
  display: none;
}
/* Apple's round replay button, at the end */
.demo__replay {
  display: none;
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.demo__replay:hover {
  background: rgb(255 255 255 / 0.3);
}
.demo[data-live].s-end .demo__replay {
  display: grid;
}
@media (prefers-reduced-motion: reduce) {
  .dm-spin {
    animation: none;
  }
}

/* "Home and moving": the move as a timeline on a white sheet (not the app) */
.sheet {
  padding: clamp(20px, 2.6vw, 30px) clamp(20px, 2.8vw, 32px) 0;
  border-radius: var(--r-win) var(--r-win) 0 0;
  background: #fff;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.06),
    0 -10px 40px -14px rgb(0 0 0 / 0.22);
}
.sheet ol {
  display: grid;
}
.sheet__step {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding-bottom: clamp(14px, 1.7vw, 20px);
}
.sheet__step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 30px;
  bottom: 2px;
  left: 13px;
  width: 2px;
  background: #dcdce0;
}
.sheet__step i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.sheet__step--open i {
  border: 2.5px solid #c2502e;
  background: #fff;
}
.sheet__text b {
  display: block;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.sheet__text small {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: clamp(0.8125rem, 0.95vw, 0.9rem);
  line-height: 1.35;
}
.sheet__step time {
  padding-top: 3px;
  color: var(--ink-soft);
  font: 400 12.5px/1.3 var(--mono);
  white-space: nowrap;
}
.sheet__step--open .sheet__text b,
.sheet__step--open time {
  color: #c2502e;
}
.sheet__step--open .sheet__text small {
  color: #8a4128;
}
/* on a phone the timeline is taller than the card's usual shape, and its last step is the point: the card grows to fit */
@media (max-width: 700px) {
  .kcard--plain {
    aspect-ratio: auto;
    min-height: 0;
  }
  /* on a phone each card is as tall as what it holds (stretching them to match left empty bands above the pictures) */
  .kcar__track {
    align-items: flex-start;
  }
  .kcard {
    aspect-ratio: auto;
    min-height: 0;
  }
  /* shorter on a phone: only the waiting step keeps its second line */
  .sheet__step {
    padding-bottom: 13px;
  }
  .sheet__step--done .sheet__text small {
    display: none;
  }
}

/* "Things you bought": a paper receipt with a torn top edge */
.rc {
  padding: 22px 0 0;
}
.rc__paper {
  position: relative;
  width: min(100%, 330px);
  margin: 0 auto;
  padding: 24px 24px 0;
  background: #fff;
  color: var(--ink);
  font: 400 12px/1.4 var(--mono);
  box-shadow: 0 -8px 40px -12px rgb(0 0 0 / 0.28);
}
.rc__paper::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 0;
  left: 0;
  height: 8px;
  background: conic-gradient(from -45deg at bottom, #0000, #fff 1deg 89deg, #0000 90deg) 50% / 16px 100%;
}
.rc__title {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}
.rc__sub {
  margin: 2px 0 14px;
  color: var(--ink-soft);
  text-align: center;
}
.rc ul {
  border-top: 1.5px dashed #b9b9c0;
}
.rc li {
  padding: 11px 0;
  border-bottom: 1.5px dashed #d2d2d8;
}
.rc__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.rc__row b {
  font-weight: 600;
}
.rc__row span {
  flex: none;
  white-space: nowrap;
}
.rc li small {
  display: block;
  color: var(--ink-soft);
  font-size: 11.5px;
}
.rc li em {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 7px;
  border: 1.5px solid #1d8a4f;
  border-radius: 4px;
  color: #1d8a4f;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.02em;
  transform: rotate(-1.5deg);
}
.rc__total {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 0;
  font-weight: 600;
}
.rc__bars {
  display: block;
  width: 72%;
  height: 40px;
  margin: 16px auto 0;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, #fff 2px 5px, var(--ink) 5px 6px, #fff 6px 9px, var(--ink) 9px 12px, #fff 12px 14px);
}

/* "Memberships and renewals": membership cards stacked as in Wallet, the one that renews in front */
.wl {
  padding-top: 20px;
}
.wl__stack {
  position: relative;
  height: 340px;
}
.wl__card {
  position: absolute;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  height: 230px;
  padding: 15px 20px;
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.16),
    0 -8px 22px -6px rgb(0 0 0 / 0.5);
  color: #fff;
  font-size: 14px;
}
.wl__card b {
  font-size: 15px;
  font-weight: 600;
}
.wl__card > span,
.wl__head > span {
  color: rgb(255 255 255 / 0.6);
  font-size: 12.5px;
}
.wl__card--1 {
  top: 0;
  background: linear-gradient(180deg, #4a4b55, #3b3c45);
}
.wl__card--2 {
  top: 52px;
  background: linear-gradient(180deg, #41424b, #34353d);
}
.wl__card--3 {
  top: 104px;
  background: linear-gradient(180deg, #383941, #2d2e35);
}
.wl__card--front {
  top: 160px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  height: 260px;
  padding: 18px 22px;
  background: linear-gradient(165deg, #8f2e68 0%, #5d1b4d 100%);
}
.wl__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.wl__renews {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 2px;
  font-size: clamp(1.4rem, 2.1vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.wl__renews i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffb347;
  box-shadow: 0 0 0 5px rgb(255 179 71 / 0.25);
}
.wl__note {
  margin: 0;
  color: rgb(255 255 255 / 0.72);
  font-size: 13.5px;
}

/* "Clients and small business": threads sorted into one lane per project (centred in what the sentence leaves) */
.kcard--g-strands .kcard__art {
  display: flex;
  flex: 1;
  align-items: center;
  padding-bottom: 0;
}
.kcard--g-strands .kcard__art .st {
  width: 100%;
}
@media (max-width: 700px) {
  .kcard--g-strands .kcard__art {
    padding-inline: 12px;
  }
}
.st {
  padding: 18px 0 22px;
}
.st svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.st-grey path {
  fill: none;
  stroke: #c3c4ca;
  stroke-width: 3;
  stroke-linecap: round;
}
.st-colour path {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
}
.st-colour rect {
  filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.1));
}
.st-name {
  fill: var(--ink);
  font: 600 14.5px var(--font);
}
.st-line {
  fill: #6b6b74;
  font: 400 12.5px var(--font);
}

.kcar__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
}
.kcar__note {
  font-size: 14px;
}
.kcar__btns {
  display: flex;
  gap: 10px;
}
.kcar__btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgb(23 23 28 / 0.09);
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
}
.kcar__btn:hover:not(:disabled) {
  background: rgb(23 23 28 / 0.16);
}
.kcar__btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.kcar__btn .i {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 7px 0;
}
.ticks .i {
  margin-top: 2px;
  color: var(--lagoon);
}
.band--ink .ticks .i,
.band--ocean .ticks .i {
  color: var(--mint);
}


/* ---------- sculptural artwork ---------- */

.artband {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.artband__art {
  display: block;
  width: 100%;
  height: auto;
}
.artband__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 540px;
}
.artband .soft {
  color: var(--on-ocean);
}

/* ---------- closing band ---------- */

.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ocean-deep);
}
.closing__grid {
  position: relative;
}
.closing__grid > div {
  max-width: 720px;
}
.closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.closing__facts {
  margin-top: 20px;
  color: var(--on-ocean);
}
.closing__art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--ocean-deep) 0%, rgb(18 52 65 / 0.96) 34%, rgb(18 52 65 / 0.2) 100%);
}

/* ---------- footer ---------- */

.site-footer {
  background: #0b0b0f;
  color: #fff;
  padding: clamp(56px, 7vw, 96px) 0 40px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}
.site-footer__brand p {
  margin-top: 16px;
  color: #b4b4bd;
  max-width: 24ch;
}
.site-footer .footer-title {
  font-size: 14px;
  font-weight: 400;
  color: #9b9ba6;
  margin: 0 0 16px;
}
.site-footer li + li {
  margin-top: 10px;
}
.site-footer a {
  text-decoration: none;
}
.site-footer li a:hover {
  text-decoration: underline;
}
.site-footer__base {
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-top: clamp(56px, 8vw, 112px);
  color: #9b9ba6;
  font-size: 14px;
}

/* ---------- inner pages ---------- */

.page-hero {
  padding-top: clamp(56px, 8vw, 120px);
  padding-bottom: clamp(40px, 5vw, 72px);
}
.page-hero .display {
  font-size: clamp(2.75rem, 7.6vw, 5.25rem);
  max-width: 14ch;
}
.page-hero .lead {
  margin-top: 28px;
}
.page-hero--center {
  text-align: center;
}
.page-hero--center .display {
  margin: 0 auto;
}
.page-hero--center .lead {
  margin-left: auto;
  margin-right: auto;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.feature--flip {
  grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.4fr);
}
.feature--flip .feature__text {
  order: 2;
}
.feature__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.feature__text .h2 {
  font-size: clamp(2rem, 3.6vw, 2.875rem);
}
.feature__media {
  background: var(--ocean);
  border-radius: var(--r-stage);
  padding: clamp(16px, 3vw, 40px) 0 0 clamp(16px, 3vw, 40px);
  overflow: hidden;
  aspect-ratio: 7.6 / 5.4;
  display: flex;
  align-items: flex-end;
}
/* the window is wider than its stage, so the stage shows the top-left of the app at a size you can read */
.feature__media .win {
  width: 136%;
  max-width: none;
  flex: none;
  align-self: flex-start;
  border-radius: var(--r-win) 0 0 0;
}
.feature__media--stone {
  background: var(--stone-deep);
}
.feature__media--ink {
  background: var(--ink);
}
.feature__media--ink .win {
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.16),
    0 24px 60px rgb(0 0 0 / 0.5);
}
.feature + .feature {
  margin-top: clamp(72px, 9vw, 136px);
}
.band--stone .feature__media--stone {
  background: var(--paper);
}

.facts {
  border-top: 1px solid var(--ink);
}
.facts div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--oat);
}
.facts dt {
  color: var(--ink-soft);
}
.facts dd {
  min-width: 0;
}

.steps {
  counter-reset: step;
  border-top: 1px solid var(--ink);
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--oat);
}
.steps li::before {
  content: counter(step);
  font-family: var(--mono);
  font-size: 15px;
  padding-top: 5px;
  color: var(--ink-soft);
}
.steps h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  font-weight: 400;
  line-height: 1.2;
}
.steps p {
  margin-top: 8px;
  max-width: 58ch;
}
.steps ol {
  margin-top: 12px;
}

.two {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 7vw, 120px);
  align-items: start;
}
.sticky {
  position: sticky;
  top: calc(var(--header) + 32px);
}

.callout {
  background: var(--stone);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
}
.callout h3 {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.band--stone .callout {
  background: var(--paper);
}
.plain-list li {
  padding: 14px 0;
  border-top: 1px solid var(--oat);
}
.plain-list li:last-child {
  border-bottom: 1px solid var(--oat);
}
.plain-list b {
  font-weight: 500;
}
.todo {
  background: #fff4c2;
  box-shadow: inset 0 -2px 0 #e0b800;
  padding: 0 4px;
  border-radius: 3px;
  color: var(--ink);
}

/* ---------- motion: one entrance on load, nothing else ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.95s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 90ms + 60ms);
  }
  .rise-stage {
    animation: rise-stage 1.15s var(--ease) both;
    animation-delay: 420ms;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(22px);
    }
  }
  @keyframes rise-stage {
    from {
      opacity: 0;
      transform: translateY(72px);
    }
  }
}

/* ---------- smaller windows ---------- */

@media (max-width: 1060px) {
  .bcard {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
    height: auto;
    min-height: 0;
    margin-bottom: 20px;
    padding: 32px 26px 0;
    transform: none !important;
  }
  .bcard__text {
    gap: 14px;
  }
  .bcard__text p:not(.kicker) {
    font-size: 15.5px;
    line-height: 1.5;
  }
  .bcard__text .pill {
    margin-top: 2px;
  }
  /* the panel stays big and is cut by the card, so its words can still be read */
  .bcard__ui {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    justify-self: stretch;
    margin: 4px -26px 0 0;
    padding: 0;
    overflow: hidden;
  }
  .bcard__ui > .crop {
    flex: none;
  }
  .bcard__ui > .crop:not(.crop--list):not(.crop--reader) {
    width: max(480px, 100%);
    border-radius: var(--r-win) 0 0 0;
  }
  /* the mail card: one panel, the mail list with its project labels, at a size that reads and rising from the bottom edge;
     the open conversation, which covered the list's words on a narrow screen, stays on wider ones */
  .bcard__ui--duo {
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    margin-right: 0;
  }
  .bcard__ui--duo .crop--list {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 380px;
    aspect-ratio: auto;
  }
  .bcard__ui--duo .crop--reader {
    display: none;
  }
  /* the frosted pane stands behind the panels, not behind the words */
  .pane {
    top: auto;
    bottom: -10%;
    right: 8%;
    width: 52%;
    height: 48%;
  }
  /* the label stands on its own line above the panel, never on top of it */
  .fchip {
    position: static;
    order: -1;
    margin: 0 0 14px;
  }
  .bcard__ui > .fchip:nth-of-type(2) {
    display: none;
  }
  /* on a phone the words sit above the panel, so the veil runs down instead of across */
  .bcard--photo.bcard--dark .bcard__art::after {
    background: linear-gradient(180deg, rgb(8 10 12 / calc(var(--veil, 0.4) + 0.2)) 0%, rgb(8 10 12 / var(--veil, 0.4)) 55%, transparent 100%);
  }
  .bcard--photo.bcard--light .bcard__art::after {
    background: linear-gradient(180deg, rgb(247 244 238 / calc(var(--veil, 0.5) + 0.25)) 0%, rgb(247 244 238 / var(--veil, 0.5)) 55%, transparent 100%);
  }
  .two,
  .feature,
  .feature--flip {
    grid-template-columns: 1fr;
  }
  .feature--flip .feature__text {
    order: 0;
  }
  .sticky {
    position: static;
  }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .site-header__action {
    display: none;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header);
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 32px;
    background: var(--paper);
    border-bottom: 1px solid var(--hair);
    height: calc(100vh - var(--header));
    overflow-y: auto;
  }
  .nav__cta {
    display: block;
    padding-top: 28px;
  }
  .nav__cta .pill {
    width: 100%;
    height: 56px;
    font-size: 18px;
  }
  .nav a:not(.pill) {
    font-size: 28px;
    letter-spacing: -0.02em;
    font-weight: 300;
    padding: 16px 0;
    border-bottom: 1px solid var(--hair);
  }
  .site-header.is-open .nav {
    display: flex;
  }
  .site-header.is-open .nav-toggle__open {
    display: none;
  }
  .site-header.is-open .nav-toggle__close {
    display: inline;
  }
  .site-header {
    position: sticky;
  }
  html:not(.js) .nav {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
  }
  .works dl {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .works dd + dt {
    margin-top: 20px;
  }
  .closing::before {
    background: rgb(18 52 65 / 0.86);
  }
  .facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 520px) {
  .hero__actions .pill {
    width: 100%;
  }
  .announce {
    font-size: 13px;
  }
  .sortstage {
    --row: 88px;
    --head: 76px;
    --gap: 10px;
    padding: 16px 8px 8px;
    border-radius: 24px;
  }
  .sortstage__head {
    padding: 0 12px 14px;
  }
  .sg__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      'dot name count'
      '. tag tag';
    align-content: center;
    column-gap: 10px;
    padding: 0 12px;
  }
  .sg__head i {
    grid-area: dot;
  }
  .sg__head h3 {
    grid-area: name;
  }
  .sg__head em {
    grid-area: count;
  }
  .sg__tag {
    grid-area: tag;
    justify-self: start;
  }
  .sg li {
    padding: 0 12px;
  }
  .sg li::before {
    right: 12px;
    left: 66px;
  }
  .mail__what {
    -webkit-line-clamp: 2;
  }
  .seg__btn {
    padding: 13px 16px;
    font-size: 14px;
  }
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .announce,
  .site-header,
  .site-footer {
    display: none;
  }
}


/* ---------- pictures: a few, used as texture ---------- */

/* A picture sits behind its parent and never carries words of its own, except in the two full-width moments below.
   --pos says which part of the picture to keep when the box is narrower than the picture. */
.photo-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

/* a rounded image tile, as cohere.com sets pictures between its sections */
.tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  border-radius: var(--r-stage);
  background: var(--ocean-deep);
  aspect-ratio: 4 / 3;
}
.tile .photo-bg {
  z-index: 0;
}
.tile--wide {
  aspect-ratio: 16 / 5;
}

/* "A mailbox is sorted by when something arrived": one full-width picture with the words on its pale part */
.foldsband {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 44vw, 620px);
  background: var(--ocean-deep);
  color: #fff;
}
.foldsband .photo-bg {
  object-position: 50% 100%;
}
.foldsband::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(10 30 38 / 0.7) 0%, rgb(10 30 38 / 0.35) 40%, rgb(10 30 38 / 0) 70%);
}
.foldsband .artband__wrap {
  width: 100%;
  padding-top: var(--band);
  padding-bottom: var(--band);
}
.foldsband .artband__text {
  max-width: 520px;
}
.foldsband .soft {
  color: var(--on-ocean);
}

/* "The same mail, sorted by what it is about": plain colour, no picture */
.band--wash {
  background: var(--haze);
}

.feature__media {
  position: relative;
  background: var(--stage, var(--ocean));
}
.feature__media .win {
  position: relative;
}

/* a short statement on a flat ocean band (Product) */
.photoband {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: clamp(280px, 30vw, 420px);
  padding: clamp(64px, 9vw, 140px) var(--gutter);
  background: var(--ocean-deep);
  color: #fff;
}
.photoband__text .h2 {
  max-width: 18ch;
  margin-inline: auto;
}
.photoband__text .lead {
  margin: 20px auto 0;
  color: var(--on-ocean);
}

@media (max-width: 860px) {
  .tile--wide {
    aspect-ratio: 16 / 9;
  }
  .foldsband {
    min-height: 0;
  }
  .foldsband .photo-bg {
    object-position: 50% 8%;
  }
  .foldsband::before {
    background: rgb(10 30 38 / 0.55);
  }
}


@media (prefers-reduced-motion: reduce) {
  .seg__thumb,
  .sortstage__state > span,
  .av {
    transition: none;
  }
}


/* ---------- pricing and the legal pages ---------- */

/* Pricing: the two ways of paying for the AI, side by side; ruled rows inside, no icons in boxes */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--stone);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
}
.plan--ocean {
  background: var(--ocean);
  color: #fff;
}
.plan--ocean :focus-visible {
  outline-color: var(--mint);
}
.plan__name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.plan__price {
  margin-top: 12px;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}
.plan__price span {
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}
/* a placeholder price stays a mark, not a headline */
.plan__price .todo {
  font-size: 0.5em;
  letter-spacing: 0;
}
.plan__sub {
  color: var(--ink-soft);
}
.plan--ocean .plan__sub {
  color: var(--on-ocean);
}
.plan .ticks {
  margin-top: 12px;
}
.plan .ticks li {
  padding: 12px 0;
  border-top: 1px solid var(--hair);
}
.plan--ocean .ticks li {
  border-top-color: rgb(255 255 255 / 0.22);
}
.plan--ocean .ticks .i {
  color: var(--mint);
}
.plans__after {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: clamp(40px, 5vw, 64px);
  text-align: center;
}

/* Legal: every legal page as one ruled list */
.doc-list {
  border-top: 1px solid var(--ink);
}
.doc-list a {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr) auto;
  gap: 6px 32px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--oat);
  text-decoration: none;
}
.doc-list__name {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.doc-list__what {
  color: var(--ink-soft);
}
.doc-list .i {
  align-self: center;
  transition: transform 0.25s var(--ease);
}
.doc-list a:hover .doc-list__name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.doc-list a:hover .i {
  transform: translateX(4px);
}

/* A legal text (src/legal.mjs): the contents beside it, sticky; the text at a reading measure */
.doc-version {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 15px;
}
.doc-version strong {
  font-weight: 500;
}
/* shown only while the text still has marks: like .todo, a warning for before launch, not a design colour */
.draft-note {
  display: inline-block;
  max-width: 62ch;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff4c2;
  box-shadow: inset 0 -2px 0 #e0b800;
  font-size: 15px;
}
.todo--note {
  font-style: italic;
}
.doc {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 46rem);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding-bottom: var(--band);
}
.doc__toc {
  position: sticky;
  top: calc(var(--header) + 32px);
  max-height: calc(100vh - var(--header) - 64px);
  overflow-y: auto;
  font-size: 14px;
}
.doc__toc-title {
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.doc__toc ol,
.doc__toc-small ol {
  border-top: 1px solid var(--ink);
}
.doc__toc a,
.doc__toc-small a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--oat);
  color: var(--ink-soft);
  text-decoration: none;
}
.doc__toc a:hover,
.doc__toc-small a:hover {
  color: var(--ink);
}
.doc__toc-small {
  display: none;
}
.doc__text {
  min-width: 0;
}
.doc__text > * + * {
  margin-top: 1em;
}
.doc__text > h2 {
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.doc__text > h2:first-child {
  margin-top: 0;
}
.doc__text > h3 {
  margin-top: 40px;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.doc__text > h2 + *,
.doc__text > h3 + * {
  margin-top: 16px;
}
.doc__text p,
.doc__text li {
  max-width: 68ch;
  text-wrap: pretty;
}
.doc__text strong {
  font-weight: 500;
}
.doc__text ul > li {
  position: relative;
  padding-left: 1.25em;
}
.doc__text ul > li::before {
  content: '';
  position: absolute;
  left: 0.2em;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-soft);
}
.doc__text ol {
  padding-left: 1.4em;
  list-style: decimal;
}
.doc__text li + li {
  margin-top: 0.5em;
}
.doc__text code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--stone);
  font-family: var(--mono);
  font-size: 0.875em;
  overflow-wrap: anywhere;
}
.doc-table {
  overflow-x: auto;
}
.doc-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.doc-table th,
.doc-table td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--oat);
  text-align: left;
  vertical-align: top;
}
.doc-table thead th {
  border-bottom-color: var(--ink);
  font-weight: 500;
}
.doc-table--facts tr:first-child > * {
  border-top: 1px solid var(--ink);
}
.doc-table--facts th {
  width: 28%;
  font-weight: 500;
}

@media (max-width: 1060px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .doc__toc {
    display: none;
  }
  .doc__toc-small {
    display: block;
  }
  .doc__toc-small summary {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--oat);
    cursor: pointer;
    list-style: none;
  }
  .doc__toc-small summary::-webkit-details-marker {
    display: none;
  }
  .doc__toc-small summary::after {
    content: '+';
  }
  .doc__toc-small[open] summary::after {
    content: '\2212';
  }
  .doc__toc-small ol {
    border-top: 0;
  }
}

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

@media (max-width: 700px) {
  .doc-list a {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .doc-list__what {
    grid-row: 2;
  }
  .doc-list .i {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  /* a table of several columns becomes one block per row, each value under its column's name */
  .doc-table:not(.doc-table--facts) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .doc-table:not(.doc-table--facts) tr {
    display: block;
    padding: 8px 0;
    border-top: 1px solid var(--ink);
  }
  .doc-table:not(.doc-table--facts) td {
    display: block;
    padding: 6px 0;
    border: 0;
  }
  .doc-table:not(.doc-table--facts) td::before {
    content: attr(data-label);
    display: block;
    color: var(--ink-soft);
    font-size: 13px;
  }
  .doc-table--facts tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--oat);
  }
  .doc-table--facts tr:first-child {
    border-top: 1px solid var(--ink);
  }
  .doc-table--facts th,
  .doc-table--facts td,
  .doc-table--facts tr:first-child > * {
    display: block;
    width: auto;
    padding: 2px 0;
    border: 0;
  }
}

@media print {
  .doc__toc,
  .doc__toc-small,
  .draft-note {
    display: none;
  }
  .doc {
    display: block;
  }
}

/* Five links and the pill share the header: between the phone menu and a wide window the gaps
   narrow, so no link breaks onto two lines. */
.nav a {
  white-space: nowrap;
}
@media (min-width: 861px) and (max-width: 1060px) {
  .site-header__bar {
    gap: 28px;
  }
  .nav {
    gap: 20px;
  }
}
