/* pantryassistant.app: one stylesheet for every page. Phone first; light and dark follow the
   device. Colors come from packages/tokens/src/palette.ts (the sage palette, ADR 0013); type
   from packages/tokens/src/type.ts. Fonts are self-hosted (site/fonts/, SIL OFL). */

@font-face {
  font-family: 'Young Serif';
  src: url('/fonts/young-serif-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/fonts/atkinson-hyperlegible-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/fonts/atkinson-hyperlegible-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette.ts: background, card, foreground, muted, border, primary, primary-foreground */
  --background: #eef1ea;
  --card: #ffffff;
  --foreground: #1f2620;
  --muted: #646d62;
  --border: #d9dfd3;
  --primary: #2f6b4f;
  --primary-foreground: #ffffff;
  /* palette.ts: reason-bg / reason-fg (the design's "highlight") */
  --highlight: #e3eee5;
  --highlight-fg: #23573f;
  /* palette.ts: expiring (the design's "warm") */
  --warm: #c9472e;
  /* palette.ts: missing-bg / missing-fg (the design's "note") */
  --note: #fbefd6;
  --note-fg: #7e5300;
  /* The dusk sun on the Plus card: palette.ts missing-fg (dark), the icon's sun */
  --sun: #f2c66b;
  /* The phone frame: palette.ts shadow (light). Shadows: palette.ts shadow */
  --frame: #1f2620;
  --shadow: 31 38 32;
  /* The dusk sun behind the hero phone and the closing card */
  --sun-soft: var(--note);

  --display: 'Young Serif', Georgia, serif;
  --body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 20px;
  /* The reading column of a text page: about 70 characters of body text. */
  --measure: 42rem;
  /* The page width the header, Home and every text page share. */
  --wrap: 72rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #121512;
    --card: #1c201c;
    --foreground: #eef2ec;
    --muted: #9aa396;
    --border: #2e352e;
    --primary: #6fbf94;
    --primary-foreground: #0d1a12;
    --highlight: #1c3126;
    --highlight-fg: #a6dcbd;
    --warm: #f07a5e;
    --note: #3a2d12;
    --note-fg: #f2c66b;
    /* palette.ts border (dark): a lifted frame, so the phone keeps an edge on the dark page */
    --frame: #2e352e;
    --shadow: 0 0 0;
    --sun-soft: color-mix(in oklab, var(--sun) 24%, var(--highlight));
  }
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 17px/1.6 var(--body);
  overflow-wrap: break-word;
}

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

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

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

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

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

.wrap,
.doc {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  background: var(--card);
  border-radius: 999px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--foreground);
  text-decoration: none;
}

.brand img,
.footer-brand img,
.closing-icon {
  border-radius: 22%;
}

.brand span {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  display: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link[aria-current='page'] {
  color: var(--foreground);
}

@media (min-width: 640px) {
  .nav-link {
    display: inline;
  }
}

.download-pill {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: filter 0.2s;
}

.download-pill:hover {
  filter: brightness(1.08);
}

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

.hero {
  display: grid;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 64px;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lede {
  text-wrap: pretty;
  margin-top: 1.25rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.lede p {
  margin: 0;
}

.define {
  text-wrap: pretty;
  margin: 1rem 0 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.start-free {
  margin: 2rem 0 0;
  color: var(--foreground);
  font-weight: 700;
  font-size: 15px;
}

.hero .store-buttons {
  margin-top: 0.75rem;
}

.hero .invite {
  margin-top: 0.75rem;
}

.invite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.invite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  padding: 0 1.5rem;
  border-radius: 1rem;
  background: var(--foreground);
  color: var(--background);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s;
}

.invite-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -14px rgb(var(--shadow) / 0.6);
}

/* "Get an invite" (868mnagtq): a disclosure, no script. Closed, it is the button; open, the
   waitlist form sits under it on a card. */
.invite-form {
  flex: 0 1 100%;
}

.invite-form > summary {
  list-style: none;
  cursor: pointer;
  gap: 0.6rem;
}

.invite-form > summary::-webkit-details-marker {
  display: none;
}

/* A drawn chevron that turns when the form is open. */
.invite-form > summary::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.25rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease-out);
}

.invite-form[open] > summary::after {
  margin-top: 0.25rem;
  transform: rotate(-135deg);
}

.invite-form .site-form {
  max-width: 28rem;
  margin-top: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--card);
  text-align: left;
  box-shadow: 0 18px 40px -28px rgb(var(--shadow) / 0.55);
}

.closing .invite-form .site-form {
  margin-inline: auto;
}

/* The forms' shared parts: the waitlist's card and the desktop panel's email-me-a-link. */
.site-form label,
.site-form legend {
  display: block;
  margin: 0 0 0.35rem;
  padding: 0;
  font-weight: 700;
  font-size: 16px;
}

.site-form input[type='email'] {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  color: var(--foreground);
  font: inherit;
  font-size: 16px;
}

.site-form input[type='email']::placeholder {
  color: var(--muted);
  opacity: 1;
}

.site-form input[type='email']:focus-visible {
  border-color: var(--primary);
}

.site-form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}

.site-form legend {
  flex: 0 0 100%;
}

.site-form .invite-choice,
.site-form .form-tick {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin: 0;
  font-weight: 400;
}

.site-form input[type='radio'],
.site-form input[type='checkbox'] {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  accent-color: var(--primary);
}

.site-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.site-form .invite-submit {
  margin-top: 1rem;
}

.site-form .form-note {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* The honeypot field: off-screen and out of the tab order; only a bot fills it. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.invite-line {
  flex: 0 0 100%;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.browser-link {
  margin-top: 1rem;
  font-size: 16px;
}

.hero .browser-link {
  display: flex;
  width: fit-content;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.hero-panel {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 40px 24px 0;
  border-radius: 2.5rem;
  background: var(--highlight);
}

.hero-sun {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--sun-soft);
  transform: translate(-50%, -50%);
}

.hero-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7rem;
  background: var(--card);
}

.hero-panel .phone {
  position: relative;
  margin-bottom: -2.5rem;
}

.float-card {
  position: absolute;
  z-index: 2;
  display: none;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 18px 40px -20px rgb(var(--shadow) / 0.4);
  font-size: 12px;
  line-height: 1.4;
}

.float-checkin {
  left: -0.5rem;
  top: 15rem;
  width: 12rem;
}

.float-soon {
  right: -0.5rem;
  bottom: 6rem;
  width: 11rem;
}

.float-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 14px;
}

.float-badge-warm {
  background: var(--note);
  color: var(--warm);
}

.float-text {
  display: grid;
  gap: 0.1rem;
  color: var(--muted);
}

.float-text strong {
  color: var(--primary);
}

.float-soon .float-text strong {
  color: var(--warm);
}

@media (min-width: 640px) {
  .hero {
    padding-top: 64px;
    padding-bottom: 96px;
  }

  .hero h1 {
    font-size: 60px;
  }

  .lede {
    font-size: 20px;
  }

  .float-card {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 40px;
    padding-top: 80px;
  }

  .hero h1 {
    font-size: 76px;
  }

  .float-checkin {
    left: -3.5rem;
  }

  .float-soon {
    right: -2rem;
  }
}

/* One authored moment: the hero settles in on first load. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: rise 0.9s var(--ease-out) both;
  }

  .hero .hero-panel .phone {
    animation: rise 1.1s var(--ease-out) 0.12s both;
  }

  .float-checkin {
    animation: rise 0.9s var(--ease-out) 0.45s both;
  }

  .float-soon {
    animation: rise 0.9s var(--ease-out) 0.6s both;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
      filter: blur(4px);
    }
  }
}

/* --------------------------------------------------------- phone screens */

.phone {
  width: 100%;
  max-width: 268px;
  padding: 9px;
  border-radius: 46px;
  background: var(--frame);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.06),
    0 40px 70px -30px rgb(31 38 32 / 0.45);
}

@media (min-width: 640px) {
  .phone {
    max-width: 280px;
  }
}

@media (min-width: 1024px) {
  .phone {
    max-width: 300px;
  }
}

/* The captures have no status bar, so text sits at the very top edge. A strip in the app's own
   background color (the screens are light mode) keeps the frame's rounded corner off it. */
.phone img {
  display: block;
  box-sizing: content-box;
  width: 100%;
  border-top: 16px solid #f5f8f3;
  border-radius: 38px;
  background: #f5f8f3;
}

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

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 3.5rem;
  min-width: 172px;
  padding: 0 1.25rem;
  border-radius: 1rem;
  background: var(--foreground);
  color: var(--background);
  text-decoration: none;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s;
}

@media (max-width: 399.98px) {
  .store-button {
    flex: 1 1 0;
    min-width: 0;
    max-width: 200px;
    gap: 10px;
    padding: 0 0.85rem;
  }

  /* The closing card is too narrow for two across: stack them at one width. */
  .closing .store-buttons {
    flex-direction: column;
    align-items: center;
  }

  .closing .store-button {
    flex: none;
    width: 220px;
    max-width: 100%;
  }
}

.store-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -14px rgb(var(--shadow) / 0.6);
}

.store-icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.store-text {
  white-space: nowrap;
  display: grid;
  text-align: left;
  line-height: 1.1;
}

.store-small {
  font-size: 11px;
  opacity: 0.8;
}

.store-big {
  font-size: 18px;
  font-weight: 700;
}

/* After the default size so it wins on narrow phones. */
@media (max-width: 399.98px) {
  .store-big {
    font-size: 16px;
  }
}

.platforms {
  text-wrap: pretty;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 14px;
}

.platform-icons {
  display: inline-flex;
  flex: none;
  padding-top: 0.15em;
  gap: 0.3rem;
  color: var(--primary);
  font-size: 16px;
}

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

.home > .hero + * {
  border-top: 1px solid var(--border);
}

.feature {
  padding: 48px 0;
}

.feature-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 14px;
}

.eyebrow-number {
  color: var(--primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.eyebrow-rule {
  width: 2rem;
  height: 1px;
  background: var(--border);
}

.eyebrow-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.feature h2,
.group h2,
.pair-title,
.plans h2,
.closing h2 {
  font-family: var(--display);
  font-weight: 400;
  text-wrap: balance;
}

.feature h2,
.group h2 {
  max-width: 28rem;
  margin: 1rem 0 0;
  font-size: 34px;
  line-height: 1.1;
}

.feature-body {
  text-wrap: pretty;
  max-width: 28rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.feature-body p {
  margin: 0 0 1rem;
}

.feature-body p:last-child {
  margin-bottom: 0;
}

.note-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--note);
  color: var(--note-fg);
  font-weight: 700;
  font-size: 14px;
}

.panel {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 40px 24px;
  border-radius: 2rem;
}

.panel .phone {
  position: relative;
}

.tone-highlight {
  background: var(--highlight);
}

.tone-card {
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--border);
}

.tone-note {
  background: var(--note);
}

.panel-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: var(--background);
  opacity: 0.6;
  transform: translate(-50%, -50%);
}

@media (min-width: 640px) {
  .feature {
    padding: 64px 0;
  }

  .feature h2,
  .group h2 {
    font-size: 42px;
  }

  .panel {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

@media (min-width: 1024px) {
  .feature {
    padding: 80px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .feature-reversed .feature-copy {
    order: 2;
  }

  .feature h2,
  .group h2 {
    font-size: 46px;
  }
}

/* Groups: one numbered part of the page holding two features side by side (Receipt and Shelf
   Scan under setup; Check-in and Freezer). A card group is a band; a highlight group sits on the
   page with its panels tinted. */
.group {
  padding: 56px 0;
}

.group-card {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.group-highlight + .feature {
  border-top: 1px solid var(--border);
}

.group-then {
  display: grid;
  gap: 0.5rem;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.then-title {
  margin: 0;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.15;
  text-wrap: balance;
}

.then-note {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 17px;
  text-wrap: pretty;
}

.pair-grid {
  display: grid;
  gap: 56px;
  margin-top: 40px;
}

.panel-plain {
  padding: 40px 24px;
  background: var(--background);
}

.group-highlight .panel-plain {
  background: var(--highlight);
}

.pair-copy {
  margin-top: 2rem;
}

.pair-copy .feature-body {
  margin-top: 1rem;
}

.pair-title {
  max-width: 28rem;
  margin: 0.75rem 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.12;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .group {
    padding: 72px 0;
  }

  .then-title {
    font-size: 30px;
  }

  .pair-title {
    font-size: 32px;
  }
}

@media (min-width: 768px) {
  /* Top-aligned, so the two panels and their labels line up whatever each text's length. */
  .pair-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 48px;
  }

  .group-then {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 0.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .group {
    padding: 96px 0;
  }

  .pair-grid {
    gap: 80px;
  }

  .group-then {
    margin-top: 80px;
  }
}

/* A close crop of one part of a real screen (the thaw row, the share menu), on a card, at about
   the size it has on a phone, so its text reads. */
.crop {
  position: relative;
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: #f5f8f3;
  box-shadow: 0 30px 60px -30px rgb(31 38 32 / 0.45);
}

.crop img {
  display: block;
  width: 100%;
}

.panel-crop {
  align-items: center;
}

/* Sharing: a supporting part, shorter and with a smaller visual. */
.feature-compact {
  padding: 40px 0;
}

.feature-compact h2 {
  font-size: 30px;
}

.feature-compact .panel {
  padding: 32px 24px;
}

.feature-compact .crop {
  max-width: 320px;
}

@media (min-width: 640px) {
  .feature-compact {
    padding: 56px 0;
  }

  .feature-compact h2 {
    font-size: 36px;
  }
}

@media (min-width: 1024px) {
  .feature-compact {
    padding: 64px 0;
  }

  .feature-compact .feature-grid {
    grid-template-columns: 1fr 0.8fr;
  }

  .feature-compact .feature-reversed {
    grid-template-columns: 0.8fr 1fr;
  }

  .feature-compact h2 {
    font-size: 38px;
  }
}

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

.plans {
  padding-top: 64px;
  padding-bottom: 64px;
}

.plans-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
}

.plans h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  text-decoration: none;
}

.arrow-link .icon {
  transition: transform 0.2s var(--ease-out);
}

.arrow-link:hover .icon {
  transform: translateX(3px);
}

.plans-grid {
  display: grid;
  gap: 16px;
}

.plan {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 2rem;
}

.plan-free {
  border: 1px solid var(--border);
  background: var(--card);
}

.plan-plus {
  background: var(--primary);
  color: var(--primary-foreground);
}

.plan-circle {
  /* A solid mix of the sun into the card, so it reads as the icon's sun, not a muddy tint. */
  position: absolute;
  right: -5rem;
  bottom: -6rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: color-mix(in oklab, var(--sun) 32%, var(--primary));
}

@media (max-width: 479.98px) {
  /* The sun sits behind the card text on a phone; shrink and fade it so contrast holds. */
  .plan-circle {
    right: -4rem;
    bottom: -5rem;
    width: 10rem;
    height: 10rem;
    background: color-mix(in oklab, var(--sun) 12%, var(--primary));
  }

  .panel-circle {
    width: 300px;
    height: 300px;
    opacity: 0.35;
  }
}

.plan-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.plan-plus .plan-label {
  color: inherit;
  opacity: 0.85;
}

.plan-headline {
  position: relative;
  margin: 0.75rem 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  text-wrap: balance;
}

.plan p:not(.plan-label, .plan-pill) {
  text-wrap: pretty;
  position: relative;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 17px;
}

.plan-pill {
  position: relative;
  display: inline-block;
  margin: 1.5rem 0 0;
  padding: 0.4rem 0.75rem;
  border-radius: 0.9rem;
  font-size: 13px;
  text-wrap: balance;
  background: var(--primary-foreground);
  color: var(--primary);
  font-weight: 700;
}

@media (min-width: 640px) {
  .plan-pill {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 14px;
  }

  .plans {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .plans h2 {
    font-size: 42px;
  }

  .plan {
    padding: 36px;
  }

  .plan-headline {
    font-size: 30px;
  }
}

@media (min-width: 768px) {
  .plans-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* ------------------------------------------------------------ pricing page */

.page-intro {
  padding-top: 56px;
  padding-bottom: 8px;
}

.page-intro h1 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.08;
  text-wrap: balance;
}

.page-intro p {
  max-width: 36rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}

.plan strong {
  position: relative;
  color: var(--foreground);
  font-size: 19px;
}

.plan.plan-plus strong,
.plan.plan-plus p:not(.plan-label, .plan-pill) {
  color: inherit;
}

.plan ul {
  position: relative;
  display: grid;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
}

.plan li {
  display: flex;
  gap: 0.6rem;
}

/* Each line of a plan is a Lucide check: the link green on Free, the card's own color on Plus. */
.plan li::before {
  content: '';
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.22em;
  background: var(--primary);
  -webkit-mask: url('/images/mask-check.svg') center / contain no-repeat;
  mask: url('/images/mask-check.svg') center / contain no-repeat;
}

.plan-plus li::before {
  background: currentcolor;
}

.aside {
  padding-bottom: 64px;
}

.aside-card {
  padding: 28px;
  border-radius: 2rem;
  background: var(--highlight);
  color: var(--highlight-fg);
}

.aside-card h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
}

.aside-card p {
  max-width: 40rem;
  margin: 0.75rem 0 0;
  font-size: 17px;
  text-wrap: pretty;
}

.faq {
  padding-bottom: 64px;
}

.faq h2 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
}

.faq-item {
  max-width: 44rem;
  border-top: 1px solid var(--border);
}

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

.faq-item summary,
.older-releases > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 700;
  font-size: 18px;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker,
.older-releases > summary::-webkit-details-marker {
  display: none;
}

/* The Lucide chevron, drawn in the link color, turns over when the answer is open. */
.faq-item summary::after,
.older-releases > summary::after {
  content: '';
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--primary);
  -webkit-mask: url('/images/mask-chevron.svg') center / contain no-repeat;
  mask: url('/images/mask-chevron.svg') center / contain no-repeat;
  transition: transform 0.25s var(--ease-out);
}

.faq-item[open] summary::after,
.older-releases[open] > summary::after {
  transform: rotate(180deg);
}

.faq-item summary:hover,
.older-releases > summary:hover {
  color: var(--primary);
}

.faq-item p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 17px;
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .page-intro {
    padding-top: 88px;
  }

  .page-intro h1 {
    font-size: 56px;
  }

  .aside-card {
    padding: 36px;
  }

  .faq h2 {
    font-size: 36px;
  }
}

/* --------------------------------------------------------------- closing */

.closing-wrap {
  padding-bottom: 64px;
}

.closing {
  position: relative;
  overflow: hidden;
  padding: 56px 24px 144px;
  border: 1px solid var(--border);
  border-radius: 2.5rem;
  background: var(--card);
  text-align: center;
}

.closing-sun {
  position: absolute;
  left: 50%;
  bottom: -340px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: var(--sun-soft);
  transform: translateX(-50%);
}

.closing-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: var(--highlight);
}

.closing-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing h2 {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  font-size: 36px;
  line-height: 1.08;
}

.closing-inner > p:not(.platforms) {
  max-width: 30rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 18px;
  text-wrap: balance;
}

.closing .store-buttons,
.closing .invite {
  justify-content: center;
  margin-top: 2rem;
}

.closing .invite-line {
  margin-inline: auto;
  text-align: center;
}

.closing .platforms {
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .closing-wrap {
    padding-bottom: 96px;
  }

  .closing {
    padding-top: 80px;
    padding-bottom: 176px;
  }

  .closing h2 {
    font-size: 52px;
  }

  .closing-band {
    height: 64px;
  }
}

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

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

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand > span {
  display: grid;
  line-height: 1.3;
}

.footer-name {
  font-family: var(--display);
  font-size: 17px;
}

.footer-domain {
  color: var(--muted);
  font-size: 14px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  font-size: 15px;
}

.footer-col:last-child {
  grid-column: 1 / -1;
}

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

.footer-col li + li {
  margin-top: 0.5rem;
}

.footer-heading {
  margin: 0 0 0.75rem;
  color: var(--foreground);
  font-weight: 700;
  font-size: 14px;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--foreground);
}

.footer-col .footer-email {
  color: var(--primary);
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
  }

  .footer-cols {
    display: flex;
    gap: 3.5rem;
  }

  .footer-col:last-child {
    grid-column: auto;
  }
}

/* ------------------------------------------------- legal and text pages */

/* The banner sits outside <main>, so it finds the wrap's left edge itself. */
.draft-banner {
  max-width: var(--measure);
  margin: 1.5rem var(--gutter) 0 max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: var(--note);
  color: var(--note-fg);
  font-weight: 700;
}

/* A text page is a .wrap (the rule is shared above): the header's and Home's width and left
   edge. Its text keeps to the reading measure, left-aligned with the logo. Section headings and
   their dividers, pictures, tables, card grids and the end card take the whole wrap. */
.doc {
  padding-top: 0.5rem;
  padding-bottom: 3rem;
}

.doc :where(h1, h3, p, ul, ol, blockquote, details),
.doc :where(.lede, .help-strip, .help-mid, .help-contact, .content-shot) {
  max-width: var(--measure);
}

.doc h1 {
  margin: 1.5rem 0 1rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.15;
  text-wrap: balance;
}

.doc h2 {
  margin: 2.5rem 0 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.25;
}

.doc h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.05rem;
}

.doc p,
.doc ul,
.doc ol,
.doc blockquote {
  margin: 0 0 1rem;
}

.doc ul,
.doc ol {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.35rem;
}

.doc code {
  font-size: 0.9em;
}

.doc blockquote {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.doc blockquote p {
  margin: 0;
}

.placeholder {
  padding: 0 0.2em;
  border-radius: 3px;
  background: var(--note);
  color: var(--note-fg);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  /* Scroll shadows: a soft edge shows on a side only while there is more table that way. */
  background:
    linear-gradient(to right, var(--card) 30%, transparent) left / 2.5rem 100% no-repeat local,
    linear-gradient(to left, var(--card) 30%, transparent) right / 2.5rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(var(--shadow) / 0.18), transparent) left / 0.9rem
      100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(var(--shadow) / 0.18), transparent) right /
      0.9rem 100% no-repeat scroll,
    var(--card);
}

table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

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

/* ------------------------------------------------------------------ help */

.help h1 {
  margin-bottom: 0.75rem;
}

.help-intro {
  color: var(--muted);
  font-size: 18px;
}

.help-topic h2 {
  margin-bottom: 0.75rem;
}

.doc .help-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
}

.doc .help-list li + li {
  margin-top: 0;
  border-top: 1px solid var(--border);
}

.help-link {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  align-items: center;
  padding: 0.9rem 1.1rem;
  color: var(--foreground);
  text-decoration: none;
  transition: background-color 0.2s;
}

.help-link:hover {
  background: var(--highlight);
}

.help-link:focus-visible {
  outline-offset: -3px;
  border-radius: 16px;
}

.help-link-title {
  font-weight: 700;
}

.help-link-text {
  grid-column: 1;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.help-link .icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--primary);
  transition: transform 0.2s var(--ease-out);
}

.help-link:hover .icon {
  transform: translateX(3px);
}

.help-contact {
  margin-top: 2.5rem;
  padding: 0.25rem 1.25rem 0.25rem;
  border-radius: 16px;
  background: var(--highlight);
  color: var(--highlight-fg);
}

.doc .help-contact h2 {
  margin-top: 1rem;
  padding-top: 0;
  border-top: 0;
}

.help-contact a {
  color: inherit;
  font-weight: 700;
}

.breadcrumb {
  margin: 1.5rem 0 0;
  font-size: 15px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--muted);
}

.breadcrumb a {
  font-weight: 700;
  text-decoration: none;
}

.breadcrumb [aria-current='page'] {
  color: var(--muted);
}

/* The body face has only a slashed zero, so the date line is set in the display face, whose
   zero is the plain one people expect in a date. */
.help-checked {
  margin: 0.25rem 0 1.25rem;
  color: var(--muted);
  font-family: var(--display);
  font-size: 15px;
  font-variant-numeric: lining-nums;
}

.doc .help-article h1 {
  margin-top: 0.75rem;
}

.help-more {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.help-more p {
  margin: 0 0 0.5rem;
}

.help-more a {
  font-weight: 700;
}

/* What's new: releases in the reading column. */
.releases .release {
  margin: 0 0 1.5rem;
}

.releases .release h2 {
  margin-bottom: 0.5rem;
}

.releases .release h3 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1rem;
}

/* ------------------------------------------------------------ install CTA */

/* Every set of buttons on a page. site/cta.js adds is-ios or is-android to <html>; with no
   script (or on a desktop) both badges show, as they always did. */
.install-cta {
  margin: 0;
}

.cta-line {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 17px;
  text-wrap: balance;
}

.closing .cta-line {
  text-align: center;
}

.install-cta-inline,
.install-cta-compact {
  margin: 1.5rem 0;
}

.install-cta-compact .store-button,
.install-cta-compact .invite-button {
  height: 3rem;
  min-width: 0;
  padding: 0 1rem;
  border-radius: 0.875rem;
}

.install-cta-compact .store-big {
  font-size: 16px;
}

.install-cta-compact .invite-button {
  font-size: 16px;
}

.cta-row {
  padding-block: 0.5rem 1.5rem;
}

.plan .install-cta {
  margin: 1.25rem 0 0;
}

.plan .cta-line {
  font-size: 15px;
}

.cta-alts {
  display: none;
  margin: 0.75rem 0 0;
  font-size: 16px;
}

.cta-alt {
  display: none;
  min-height: 24px;
  color: var(--primary);
  text-underline-offset: 3px;
}

.closing .cta-alts {
  text-align: center;
}

.is-ios .store-button[data-store='android'],
.is-android .store-button[data-store='ios'],
.is-ios .invite-button[data-store='android'],
.is-android .invite-button[data-store='ios'] {
  display: none;
}

.is-ios .cta-alts,
.is-android .cta-alts {
  display: block;
}

.is-ios .cta-alt-android,
.is-android .cta-alt-ios {
  display: inline;
}

/* Help: the card above "Didn't find your answer?", the strip on the index, and the mid-page set. */
.help-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--card);
}

.doc .help-cta h2 {
  margin: 0 0 0.5rem;
  padding-top: 0;
  border-top: 0;
  font-size: 22px;
}

.help-cta .install-cta,
.help-mid .install-cta {
  margin: 0;
}

.help-mid {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: var(--highlight);
}

.help-strip {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--card);
}

.help-strip p {
  margin: 0 0 0.75rem;
}

.help-strip .install-cta {
  margin: 0;
}

.from-app .help-cta,
.from-app .help-mid,
.from-app .help-strip {
  display: none;
}

/* The phone's sticky bar: under 768px, shown by cta.js after the page's own buttons scroll out. */
.sticky-cta {
  display: none;
}

@media (max-width: 767.98px) {
  .sticky-cta {
    position: fixed;
    inset: auto 0 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 8px 0 var(--gutter);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--border);
    background: var(--card);
    visibility: hidden;
    transform: translateY(100%);
  }

  .sticky-cta[hidden] {
    display: none;
  }

  .sticky-cta.is-up {
    visibility: visible;
    transform: none;
  }

  .sticky-cta img {
    flex: none;
    border-radius: 8px;
  }

  .sticky-cta p {
    flex: 1;
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
  }

  .sticky-button {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 1rem;
    border-radius: 0.75rem;
    background: var(--foreground);
    color: var(--background);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
  }

  .sticky-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
  }

  .sticky-close .icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: no-preference) {
  .sticky-cta {
    transition:
      transform 0.25s var(--ease-out),
      visibility 0s linear 0.25s;
  }

  .sticky-cta.is-up {
    transition-delay: 0s;
  }
}

/* The desktop panel on the closing sections: a code to scan with a phone. Fine pointers only. */
.desktop-panel {
  display: none;
}

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .desktop-panel {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
    padding: 1rem 1.5rem 1rem 1rem;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    background: var(--background);
    text-align: left;
  }

  .desktop-panel .qr {
    flex: none;
    width: 132px;
    height: 132px;
    border-radius: 0.75rem;
  }

  .desktop-panel h3 {
    margin: 0;
    font-size: 22px;
  }

  .desktop-panel p {
    max-width: 16rem;
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 16px;
  }

  /* Email me a link (868mnagtq), under the code's line. */
  .desktop-panel .email-link {
    margin-top: 0.9rem;
  }

  .desktop-panel .email-link-row {
    display: flex;
    gap: 0.5rem;
  }

  .desktop-panel .email-link input[type='email'] {
    min-width: 15rem;
  }

  .desktop-panel .email-link button {
    flex: none;
  }

  .desktop-panel .form-note {
    max-width: none;
    font-size: 14px;
  }
}

/* ------------------------------------------------ content pages (features, guides, keeps) */

/* Home's list of feature pages. Hidden by the build until the first feature page exists. */
.features-index {
  padding-top: 56px;
  padding-bottom: 56px;
}

.features-index h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
}

.features-index p {
  max-width: 40rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 17px;
}

.features-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features-link {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  align-items: center;
  height: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  color: var(--foreground);
  text-decoration: none;
  transition: background-color 0.2s;
}

.features-link:hover {
  background: var(--highlight);
}

.features-link-title {
  font-weight: 700;
}

.features-link-text {
  grid-column: 1;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.features-link .icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--primary);
  transition: transform 0.2s var(--ease-out);
}

.features-link:hover .icon {
  transform: translateX(3px);
}

@media (min-width: 640px) {
  .features-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .features-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.content .lede {
  color: var(--muted);
  font-size: 19px;
  text-wrap: pretty;
}

.content .lede p {
  margin: 0 0 1rem;
}

.byline {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 15px;
}

.content-shot {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

/* A feature page's top, Home's way at 1024 and up: the heading, lede and buttons on the left,
   the phone on the right in Home's green panel. Below that it is one column in source order. */
@media (min-width: 1024px) {
  .content-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
    grid-template-rows: 1fr repeat(4, auto) 1fr;
    column-gap: 4rem;
    margin-top: 1.5rem;
  }

  .content-hero > * {
    grid-column: 1;
  }

  .doc .content-hero > h1 {
    grid-row: 2;
    margin-top: 0;
    font-size: clamp(48px, 4.4vw, 56px);
    line-height: 1.06;
  }

  .content-hero > .help-checked {
    grid-row: 3;
  }

  .content-hero > .lede {
    grid-row: 4;
  }

  .content-hero > .install-cta {
    grid-row: 5;
  }

  .content-hero > .content-shot {
    grid-column: 2;
    grid-row: 1 / -1;
    max-width: none;
    margin: 0;
  }
}

/* The phone sits in Home's panel (.hero-panel, its sun and band) only from 1024px; below that
   it stands on the page, centered in the text column. */
@media (max-width: 1023.98px) {
  .content-hero .hero-panel {
    position: static;
    overflow: visible;
    padding: 0;
    border-radius: 0;
    background: none;
  }

  .content-hero :is(.hero-sun, .hero-band) {
    display: none;
  }

  .content-hero .hero-panel .phone {
    position: static;
    margin-bottom: 0;
  }
}

/* Lists of pages (Related, the guides hub, Help's topics) become a grid of cards on wider
   screens, the way Home lists its feature pages. */
@media (min-width: 768px) {
  .doc :is(.related, .content-hub, .help-topic) .help-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: none;
    border: 0;
    border-radius: 0;
    background: none;
    overflow: visible;
  }

  .doc :is(.related, .content-hub, .help-topic) .help-list li + li {
    border-top: 0;
  }

  .doc :is(.related, .content-hub, .help-topic) .help-link {
    align-content: start;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
  }

  .doc :is(.related, .content-hub, .help-topic) .help-link:hover {
    background: var(--highlight);
  }
}

@media (min-width: 1024px) {
  .doc :is(.related, .help-topic) .help-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* The guides hub's sections hold one to three guides, so their cards fill the row: one card
   spans it, two share it, a third starts the next row. Never more than two across. */
@media (min-width: 768px) {
  .doc .content-hub .help-list {
    grid-template-columns: repeat(auto-fit, minmax(max(18rem, calc(50% - 0.375rem)), 1fr));
  }
}

.content .install-cta {
  margin: 1.5rem 0 0;
}

.content-picture {
  margin: 1.25rem 0;
}

.content-picture img {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgb(var(--shadow) / 0.12);
}

.hub-pillar {
  margin: 2rem 0 0;
}

.steps {
  counter-reset: step;
  padding-left: 0;
  list-style: none;
}

.doc .steps li {
  position: relative;
  min-height: 2rem;
  margin: 0 0 0.75rem;
  padding-left: 2.75rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--highlight);
  color: var(--highlight-fg);
  font-weight: 700;
}

.content .faq {
  padding-bottom: 0;
}

.doc .content .faq h2 {
  font-size: 1.45rem;
}

.content-help {
  margin-top: 2rem;
}

.related {
  margin-top: 2.5rem;
}

.doc .related h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding-top: 0;
  border-top: 0;
}

.keeps-table {
  min-width: 36rem;
}

/* Phones: each product is a card, its name and labelled rows, so nothing scrolls sideways (the compare table does the same). */
@media (max-width: 639px) {
  .keeps-table {
    min-width: 0;
  }

  .keeps-table,
  .keeps-table tbody,
  .keeps-table tr,
  .keeps-table th,
  .keeps-table td {
    display: block;
    width: auto;
  }

  .keeps-table thead {
    position: absolute;
    left: -9999px;
  }

  .keeps-table tr {
    padding: 0.9rem 1rem;
    border-top: 1px solid var(--border);
  }

  .keeps-table tr:first-child {
    border-top: 0;
  }

  .keeps-table th,
  .keeps-table td {
    overflow-wrap: anywhere;
    padding: 0.4rem 0 0;
    border: 0;
  }

  .keeps-table th[scope='row'] {
    padding-top: 0;
  }

  .keeps-table td::before {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }

  .keeps-table td:nth-of-type(1)::before {
    content: 'Pantry';
  }

  .keeps-table td:nth-of-type(2)::before {
    content: 'Fridge';
  }

  .keeps-table td:nth-of-type(3)::before {
    content: 'Freezer';
  }
}

.keeps-table th[scope='row'] {
  font-weight: 700;
}

.keeps-range {
  display: block;
  font-weight: 700;
}

.keeps-note,
.keeps-source {
  color: var(--muted);
  font-size: 14px;
}

.keeps-note {
  display: block;
}

.keeps-none {
  color: var(--muted);
}

.content-thaw table {
  min-width: 0;
}

/* Phones: the thaw table (plain markdown) is a card per food, same pattern as the keeps table. */
@media (max-width: 639px) {
  .content-thaw table,
  .content-thaw tbody,
  .content-thaw tr,
  .content-thaw td {
    display: block;
    width: auto;
  }

  .content-thaw thead {
    position: absolute;
    left: -9999px;
  }

  .content-thaw tr {
    padding: 0.9rem 1rem;
    border-top: 1px solid var(--border);
  }

  .content-thaw tr:first-child {
    border-top: 0;
  }

  .content-thaw td {
    padding: 0.4rem 0 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .content-thaw td:first-child {
    padding-top: 0;
    font-weight: 700;
  }

  .content-thaw td:not(:first-child)::before {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }

  .content-thaw td:nth-child(2)::before {
    content: 'Weight';
  }

  .content-thaw td:nth-child(3)::before {
    content: 'Thaw in the fridge';
  }

  .content-thaw td:nth-child(4)::before {
    content: 'After thawing, in the fridge';
  }
}

.doc .check-first {
  margin: 2rem 0 1rem;
}

.check-first {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: var(--note);
  color: var(--note-fg);
}

.compare-table {
  min-width: 0;
  table-layout: fixed;
}

.compare-table th[scope='col']:nth-child(1) {
  width: 22%;
}

.compare-table th,
.compare-table td {
  overflow-wrap: anywhere;
  vertical-align: top;
}

.compare-meta {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

/* Phones: each app is a card, a heading and labelled rows, so nothing scrolls sideways. */
@media (max-width: 639.98px) {
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    width: auto;
  }

  .compare-table thead {
    position: absolute;
    left: -9999px;
  }

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

  .compare-table tr:first-child {
    border-top: 0;
  }

  .compare-table td {
    padding: 0.4rem 0 0;
  }

  .compare-table td::before {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }

  .compare-table td:nth-of-type(1)::before {
    content: 'Their page says';
  }

  .compare-table td:nth-of-type(2)::before {
    content: 'Stronger at';
  }
}

/* ------------------------------------------------------------ page icons */

/* A page's Lucide icon in a tinted tile: green for the app's pages (features, Help, comparisons),
   warm for the kitchen's (guides, keeps). The same shapes the app draws (lucide-react-native). */
.icon-tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  transition: background-color 0.2s;
}

.icon-tile .tile-icon {
  width: 22px;
  height: 22px;
}

.icon-tile-page {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 6px 16px -10px rgb(var(--shadow) / 0.35);
}

.icon-tile-page .tile-icon {
  width: 28px;
  height: 28px;
}

.icon-tile-green {
  background-color: var(--highlight);
  color: var(--highlight-fg);
}

.icon-tile-warm {
  background-color: var(--note);
  color: var(--note-fg);
}

/* On its band the page's tile is a white square, so it stands off the tint behind it. */
.page-head .icon-tile {
  background-color: var(--card);
}

/* A listed page with an icon: the tile on the left, its title and line, then the arrow. */
.help-link.has-tile,
.features-link.has-tile {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.has-tile > .icon-tile {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
}

.has-tile > :is(.help-link-title, .help-link-text, .features-link-title, .features-link-text) {
  grid-column: 2;
}

.help-link.has-tile > .icon,
.features-link.has-tile > .icon {
  grid-column: 3;
}

/* The row turns green on hover, so a green tile turns white to keep its edge. */
:is(.help-link, .features-link):hover .icon-tile-green {
  background-color: var(--card);
}

/* ---------------------------------------------------- article page heads */

/* The top of an article: the icon, the h1 and its date line on a tinted band, with the icon's
   sun low in the corner (Home's motif). */
.page-head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  overflow: hidden;
  margin: 1rem 0 1.75rem;
  padding: 1.25rem;
  border-radius: 1.5rem;
}

.page-head::after {
  content: '';
  position: absolute;
  right: -4rem;
  bottom: -7rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: var(--sun-soft);
  opacity: 0.9;
}

.page-head-warm::after {
  background: color-mix(in oklab, var(--sun) 35%, var(--note));
}

.page-head > * {
  position: relative;
  z-index: 1;
}

.page-head-green {
  background: var(--highlight);
}

.page-head-warm {
  background: var(--note);
}

.page-head-text {
  min-width: 0;
}

.doc .page-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
}

.page-head .byline {
  margin: 0;
}

.page-head .help-checked {
  margin: 0;
}

.page-head-warm :is(.byline, .help-checked) {
  color: var(--note-fg);
}

.page-head-green :is(.byline, .help-checked) {
  color: var(--highlight-fg);
}

/* From 640px the icon sits beside the h1. */
@media (min-width: 640px) {
  .page-head {
    flex-direction: row;
    gap: 1.5rem;
    padding: 2rem 2.25rem;
  }

  .page-head::after {
    right: -3rem;
    bottom: -9rem;
    width: 20rem;
    height: 20rem;
  }

  .doc .page-head h1 {
    font-size: 2.5rem;
  }
}

/* ------------------------------------------------- article side column */

.article-main > :first-child {
  margin-top: 0;
}

/* A Help article's app screen: after the text on a phone, beside it from 1024px. */
.article-shot {
  display: flex;
  justify-content: center;
  margin: 2rem 0 0;
}

.article-shot .phone {
  max-width: 250px;
}

/* A guide's contents and printable need room beside the text; a phone has neither. */
.guide-rail {
  display: none;
}

@media (min-width: 1024px) {
  .article-layout.has-rail {
    display: grid;
    grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr);
    column-gap: 4rem;
    align-items: start;
  }

  .article-shot {
    position: sticky;
    top: 6rem;
  }

  /* A guide's column runs the article's height: the printable scrolls away and the contents
     list stays pinned, so the column never runs past the bottom of a laptop screen. */
  .guide-rail {
    align-self: stretch;
    align-content: start;
  }

  .guide-rail .rail-toc {
    position: sticky;
    top: 6rem;
  }

  .article-shot {
    margin: 0;
  }

  .guide-rail {
    display: grid;
    gap: 1.25rem;
    max-width: 20rem;
  }
}

.rail-toc {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--card);
}

.doc .rail-title {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.doc .rail-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc .rail-toc li + li {
  margin-top: 0.1rem;
}

.rail-toc a {
  display: block;
  margin: 0 -0.5rem;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s;
}

.rail-toc a:hover {
  background: var(--highlight);
  color: var(--highlight-fg);
}

/* The printable: the sheet itself, tilted as if pinned to the fridge, straightening on hover. */
.rail-printable {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: var(--note);
  color: var(--note-fg);
  font-weight: 700;
  text-decoration: none;
}

.rail-printable img {
  display: block;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 12px 24px -14px rgb(var(--shadow) / 0.5);
  transform: rotate(-2deg);
  transition: transform 0.3s var(--ease-out);
}

.rail-printable:hover img {
  transform: rotate(0deg);
}

.rail-printable-text {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.4;
}

.rail-printable-text .icon {
  margin-top: 0.15em;
}

@media (prefers-reduced-motion: reduce) {
  .rail-printable img {
    transition: none;
  }
}

/* ------------------------------------------------------------ end card */

/* "Try it in your kitchen.": green, with the sun and, from 768px, Tonight peeking up from the
   card's bottom edge. */
.help-cta {
  position: relative;
  overflow: hidden;
  border: 0;
  background: var(--highlight);
}

.help-cta > * {
  position: relative;
  z-index: 1;
}

.help-cta::before {
  content: '';
  position: absolute;
  right: -5rem;
  bottom: -9rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: var(--sun-soft);
}

.help-cta-peek {
  display: none;
}

@media (min-width: 768px) {
  .help-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14rem;
    column-gap: 2rem;
    min-height: 15rem;
    padding: 2rem 2.25rem 0;
  }

  .help-cta-text {
    padding-bottom: 2rem;
  }

  .doc .help-cta h2 {
    font-size: 28px;
  }

  .help-cta-peek {
    display: block;
  }

  .help-cta-peek img {
    position: absolute;
    top: 0.25rem;
    left: 50%;
    width: 12.5rem;
    max-width: none;
    border: 7px solid var(--frame);
    border-bottom: 0;
    border-radius: 30px 30px 0 0;
    background: #f5f8f3;
    box-shadow: 0 20px 40px -20px rgb(31 38 32 / 0.5);
    translate: -50% 0;
  }
}

/* ------------------------------------------------------------ what's new */

.release-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.release-new .icon {
  color: var(--primary);
}

.release-fixed .icon {
  color: var(--muted);
}

.older-releases {
  max-width: var(--measure);
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.older-count {
  margin-left: 0.5rem;
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  background: var(--highlight);
  color: var(--highlight-fg);
  font-size: 14px;
}

.older-releases > summary {
  justify-content: flex-start;
}

.older-releases > summary > span:first-child {
  flex: none;
}

.older-releases > summary::after {
  margin-left: auto;
}

/* A keeps page's food picture (Fluent Emoji, in color) sits in the tile as drawn. */
.tile-food {
  display: block;
}
