@charset "utf-8";

/*
 * Mindroll — the website.
 *
 * The colour tokens this file uses are written by `scripts/build-site.mjs` into
 * `tokens.css` from `src/brand/brand.json`, so the site cannot drift from the
 * app's palette. Nothing here hard-codes a brand colour: where a tint is needed
 * it is mixed from a token, against the `--wash-base` that flips with the
 * colour scheme.
 *
 * No webfont, on purpose. The app sets its headings in the system serif — New
 * York on Apple platforms, Iowan Old Style or Georgia elsewhere — so using the
 * same stack means the site matches the app exactly on the devices its readers
 * are holding, with no download, no layout shift, and no third party in a
 * privacy policy that currently names none.
 *
 * The ground is white and the type is serif, which is the whole of the look:
 * the page is quiet, the headings carry the personality, and the colour is
 * spent in three places — the accent, the tile hues, and the closer — rather
 * than sprayed across every surface.
 */

/* ------------------------------------------------------------------- reset */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchored sections must clear the sticky header. */
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt {
  margin: 0;
}

.icon {
  width: 100%;
  height: 100%;
}

/* ------------------------------------------------------------------ layout */

.wrap {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

@media (min-width: 40rem) {
  .wrap {
    width: min(100% - 4rem, 70rem);
  }
}

section {
  padding-block: clamp(4rem, 9.5vw, 7.5rem);
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}

.section-head--centre {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: var(--step-2);
}

.section-head p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.85rem;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: var(--r-sm);
  background: var(--clay);
  color: var(--on-clay);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip:focus {
  top: 0.75rem;
}

/* ------------------------------------------------------------------ header */

/*
 * The bar floats rather than spanning the window.
 *
 * A full-width bar draws a line across the page and divides it in two. A pill
 * sitting on top of the content keeps the page whole, and gives the white
 * ground something to be behind — which is most of why this design reads as
 * light rather than as empty.
 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 0.75rem;
  background: none;
  border: none;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  width: min(100% - 1.5rem, 64rem);
  padding-inline: 0.75rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 40rem) {
  .site-header .wrap {
    padding-inline: 1.25rem 0.85rem;
  }
}

/* Set by main.js once the page has been scrolled: the pill lifts off the page
   only when there is something underneath it to lift off. */
.site-header[data-scrolled='true'] .wrap {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  flex: none;
}

.brand svg {
  width: 2.15rem;
  height: 2.15rem;
  flex: none;
}

/*
 * The mark is two stroked paths, and it has to be told so.
 *
 * `assets/brand/mark.svg` draws the roll and its tail as open paths with
 * `fill="none"` and a 116-unit stroke. The builder strips the presentation
 * attributes and leaves the classes, so without these rules both paths fall
 * back to SVG's defaults — no stroke, black fill — and a mark meant to read as
 * two strokes renders as a solid black blob. Which is exactly what it was
 * doing: present in the markup, invisible as a logo.
 */
.mark {
  overflow: visible;
}

/* The 116 is in viewBox units and must scale with the box, so no
   `vector-effect` here — that would render it at 116 screen pixels. */
.mark path {
  fill: none;
}

.mark-roll {
  stroke: var(--ink);
}

.mark-tail {
  stroke: var(--clay);
}

.site-nav {
  display: none;
  margin-inline: auto;
  gap: 0.25rem;
}

@media (min-width: 56rem) {
  .site-nav {
    display: flex;
  }
}

.site-nav a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

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

.header-cta {
  margin-left: auto;
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 56rem) {
  .header-cta {
    margin-left: 0;
  }
}

/* ------------------------------------------------------------- menu (small) */

/*
 * `display` on a class beats the `[hidden]` attribute's UA rule, so the button
 * would show — and do nothing — on a page whose script never ran. The guard
 * below is what actually keeps the no-JS promise this component makes.
 */
.nav-toggle[hidden] {
  display: none;
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

/* Above the breakpoint the row of links is the navigation. */
@media (min-width: 56rem) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  width: 1.05rem;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, background-color 0.15s ease, top 0.22s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -0.34rem;
}

.nav-toggle__bars::after {
  top: 0.34rem;
}

/* Open: the middle bar goes, the outer two become the cross. */
[aria-expanded='true'] .nav-toggle__bars {
  background: transparent;
}

[aria-expanded='true'] .nav-toggle__bars::before,
[aria-expanded='true'] .nav-toggle__bars::after {
  top: 0;
}

[aria-expanded='true'] .nav-toggle__bars::before {
  transform: rotate(45deg);
}

[aria-expanded='true'] .nav-toggle__bars::after {
  transform: rotate(-45deg);
}

/*
 * The panel.
 *
 * With the script blocked the toggle stays `hidden` and this is simply the
 * navigation on a phone — a list under the bar, always open. Once the toggle
 * exists it collapses, and `:has()` is what lets the stylesheet tell those two
 * situations apart without the script having to flag it.
 */
.site-menu {
  display: none;
  width: min(100% - 1.5rem, 64rem);
  margin-inline: auto;
  margin-top: 0.5rem;
  padding: 0.75rem;
  gap: 0.35rem;
}

@media (max-width: 55.99rem) {
  /* A card under the pill, in the pill's own material. */
  .site-menu {
    display: grid;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    box-shadow: var(--shadow-lg);
  }

  .site-header:has(.nav-toggle:not([hidden])) .site-menu {
    display: none;
  }

  .site-header:has(.nav-toggle[aria-expanded='true']) .site-menu {
    display: grid;
    animation: menu-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /*
   * One call to action at a time.
   *
   * The bar keeps its button while the menu is shut — that is the whole point
   * of it being there — and gives way to the panel's full-width one when the
   * menu opens, rather than showing the same button twice a thumb apart.
   */
  .site-header:has(.nav-toggle[aria-expanded='true']) .header-cta .btn {
    display: none;
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}

.site-menu__nav {
  display: grid;
  gap: 0.15rem;
}

.site-menu a {
  padding: 0.75rem 0.5rem;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 550;
  text-decoration: none;
}

.site-menu a:hover {
  background: var(--sunk);
}

.site-menu > .btn {
  margin-top: 0.5rem;
  justify-content: center;
  color: var(--on-clay);
}

/* The section being read, in either navigation. */
.site-nav a[aria-current],
.site-menu a[aria-current] {
  color: var(--clay);
  background: var(--clay-wash);
}

/* Nothing behind the open panel should scroll. */
.is-menu-open,
.is-menu-open body {
  overflow: hidden;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn--primary {
  background: var(--clay);
  color: var(--on-clay);
  box-shadow: var(--shadow-clay);
}

.btn--primary:hover {
  background: var(--clay-deep);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--sunk);
  border-color: var(--ink-soft);
}

.btn--sm {
  padding: 0.6rem 1.05rem;
  font-size: 0.9375rem;
}

/* The App Store button, in Apple's shape rather than ours. */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: var(--shadow-md);
}

.store-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.store-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  flex: none;
}

.store-btn span {
  display: block;
  font-family: var(--font-ui);
  line-height: 1.15;
}

.store-btn small {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
}

.store-btn b {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Not on the store yet: the same shape, visibly not a link. */
.store-btn--soon {
  background: var(--sunk);
  color: var(--ink);
  border: 1px dashed var(--line-strong);
  box-shadow: none;
  cursor: default;
}

.store-btn--soon:hover {
  transform: none;
  box-shadow: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/*
 * On a narrow screen the row becomes a column, and everything in it takes the
 * full width. Left to wrap, three controls of three different widths stack into
 * a ragged left edge that reads as a layout accident rather than a choice.
 */
@media (max-width: 30rem) {
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row > *,
  .cta-row .notify > .btn {
    width: 100%;
  }

  .cta-row .store-btn {
    justify-content: center;
  }
}

/* -------------------------------------------------------------------- pill */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.pill__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--moss);
  flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--moss) 20%, transparent);
}

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

.hero {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

/* One soft bloom behind the headline, so white does not read as empty. */
.hero::before {
  content: '';
  position: absolute;
  top: -22rem;
  left: 50%;
  width: min(80rem, 150vw);
  height: 42rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

/*
 * Centred, with the art either side of it.
 *
 * The page used to put the headline in one column and a phone in the other,
 * which is the safe arrangement and also the one every app site uses. Centring
 * lets the headline run to its full width and leaves the margins free for the
 * cover art, which is the thing here worth looking at. The phone has not gone
 * — it is four screens down, under "The app", where there is room to show all
 * of them instead of a thumbnail of one.
 */
.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 54rem;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.85rem, 8vw, 6rem);
  letter-spacing: -0.042em;
  line-height: 0.98;
}

.hero .cta-row {
  justify-content: center;
}

.hero__proof {
  justify-content: center;
}

.hero__lead {
  margin-inline: auto;
}

.hero h1 em {
  font-style: italic;
  color: var(--clay);
}

/*
 * The correction: the word is retracted, not deleted.
 *
 * Grey text with the rule in the accent colour, so the sentence visibly
 * corrects itself — and thick enough to read as deliberate rather than as a
 * hairline someone left on by accident.
 *
 * The rule is `text-decoration` rather than a positioned bar, and that is the
 * whole point. A pseudo-element has to be told where the middle of the
 * lowercase letters is, and that answer is per-font: New York puts it at
 * 0.795em below the top of the inline box, and Georgia and Iowan Old Style —
 * what everyone not on an Apple device gets from this stack — put it
 * elsewhere. Hard-coding one font's number draws a line through the ascenders
 * on the other two. `text-decoration` asks the font that is actually rendering
 * and is right on all three. It costs the slight tilt, which is not worth a
 * headline that is wrong on Windows.
 */
.hero h1 s {
  color: var(--muted);
  text-decoration-line: line-through;
  text-decoration-color: var(--clay);
  text-decoration-thickness: 0.07em;
  text-decoration-skip-ink: none;
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  color: var(--ink-soft);
}

.hero__note {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.hero__proof dt {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.hero__proof dd {
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------- hero: scroll cue */

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2.25rem;
  padding: 0.35rem 0.75rem 0.5rem;
  border-radius: var(--r-md);
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.scroll-cue:hover {
  color: var(--clay);
}

.scroll-cue svg {
  width: 1.1rem;
  height: 1.1rem;
  animation: nudge 2.2s ease-in-out infinite;
}

@keyframes nudge {
  0%,
  70%,
  100% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(0.3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue svg {
    animation: none;
  }
}

/* ------------------------------------------------------------- hero: art */

/*
 * Six covers, tilted, in the margins the centred column leaves free.
 *
 * Decoration, and marked as such — the layer is `aria-hidden` and the images
 * carry empty alt, because these same twelve covers are named and captioned
 * in the library row further down. Nobody should hear them twice.
 *
 * The breakpoint is 78rem, not the 64rem that looks about right. The copy
 * column is a fixed 54rem, so the free margin is whatever is left over: at
 * 64rem there is barely 5% a side and the covers land on the text. 78rem is
 * the first width where the gutters are genuinely wide enough to hold them.
 */
.hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;
}

@media (min-width: 78rem) {
  .hero__art {
    display: block;
  }
}

.float {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  margin: 0;
  /*
   * The placement lives here and the movement lives on the child. Both on one
   * element means the bob keyframes have to restate the tilt, and any drift
   * between the two numbers shows up as a jolt at the start of every cycle.
   */
  transform: translate(-50%, -50%) rotate(var(--r));
  animation: float-in 0.7s var(--d) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.float picture {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: bob 7s var(--d) ease-in-out infinite alternate;
}

.float img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@keyframes float-in {
  from {
    opacity: 0;
  }
}

@keyframes bob {
  to {
    transform: translateY(-0.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .float,
  .float picture {
    animation: none;
  }
}

/* --------------------------------------------------------- hero: the notice */

/*
 * A saved idea, come round again.
 *
 * The hero's one piece of evidence: a real card and its real source, shown the
 * way the app shows one that has fallen due. Everything else up here is a
 * claim; this is the product.
 */
.due {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.65rem 1.15rem 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  text-align: left;
  max-width: 100%;
}

.due__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  padding: 0.4rem;
  border-radius: 50%;
  background: var(--clay-wash);
  color: var(--clay);
}

.due__mark svg {
  width: 100%;
  height: 100%;
}

.due__text {
  min-width: 0;
}

.due__text b {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--clay);
}

.due__text > span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.9375rem;
  color: var(--ink);
  /* One line: the hero is not the place to read the card, only to meet it. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------------------- the phone */

/*
 * A screenshot, framed.
 *
 * The capture is the app's own 780×1499, so the frame is drawn around it with
 * padding and a radius rather than composited into the image — which keeps the
 * asset replaceable and the bezel the same colour as the rest of the page.
 */
.screen {
  position: relative;
  padding: 0.5rem;
  border-radius: 2.5rem;
  background: var(--screen-edge);
  box-shadow: var(--shadow-lg);
}

.screen picture,
.screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2.05rem;
  background: var(--screen-bg);
}

/* ------------------------------------------------------------------ recall */

/*
 * The wedge.
 *
 * Deliberately the quietest thing on the page: one question, set large, with
 * no button anywhere near it. The reader is meant to try to answer it.
 */
.recall {
  background: var(--tint);
  border-block: 1px solid var(--line);
}

.recall__inner {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.recall h2 {
  font-size: var(--step-2);
  font-style: italic;
}

.recall p {
  margin-top: 1.15rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.recall p:first-of-type {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 1rem;
}

/* ------------------------------------------------------------------- steps */

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

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

.step {
  position: relative;
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.step:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.25rem;
  border-radius: var(--r-pill);
  background: var(--clay-wash);
  color: var(--clay);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.step h3 {
  font-size: var(--step-3);
}

.step p {
  margin-top: 0.7rem;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------- features */

.features {
  display: grid;
  gap: 1rem;
}

@media (min-width: 38rem) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 62rem) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.1rem;
  padding: 0.65rem;
  border-radius: var(--r-md);
  background: var(--clay-wash);
  color: var(--clay);
}

.feature h3 {
  font-size: 1.0625rem;
  font-family: var(--font-body);
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.3;
}

.feature p {
  margin-top: 0.55rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ----------------------------------------------------------------- anatomy */

/*
 * One real card, taken apart.
 *
 * The labels sit outside the card's own voice — small, uppercase, muted — so
 * the reader can tell at a glance which words are the product's and which are
 * ours. The card itself is styled the way it is in the app: serif title, plain
 * body, the source last.
 */
.anatomy {
  background: var(--tint);
  border-block: 1px solid var(--line);
}

.anatomy__grid {
  max-width: 40rem;
  margin-inline: auto;
}

.idea-card {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.idea-card__part {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.6rem;
}

.idea-card__part:not(:first-child) {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
}

.idea-card__title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.16;
}

.idea-card__body {
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.idea-card__take {
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: var(--clay-wash);
  border: 1px solid color-mix(in srgb, var(--clay) 18%, transparent);
  color: var(--ink);
  font-size: 0.9688rem;
}

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

.idea-card__source b {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 650;
}

.idea-card__source span {
  color: var(--muted);
  font-size: 0.9375rem;
}

.idea-card__source span::before {
  content: '·';
  margin-right: 0.5rem;
}

.idea-card__type {
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
  background: var(--sunk);
  border: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/*
 * Two classes deep on purpose: `.idea-card__source span::before` draws the
 * separator between title and author, and it would otherwise put a stray dot
 * inside this pill as well.
 */
.idea-card__source .idea-card__type::before {
  content: none;
}

/*
 * On a narrow card the author wraps onto its own line, and a separator that
 * was joining two things mid-line becomes a dot floating at the start of one.
 */
@media (max-width: 30rem) {
  .idea-card__source span::before {
    content: none;
  }
}

/* ------------------------------------------------------------------- deck */

/*
 * Until the script runs, every card is on the page and the controls are not.
 * `[data-deck-ready]` is the switch: it hides all but the current card and
 * brings the bar and the save control in.
 */
.deck {
  display: grid;
  gap: 1rem;
}

.deck__bar,
.deck__save {
  display: none;
}

.anatomy__grid[data-deck-ready] .idea-card:not([data-current]) {
  display: none;
}

.anatomy__grid[data-deck-ready] .deck__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.anatomy__grid[data-deck-ready] .deck__save {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.deck__arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.16s ease;
}

.deck__arrow:hover {
  background: var(--clay-wash);
  border-color: var(--clay);
  color: var(--clay);
}

.deck__arrow:active {
  transform: scale(0.94);
}

.deck__arrow svg {
  width: 100%;
  height: 100%;
}

.deck__count {
  min-width: 3.5rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: center;
}

.deck__save .btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Saved: the bookmark fills, and the ladder is what replaces the hint. */
.anatomy__grid[data-saved] .deck__save .btn {
  background: var(--clay-wash);
  border-color: var(--clay);
  color: var(--clay);
}

.anatomy__grid[data-saved] .deck__save .btn svg {
  fill: currentColor;
}

.deck__hint {
  font-size: 0.9063rem;
  color: var(--muted);
  max-width: 26rem;
}

.anatomy__grid[data-saved] .deck__hint {
  display: none;
}

.deck__ladder-label,
.ladder,
.deck__reset {
  display: none;
}

.anatomy__grid[data-saved] .deck__ladder-label {
  display: block;
  font-size: 0.9063rem;
  color: var(--ink-soft);
  max-width: 26rem;
}

.anatomy__grid[data-saved] .ladder {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  animation: ladder-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.anatomy__grid[data-saved] .deck__reset {
  display: block;
  font-size: 0.8438rem;
  color: var(--muted);
}

@keyframes ladder-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* The reset only unstyles `ul`; this is an ordered list and keeps its markers. */
.ladder {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ladder li {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Two classes deep, to out-specify `.ladder li` without reaching for !important. */
.ladder .ladder__done {
  border-color: color-mix(in srgb, var(--moss) 40%, transparent);
  background: color-mix(in srgb, var(--moss) 10%, var(--wash-base));
  color: color-mix(in srgb, var(--moss) 62%, var(--ink-base));
}

/* ------------------------------------------------------------------ inside */

.inside {
  background: var(--tint);
  border-block: 1px solid var(--line);
}

.inside__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

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

.inside h2 {
  font-size: var(--step-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat {
  padding: 1.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--clay);
}

.stat__label {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.type-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.type-chip b {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
}

.note-card {
  margin-top: 1rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.note-card h3 {
  font-size: 1.125rem;
  font-family: var(--font-body);
  font-weight: 650;
}

.note-card p {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------- shelf */

/*
 * Two rows of covers, travelling against each other.
 *
 * Every cover is generated by the app's own artwork engine from the book's
 * seed, so this is the catalogue as the reader will actually meet it. The
 * counter-motion is the point: one row alone reads as a strip of thumbnails,
 * two moving in opposite directions read as depth.
 */
.shelf {
  overflow: hidden;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.marquee--books {
  padding-block: 0.6rem;
}

.marquee--books .marquee__set {
  gap: 1rem;
  padding-right: 1rem;
  align-items: flex-end;
}

/* The second row runs the other way, from a half-shifted start. */
.marquee--back .marquee__track {
  animation-name: marquee-back;
  animation-duration: 95s;
}

@keyframes marquee-back {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.book {
  flex: none;
  width: clamp(6.5rem, 13vw, 8.75rem);
  margin: 0;
}

/*
 * The spine.
 *
 * A flat rectangle reads as a card; a book has a bound edge that catches less
 * light than the face. This is one narrow gradient down the left, which is
 * enough to tip the whole row from "tiles" to "books on a shelf".
 */
.book picture {
  position: relative;
}

.book picture::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 7%;
  pointer-events: none;
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--ink) 30%, transparent) 0%,
    color-mix(in srgb, var(--ink) 8%, transparent) 38%,
    transparent 100%
  );
}

.book picture {
  display: block;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  /* Books sit on a shelf: the shadow is under them, not around them. */
  box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--ink) 40%, transparent);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.book img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.book:hover picture {
  transform: translateY(-8px);
  box-shadow: 0 22px 34px -14px color-mix(in srgb, var(--ink) 48%, transparent);
}

/* ----------------------------------------------------------------- library */

/*
 * The cover wall.
 *
 * Full-bleed and scrolling, because twelve covers in a centred grid look like
 * a catalogue page and twelve covers running off both edges look like a shelf
 * that continues. The track holds the set twice and travels exactly half its
 * width, so the loop closes on itself with no seam and no JavaScript.
 */
.library {
  padding-bottom: clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.marquee {
  overflow: hidden;
  /* The row fades out rather than being cut off by the window edge. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 80s linear infinite;
}

.marquee__set {
  display: flex;
  gap: 1.25rem;
  padding-right: 1.25rem;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Stop it so a cover can actually be looked at, or tabbed to. */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

/*
 * Asked for less motion: it becomes a row you scroll yourself.
 *
 * Not a grid — the second, `aria-hidden` set would then be twelve visible
 * duplicates. Scrolling keeps it one shelf, under the reader's control.
 */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .marquee__track {
    animation: none;
  }

  .cover {
    scroll-snap-align: center;
  }
}

.cover {
  flex: none;
  width: clamp(9.5rem, 22vw, 13rem);
  margin: 0;
}

.cover picture {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cover:hover picture {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.cover figcaption {
  margin-top: 0.85rem;
  padding-inline: 0.15rem;
}

.cover figcaption b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9688rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--ink);
}

.cover figcaption span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--muted);
}

/* ------------------------------------------------------------------ topics */

.topics {
  display: grid;
  gap: 0.875rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

/*
 * The tile derives its own wash, border and text from `--hue`.
 *
 * These three cannot live in `tokens.css`: a custom property holding a `var()`
 * is substituted where it is declared, so deriving them on `:root` would pin
 * every tile to `:root`'s hue. Declared here, they resolve against the `--hue`
 * each tile sets for itself.
 */
.topic {
  --hue-wash: color-mix(in srgb, var(--hue) var(--wash-amount), var(--wash-base));
  --hue-line: color-mix(in srgb, var(--hue) var(--wash-line), var(--wash-base));
  --hue-ink: color-mix(in srgb, var(--hue) var(--wash-ink), var(--ink-base));

  padding: 1.5rem 1.4rem;
  border: 1px solid var(--hue-line);
  border-radius: var(--r-lg);
  background: var(--hue-wash);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.topic:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.topic h3 {
  font-size: 1.125rem;
  color: var(--hue-ink);
}

.topic p {
  margin-top: 0.5rem;
  font-size: 0.9063rem;
  color: var(--ink-soft);
}

.topic__count {
  margin-top: 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  /*
   * No opacity here. Fading this to 85% costs the amber and light-moss tiles
   * their contrast (3.94:1 and 3.69:1 against their own wash); --hue-ink is
   * already mixed to clear AA at full strength.
   */
  color: var(--hue-ink);
}

/* --------------------------------------------------------------- to the top */

/* Same trap as the menu button: the class would out-rank `[hidden]`. */
.to-top[hidden] {
  display: none;
}

.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  cursor: pointer;

  /* Out of the way, and out of the tab order, until there is page behind it. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.to-top.is-in {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--clay);
  color: var(--clay);
  box-shadow: var(--shadow-lg);
}

.to-top svg {
  width: 100%;
  height: 100%;
}

/* ----------------------------------------------------------------- compare */

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

@media (min-width: 48rem) {
  .compare {
    grid-template-columns: repeat(2, 1fr);
  }
}

.compare__col {
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.compare__col h3 {
  font-size: var(--step-3);
  font-family: var(--font-body);
  font-weight: 650;
}

.compare__col ul {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.compare__col li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--ink-soft);
  font-size: 0.9688rem;
}

/* The mark is drawn in CSS so the list carries no decorative markup. */
.compare__col li::before {
  position: absolute;
  left: 0;
  top: 0.05em;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.compare__col--them {
  background: var(--sunk);
}

.compare__col--them h3 {
  color: var(--muted);
}

.compare__col--them li::before {
  content: '×';
  background: color-mix(in srgb, var(--muted) 14%, transparent);
  color: var(--muted);
}

.compare__col--us {
  border-color: color-mix(in srgb, var(--clay) 32%, transparent);
  box-shadow: var(--shadow-md);
}

.compare__col--us h3 {
  color: var(--clay);
}

.compare__col--us li::before {
  content: '✓';
  background: var(--clay-wash);
  color: var(--clay);
}

.compare__col--us li {
  color: var(--ink);
}

/* ----------------------------------------------------------------- gallery */

.gallery {
  display: grid;
  gap: 2rem 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.gallery figure {
  margin: 0;
}

.gallery .screen {
  border-radius: 1.75rem;
  padding: 0.375rem;
}

.gallery .screen picture,
.gallery .screen img {
  border-radius: 1.45rem;
}

.gallery figcaption {
  margin-top: 1.1rem;
  text-align: center;
}

.gallery figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 650;
}

.gallery figcaption span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9063rem;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------- plans */

.plans {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 48rem) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

.plan {
  padding: 2rem 1.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
}

.plan--pro {
  border-color: color-mix(in srgb, var(--clay) 34%, transparent);
  box-shadow: var(--shadow-lg);
}

.plan__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--step-3);
}

.badge {
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--clay-wash);
  color: var(--clay);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.plan__price {
  margin-top: 0.85rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 1rem;
}

.plan__price b {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.plan ul {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.8rem;
}

.plan li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink-soft);
  font-size: 0.9688rem;
}

.plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.05em;
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--clay-wash);
  color: var(--clay);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

/* The "everything in Free, plus:" line is a heading, not a feature. */
.plan li.is-lead {
  padding-left: 0;
  color: var(--ink);
  font-weight: 650;
}

.plan li.is-lead::before {
  content: none;
}

.smallprint {
  max-width: 44rem;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------- faq */

.faq-list {
  max-width: 44rem;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.18s ease;
}

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

.faq-item summary:hover {
  color: var(--clay);
}

/* A plus that becomes a minus, drawn from the border of an empty box. */
.faq-item summary::after {
  content: '';
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--sunk);
  background-image: linear-gradient(var(--ink-soft), var(--ink-soft)),
    linear-gradient(var(--ink-soft), var(--ink-soft));
  background-size: 0.7rem 1.5px, 1.5px 0.7rem;
  background-position: center, center;
  background-repeat: no-repeat;
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.faq-item[open] summary::after {
  background-size: 0.7rem 1.5px, 0 0.7rem;
  background-color: var(--clay-wash);
  transform: rotate(180deg);
}

.faq-item__body {
  padding-bottom: 1.5rem;
  max-width: 38rem;
}

.faq-item__body p {
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ closer */

.closer {
  padding-block: 0;
}

.closer__inner {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--r-xl);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.closer__inner::before {
  content: '';
  position: absolute;
  inset: auto 50% -60% 50%;
  width: 40rem;
  height: 30rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--glow), transparent 68%);
  pointer-events: none;
}

.closer h2,
.closer p,
.closer .cta-row {
  position: relative;
}

.closer h2 {
  font-size: var(--step-2);
  color: var(--paper);
}

.closer p {
  margin-top: 1rem;
  color: color-mix(in srgb, var(--paper) 74%, transparent);
  font-size: 1.125rem;
}

.closer .cta-row {
  justify-content: center;
}

/* The dark panel inverts the store button, which is dark by default. */
.closer .store-btn {
  background: var(--paper);
  color: var(--ink);
}

.closer .store-btn--soon {
  background: color-mix(in srgb, var(--paper) 12%, transparent);
  color: var(--paper);
  border-color: color-mix(in srgb, var(--paper) 30%, transparent);
}

.closer .notify input {
  background: color-mix(in srgb, var(--paper) 10%, transparent);
  border-color: color-mix(in srgb, var(--paper) 28%, transparent);
  color: var(--paper);
}

.closer .notify input::placeholder {
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}

.closer .notify__status {
  color: color-mix(in srgb, var(--paper) 70%, transparent);
}

.closer .btn--primary {
  background: var(--clay);
  color: var(--on-clay);
}

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

.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-top: 1px solid var(--line);
  background: var(--tint);
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}

@media (min-width: 56rem) {
  .footer__grid {
    grid-template-columns: 1.6fr repeat(3, 1fr);
  }
}

.footer__blurb {
  margin-top: 1rem;
  max-width: 20rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.footer__grid h2 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.footer__grid ul {
  display: grid;
  gap: 0.6rem;
}

.footer__grid a {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer__grid a:hover {
  color: var(--clay);
  text-decoration: underline;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.8438rem;
  color: var(--muted);
}

/* --------------------------------------------------------------- documents */

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

.doc__inner {
  max-width: 44rem;
}

.doc h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.1rem);
  margin-bottom: 0.5rem;
}

.doc h2 {
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 6rem;
}

.doc h3 {
  font-size: 1.125rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.doc p,
.doc li {
  color: var(--ink-soft);
}

.doc p + p {
  margin-top: 1.1rem;
}

.doc h1 + p {
  margin-top: 1.1rem;
}

.doc ul {
  list-style: disc;
  padding-left: 1.3rem;
  margin-top: 1.1rem;
}

.doc li {
  margin-top: 0.55rem;
}

.doc li::marker {
  color: var(--clay);
}

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

.doc hr {
  border: none;
  border-top: 1px solid var(--line);
  margin-block: 2.5rem;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  display: block;
  overflow-x: auto;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.75rem 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.doc th {
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
}

.doc code {
  background: var(--tint);
  border: 1px solid var(--line);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  font-size: 0.9em;
}

.doc__meta {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--tint);
  border: 1px solid var(--line);
  font-size: 0.8438rem;
  color: var(--muted);
}

.doc__toc {
  margin: 2.5rem 0 0;
  padding: 1.35rem 1.6rem;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.doc__toc h2 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.doc__toc ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc__toc li {
  margin-top: 0.35rem;
}

.doc__toc a {
  color: var(--ink-soft);
  text-decoration: none;
}

.doc__toc a:hover {
  color: var(--clay);
  text-decoration: underline;
}

.support-block + .support-block {
  margin-top: 2.5rem;
}

.support-block ul {
  list-style: none;
  padding-left: 0;
  margin-block: 1.1rem;
}

.support-block li {
  margin-top: 0.4rem;
}

.support-block ul li::marker {
  content: none;
}

.support-block ul + p {
  margin-top: 1.1rem;
}

.contact-card {
  margin-top: 2rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid color-mix(in srgb, var(--clay) 34%, transparent);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.contact-card h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.contact-card .btn {
  margin-top: 1.25rem;
}

/* --------------------------------------------------------------------- 404 */

.notfound {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding-block: 5rem;
}

.notfound h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
}

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

.notfound .cta-row {
  margin-top: 2rem;
  justify-content: center;
}

/* ---------------------------------------------------------------- movement */

/*
 * A single reveal, and only for people who have not asked otherwise.
 *
 * The no-JS case matters more than the animation: `.reveal` is only made
 * invisible once `main.js` has run and set `data-reveal` on the document, so a
 * page with a blocked or failed script shows all of its content rather than
 * none of it.
 */
[data-reveal='on'] .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal='on'] .reveal.is-in {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal='on'] .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta-row,
  .doc__toc,
  .to-top,
  .deck__bar,
  .deck__save {
    display: none;
  }

  /* Printing a deck should print the ideas, not whichever one was on screen. */
  .anatomy__grid[data-deck-ready] .idea-card:not([data-current]) {
    display: block;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ------------------------------------------------------------- web offers */

/*
 * What the website itself sells.
 *
 * Two prices inside the Pro card rather than two more cards: the plans are the
 * same product billed differently, and giving each its own column implies a
 * choice of *product* that does not exist.
 */
.offers {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.offers__lead {
  font-size: 0.9063rem;
  color: var(--ink-soft);
}

.offers__list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.offer {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

/* The recommended plan is marked, never pre-selected without saying so. */
.offer--best {
  border-color: color-mix(in srgb, var(--clay) 40%, transparent);
  background: var(--clay-wash);
}

.offer__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.offer__head b {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 650;
}

.offer__tag {
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
  background: var(--clay);
  color: var(--on-clay);
  font-family: var(--font-ui);
  font-size: 0.6563rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.offer__price {
  margin-top: 0.35rem;
  font-family: var(--font-display);
}

.offer__price b {
  font-size: 1.65rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.offer__price span {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--muted);
}

.offer__note {
  margin-top: 0.3rem;
  font-size: 0.8438rem;
  color: var(--muted);
}

.offer .btn {
  margin-top: 0.85rem;
  width: 100%;
}

.offers__soon {
  margin-top: 0.9rem;
  font-size: 0.8438rem;
  color: var(--muted);
}

/*
 * The offers are list items inside `.plan`, so they inherit the tick that
 * marks a feature. A price is not a feature; the tick made each plan read as
 * something already included rather than something to choose.
 */
.plan .offers__list .offer {
  padding-left: 1.1rem;
}

.plan .offers__list .offer::before {
  content: none;
}

/* ----------------------------------------------------------------- account */

.account {
  min-height: 60vh;
  display: grid;
  align-items: start;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.account__panel {
  max-width: 26rem;
  margin-inline: auto;
  width: 100%;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.account__panel h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.account__lead {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9688rem;
}

.account__alt {
  margin-top: 1rem;
  font-size: 0.9063rem;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.auth-field {
  display: grid;
  gap: 0.35rem;
}

.auth-field span {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.auth-field input {
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}

.auth-field input:focus-visible {
  border-color: var(--clay);
}

.auth-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

/*
 * One line for every outcome, coloured by what kind it is.
 *
 * A failed sign-in and a "check your inbox" are not the same event, and
 * painting both red teaches people to ignore the message.
 */
.auth-status {
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-md);
  font-size: 0.9063rem;
  margin-top: 1rem;
  border: 1px solid;
}

.auth-status[data-kind='error'] {
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
  color: color-mix(in srgb, var(--danger) 62%, var(--ink));
}

.auth-status[data-kind='notice'] {
  background: color-mix(in srgb, var(--moss) 9%, var(--surface));
  border-color: color-mix(in srgb, var(--moss) 32%, transparent);
  color: color-mix(in srgb, var(--moss) 62%, var(--ink));
}

/* Everything is disabled while a request is in flight, so say so. */
.account__panel[data-busy] {
  opacity: 0.7;
  pointer-events: none;
}
