/*
 * Redraft — getredraft.app. One stylesheet for every page.
 * Nothing here loads from another site: the fonts are in /fonts, and there are no web fonts, trackers or embeds.
 *
 * Three voices, each with one job:
 *   --font      the site's own voice (DM Sans, self-hosted)
 *   --font-doc  the documents shown on the page (a book serif the device already has)
 *   --font-app  the app's screens inside the drawn phones (the system font, as on an iPhone)
 */

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* The page: warm paper, near-black ink, ink indigo, highlighter yellow. */
  --paper: #fbfaf6;
  --ink: #16152b;
  --ink-soft: #55536f;
  --rule: #dddbe8;
  --fill: #eeedf3;
  --indigo: #3a30d6;
  --highlight: #ffd43b;
  --highlight-pressed: #ffc61a;
  --struck: #b4322a;
  --band: #3a30d6;
  --band-ink: #ffffff;
  --band-soft: #dedbff;
  --shadow: 22 21 43;

  /* Paper documents look the same in light and dark: white sheets, dark ink, yellow highlighter. */
  --sheet: #ffffff;
  --sheet-ink: #16152b;
  --sheet-pdf: #e9e8ef;
  --sheet-pdf-ink: #4a4960;
  --sheet-indigo: #3a30d6;
  --on-highlight: #16152b;

  /* The app's own screens, inside the phones. */
  --app-bg: #f2f2f7;
  --app-surface: #ffffff;
  --app-label: #16152b;
  --app-secondary: #63627a;
  --app-fill: #e4e3ec;
  --app-tint: #3a30d6;

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-doc: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-app: -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step-small: 0.94rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.55rem, 1.1rem + 2vw, 2.3rem);
  --step-3: clamp(1.95rem, 1.3rem + 2.9vw, 3.05rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121124;
    --ink: #f3f2fa;
    --ink-soft: #b7b5cf;
    --rule: #302e52;
    --fill: #211f3e;
    --indigo: #a9a4ff;
    --struck: #ff8f80;
    --band: #2a23a6;
    --shadow: 0 0 0;

    --sheet: #f7f6f2;
    --sheet-pdf: #cdcbd9;

    --app-bg: #000000;
    --app-surface: #1c1c1e;
    --app-label: #f3f2fa;
    --app-secondary: #a09fb3;
    --app-fill: #2c2c2e;
    --app-tint: #a9a4ff;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure,
fieldset,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

a {
  color: var(--indigo);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

::selection {
  background: var(--highlight);
  color: var(--on-highlight);
}

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

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

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

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

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

.section {
  padding-block: clamp(3.25rem, 7.5vw, 6.25rem);
}

.section-title {
  font-size: var(--step-3);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 58ch;
  margin-top: 1.1rem;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- Buttons and the App Store call ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.7rem 1.6rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--highlight);
  color: var(--on-highlight);
}

.button-primary:hover {
  background: var(--highlight-pressed);
}

/* Until config.js has the App Store address, the call is a status, not a button, so nobody taps a dead link. */
.cta-pending {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--fill);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
}

.cta-pending::before {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 0 0 0.2rem rgb(255 212 59 / 0.35);
}

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

.site-header {
  padding-block: 1.1rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img {
  width: 2.15rem;
  height: 2.15rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.9rem);
  font-size: 0.98rem;
  font-weight: 600;
}

.site-nav a {
  padding-block: 0.4rem;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.nav-section {
  display: none;
}

@media (min-width: 46rem) {
  .nav-section {
    display: inline;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(3.25rem, 7vw, 6rem);
}

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

@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  }

  /* On a wide screen the headline breaks where the sentence does. */
  .hero-title span {
    display: block;
  }
}

/* The headline's size follows its column, so its longest line always fits on one line. */
.hero-copy {
  container-type: inline-size;
}

.hero-title {
  font-size: clamp(2.2rem, 12.6cqi, 3.9rem);
  line-height: 1;
  letter-spacing: -0.042em;
}

.hero-sub {
  max-width: 35ch;
  margin-top: 1.5rem;
  font-size: clamp(1.12rem, 1rem + 0.55vw, 1.3rem);
  line-height: 1.45;
}

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

.hero-note {
  margin-top: 1rem;
  font-size: var(--step-small);
  color: var(--ink-soft);
}

/* ---------- The same page twice: a PDF you can only read, a Word document you can type in ---------- */

.demo-switch {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.2rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--fill);
}

.demo-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.demo-switch label {
  min-width: 5.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 0.58rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.demo-switch input:checked + label {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(var(--shadow) / 0.22);
}

.demo-switch input:focus-visible + label {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
}

.demo-sheets {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.75rem);
}

@media (min-width: 40rem) {
  .demo-switch {
    display: none;
  }

  .demo-sheets {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 39.99rem) {
  .demo:has(#view-pdf:checked) .sheet-word,
  .demo:has(#view-word:checked) .sheet-pdf {
    display: none;
  }
}

.sheet-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.sheet-name svg {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
}

.sheet-pdf .sheet-name {
  color: var(--ink-soft);
}

/* A page's shape at least; it grows if someone types more into it than fits. */
.sheet-page {
  container-type: inline-size;
  aspect-ratio: 17 / 21.4;
  border-radius: 0.3rem;
  background: var(--sheet);
  color: var(--sheet-ink);
  box-shadow:
    0 0 0 1px rgb(var(--shadow) / 0.08),
    0 1.4rem 2.6rem -1.5rem rgb(var(--shadow) / 0.45);
}

.sheet-pdf .sheet-page {
  background: var(--sheet-pdf);
  color: var(--sheet-pdf-ink);
  box-shadow: 0 0 0 1px rgb(var(--shadow) / 0.08);
}

.sheet-word .sheet-page:focus-within {
  box-shadow:
    0 0 0 3px var(--indigo),
    0 1.4rem 2.6rem -1.5rem rgb(var(--shadow) / 0.45);
}

.sheet-caption {
  margin-top: 0.75rem;
  font-size: var(--step-small);
  color: var(--ink-soft);
}

.sheet-word .sheet-caption {
  color: var(--ink);
}

/* The page itself. Sizes follow the sheet's width, so it stays a page at any size. */
.doc {
  height: 100%;
  padding: 8.5cqi 8.5cqi 6cqi;
  font-family: var(--font-doc);
  font-size: 3.5cqi;
  line-height: 1.48;
  outline: none;
}

.sheet-pdf .doc {
  cursor: not-allowed;
  -webkit-user-select: none;
  user-select: none;
}

.doc p {
  margin: 0 0 0.85em;
}

.doc .doc-title {
  margin-bottom: 1em;
  font-size: 1.4em;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
}

.doc u {
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.16em;
}

.doc table {
  width: 100%;
  margin: 0.2em 0 1.05em;
  border-collapse: collapse;
}

.doc th,
.doc td {
  padding: 0.32em 0.5em;
  border: 0.09em solid currentColor;
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}

.doc th {
  font-weight: 700;
}

.doc ol {
  margin: 0 0 0.95em;
  padding-left: 1.7em;
}

.doc li {
  margin-bottom: 0.2em;
}

.doc .doc-sign {
  margin: 1.3em 0 0;
}

/* The edit that plays once: the amount is retyped, and the highlighter marks what changed. */
[data-edit] {
  white-space: nowrap;
}

[data-edit].has-caret::after {
  content: "";
  display: inline-block;
  width: 0.1em;
  height: 1.15em;
  margin-left: 0.06em;
  vertical-align: -0.2em;
  background: var(--sheet-indigo);
  animation: caret-blink 1.05s steps(1) infinite;
}

[data-edit].is-edited {
  border-radius: 0.12em;
  background: var(--highlight);
  box-shadow: 0 0 0 0.14em var(--highlight);
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

/* ---------- The three habits, struck out, and what Redraft does instead ---------- */

.promise-list {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
}

.promise {
  display: grid;
  gap: 0.9rem 2.5rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.6rem);
  border-top: 1px solid var(--rule);
}

@media (min-width: 50rem) {
  .promise {
    grid-template-columns: 13.5rem minmax(0, 1fr);
  }
}

.promise-fact {
  max-width: 24ch;
  font-size: var(--step-small);
  line-height: 1.45;
  color: var(--ink-soft);
}

.promise-fact strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.promise-old {
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.promise-old del {
  text-decoration-line: line-through;
  text-decoration-color: var(--struck);
  text-decoration-thickness: 0.11em;
}

.promise-new {
  margin-top: 0.55rem;
  font-size: var(--step-2);
  line-height: 1.22;
  letter-spacing: -0.028em;
}

.promise-new ins {
  padding-inline: 0.16em;
  margin-inline: -0.16em;
  background: linear-gradient(transparent 9%, var(--highlight) 9% 91%, transparent 91%);
  color: var(--on-highlight);
  text-decoration: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.promise-body {
  max-width: 56ch;
  margin-top: 1rem;
}

/* ---------- How it works: three phones, three steps ---------- */

.steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80%, 17rem);
  gap: 1.5rem;
  margin: clamp(2rem, 4vw, 3rem) -1.25rem 0;
  padding: 0 1.25rem 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1.25rem;
  list-style: none;
}

/* Each phone is sized from its column, so three fit side by side on a tablet too. */
.step {
  container-type: inline-size;
  scroll-snap-align: start;
}

@media (min-width: 44rem) {
  .steps {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3.5rem);
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}

.step-text {
  margin-top: 1.5rem;
}

.step-title {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-size: var(--step-1);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.step-number {
  flex: none;
  color: var(--indigo);
  font-variant-numeric: tabular-nums;
}

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

/* ---------- The phone, drawn here so it is sharp and translated ---------- */
/*
 * To show a real screenshot instead, replace the <div class="ui …"> inside .phone-screen with
 * <img class="phone-shot" src="/images/screens/….png" alt="…" width="1320" height="2868">.
 */

.phone {
  width: 16.5em;
  max-width: 100%;
  aspect-ratio: 100 / 205;
  padding: 0.55em;
  border-radius: 2.8em;
  background: #0d0c1a;
  box-shadow:
    inset 0 0 0 0.09em #3a3955,
    0 1.9em 3.2em -1.7em rgb(var(--shadow) / 0.55);
  font-size: min(1rem, 6.06cqi);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 2.3em;
  background: var(--app-bg);
  color: var(--app-label);
  font-family: var(--font-app);
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 50%;
  z-index: 2;
  width: 5.2em;
  height: 1.5em;
  margin-left: -2.6em;
  border-radius: 1em;
  background: #000000;
}

.phone-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ui {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 3.7em 1.2em 1.4em;
  font-size: 0.72em;
  line-height: 1.3;
}

/* Margins come from each part's own class: a rule on ".ui p" would outrank them. */
.ui p {
  text-wrap: wrap;
}

.ui-title {
  font-size: 2.3em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ui-subtitle {
  margin-top: 0.2em;
  color: var(--app-secondary);
}

.ui-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85em;
  margin-top: 1.25em;
  padding: 1.5em 1em 1.3em;
  border: 0.13em dashed color-mix(in srgb, var(--app-secondary) 55%, transparent);
  border-radius: 1.5em;
  text-align: center;
}

.ui-doc-icon {
  width: 2.9em;
  height: 3.5em;
  color: var(--app-tint);
}

.ui-button {
  display: block;
  width: 100%;
  padding: 0.85em 1em;
  border-radius: 999px;
  background: var(--highlight);
  color: var(--on-highlight);
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
}

.ui-button-secondary {
  background: var(--app-fill);
  color: var(--app-label);
}

.ui-button-quiet {
  background: transparent;
  color: var(--app-tint);
}

.ui-hint {
  color: var(--app-secondary);
  font-size: 0.93em;
}

.ui-section {
  margin-top: 1.25em;
  font-size: 1.3em;
  font-weight: 700;
}

.ui-list {
  margin: 0.55em 0 0;
  padding: 0;
  border-radius: 1.1em;
  background: var(--app-surface);
  list-style: none;
}

.ui-list li {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.7em 0.9em;
}

.ui-list li + li {
  border-top: 0.08em solid var(--app-fill);
}

.ui-list b,
.ui-file-row b {
  display: block;
  font-weight: 600;
}

.ui-list small,
.ui-file-row small {
  display: block;
  color: var(--app-secondary);
  font-size: 0.9em;
}

/* A small page with three lines of text on it. */
.ui-file {
  flex: none;
  width: 1.8em;
  height: 2.25em;
  border-radius: 0.3em;
  background:
    linear-gradient(var(--app-tint) 0 0) 0.36em 0.55em / 0.95em 0.16em no-repeat,
    linear-gradient(var(--app-tint) 0 0) 0.36em 1em / 1.08em 0.16em no-repeat,
    linear-gradient(var(--app-tint) 0 0) 0.36em 1.45em / 0.7em 0.16em no-repeat,
    color-mix(in srgb, var(--app-tint) 16%, var(--app-surface));
}

.ui-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin-top: auto;
  padding-top: 1em;
  color: var(--app-secondary);
  font-size: 0.86em;
}

.ui-footer svg {
  flex: none;
  width: 1.05em;
  height: 1.05em;
}

/* The second note sits right under the first. */
.ui-footer + .ui-footer {
  margin-top: 0.4em;
  padding-top: 0;
}

.ui-navtitle {
  font-size: 1.15em;
  font-weight: 600;
  text-align: center;
}

.ui-converting-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 1.1em;
}

.ui-file-row {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.85em 0.95em;
  border-radius: 1.1em;
  background: var(--app-surface);
}

.ui-progress {
  height: 0.55em;
  overflow: hidden;
  border-radius: 1em;
  background: var(--app-fill);
}

.ui-progress span {
  display: block;
  width: 55%;
  height: 100%;
  border-radius: inherit;
  background: var(--app-tint);
}

.ui-page {
  font-size: 1.7em;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.ui-stage {
  margin-top: -0.7em;
  color: var(--app-secondary);
  text-align: center;
}

.ui-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 0.9em;
  padding: 0.18em;
  border-radius: 0.75em;
  background: var(--app-fill);
  font-weight: 600;
  text-align: center;
}

.ui-segmented span {
  padding: 0.38em 0.5em;
  border-radius: 0.6em;
  color: var(--app-secondary);
}

.ui-segmented .is-on {
  background: var(--app-surface);
  color: var(--app-label);
  box-shadow: 0 0.06em 0.2em rgb(0 0 0 / 0.18);
}

/* The converted document, shown small: bars for the text, real lines for the table. */
.ui-preview {
  flex: 1;
  min-height: 0;
  margin-top: 0.9em;
  padding: 1.25em 1.2em;
  border-radius: 0.35em;
  background: var(--sheet);
  box-shadow: 0 0 0 0.08em rgb(0 0 0 / 0.08);
}

.mini-line {
  display: block;
  height: 0.32em;
  margin-bottom: 0.6em;
  border-radius: 0.2em;
  background: #c9c7d8;
}

.mini-title {
  width: 52%;
  height: 0.52em;
  margin: 0 auto 1em;
  background: var(--sheet-ink);
}

.mini-w90 {
  width: 90%;
}

.mini-w70 {
  width: 70%;
}

.mini-w80 {
  width: 80%;
}

.mini-w45 {
  width: 45%;
}

.mini-table {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  margin: 0.9em 0 1em;
  border-top: 0.09em solid var(--sheet-ink);
  border-left: 0.09em solid var(--sheet-ink);
}

.mini-table span {
  display: block;
  height: 1.5em;
  border-right: 0.09em solid var(--sheet-ink);
  border-bottom: 0.09em solid var(--sheet-ink);
  background: linear-gradient(#c9c7d8 0 0) 0.45em 50% / 55% 0.3em no-repeat;
}

.mini-table .is-marked {
  background:
    linear-gradient(var(--sheet-ink) 0 0) 0.45em 50% / 50% 0.3em no-repeat,
    var(--highlight);
}

.mini-blank {
  display: block;
  width: 60%;
  height: 0.9em;
  margin-top: 0.9em;
  border-bottom: 0.09em solid var(--sheet-ink);
}

.ui-note {
  margin-top: 0.9em;
  font-size: 0.95em;
  text-align: center;
}

.ui-note mark {
  padding: 0.1em 0.3em;
  border-radius: 0.2em;
  background: var(--highlight);
  color: var(--on-highlight);
}

.ui-actions {
  display: grid;
  gap: 0.55em;
  margin-top: 0.9em;
}

.ui-link {
  color: var(--app-tint);
  font-weight: 600;
  text-align: center;
}

/* ---------- What comes through ---------- */

.keeps {
  display: grid;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  border-bottom: 1px solid var(--rule);
  list-style: none;
}

@media (min-width: 52rem) {
  .keeps {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(2rem, 5vw, 4rem);
  }
}

.keep {
  display: grid;
  grid-template-columns: 8.75rem minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  padding-block: 1.05rem;
  border-top: 1px solid var(--rule);
}

@media (max-width: 23.99rem) {
  .keep {
    grid-template-columns: 6.75rem minmax(0, 1fr);
    gap: 0.85rem;
  }
}

.keep-name {
  font-weight: 600;
  line-height: 1.3;
}

.keep-detail {
  margin-top: 0.15rem;
  font-size: var(--step-small);
  line-height: 1.45;
  color: var(--ink-soft);
}

/* A scrap of a real document for each thing that is kept. */
.specimen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 4.4rem;
  padding: 0.6rem 0.7rem;
  overflow: hidden;
  border-radius: 0.25rem;
  background: var(--sheet);
  color: var(--sheet-ink);
  box-shadow: 0 0 0 1px rgb(var(--shadow) / 0.1);
  font-family: var(--font-doc);
  font-size: 0.76rem;
  line-height: 1.35;
}

.specimen p {
  text-wrap: wrap;
}

.specimen .specimen-heading {
  font-size: 1.2em;
  font-weight: 700;
}

.specimen ul,
.specimen ol {
  margin: 0;
  padding-left: 1.25em;
}

.specimen table {
  width: 100%;
  border-collapse: collapse;
}

.specimen td {
  padding: 0.12em 0.3em;
  border: 1px solid currentColor;
}

.specimen-footer {
  padding-top: 0.3em;
  border-top: 1px solid #c9c7d8;
  font-size: 0.92em;
  text-align: center;
}

.specimen-rule {
  display: block;
  height: 0.28em;
  margin-bottom: 0.45em;
  border-radius: 0.2em;
  background: #d6d4e2;
}

.specimen-picture {
  width: 100%;
  height: 3.1rem;
  border-radius: 0.15rem;
}

.specimen-scan {
  background: #efeee8;
  transform: rotate(-1.6deg);
}

.specimen-scan p {
  color: #4a4960;
  letter-spacing: 0.01em;
  filter: blur(0.25px);
}

.weaker {
  display: grid;
  gap: 1rem 3rem;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

@media (min-width: 52rem) {
  .weaker {
    grid-template-columns: 13.5rem minmax(0, 1fr);
  }
}

.weaker-title {
  font-size: var(--step-1);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.weaker-body {
  max-width: 58ch;
}

.plain-list {
  margin: 0.9rem 0;
  padding-left: 1.2rem;
}

.plain-list li {
  margin-top: 0.3rem;
  padding-left: 0.2rem;
}

.plain-list li::marker {
  color: var(--ink-soft);
}

/* ---------- Price ---------- */

/* Two sentences, one to a line while there's room. */
.price-title span {
  display: block;
}

.plans {
  display: grid;
  gap: 2.25rem 3rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 46rem) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  padding-top: 1.4rem;
  border-top: 3px solid var(--ink);
}

.plan-paid {
  border-top-color: var(--highlight);
}

.plan-amount {
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.plan-what {
  margin-top: 0.4rem;
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.015em;
}

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

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

.ticks li::before {
  content: "";
  position: absolute;
  top: 0.4em;
  left: 0.2rem;
  width: 0.85em;
  height: 0.45em;
  border-bottom: 0.14em solid var(--indigo);
  border-left: 0.14em solid var(--indigo);
  transform: rotate(-45deg);
}

.fine-print {
  max-width: 64ch;
  margin-top: 2rem;
  font-size: var(--step-small);
  color: var(--ink-soft);
}

/* ---------- How that compares ---------- */

.compare-table {
  width: 100%;
  max-width: 54rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  border-collapse: collapse;
  border-bottom: 1px solid var(--rule);
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem 1rem 0;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  border-top: 0;
  color: var(--ink-soft);
  font-size: var(--step-small);
  font-weight: 600;
}

.compare-table thead th:last-child {
  color: var(--ink);
}

.compare-table tbody th {
  width: 30%;
  font-weight: 600;
}

.compare-table tbody td:nth-child(2) {
  width: 37%;
  color: var(--ink-soft);
}

.compare-table tbody td:last-child {
  font-weight: 600;
}

@media (max-width: 38rem) {
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    width: auto;
  }

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

  .compare-table tr {
    padding-block: 1rem;
    border-top: 1px solid var(--rule);
  }

  .compare-table tbody th,
  .compare-table tbody td,
  .compare-table tbody td:nth-child(2) {
    width: auto;
    padding: 0.15rem 0;
    border: 0;
  }

  .compare-table td::before {
    content: attr(data-label) ": ";
    color: var(--ink-soft);
    font-weight: 400;
  }
}

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

.faq-list {
  max-width: 46rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--rule);
}

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

.faq-list summary {
  position: relative;
  padding: 1.1rem 2.75rem 1.1rem 0;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0.35rem;
  color: var(--indigo);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-52%);
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list details p {
  max-width: 60ch;
  padding: 0 2.75rem 1.3rem 0;
}

/* ---------- The last call ---------- */

.closing {
  padding-block: clamp(3.25rem, 8vw, 6rem);
  background: var(--band);
  color: var(--band-ink);
}

.closing-title {
  max-width: 15ch;
  font-size: var(--step-3);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.closing-text {
  max-width: 44ch;
  margin-top: 1rem;
  font-size: 1.18rem;
  color: var(--band-soft);
}

.closing-actions {
  margin-top: 1.9rem;
}

.closing .cta-pending {
  background: rgb(255 255 255 / 0.16);
  color: var(--band-ink);
}

.closing :focus-visible {
  outline-color: var(--highlight);
}

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

.site-footer {
  padding-block: 2.25rem 3rem;
  font-size: var(--step-small);
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

.footer-nav a {
  padding-block: 0.25rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.trademarks {
  max-width: 72ch;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ---------- Privacy, support and the page that isn't there ---------- */

.legal {
  max-width: 44rem;
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem);
}

.legal h1 {
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.legal-date {
  margin-top: 0.6rem;
  font-size: var(--step-small);
  color: var(--ink-soft);
}

.legal h2 {
  margin-top: 2.6rem;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal h3 {
  margin-top: 1.7rem;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
}

.legal p {
  margin-top: 0.9rem;
}

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

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

.legal li {
  margin-top: 0.45rem;
  padding-left: 0.2rem;
}

.legal-lead {
  font-size: 1.15rem;
  line-height: 1.5;
}

.missing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.9rem;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
