/*
 * The product landing's stylesheet, direction "Comptoir" (docs/design-
 * language.md, "Landing v2 · Comptoir"): a cream page, ink text, deep teal
 * and terracotta bands, Bricolage Grotesque titles, Inter text, real café
 * photos. Plain CSS, no build step, no inline style anywhere (the CSP
 * forbids it): every page is styled from here.
 *
 * - Tokens are `--pp-*` custom properties: the palette, then roles
 *   (`--pp-bg`, `--pp-text`...) that the rest uses. Dark mode redefines the
 *   roles under `prefers-color-scheme: dark`; the colour bands keep their
 *   colour in both themes.
 * - Classes are `.block`, `.block__element`, `.block--variant`; state comes
 *   from HTML (`aria-current`, `open`).
 * - Mobile first: the layout widens at 30rem, 48rem and 56rem.
 * - Corners: 8px for cards, 6px for buttons, 4px for chips. No pills.
 * - Buttons are physical keys: a 3px ledge under them, which they press
 *   onto (120ms). Under `prefers-reduced-motion`, only the colour changes.
 * - Every pair of colours used for text passes WCAG AA in both themes; the
 *   ratios are in docs/design-language.md.
 */

/* ------------------------------------------------------------------ Fonts */
/* Bricolage Grotesque and Inter (OFL: ../fonts/*-LICENSE.txt), variable
   weight, Latin and Latin Extended subsets, self-hosted. The asset
   catalogue rewrites these URLs to their hashed names. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/_a/fonts/bricolage-grotesque-latin-wght-normal.a97804dc9fbe5fc9.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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/_a/fonts/bricolage-grotesque-latin-ext-wght-normal.e808f16b56f84dc7.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/_a/fonts/inter-latin-wght-normal.3100e775e8616cd2.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/_a/fonts/inter-latin-ext-wght-normal.34b9c504cab7a73e.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;
}

/* ----------------------------------------------------------------- Tokens */

:root {
  color-scheme: light dark;

  /* The palette. */
  --pp-cream: #fbf5ec;
  --pp-cream-2: #f4eadb;
  --pp-paper: #ffffff;
  --pp-ink: #1d1a16;
  --pp-ink-2: #5b544b;
  --pp-line: #e6dccd;
  --pp-teal: #0a7a82;
  --pp-teal-ink: #086870;
  --pp-teal-deep: #0b4a4f;
  --pp-teal-soft: #d8eeee;
  --pp-terra: #c24e33;
  --pp-terra-bright: #d4553a;
  --pp-terra-hover: #b54830;
  --pp-terra-deep: #a83e27;
  --pp-apricot: #fbdcc4;
  --pp-saffron: #f8b829;
  --pp-green: #1f9d55;
  --pp-espresso: #17130f;

  /* Roles: what the components use. */
  --pp-bg: var(--pp-cream);
  --pp-bg-alt: var(--pp-cream-2);
  --pp-header-bg: rgb(251 245 236 / 0.92);
  --pp-surface: var(--pp-paper);
  --pp-surface-2: var(--pp-cream);
  --pp-text: var(--pp-ink);
  --pp-text-2: var(--pp-ink-2);
  --pp-border: var(--pp-line);
  --pp-accent: var(--pp-teal-ink);
  --pp-display-accent: var(--pp-terra-bright);
  --pp-closed: var(--pp-terra-deep);
  --pp-warm: var(--pp-apricot);
  --pp-cool: var(--pp-teal-soft);
  --pp-cool-text: var(--pp-teal-deep);
  --pp-link-blue: #1a4fb4;
  --pp-focus-inner: var(--pp-ink);
  --pp-shadow: 0 1.5rem 3rem -1.25rem rgb(40 20 0 / 0.35);
  /* The edge of a screenshot's frame. */
  --pp-frame-edge: var(--pp-line);
  /* The plain tile behind an example's picture. */
  --pp-tile: var(--pp-cream-2);

  /* The ink key: the header's button, the other actions that stand alone. */
  --pp-key-bg: var(--pp-ink);
  --pp-key-fg: #ffffff;
  --pp-key-hover: #322d27;
  --pp-key-press: #000000;
  --pp-key-ledge: #000000;

  /* On the colour bands (same in both themes). */
  --pp-on-band: #ffffff;
  --pp-on-teal-2: #cfe0e0;

  /* Shape and space. */
  --pp-radius-card: 8px;
  --pp-radius-button: 6px;
  --pp-radius-chip: 4px;
  --pp-wrap: 80rem;
  --pp-gutter: clamp(1.25rem, 3.5vw, 2rem);
  /* Section pauses: routine ones, and longer ones where the colour changes
     (the bands, the closing call). */
  --pp-section: clamp(3.75rem, 6vw + 1.75rem, 7.25rem);
  --pp-section-lg: clamp(4.5rem, 7vw + 2rem, 8.5rem);

  /* Type. */
  --pp-font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --pp-font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pp-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pp-bg: var(--pp-espresso);
    --pp-bg-alt: #1f1a15;
    --pp-header-bg: rgb(23 19 15 / 0.92);
    --pp-surface: #2e2620;
    --pp-surface-2: #1f1a15;
    --pp-text: #f5ede2;
    --pp-text-2: #c4b8a8;
    --pp-border: #54483c;
    --pp-accent: #6cc9cd;
    --pp-display-accent: #ef7d61;
    --pp-closed: #ef7d61;
    --pp-warm: #3d2a1f;
    --pp-cool: #15302f;
    --pp-cool-text: #9adde0;
    --pp-link-blue: #9cbcf5;
    --pp-focus-inner: var(--pp-espresso);
    --pp-shadow: 0 1.5rem 3rem -1.25rem rgb(0 0 0 / 0.7);
    --pp-frame-edge: #6b5e50;
    --pp-tile: #2e2620;
    --pp-key-bg: #f5ede2;
    --pp-key-fg: var(--pp-espresso);
    --pp-key-hover: #fffaf2;
    --pp-key-press: #e2d6c6;
    --pp-key-ledge: #a3937f;
  }
}

/* ------------------------------------------------------------------ Reset */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Anchors land below the sticky header. */
  scroll-padding-top: 5.5rem;
}

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

  /* Page transitions: going from one landing page to another cross-fades
     the page in the browsers that do it natively (CSS view transitions);
     the header swaps at once. The others, and reduced motion, cut. */
  @view-transition {
    navigation: auto;
  }
}

::view-transition-group(*),
::view-transition-old(*),
::view-transition-new(*) {
  animation-duration: 180ms;
  animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

/* The header (named in "Header") stays still: no fade, no move. */
::view-transition-group(pp-header),
::view-transition-new(pp-header) {
  animation: none;
}

::view-transition-old(pp-header) {
  display: none;
}

body {
  min-height: 100vh;
  background: var(--pp-bg);
  color: var(--pp-text);
  font: 400 1.0625rem/1.55 var(--pp-font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (width >= 56rem) {
  body {
    font-size: 1.125rem;
  }
}

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

img {
  height: auto;
}

ul,
ol {
  padding: 0;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--pp-font-display);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

dd {
  margin: 0;
}

main:focus {
  outline: none;
}

/* Focus: a 3px saffron ring with a thin inner ring, so it shows on cream,
   espresso and the colour bands alike. */
:focus-visible {
  outline: 3px solid var(--pp-saffron);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--pp-focus-inner);
  border-radius: 2px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--pp-radius-button);
  background: var(--pp-key-bg);
  color: var(--pp-key-fg);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ----------------------------------------------------------------- Layout */

.container {
  width: 100%;
  max-width: calc(var(--pp-wrap) + 2 * var(--pp-gutter));
  margin-inline: auto;
  padding-inline: var(--pp-gutter);
}

.section {
  padding-block: var(--pp-section);
}

.section--alt {
  background: var(--pp-bg);
}

/* Two plain sections in a row: a hairline, not a second colour. */
.section + .section {
  border-top: 1px solid var(--pp-border);
}

.section--flush {
  padding-top: 0;
}

.band {
  padding-block: var(--pp-section-lg);
  color: var(--pp-on-band);
}

.band--teal {
  background: var(--pp-teal-deep);
}

.section-head {
  margin-bottom: clamp(2.5rem, 4vw + 1rem, 4.5rem);
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
}

/* A wide measure: the head's title fills its row on two lines instead of
   three narrow ones over an empty half. */
.section-head .title-lg {
  max-width: 24ch;
}

.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

/* Grid items may shrink below their content (the code windows scroll). */
.split > *,
.duo > *,
.faq-layout > * {
  min-width: 0;
}

.split__text {
  margin-top: 1.25rem;
  max-width: 40ch;
  color: var(--pp-text-2);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
}

@media (width >= 56rem) {
  .split {
    grid-template-columns: 5fr 7fr;
    gap: clamp(3rem, 6vw, 6rem);
  }

  .split--reverse .split__copy {
    order: 2;
  }
}

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

/* ------------------------------------------------------------------- Type */

.kicker {
  display: block;
  margin-bottom: 1rem;
  color: var(--pp-text-2);
  font: 600 0.75rem/1.3 var(--pp-font-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.band--teal .kicker {
  color: var(--pp-on-teal-2);
}

/* Section titles: the bands (steps, AI) keep the full size; plain sections
   are about 10% lighter, so not every title has the same mass. */
.title-lg {
  max-width: 16ch;
  font-size: clamp(2.25rem, 3.2vw + 1.125rem, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.band .title-lg {
  font-size: clamp(2.5rem, 3.6vw + 1.25rem, 4.75rem);
  line-height: 1;
}

.title-md {
  max-width: 20ch;
  font-size: clamp(2rem, 2vw + 1.25rem, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.title-sm {
  font-size: clamp(1.5rem, 0.8vw + 1.25rem, 2rem);
  letter-spacing: -0.02em;
}

/* French's narrow space before "?" in a title: the tight tracking would
   close it up, so it gets its width back. */
.thin-space {
  margin-inline: 0.07em;
  letter-spacing: 0;
}

/* An address that must not break at its hyphen. */
.nowrap {
  white-space: nowrap;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  color: var(--pp-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.link-arrow .icon {
  width: 1.125em;
  height: 1.125em;
}

.link-arrow:hover {
  text-decoration-thickness: 2px;
}

/* ---------------------------------------------------------------- Buttons */
/* A physical key: a 3px darker ledge under the button; pressed, it moves
   down onto the ledge and darkens (120ms). */

.btn {
  --btn-bg: var(--pp-key-bg);
  --btn-fg: var(--pp-key-fg);
  --btn-hover: var(--pp-key-hover);
  --btn-press: var(--pp-key-press);
  --btn-ledge: var(--pp-key-ledge);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.375rem;
  margin-bottom: 3px;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: var(--pp-radius-button);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 3px 0 var(--btn-ledge);
  font: 600 1.0625rem/1.2 var(--pp-font-text);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transform: translateY(0);
  transition:
    transform 120ms ease-out,
    box-shadow 120ms ease-out,
    background-color 120ms ease-out;
}

.btn:hover {
  background: var(--btn-hover);
}

.btn:active {
  background: var(--btn-press);
  box-shadow: 0 0 0 var(--btn-ledge);
  transform: translateY(3px);
}

.btn:focus-visible {
  outline-offset: 3px;
  box-shadow:
    0 3px 0 var(--btn-ledge),
    0 0 0 3px var(--pp-focus-inner);
  border-radius: var(--pp-radius-button);
}

.btn--terra {
  --btn-bg: var(--pp-terra);
  --btn-fg: #ffffff;
  --btn-hover: var(--pp-terra-hover);
  --btn-press: var(--pp-terra-deep);
  --btn-ledge: #7f2e1c;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--pp-text);
  --btn-hover: color-mix(in srgb, var(--pp-text) 6%, transparent);
  --btn-press: color-mix(in srgb, var(--pp-text) 10%, transparent);
  --btn-ledge: var(--pp-text);
  --btn-line: var(--pp-text);
  box-shadow:
    inset 0 0 0 2px var(--btn-line),
    0 3px 0 var(--btn-ledge);
}

.btn--ghost:active {
  box-shadow:
    inset 0 0 0 2px var(--btn-line),
    0 0 0 var(--btn-ledge);
}

.btn--ghost:focus-visible {
  box-shadow:
    inset 0 0 0 2px var(--btn-line),
    0 3px 0 var(--btn-ledge),
    0 0 0 3px var(--pp-focus-inner);
}

.btn--sm {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

.btn__arrow {
  display: inline-flex;
  transition: transform 120ms ease-out;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn__arrow {
    transition: background-color 120ms ease-out;
  }

  .btn:active,
  .btn:hover .btn__arrow {
    transform: none;
  }

  .btn:active {
    box-shadow: 0 3px 0 var(--btn-ledge);
  }

  .btn--ghost:active {
    box-shadow:
      inset 0 0 0 2px var(--btn-line),
      0 3px 0 var(--btn-ledge);
  }
}

/* ------------------------------------------------------------ Small parts */

.chip {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--pp-radius-chip);
  background: var(--pp-cool);
  color: var(--pp-cool-text);
  font: 600 0.8125rem/1.3 var(--pp-font-text);
}

.ribbon {
  display: inline-block;
  padding: 0.4375rem 0.625rem;
  border-radius: var(--pp-radius-chip);
  background: var(--pp-saffron);
  color: var(--pp-ink);
  font: 700 0.75rem/1.2 var(--pp-font-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checklist {
  display: grid;
  align-content: start;
  gap: 0.625rem;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.checklist__tick {
  display: inline-flex;
  margin-top: 0.125rem;
  color: var(--pp-teal);
}

@media (prefers-color-scheme: dark) {
  .checklist__tick {
    color: var(--pp-accent);
  }
}

.checklist__tick .icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2.25;
}

.split .checklist {
  margin-top: 1.75rem;
}

/* -------------------------------------------------------------- Header */

.site-header {
  position: sticky;
  top: 0;
  view-transition-name: pp-header;
  z-index: 10;
  border-bottom: 1px solid var(--pp-border);
  background: var(--pp-header-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  color: var(--pp-text);
  text-decoration: none;
}

.brand .logo {
  width: 1.875rem;
  height: 1.875rem;
}

.brand__name {
  font: 750 1.25rem/1 var(--pp-font-display);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.site-nav,
.site-header__sign-in {
  display: none;
}

.site-nav__list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-nav a,
.site-header__sign-in {
  color: var(--pp-text);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  text-underline-offset: 0.35em;
}

.site-nav a:hover,
.site-header__sign-in:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.site-header__cta {
  display: none;
}

@media (width >= 30rem) {
  .site-header__cta {
    display: inline-flex;
  }
}

@media (width >= 56rem) {
  .site-header__inner {
    gap: 2.5rem;
    min-height: 4.75rem;
  }

  .site-nav {
    display: block;
  }

  .site-header__sign-in {
    display: inline;
  }

  .site-header__actions {
    gap: 1.25rem;
  }
}

/* The phone menu: a disclosure, no script. */
.nav-menu {
  position: relative;
}

.nav-menu__button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-button);
  background: var(--pp-surface);
  color: var(--pp-text);
  list-style: none;
  cursor: pointer;
}

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

.nav-menu__close,
.nav-menu[open] .nav-menu__open {
  display: none;
}

.nav-menu[open] .nav-menu__close {
  display: block;
}

.nav-menu__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 20;
  width: min(18rem, calc(100vw - 2 * var(--pp-gutter)));
  padding: 0.5rem;
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-card);
  background: var(--pp-surface);
  box-shadow: var(--pp-shadow);
}

.nav-menu__list,
.nav-menu__languages {
  list-style: none;
}

.nav-menu__list a,
.nav-menu__languages a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: var(--pp-radius-button);
  color: var(--pp-text);
  font-weight: 500;
  text-decoration: none;
}

.nav-menu__list a:hover,
.nav-menu__languages a:hover {
  background: var(--pp-bg-alt);
}

.nav-menu__list a[aria-current="page"] {
  font-weight: 700;
}

.nav-menu__languages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--pp-border);
}

.nav-menu__languages a {
  justify-content: center;
}

.nav-menu__languages a[aria-current="true"] {
  background: var(--pp-key-bg);
  color: var(--pp-key-fg);
}

@media (width >= 56rem) {
  .nav-menu {
    display: none;
  }
}

/* ------------------------------------------------------------------ Hero */
/* One centred column: the promise in two lines, one sentence, one key and
   a quiet link. Under it the promise as a diagram: your details, an
   arrow, your site (docs/marketing.md, "Montrer plutôt que dire"). */

.hero {
  overflow-x: clip;
  padding-top: clamp(2.25rem, 2.5vw + 1.25rem, 4rem);
}

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

.hero__title {
  font-size: clamp(2.5rem, 4.2vw + 0.75rem, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero__lead,
.hero__rest {
  display: block;
}

.hero__rest {
  color: var(--pp-display-accent);
}

.hero__lede {
  max-width: 30ch;
  margin-top: clamp(1.25rem, 1vw + 1rem, 1.75rem);
  color: var(--pp-text-2);
  font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem);
  line-height: 1.45;
}

.hero__actions {
  align-items: center;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin-top: clamp(1.75rem, 1.5vw + 1.25rem, 2.5rem);
}

.hero__more {
  color: var(--pp-text);
}

@media (width < 30rem) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* The diagram on a warm stage, full width on phones. On phones it is
   compact and reads across, so the finished site is in the first screen:
   the card with the title and the photo, the arrow, the café's phone. From
   56rem the whole card, the arrow, the café in a browser with its phone. */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 0.7fr);
  align-items: start;
  gap: 0.375rem;
  margin: 2rem calc(-1 * var(--pp-gutter)) 0;
  padding: 1.25rem max(var(--pp-gutter), calc((100% - 34rem) / 2)) 1.5rem;
  background: var(--pp-warm);
}

.flow__in,
.flow__out {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  min-width: 0;
}

/* "1 Your details", "2 Your site": the diagram's only words. */
.flow__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font: 600 0.875rem/1.2 var(--pp-font-text);
  white-space: nowrap;
}

.flow__step {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--pp-key-bg);
  color: var(--pp-key-fg);
  font-size: 0.75rem;
}

.form-card {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-card);
  background: var(--pp-surface);
  box-shadow: var(--pp-shadow);
}

.form-card__field {
  display: grid;
  justify-items: start;
  gap: 0.3125rem;
}

.form-card__field--more {
  display: none;
}

.form-card__label {
  color: var(--pp-text-2);
  font: 600 0.75rem/1.2 var(--pp-font-text);
}

.form-card__input {
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-button);
  font-size: 0.875rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The field being filled: its words are the café site's big title. */
.form-card__input--active {
  border-color: var(--pp-accent);
  box-shadow: 0 0 0 3px var(--pp-cool);
}

.form-card__photo {
  display: block;
  width: 5.25rem;
  overflow: hidden;
  border-radius: var(--pp-radius-chip);
}

.form-card__photo img {
  width: 100%;
}

/* Level with the middle of the card. */
.flow__arrow {
  align-self: center;
  margin-top: 2rem;
  color: var(--pp-display-accent);
}

.flow__curve {
  display: block;
  width: 2.75rem;
}

.flow__devices {
  position: relative;
  container-type: inline-size;
  width: 100%;
}

/* On phones the browser waits: the café's phone says it alone. */
.flow__devices .browser {
  display: none;
}

.flow__phone {
  --phone-w: 100cqi;
  width: 100%;
}

.flow .browser__bar {
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
}

.flow .browser__dots span {
  width: 0.5rem;
  height: 0.5rem;
}

.flow .browser__host {
  overflow: hidden;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (width >= 48rem) {
  .flow {
    margin-inline: 0;
    padding-block: 2rem 2.5rem;
    border-radius: var(--pp-radius-card);
  }
}

@media (width >= 56rem) {
  /* The two tags on one line; the arrow between the card and the site. */
  .flow {
    grid-template-columns: minmax(0, 20rem) auto minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: clamp(2rem, 1.5vw + 1.25rem, 2.75rem);
    padding: 2.25rem clamp(2.5rem, 4vw, 4rem) 4rem;
  }

  .flow__in,
  .flow__out {
    gap: 0.875rem;
  }

  .flow__tag {
    gap: 0.5rem;
    font-size: 0.9375rem;
  }

  .flow__step {
    width: 1.625rem;
    height: 1.625rem;
    font-size: 0.8125rem;
  }

  .form-card {
    gap: 0.875rem;
    padding: 1.25rem;
  }

  .form-card__field {
    gap: 0.375rem;
  }

  .form-card__field--more {
    display: grid;
  }

  .form-card__label {
    font-size: 0.8125rem;
  }

  .form-card__input {
    padding: 0.5625rem 0.75rem;
    font-size: 0.9375rem;
  }

  .flow__arrow {
    margin-top: 0;
  }

  .flow__curve {
    width: clamp(4.5rem, 7vw, 7rem);
  }

  .flow__devices {
    padding-right: 14%;
  }

  .flow__devices .browser {
    display: block;
  }

  /* The same café on a phone, in front of the browser's right edge. */
  .flow__phone {
    --phone-w: 26cqi;
    position: absolute;
    right: 0;
    bottom: -2rem;
    width: var(--phone-w);
  }
}

/* A phone around a screenshot, sized by `--phone-w` (its width, in the
   units of its container). */
.phone {
  padding: calc(var(--phone-w) * 0.042);
  border-radius: calc(var(--phone-w) * 0.15);
  background: #111111;
  box-shadow: var(--pp-shadow);
}

.phone img {
  width: 100%;
  border-radius: calc(var(--phone-w) * 0.11);
}

@media (prefers-color-scheme: dark) {
  /* A black phone on espresso: a lighter edge keeps its shape. */
  .phone {
    box-shadow:
      0 0 0 1px var(--pp-frame-edge),
      var(--pp-shadow);
  }
}

/* -------------------------------------------------------- What's included */
/* On the teal band: an icon, a title and one line each. */

.perks {
  display: grid;
  gap: 2.75rem 2rem;
  list-style: none;
}

.perk {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.75rem;
}

.perk__icon {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--pp-radius-card);
  background: rgb(255 255 255 / 0.1);
  color: var(--pp-saffron);
}

.perk__icon .icon {
  width: 1.625rem;
  height: 1.625rem;
}

.perk__title {
  margin-top: 0.5rem;
  font-size: clamp(1.375rem, 0.5vw + 1.2rem, 1.625rem);
  line-height: 1.15;
}

.perk__text {
  max-width: 30ch;
  color: var(--pp-on-teal-2);
}

@media (width >= 40rem) {
  .perks {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width >= 64rem) {
  .perks {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------------------------------- Browser frame */

.browser {
  overflow: hidden;
  border: 1px solid var(--pp-frame-edge);
  border-radius: var(--pp-radius-card);
  background: var(--pp-surface);
  box-shadow: var(--pp-shadow);
}

.browser__bar,
.window__bar {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--pp-border);
}

.browser__dots {
  display: flex;
  gap: 0.375rem;
}

.browser__dots span {
  width: 0.5625rem;
  height: 0.5625rem;
  border-radius: 50%;
  background: var(--pp-border);
}

.browser__host,
.window__title {
  color: var(--pp-text-2);
  font-size: 0.8125rem;
}

.browser img {
  width: 100%;
}


/* ------------------------------------------------- Examples: the trio */

.trio {
  display: grid;
  gap: 4rem 2rem;
}

.example {
  display: grid;
  align-content: start;
}

/* The picture: a tile of the example's colour, each site in its own frame
   (the café's hours as a card, Camille's home page in a browser that runs
   off the edge, Semis on a phone cut at the bottom). */
.example__tile {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  aspect-ratio: 20 / 19;
  border-radius: var(--pp-radius-card);
  background: var(--pp-tile);
}

.example--shop .example__tile {
  background: var(--pp-warm);
}

.example--project .example__tile {
  background: var(--pp-cool);
}

.example__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 86cqi;
  overflow: hidden;
  border-radius: var(--pp-radius-card);
  box-shadow: var(--pp-shadow);
  transform: translate(-50%, -50%);
}

.example__card img {
  width: 100%;
}

/* Camille's page cut close (her name on top, the photo beside "Hello,
   I'm Camille"), in a browser running off the bottom only: the tile cuts
   it in the space under the photo. A slim bar, so the page leads. */
.example--person .browser {
  position: absolute;
  bottom: -2cqi;
  left: 5cqi;
  width: 90cqi;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.example--person .browser__bar {
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
}

.example--person .browser__dots span {
  width: 0.4375rem;
  height: 0.4375rem;
}

.example--person .browser__host {
  font-size: 0.75rem;
}

/* Semis's two app screens on their own, side by side and staggered: each
   a screen cut from inside its drawn phone (no phone around it), as wide
   as the tile allows with a little space between. */
.example__screen {
  position: absolute;
  width: 45cqi;
  overflow: hidden;
  border-radius: 4cqi;
  background: #fbfcfb;
  box-shadow: var(--pp-shadow);
}

.example__screen img {
  width: 100%;
}

.example__screen--week {
  top: 11cqi;
  left: 3.5cqi;
}

.example__screen--light {
  top: 20cqi;
  right: 3.5cqi;
}

@media (prefers-color-scheme: dark) {
  .example__screen {
    box-shadow:
      0 0 0 1px var(--pp-frame-edge),
      var(--pp-shadow);
  }
}

.example__body {
  display: grid;
  align-content: start;
}

.example__title {
  margin-top: 1.5rem;
  max-width: 18ch;
  font-size: clamp(1.75rem, 0.9vw + 1.375rem, 2.125rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.example__text {
  margin-top: 0.875rem;
  max-width: 36ch;
  color: var(--pp-text-2);
  font-size: 1.0625rem;
}

.example__link {
  justify-self: start;
  margin-top: 1.25rem;
}

@media (width >= 40rem) and (width < 64rem) {
  .example {
    grid-template-columns: 5fr 6fr;
    gap: 2.5rem;
    align-items: start;
  }

  .example__title {
    margin-top: 0;
  }
}

/* Three columns whose rows line up: the titles, the lines and the links
   start at the same height in each (subgrid). */
@media (width >= 64rem) {
  .trio {
    grid-template-columns: repeat(3, 1fr);
  }

  .example {
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .example__body {
    display: contents;
  }
}

/* -------------------------------------------- Two cards (Under the hood) */

.duo {
  display: grid;
  gap: 3.5rem;
}

.duo__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.75rem, 2vw + 1rem, 3rem);
  border-radius: var(--pp-radius-card);
  background: var(--pp-surface);
}

.duo__text {
  max-width: 40ch;
  color: var(--pp-text-2);
}

@media (width >= 56rem) {
  .duo {
    grid-template-columns: minmax(0, 8fr) minmax(0, 7fr);
    gap: 1.5rem;
  }
}

/* -------------------------------------------------------- Pricing teaser */

.teaser {
  display: grid;
  gap: 1.75rem;
  list-style: none;
}

.teaser__plan {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: clamp(1.75rem, 1.5vw + 1rem, 2.25rem);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-card);
  background: var(--pp-surface);
}

.teaser__plan--featured {
  border-color: var(--pp-teal-deep);
  background: var(--pp-teal-deep);
  color: var(--pp-on-band);
}

.teaser__name {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.teaser__price {
  font: 750 clamp(2.75rem, 2vw + 2rem, 4rem)/1 var(--pp-font-display);
  letter-spacing: -0.045em;
}

.teaser__period {
  margin-left: 0.25rem;
  color: var(--pp-text-2);
  font: 500 1rem/1 var(--pp-font-text);
  letter-spacing: 0;
}

.teaser__text {
  color: var(--pp-text-2);
}

.teaser__plan--featured .teaser__period,
.teaser__plan--featured .teaser__text {
  color: var(--pp-on-teal-2);
}

@media (width >= 48rem) {
  .teaser {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1.5rem;
  }

  /* Names, prices and texts on shared rows. */
  .teaser__plan {
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0.75rem;
  }
}

/* ------------------------------------------------------------- Questions */

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

.faq-layout__more {
  margin-top: 1.5rem;
  color: var(--pp-text-2);
}

.faq__item {
  border-bottom: 1px solid var(--pp-border);
}

.faq__item:first-child {
  border-top: 1px solid var(--pp-border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__toggle {
  position: relative;
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-right: 0.25rem;
}

.faq__toggle::before,
.faq__toggle::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: currentColor;
}

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

.faq__item[open] .faq__toggle::after {
  transform: rotate(0deg);
}

@media (prefers-reduced-motion: no-preference) {
  .faq__toggle::after {
    transition: transform 160ms ease-out;
  }
}

.faq__answer {
  max-width: 62ch;
  padding-bottom: 1.5rem;
  color: var(--pp-text-2);
}

@media (width >= 56rem) {
  .faq-layout {
    grid-template-columns: 4fr 7fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
}

/* ------------------------------------------------------- Closing call */
/* A roasted brown of its own, lighter than the footer under it, with a
   terracotta glow from below: one line and the main key, centred. White
   text on the brown 14:1. */

.cta {
  background:
    radial-gradient(60% 90% at 50% 100%, rgb(212 85 58 / 0.45), transparent 72%),
    #33231a;
  color: #ffffff;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
  padding-block: clamp(4.5rem, 6vw + 2.5rem, 8rem);
  text-align: center;
}

.cta__title {
  max-width: 14ch;
  font-size: clamp(2.75rem, 4.5vw + 1rem, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

@media (width < 30rem) {
  .cta .btn {
    width: 100%;
  }
}

/* ------------------------------------------------------------- Footer */

/* Darker than the closing call's brown; a hairline marks the edge where
   the page above is as dark (dark mode, pages without the call). */
.site-footer {
  padding-block: 4.5rem 3rem;
  border-top: 1px solid #3a3129;
  background: var(--pp-ink);
  color: #cfc6b8;
  font-size: 0.9375rem;
}

@media (prefers-color-scheme: dark) {
  .site-footer {
    background: #0e0b08;
  }
}

.site-footer .brand {
  color: #ffffff;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}

.site-footer__tagline {
  max-width: 32ch;
  margin-top: 1rem;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
}

.site-footer__heading {
  margin-bottom: 0.5rem;
  color: #ffffff;
  font: 600 0.9375rem/1.3 var(--pp-font-text);
  letter-spacing: 0;
}

.site-footer ul {
  list-style: none;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #cfc6b8;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.site-footer a[aria-current] {
  color: #ffffff;
}

.site-footer :focus-visible {
  box-shadow: 0 0 0 2px #000000;
}

.site-footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 2rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
}

/* The rule stops at the text's edges, not the container's padding. */
.site-footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: var(--pp-gutter);
  border-top: 1px solid #39332c;
}

@media (width >= 56rem) {
  .site-footer__bottom p:last-child {
    margin-left: auto;
  }

  .site-footer__grid {
    grid-template-columns: 2fr 3fr;
  }

  .site-footer__nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -------------------------------------------------- Other pages: hero */

.page-hero {
  padding-block: clamp(3.5rem, 5vw + 1.5rem, 7rem) clamp(2.5rem, 3vw + 1rem, 4rem);
}

.page-hero__title {
  max-width: 14ch;
  font-size: clamp(3rem, 5.5vw + 1rem, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.page-hero__lede {
  max-width: 40ch;
  margin-top: 1.5rem;
  color: var(--pp-text-2);
  font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem);
  line-height: 1.45;
}

.page-hero .actions {
  margin-top: 2.5rem;
}

.page-hero--error {
  padding-bottom: var(--pp-section);
}

/* ---------------------------------------------------------- Pricing page */

.plans {
  display: grid;
  gap: 1.75rem;
}

.plan {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1.25rem;
  padding: clamp(1.75rem, 1.5vw + 1.25rem, 2.5rem);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-card);
  background: var(--pp-surface);
}

.plan--featured {
  border-color: var(--pp-teal-deep);
  background: var(--pp-teal-deep);
  color: var(--pp-on-band);
}

.plan__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* The featured plan's label hangs on its top edge, like a tag. */
.plan .ribbon {
  position: absolute;
  top: 0;
  left: clamp(1.75rem, 1.5vw + 1.25rem, 2.5rem);
  transform: translateY(-50%);
}

.plan__name {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.plan__tagline,
.plan__period,
.plan__yearly {
  color: var(--pp-text-2);
}

.plan--featured .plan__tagline,
.plan--featured .plan__period,
.plan--featured .plan__yearly {
  color: var(--pp-on-teal-2);
}

.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.plan__amount {
  font: 750 clamp(3.5rem, 2vw + 2.75rem, 4.5rem)/1 var(--pp-font-display);
  letter-spacing: -0.045em;
}

.plan__period {
  font-weight: 500;
}

.plan__price {
  align-self: end;
}

.plan__billing {
  display: grid;
  align-content: start;
  gap: 0.375rem;
  margin-top: -0.5rem;
}

.plan__billing:empty {
  display: none;
}

.plan__yearly {
  font-size: 0.9375rem;
}

.plan--featured .chip {
  background: var(--pp-saffron);
  color: var(--pp-ink);
}

.plan__action .btn {
  width: 100%;
}

.plan--featured .btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #ffffff;
  --btn-line: #ffffff;
  --btn-ledge: #ffffff;
}

.plan--featured .checklist__tick {
  color: var(--pp-saffron);
}

.plan__body {
  display: grid;
  align-content: start;
  gap: 1.5rem;
}

.plans__note {
  margin-top: 1.25rem;
  color: var(--pp-text-2);
  font-size: 0.875rem;
}

.notes {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.note-card {
  padding: clamp(1.75rem, 2vw + 1rem, 2.75rem);
  border-radius: var(--pp-radius-card);
  background: var(--pp-surface);
}

/* The lighter of the two notes ("coming"): no card, a rule on top. */
.note-card--open {
  padding: clamp(1.5rem, 1.5vw + 1rem, 2.25rem) 0 0;
  border-top: 1px solid var(--pp-text);
  border-radius: 0;
  background: none;
}

@media (width >= 56rem) {
  .note-card--open {
    padding-left: clamp(1rem, 2vw, 2rem);
  }
}

.note-card--open .note-card__title {
  font-size: clamp(1.375rem, 0.8vw + 1.125rem, 1.75rem);
}

.note-card .kicker {
  margin-bottom: 0.75rem;
}

.note-card__title {
  max-width: 24ch;
  margin-bottom: 0.875rem;
  font-size: clamp(1.5rem, 1vw + 1.25rem, 2.125rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.note-card p:last-child {
  max-width: 48ch;
  color: var(--pp-text-2);
}

@media (width >= 64rem) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1.5rem;
  }

  /* Names, taglines, prices, billing lines, keys and lists on shared rows,
     whatever wraps in one plan, and the cards end on one line: a
     subgrid item always fills its rows, so the card's surface is drawn by
     its parts (no row gap, each part padded), the last one stretched to
     the longest list. */
  .plan {
    --plan-pad: clamp(1.75rem, 1.5vw + 1.25rem, 2.5rem);
    --plan-bg: var(--pp-surface);
    --plan-line: var(--pp-border);
    grid-row: span 6;
    grid-template-rows: subgrid;
    row-gap: 0;
    padding: 0;
    border: 0;
    background: none;
  }

  .plan--featured {
    --plan-bg: var(--pp-teal-deep);
    --plan-line: var(--pp-teal-deep);
  }

  .plan > * {
    padding: 0 var(--plan-pad) 1.25rem;
    border-inline: 1px solid var(--plan-line);
    background: var(--plan-bg);
  }

  .plan > :first-child {
    padding-top: var(--plan-pad);
    border-top: 1px solid var(--plan-line);
    border-radius: var(--pp-radius-card) var(--pp-radius-card) 0 0;
  }

  .plan > :last-child {
    padding-bottom: var(--plan-pad);
    border-bottom: 1px solid var(--plan-line);
    border-radius: 0 0 var(--pp-radius-card) var(--pp-radius-card);
  }

  .plan > .plan__price {
    align-self: stretch;
    align-content: end;
    padding-bottom: 0.75rem;
  }

  .plan__billing {
    margin-top: 0;
  }

  .plan__billing:empty {
    display: block;
  }
}

@media (width >= 56rem) {
  .notes {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* ------------------------------------------------- Under the hood page */

.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.5rem;
}

.facts__value {
  color: var(--pp-saffron);
  font: 750 clamp(2.5rem, 2.5vw + 1.75rem, 3.75rem)/1 var(--pp-font-display);
  letter-spacing: -0.04em;
}

.facts__label {
  max-width: 24ch;
  margin-top: 0.625rem;
  color: var(--pp-on-teal-2);
  font-size: 0.9375rem;
}

@media (width >= 40rem) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.window {
  overflow: hidden;
  border-radius: var(--pp-radius-card);
  background: #1d1a16;
  color: #e9e1d5;
  box-shadow: var(--pp-shadow);
}

.window .window__bar {
  border-bottom-color: #39332c;
}

.window .window__title {
  color: #b9ae9f;
}

.window .browser__dots span {
  background: #4a4037;
}

.window--light {
  border: 1px solid var(--pp-border);
  background: var(--pp-surface);
  color: var(--pp-text);
}

.window--light .window__bar {
  border-bottom-color: var(--pp-border);
}

.window--light .window__title {
  color: var(--pp-text-2);
}

.window--light .browser__dots span {
  background: var(--pp-border);
}

.code {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  font: 400 0.8125rem/1.65 var(--pp-font-mono);
  white-space: pre;
}

.code__key {
  color: var(--pp-saffron);
}

.code__string {
  color: #7fd1d6;
}

.code__muted {
  color: #9b907f;
}

.code__strong {
  color: #ffffff;
  font-weight: 700;
}

.layers {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  list-style: none;
}

.layer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.875rem;
}

.layer__icon {
  display: grid;
  flex: none;
  grid-row: span 2;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--pp-radius-button);
  background: var(--pp-cool);
  color: var(--pp-cool-text);
}

.layer__title {
  font: 650 1.0625rem/1.3 var(--pp-font-text);
  letter-spacing: 0;
}

.layer__text {
  color: var(--pp-text-2);
  font-size: 0.9375rem;
}

@media (width >= 40rem) {
  .layers {
    grid-template-columns: 1fr 1fr;
  }
}

.transcript {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  font-size: 0.9375rem;
  list-style: none;
}

.transcript__message {
  max-width: 90%;
  padding: 0.75rem 1rem;
  border-radius: var(--pp-radius-card);
  background: var(--pp-bg-alt);
}

.transcript__message--user {
  justify-self: end;
  background: var(--pp-key-bg);
  color: var(--pp-key-fg);
}

.transcript__tool {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--pp-text-2);
  font-size: 0.8125rem;
}

.transcript__tool code {
  color: var(--pp-text);
  font: 600 0.8125rem/1.3 var(--pp-font-mono);
}

.transcript__tool .icon {
  width: 1rem;
  height: 1rem;
}

.transcript__args {
  font-family: var(--pp-font-mono);
}

.transcript__done {
  display: inline-flex;
  color: var(--pp-accent);
}

.transcript__preview {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 0.75rem;
}

.thumbnail {
  width: 3.75rem;
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-button);
}

.transcript__host {
  display: block;
  margin-top: 0.375rem;
  color: var(--pp-text-2);
  font-size: 0.8125rem;
}

.rows {
  display: grid;
  gap: 1.75rem;
  list-style: none;
}

.rows__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--pp-text-2);
}

.rows__item strong {
  color: var(--pp-text);
}

@media (width >= 56rem) {
  .rows {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 4rem;
  }
}

.link-list {
  display: grid;
  margin-top: auto;
  list-style: none;
}

.credits {
  display: grid;
  gap: 0.625rem;
  color: var(--pp-text-2);
  font-size: 0.9375rem;
  list-style: none;
}

.credits a {
  color: var(--pp-accent);
  text-underline-offset: 0.2em;
}
