/*
 * Francroyable website. Colours from the app (src/constants/theme.ts), one
 * system font, four type sizes, two weights, an 8-point grid (ADR-0021).
 */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-muted: #efeae2;
  --border: #e7e1d8;
  --border-strong: #d9d2c7;
  --ink: #1b2333;
  --ink-2: #4a5163;
  --ink-3: #5f6573;
  --accent: #2f5bea;
  --accent-ink: #2449c9;
  --accent-soft: #eaf0fd;
  --on-accent: #ffffff;
  --magic: #6d3fe0;
  --magic-soft: #f1ecfd;
  --success: #157a53;
  --success-soft: #e6f4ee;
  --danger: #c4282d;
  --danger-soft: #fdecec;
  --shadow: 0 1px 2px rgba(27, 35, 51, 0.06), 0 8px 24px rgba(27, 35, 51, 0.08);
  --phone-edge: #1b2333;

  --fs-meta: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-large: 1.375rem;
  --fs-display: clamp(2rem, 1.2rem + 4vw, 3.5rem);
  --fw-regular: 400;
  --fw-bold: 650;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;

  --r-input: 16px;
  --r-card: 24px;
  --r-pill: 999px;

  --wrap: 1120px;
  --measure: 40rem;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161b;
    --surface: #1d2027;
    --surface-muted: #262a33;
    --border: #2e323c;
    --border-strong: #3a3f4b;
    --ink: #f2efea;
    --ink-2: #c9c5bf;
    --ink-3: #a19d97;
    --accent: #6e8bff;
    --accent-ink: #8ea5ff;
    --accent-soft: rgba(110, 139, 255, 0.16);
    --on-accent: #0d1430;
    --magic: #a58bfa;
    --magic-soft: rgba(165, 139, 250, 0.16);
    --success: #3ccb91;
    --success-soft: rgba(60, 203, 145, 0.16);
    --danger: #ff6369;
    --danger-soft: rgba(255, 99, 105, 0.16);
    --shadow: none;
    --phone-edge: #3a3f4b;
  }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--s5);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: var(--fw-bold);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--fs-large);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--fs-body);
  line-height: 1.4;
}

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

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

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

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

strong {
  font-weight: var(--fw-bold);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: max(var(--s4), env(safe-area-inset-left));
}

@media (min-width: 640px) {
  .wrap {
    padding-inline: var(--s6);
  }
}

.skip {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 10;
  padding: var(--s2) var(--s4);
  background: var(--surface);
  border-radius: var(--r-pill);
}

.skip:focus {
  top: var(--s2);
}

.lede {
  font-size: var(--fs-large);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: var(--measure);
}

.meta,
.small {
  font-size: var(--fs-meta);
  color: var(--ink-3);
}

.stack-xl > * + * {
  margin-top: var(--s8);
}

/* Header */

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  color: var(--ink);
  text-decoration: none;
  font-weight: var(--fw-bold);
  font-size: var(--fs-body);
  letter-spacing: -0.01em;
  min-height: 44px;
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-header nav {
  display: flex;
  gap: var(--s1);
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--s3);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--fs-meta);
  font-weight: var(--fw-bold);
}

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

.site-header nav a[aria-current='page'] {
  color: var(--accent-ink);
  background: var(--accent-soft);
}

/* Footer */

.site-footer {
  margin-top: var(--s9);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer__inner {
  display: grid;
  gap: var(--s6);
  padding-block: var(--s7) var(--s6);
}

.site-footer__brand p {
  margin-block: var(--s2) var(--s4);
  color: var(--ink-2);
}

.site-footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
}

.site-footer__links h2 {
  font-size: var(--fs-meta);
  color: var(--ink-3);
  margin-bottom: var(--s2);
}

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

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  text-decoration: none;
}

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

.site-footer__legal {
  font-size: var(--fs-meta);
  color: var(--ink-3);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
}

@media (min-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr;
  }

  .site-footer__legal {
    grid-column: 1 / -1;
  }
}

/* Buttons and badge */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 var(--s5);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: var(--fw-bold);
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.badge {
  display: inline-block;
  border-radius: 10px;
}

.badge img {
  width: 150px;
  height: 50px;
}

/* Page hero for long pages */

.doc-hero {
  padding-block: var(--s7) var(--s7);
}

.doc-hero h1 {
  max-width: 18ch;
}

.doc-hero .lede {
  margin-top: var(--s4);
}

.doc-hero .meta {
  margin-top: var(--s4);
}

@media (min-width: 800px) {
  .doc-hero {
    padding-block: var(--s8);
  }
}

/* Long pages: an article with an "On this page" list beside it on wide screens */

.doc {
  display: grid;
  gap: var(--s6);
}

.doc__main {
  min-width: 0;
  max-width: var(--measure);
}

.toc {
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--s5);
}

.toc h2 {
  font-size: var(--fs-meta);
  color: var(--ink-3);
  margin-bottom: var(--s2);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: var(--s3);
  padding-block: var(--s1);
  min-height: 36px;
  align-items: center;
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--fs-meta);
}

.toc a::before {
  content: counter(toc);
  min-width: 1.5em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.toc a:hover {
  color: var(--accent-ink);
}

@media (min-width: 960px) {
  .doc {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: var(--s8);
    align-items: start;
  }

  .toc {
    position: sticky;
    top: var(--s5);
    max-height: calc(100vh - var(--s6));
    overflow: auto;
  }
}

/* Prose (Markdown) */

.prose > * + * {
  margin-top: var(--s4);
}

.prose h2 {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin-top: var(--s5);
}

.prose h2 + *,
.prose h3 + * {
  margin-top: var(--s3);
}

.prose .anchor {
  color: inherit;
  text-decoration: none;
}

.prose .anchor:hover {
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose strong {
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: var(--s2);
}

.prose li::marker {
  color: var(--ink-3);
}

.prose table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-meta);
  border-radius: var(--r-input);
  border: 1px solid var(--border);
  background: var(--surface);
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border);
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose th {
  color: var(--ink);
  background: var(--surface-muted);
}

.prose td:first-child {
  color: var(--ink);
  font-weight: var(--fw-bold);
  min-width: 9rem;
}

.prose code {
  font-size: 0.92em;
  background: var(--surface-muted);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.prose img {
  border-radius: var(--r-input);
}

.note,
.panel {
  margin-top: var(--s6);
  padding: var(--s5);
  border-radius: var(--r-card);
  background: var(--accent-soft);
}

.note h2 {
  font-size: var(--fs-body);
  margin-bottom: var(--s2);
}

.note p {
  color: var(--ink-2);
}

.panel {
  margin-top: 0;
  background: var(--surface);
  border: 1px solid var(--border);
}

.panel p + .button {
  margin-top: var(--s5);
}

/* A heading column beside its content on wide screens */

.split {
  display: grid;
  gap: var(--s5);
}

.split > div:first-child p {
  margin-top: var(--s2);
  color: var(--ink-2);
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--s8);
  }
}

/* Lists with ticks */

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

.ticks li {
  position: relative;
  padding-left: var(--s6);
  color: var(--ink-2);
}

.ticks li + li {
  margin-top: var(--s3);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%231F9D6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

.ticks--muted li::before {
  background: var(--surface-muted)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.5 9h7' fill='none' stroke='%235F6573' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

/* Support */

.contact {
  display: grid;
  gap: var(--s6);
  padding: var(--s5);
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact h2 + p {
  margin-block: var(--s2) var(--s5);
  color: var(--ink-2);
}

.contact__include h3 {
  margin-bottom: var(--s4);
}

@media (min-width: 800px) {
  .contact {
    grid-template-columns: 1fr 1fr;
    padding: var(--s7);
  }

  .contact__include {
    border-left: 1px solid var(--border);
    padding-left: var(--s7);
  }
}

.tiles {
  display: grid;
  gap: var(--s4);
  margin-top: var(--s5);
}

@media (min-width: 800px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tile {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s5);
  border-radius: var(--r-card);
  background: var(--surface-muted);
}

.tile p {
  color: var(--ink-2);
  flex: 1;
}

.tile a {
  font-size: var(--fs-meta);
  font-weight: var(--fw-bold);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.more {
  display: grid;
  gap: var(--s4);
}

@media (min-width: 800px) {
  .more {
    grid-template-columns: 1fr 1fr;
  }
}

.more__link {
  display: grid;
  gap: var(--s1);
  padding: var(--s5);
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
}

.more__link span {
  color: var(--ink-2);
  font-size: var(--fs-meta);
}

.more__link:hover {
  border-color: var(--accent);
}

/* FAQ */

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

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 64px;
  padding-block: var(--s3);
  cursor: pointer;
  font-weight: var(--fw-bold);
  list-style: none;
}

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

.faq summary::after {
  content: '';
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-muted)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 10v12M10 16h12' fill='none' stroke='%235F6573' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 32px no-repeat;
}

.faq details[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M10 16h12' fill='none' stroke='%235F6573' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.faq__answer {
  padding-bottom: var(--s5);
  color: var(--ink-2);
  max-width: var(--measure);
}

/* Delete account */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: var(--s3);
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: var(--s4);
  padding: var(--s4);
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--border);
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: var(--fw-bold);
}

.steps span {
  color: var(--ink-2);
  font-size: var(--fs-meta);
}

.compare h2 {
  margin-bottom: var(--s5);
}

.compare__cols {
  display: grid;
  gap: var(--s4);
}

@media (min-width: 800px) {
  .compare__cols {
    grid-template-columns: 1fr 1fr;
  }
}

.compare__col {
  padding: var(--s5);
  border-radius: var(--r-card);
  background: var(--surface-muted);
}

.compare__col--gone {
  background: var(--surface);
  border: 1px solid var(--border);
}

.compare__col h3 {
  margin-bottom: var(--s4);
}

.compare .small {
  margin-top: var(--s4);
  max-width: var(--measure);
}

/* The flashcard, the site's motif: the app's fill-the-gap card */

.flashcard {
  position: relative;
  padding: var(--s5);
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 400px;
}

.tag {
  display: inline-block;
  padding: var(--s1) var(--s3);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: var(--fs-meta);
  font-weight: var(--fw-bold);
}

.flashcard__sentence {
  margin-top: var(--s4);
  font-size: var(--fs-large);
  line-height: 1.5;
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
}

.flashcard__hint {
  margin-top: var(--s2);
  color: var(--ink-3);
  font-size: var(--fs-meta);
}

.gap {
  display: inline-block;
  min-width: 4.5em;
  border-bottom: 3px solid var(--accent);
  color: var(--accent-ink);
  text-align: center;
  line-height: 1.2;
}

/* 404 */

.not-found {
  display: grid;
  gap: var(--s7);
  padding-block: var(--s8);
  align-items: center;
}

.not-found .lede {
  margin-top: var(--s4);
}

.flashcard--still {
  transform: rotate(-2deg);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin: var(--s5) 0 0;
  padding: 0;
  list-style: none;
}

.inline-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--s4);
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: var(--fw-bold);
}

@media (min-width: 800px) {
  .not-found {
    grid-template-columns: 1fr 1fr;
    padding-block: var(--s9);
  }

  .not-found > div:last-child {
    order: -1;
  }
}

.panel .button + .small {
  margin-top: var(--s3);
}

/* Home: sections */

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

.section__title {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 20ch;
  margin-bottom: var(--s6);
}

@media (min-width: 800px) {
  .section {
    padding-block: var(--s9);
  }
}

/* Home: hero */

.hero {
  padding-block: var(--s6) var(--s7);
}

.hero__inner {
  display: grid;
  gap: var(--s7);
  align-items: center;
}

.hero h1 {
  max-width: 12ch;
}

.hero .lede {
  margin-top: var(--s5);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s4);
  margin-top: var(--s6);
}

@media (min-width: 900px) {
  .hero {
    padding-block: var(--s8) var(--s9);
  }

  .hero__inner {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--s8);
  }
}

/* Home: the answerable flashcard (no JavaScript: radio inputs and :has) */

.quiz {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
}

.quiz {
  isolation: isolate;
}

.quiz__card::before {
  /* The second card of the stack, as in the app icon. */
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: var(--r-card);
  background: var(--accent-soft);
  transform: rotate(-4deg) translate(6px, 4px);
}

.quiz__hint {
  margin-top: var(--s3);
  font-size: var(--fs-meta);
  color: var(--ink-3);
}

.quiz__hint summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-ink);
  font-weight: var(--fw-bold);
  cursor: pointer;
  list-style: none;
}

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

.quiz__hint[open] summary {
  display: none;
}

.quiz__card {
  position: relative;
  padding: var(--s5);
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.gap {
  position: relative;
}

.gap__answer {
  display: none;
}

.quiz:has([data-right]:checked) .gap__blank {
  display: none;
}

.quiz:has([data-right]:checked) .gap__answer {
  display: inline;
}

.quiz:has([data-right]:checked) .gap {
  color: var(--success);
  border-color: var(--success);
}

.quiz .gap__blank {
  color: transparent;
}

.quiz__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
  margin: var(--s6) 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.quiz__options legend {
  margin-bottom: var(--s2);
  padding: 0;
  font-size: var(--fs-meta);
  font-weight: var(--fw-bold);
  color: var(--ink-3);
}

.quiz__options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz__options label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding-inline: var(--s3);
  border-radius: var(--r-input);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-bottom-width: 3px;
  font-size: var(--fs-large);
  font-weight: var(--fw-bold);
  cursor: pointer;
  user-select: none;
}

.quiz__options label:hover {
  border-color: var(--accent);
}

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

.quiz__options input:checked + label.is-right {
  background: var(--success-soft);
  border-color: var(--success);
  color: var(--success);
}

.quiz__options input:checked + label.is-wrong {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
}

@media (prefers-reduced-motion: no-preference) {
  .quiz__options input:checked + label.is-wrong {
    animation: shake 0.3s;
  }

  .quiz:has([data-right]:checked) .quiz__card {
    animation: pop 0.35s ease-out;
  }
}

@keyframes shake {
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

@keyframes pop {
  50% {
    transform: scale(1.03) rotate(-0.5deg);
  }
}

.quiz__feedback {
  display: none;
  margin-top: var(--s3);
  padding: var(--s3) var(--s4);
  border-radius: var(--r-input);
  font-size: var(--fs-meta);
}

.quiz__feedback--right {
  background: var(--success-soft);
  color: var(--ink);
}

.quiz__feedback--wrong {
  background: var(--danger-soft);
  color: var(--ink);
}

.quiz:has([data-right]:checked) .quiz__feedback--right,
.quiz:has(input:not([data-right]):checked) .quiz__feedback--wrong {
  display: block;
}

/* Home: phone frames */

.phone {
  margin: 0;
  width: min(100%, 300px);
  margin-inline: auto;
  padding: 8px;
  border-radius: 48px;
  background: var(--phone-edge);
  box-shadow: var(--shadow);
}

.phone img {
  width: 100%;
  border-radius: 40px;
  background: var(--bg);
}

/* Home: how it works */

.how {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s7);
  counter-reset: how;
}

.how__step {
  counter-increment: how;
  display: grid;
  gap: var(--s3);
  align-content: start;
}

.how__visual {
  display: grid;
  place-items: end center;
  height: 420px;
  overflow: hidden;
  padding-top: var(--s5);
  border-radius: var(--r-card);
  background: var(--surface-muted);
  margin-bottom: var(--s3);
}

.how__visual .phone {
  width: 260px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding-bottom: 0;
  box-shadow: none;
  align-self: end;
  height: 396px;
  overflow: hidden;
}

.how__visual .phone img {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.how__step h3 {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--fs-large);
}

.how__step h3::before {
  content: counter(how);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--fs-meta);
}

.how__step > p {
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .how {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s5);
  }
}

.heard {
  align-self: center;
  display: grid;
  gap: var(--s3);
  width: 100%;
  padding: var(--s5);
}

.heard__bubble {
  justify-self: start;
  max-width: 85%;
  padding: var(--s3) var(--s4);
  border-radius: 20px 20px 20px 6px;
  background: var(--surface);
  font-size: var(--fs-large);
  font-weight: var(--fw-bold);
  box-shadow: var(--shadow);
}

.heard__bubble--me {
  justify-self: end;
  border-radius: 20px 20px 6px 20px;
  background: var(--accent);
  color: var(--on-accent);
}

/* Home: the magic wand */

.section--wand {
  background: var(--magic-soft);
}

.wand {
  display: grid;
  gap: var(--s5);
}

.wand__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--magic);
  color: #ffffff;
}

.wand h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 16ch;
}

.wand .lede {
  margin-top: var(--s4);
}

.wand__parts {
  margin: 0;
  display: grid;
  gap: var(--s2);
}

.wand__parts > div {
  padding: var(--s4) var(--s5);
  border-radius: var(--r-input);
  background: var(--surface);
}

.wand__parts dt {
  font-size: var(--fs-meta);
  font-weight: var(--fw-bold);
  color: var(--magic);
}

.wand__parts dd {
  margin: var(--s1) 0 0;
}

.gap--inline {
  min-width: 0;
  padding-inline: 0.15em;
  border-bottom-width: 2px;
  font-weight: var(--fw-bold);
}

@media (min-width: 900px) {
  .wand {
    grid-template-columns: 64px 1fr 1fr;
    gap: var(--s6);
    align-items: start;
  }
}

/* Home: features with a screenshot */

.feature__inner {
  display: grid;
  gap: var(--s6);
  align-items: center;
}

.feature__copy h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 16ch;
  margin-bottom: var(--s4);
}

.feature__copy p {
  color: var(--ink-2);
  max-width: 34rem;
}

.feature__copy p + p {
  margin-top: var(--s3);
}

.feature__copy--magic h2 {
  color: var(--magic);
}

.feature__shot {
  padding-block: var(--s5);
  border-radius: 32px;
  background: var(--surface-muted);
}

@media (min-width: 900px) {
  .feature__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--s8);
  }

  .feature--flip .feature__shot {
    order: -1;
  }

  .feature__shot {
    padding-block: var(--s7);
  }
}

/* Home: the smaller features */

.extras {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s5) var(--s6);
}

.extras li {
  padding-top: var(--s4);
  border-top: 2px solid var(--ink);
}

.extras p {
  margin-top: var(--s1);
  color: var(--ink-2);
}

@media (min-width: 640px) {
  .extras {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .extras {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Home: pricing */

.pricing {
  display: grid;
  gap: var(--s4);
}

.price {
  padding: var(--s5);
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--border);
}

.price h3 {
  font-size: var(--fs-large);
  margin-bottom: var(--s4);
}

.price p {
  color: var(--ink-2);
}

.price--free {
  background: var(--accent-soft);
  border-color: transparent;
}

.bundles {
  list-style: none;
  margin: var(--s5) 0 var(--s3);
  padding: 0;
  display: grid;
  gap: var(--s2);
}

.bundles li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s3) var(--s4);
  border-radius: var(--r-input);
  background: var(--surface-muted);
}

.bundles strong {
  font-size: var(--fs-large);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 800px) {
  .pricing {
    grid-template-columns: 1fr 1fr;
  }

  .price {
    padding: var(--s7);
  }
}

/* Home: privacy promise and closing */

.promise {
  display: grid;
  gap: var(--s4);
  justify-items: start;
}

.promise h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.promise p {
  max-width: var(--measure);
  color: var(--ink-2);
  font-size: var(--fs-large);
  line-height: 1.45;
}

.promise a {
  font-weight: var(--fw-bold);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.closing__inner {
  display: grid;
  gap: var(--s5);
  justify-items: start;
  padding: var(--s7) var(--s5);
  border-radius: 32px;
  background: var(--accent);
  color: var(--on-accent);
}

.closing h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 18ch;
}

@media (min-width: 800px) {
  .closing__inner {
    padding: var(--s8);
  }
}

.closing + * {
  margin-top: 0;
}

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

/* Guide: screenshots between paragraphs */

.prose .guide-shot {
  margin-block: var(--s6);
  padding-block: var(--s5);
  border-radius: var(--r-card);
  background: var(--surface-muted);
}

.prose .guide-shot .phone {
  width: min(100%, 260px);
}

.prose blockquote {
  margin-inline: 0;
  padding: var(--s4) var(--s5);
  border-radius: var(--r-input);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: var(--fs-large);
  font-weight: var(--fw-bold);
}

.prose blockquote p {
  color: var(--ink);
}
