@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-wght.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ink: #181715;
  --ink-halo: #262523;
  --cream: #fbf7ea;
  --gold: #f3af40;
  --sage: #9faa94;
  --sage-deep: #6c7863;
  --white: #ffffff;
  --quiet: rgb(24 23 21 / 0.74);
  --quiet-on-ink: rgb(251 247 234 / 0.74);
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --edge: 3px;
  --page: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ink) var(--white);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 1.0625rem/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--gold);
}

::selection { background: var(--gold); color: var(--ink); }

h1, h2, h3, .brand, .button, summary, .price strong {
  font-family: var(--rounded);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 1.4rem + 5vw, 4.75rem); font-weight: 800; line-height: 1.04; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.4vw, 2.9rem); font-weight: 800; line-height: 1.1; margin: 0; text-wrap: balance; }
h3 { font-size: 1.375rem; font-weight: 700; line-height: 1.2; margin: 0; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--gold); }

:focus-visible { outline: var(--edge) solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.ink :focus-visible { outline-color: var(--cream); }

.quiet { color: var(--quiet); font-size: 0.9375rem; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--gold); border: var(--edge) solid var(--ink); border-radius: 999px;
  padding: 0.6rem 1.1rem; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Header: a floating cream capsule, like the bottom navigation of the app. */
.top {
  position: sticky; top: 0.75rem; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: min(var(--page), 100% - 2 * var(--gutter)); margin: 0.75rem auto 0;
  padding: 0.4rem 0.5rem 0.4rem 0.75rem;
  background: var(--cream); border: var(--edge) solid var(--ink); border-radius: 999px;
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.3rem; text-decoration: none; border-radius: 999px; }
.top nav { display: flex; align-items: center; gap: 0.15rem; }
.top nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.9rem;
  font-family: var(--rounded); font-weight: 700; font-size: 0.975rem; text-decoration: none;
  border: 2.5px solid transparent; border-radius: 999px;
}
.top nav a:hover { border-color: var(--ink); }
.top nav a[aria-current="page"] { background: var(--gold); border-color: var(--ink); }
.top nav .wide { display: none; }
@media (min-width: 56rem) { .top nav .wide { display: inline-flex; } }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 0 1.75rem;
  background: var(--gold); color: var(--ink);
  border: var(--edge) solid var(--ink); border-radius: 22px;
  font-weight: 800; font-size: 1.2rem; text-decoration: none;
  transition: transform 160ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }

.plate { background: var(--cream); border: var(--edge) solid var(--ink); border-radius: 24px; padding: 1.5rem; }

/* A capture of the app in a sticker outline. */
.phone {
  border: var(--edge) solid var(--ink); border-radius: 13% / 6%;
  overflow: hidden; background: var(--white);
}
.phone.ink-edge { background: var(--ink); }
.shot { width: 100%; }

/* Hero */
.hero {
  width: min(var(--page), 100% - 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem);
  display: grid; gap: 3rem; align-items: center;
}
.hero .lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem); max-width: 34rem; margin-top: 1.5rem; color: var(--quiet); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 2rem; }
.actions .quiet { max-width: 17rem; }
.facts {
  list-style: none; padding: 0; margin: 2.25rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.facts li {
  font-family: var(--rounded); font-weight: 700; font-size: 0.95rem;
  padding: 0.35rem 0.85rem; border-radius: 999px;
  background: var(--sage); border: 2.5px solid var(--ink);
}
.hero-phones { position: relative; width: min(100%, 27rem); margin: 0 auto; aspect-ratio: 1 / 1.33; }
.hero-phones .phone { position: absolute; width: 58%; }
.hero-phones .back { right: 0; top: 0; transform: rotate(5deg); }
.hero-phones .front { left: 0; bottom: 0; transform: rotate(-4deg); }
@media (min-width: 56rem) {
  .hero { grid-template-columns: 1.1fr 0.9fr; gap: 2rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-phones .phone { animation: settle 700ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
  .hero-phones .front { animation-delay: 120ms; }
  @keyframes settle { from { translate: 0 1.5rem; rotate: 0deg; } }
}

/* Sections */
.band { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.band > * { width: min(var(--page), 100% - 2 * var(--gutter)); margin-inline: auto; }
.intro h2 { max-width: 22ch; }
.intro p { max-width: 40rem; margin-top: 1rem; font-size: 1.125rem; color: var(--quiet); }
.band > .aside { margin-top: 2.5rem; max-width: 44rem; margin-left: max(var(--gutter), (100% - var(--page)) / 2); color: var(--quiet); }
.aside strong { color: var(--ink); }

.story { margin-top: clamp(3rem, 6vw, 4.5rem); }
.story-copy p { margin-top: 0.6rem; color: var(--quiet); }

/* A row of captures. It scrolls sideways on a narrow page and wraps beside its text on a wide one. */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 17.5rem);
  gap: clamp(1rem, 3vw, 2rem);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  margin-top: 2.25rem; padding: 4px var(--gutter) 1rem; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.strip figure { margin: 0; scroll-snap-align: start; }
.strip figcaption { margin-top: 0.9rem; font-size: 0.975rem; color: var(--quiet); }
.strip figcaption strong { display: block; color: var(--ink); font-family: var(--rounded); font-size: 1.05rem; }
.band > .split { width: 100%; }
.split > .intro, .split > .story-copy { width: min(var(--page), 100% - 2 * var(--gutter)); margin-inline: auto; }
.story-copy > p { max-width: 40rem; }
@media (min-width: 64rem) {
  .band > .split {
    width: min(var(--page), 100% - 2 * var(--gutter));
    display: grid; grid-template-columns: 20rem 1fr; gap: 3.5rem; align-items: start;
  }
  .split > .intro, .split > .story-copy { width: auto; margin: 0; position: sticky; top: 6.5rem; }
  .split > .intro h2 { font-size: 2.3rem; }
  .split > .strip {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.75rem;
    overflow: visible; margin-top: 0; padding: 0;
  }
}

/* The ink look, for the questions. */
.ink { background: var(--ink); color: var(--cream); }
.ink .intro p { color: var(--quiet-on-ink); }
.ink ::selection { background: var(--cream); color: var(--ink); }

/* The letter of the maker */
.band > .letter { margin-top: 2rem; max-width: 46rem; margin-left: max(var(--gutter), (100% - var(--page)) / 2); margin-right: var(--gutter); padding: clamp(1.5rem, 4vw, 2.5rem); }
.letter p { font-size: 1.125rem; max-width: 38rem; }
.letter p + p { margin-top: 1rem; }
.letter .sig { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.75rem; font-family: var(--rounded); font-weight: 700; }
.letter .sig img { width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 2.5px solid var(--ink); }

/* Pricing */
.plans { display: grid; gap: 1.5rem; margin-top: 2.5rem; align-items: start; }
@media (min-width: 46rem) { .plans { grid-template-columns: 1fr 1fr; } .plan-shot { grid-column: 1 / -1; } }
@media (min-width: 64rem) { .plans { grid-template-columns: 1fr 1fr 16rem; } .plan-shot { grid-column: auto; } }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.plan li { padding: 0.7rem 0; border-top: 1.5px solid var(--ink); }
.plan li:first-child { border-top: 0; }
.price { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1.5px solid var(--ink); }
.price strong { font-size: 1.3rem; font-weight: 800; }
.plan .quiet { margin-top: 1rem; }
.pro {
  display: inline-block; vertical-align: 0.12em; margin-left: 0.15rem; padding: 0 0.6rem;
  background: var(--gold); border: 2.5px solid var(--ink); border-radius: 999px; font-size: 0.85em;
}
.plan-shot { margin: 0; width: min(100%, 16rem); justify-self: center; }
.plan-shot figcaption { margin-top: 0.75rem; font-size: 0.9rem; color: var(--quiet); }

/* Questions */
.band > .faq { margin-top: 2rem; max-width: 46rem; margin-left: max(var(--gutter), (100% - var(--page)) / 2); }
.faq details { border-top: 1.5px solid var(--ink); }
.faq details:last-child { border-bottom: 1.5px solid var(--ink); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 60px; padding: 0.6rem 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  border: 2.5px solid var(--ink);
  background-color: var(--sage);
  background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink));
  background-size: 0.8rem 2.5px, 2.5px 0.8rem; background-position: center; background-repeat: no-repeat;
}
.faq details[open] summary::after { background-size: 0.8rem 2.5px, 0 0; background-color: var(--gold); }
.faq summary h3 { font: inherit; margin: 0; }
.faq details p { padding: 0 3rem 1.25rem 0; color: var(--quiet); max-width: 40rem; }
.ink .faq details { border-color: var(--quiet-on-ink); }
.ink .faq summary::after { border-color: var(--cream); }
.ink .faq details p { color: var(--quiet-on-ink); }

/* Support, legal, and other text pages */
.plain, .prose {
  width: min(46rem, 100% - 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 0 0;
}
.plain:last-of-type, .prose { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.plain h1, .prose h1 { font-size: clamp(2.25rem, 1.5rem + 3.5vw, 3.5rem); }
.plain h2, .prose h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.plain > h2:first-child { margin-top: 0; }
.plain h3 { margin-top: 2rem; }
.plain p, .prose p, .prose ul { margin-top: 0.85rem; }
.plain .lead { font-size: 1.25rem; margin-top: 1.25rem; }
.plain ul, .prose ul { padding-left: 1.25rem; }
.plain li, .prose li { margin-top: 0.5rem; }
.plain li::marker, .prose li::marker { color: var(--sage-deep); }
.founder { display: grid; gap: 1.25rem; margin-top: 2rem; align-items: center; }
.founder img { width: 6.5rem; height: 6.5rem; border-radius: 50%; border: var(--edge) solid var(--ink); }
.founder .lead { margin-top: 0; }
@media (min-width: 36rem) { .founder { grid-template-columns: auto 1fr; gap: 1.75rem; } }
.note { margin-top: 2rem; }
.note h2 { margin-top: 0; font-size: 1.3rem; }
.draft-note { background: var(--cream); border: var(--edge) solid var(--ink); border-radius: 18px; padding: 0.9rem 1.1rem; margin-top: 1.5rem; }
.open-point { background: var(--gold); color: var(--ink); padding: 0.05em 0.3em; border-radius: 6px; }
.prose a { overflow-wrap: anywhere; }

/* Footer */
.foot { border-top: var(--edge) solid var(--ink); }
.foot-inner { width: min(var(--page), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 2.5rem 0 3rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-top: 1.25rem; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.foot p { margin-top: 1rem; font-size: 0.9rem; color: var(--quiet); max-width: 46rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
@media (prefers-contrast: more) {
  :root { --quiet: var(--ink); --quiet-on-ink: var(--cream); }
}
