/* ==========================================================================
   rerun — product site. The OMO system (header, footer, buttons, icons, type,
   transitions) from ooooomo.com/studio/omo.css, in rerun's own white paper,
   ink and pink, with the app's hand-drawn marks and a stack you can swipe.
   Loaded after omo.css on rerun.ooooomo.com. Same page template as Pop Cafe
   (DESIGN_SYSTEM.md §13), so the two product sites read as one family.
   ========================================================================== */

.theme-rerun {
  --page: #ffffff;
  --page-2: #f4f4f4;           /* Poster.paper: bands and document pages */
  --card: #ffffff;
  --ink-rr: #1a1a1a;           /* Ink.black */
  --pink: #f0598b;             /* Ink.accent: the icon's pink */
  --spark: #e5eb60;            /* Ink.spark: fills only, never thin lines on white */
  --red: #ee3b26;              /* the "A year ago" box ink */
  --grey: #ededed;             /* the "A year ago" box paper */
  --bg: var(--page); --bg-2: var(--card); --fg: var(--ink-rr);
  --fg-mute: rgba(26, 26, 26, .6); --line: rgba(26, 26, 26, .1);
  --room: #9a9a9a; --lid: #1a1a1a; --dot: var(--pink);
  background: var(--page);
  color: var(--fg);
}
.theme-rerun.is-doc { --page: #f4f4f4; }
html:has(body.theme-rerun) { scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html:has(body.theme-rerun) { scroll-behavior: smooth; } }
.theme-rerun ::selection { background: var(--spark); color: var(--ink-rr); }

/* Header: ink on white, a white veil once you scroll. */
.theme-rerun .site-header { mix-blend-mode: normal; color: var(--ink-rr); }
.theme-rerun .site-header::before {
  content: ''; position: absolute; inset: 0 0 -18px; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--page) 45%, transparent);
  opacity: 0; transition: opacity .4s;
}
.is-scrolled .theme-rerun .site-header::before { opacity: 1; }
.theme-rerun .mobile-menu {
  --fg: #f1efe9; --fg-mute: rgba(241, 239, 233, .56);
  background: var(--ink-rr); color: var(--fg);
  justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain;
}
.theme-rerun .mobile-menu nav { margin-top: auto; flex-shrink: 0; }
.theme-rerun .mobile-menu nav a { font-size: clamp(28px, min(14vw, 7svh), 72px); }
.theme-rerun[data-page] .brand-link { opacity: 1; transform: none; pointer-events: auto; }
.header-get {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; margin-right: 6px; padding: 0 16px 0 14px;
  border-radius: 999px; background: var(--ink-rr); color: #fff; font: 600 14px/1 var(--display);
  transition: transform .5s var(--spring), background-color .3s;
}
.header-get svg { width: 14px; height: 17px; }
.header-get:hover { transform: translateY(-1px); background: #333; }
.header-get:active { transform: scale(.96); }
@media (max-width: 860px) { .header-get { display: none; } }

/* The hand-drawn wordmark: the app's ink strokes, the pink dot. */
.rr-mark { display: block; width: 100%; height: auto; overflow: visible; }
.rr-mark path { fill: none; stroke: currentColor; stroke-width: 2.12; stroke-linecap: round; stroke-linejoin: round; }
.rr-mark circle { fill: var(--pink); }
.brand-link .rr-mark { width: 74px; }

/* ---------------------------------------------------------------- shared bits */
.pc-display { font: 600 clamp(52px, 7.2vw, 120px)/0.9 var(--display); letter-spacing: -0.055em; text-wrap: balance; }
.pc-title { font: 600 clamp(38px, 4.8vw, 74px)/0.96 var(--display); letter-spacing: -0.045em; text-wrap: balance; }
.pc-lede { margin-top: 22px; max-width: 36ch; font: 400 clamp(17px, 1.35vw, 21px)/1.45 var(--text); color: var(--fg-mute); text-wrap: pretty; }
.pc-lede a, .pc-sub a:not(.arrow-link) { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.pc-fine { margin-top: 16px; font: 500 14px/1.3 var(--display); color: var(--fg-mute); }
.pc-sub { margin-top: 18px; color: var(--fg-mute); }
.pc-section { padding-block: clamp(72px, 8.5vw, 132px); }
.pc-head { max-width: 900px; margin-bottom: clamp(32px, 4vw, 60px); }
.pc-head--center { margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }

/* Official Apple artwork, enabled when the released listing is configured. */
.store-badge {
  display: inline-flex; height: 56px; transition: transform .5s var(--spring);
}
.store-badge img { display: block; width: auto; height: 100%; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:active { transform: scale(.97); }
.store-badge--large { height: 64px; }
.store-pending { display: inline-flex; align-items: center; min-height: 56px; font: 500 17px/1.3 var(--display); }

/* ---------------------------------------------------------------- hero (one screen, one thing moving)
   The words hang off the same lines as the phone: the title starts level with its top,
   the sentence and the badge end level with its bottom. Left edge = the logo's. */
.pc-hero--split { display: flex; align-items: center; min-height: 100svh; padding: var(--header-h) 0 0; }
.pc-hero-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch;
  gap: clamp(32px, 5vw, 96px); padding-block: clamp(16px, 3svh, 40px);
}
.pc-hero-copy { display: flex; flex-direction: column; align-items: flex-start; padding-block: clamp(4px, 1.2svh, 16px); }
.pc-hero-split .pc-display { font-size: clamp(56px, 6.2vw, 96px); line-height: .9; }
.pc-hero-split .pc-display .l { display: block; white-space: nowrap; }
.pc-hero-split .pc-lede { margin-top: auto; max-width: 27ch; font-size: clamp(17px, 1.3vw, 20px); }
.pc-hero-split .pc-actions { margin-top: 24px; }
.rr-try { justify-self: center; }

/* ---------------------------------------------------------------- the phone */
.rr-device {
  --ph: calc(100svh - var(--header-h) - clamp(40px, 7svh, 88px));
  position: relative; width: min(calc(var(--ph) * 0.46), 44vw, 360px); padding: 2.6%;
  border-radius: 15.5% / 7.3%;
  background: linear-gradient(150deg, #34323f, #121118 55%, #24222c);
  box-shadow: inset 0 0 0 1.5px #5e5b70, inset 0 0 0 4px #17161c, 0 60px 90px -50px rgba(20, 20, 30, .45), 0 24px 50px -34px rgba(20, 20, 30, .3);
}
.rr-device--s { width: clamp(250px, min(24vw, (100svh - 150px) / 2.25), 330px); }
.rr-screen {
  position: relative; display: block; aspect-ratio: 1206 / 2622; border-radius: 13.4% / 6.2%; overflow: hidden;
  container-type: inline-size; background: var(--grey);
}
.rr-island { position: absolute; left: 34.5%; top: 3.4cqw; z-index: 9; width: 31%; height: 9.2cqw; border-radius: 6cqw; background: #000; }
.rr-homebar { position: absolute; left: 32%; bottom: 2.4cqw; z-index: 9; width: 36%; height: 1.5cqw; border-radius: 1cqw; background: rgba(0, 0, 0, .75); }

/* ---------------------------------------------------------------- try it: the review stack */
.rv-top { position: absolute; left: 0; right: 0; top: 18cqw; height: 12.4cqw; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 0 4.4cqw; }
.rv-icon { display: grid; place-items: center; width: 12.4cqw; height: 12.4cqw; padding: 0; color: var(--red); }
.rv-icon svg { width: 9.4cqw; height: 9.4cqw; }
.rv-icon[disabled] { opacity: .3; }
.rv svg path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rv-box { font: 600 5cqw/1 var(--display); letter-spacing: -0.01em; color: var(--red); }
.rv-dots { position: absolute; left: 0; right: 0; top: 34cqw; z-index: 5; display: flex; justify-content: center; gap: 2.2cqw; }
.rv-dots i { width: 2.2cqw; height: 2.2cqw; border-radius: 50%; box-shadow: inset 0 0 0 .45cqw var(--red); opacity: .3; transition: opacity .3s, background-color .3s; }
.rv-dots i.is-done { background: var(--red); opacity: 1; }
.rv-dots i.is-current { opacity: 1; }
.rv-stage { position: absolute; left: 4.35cqw; right: 4.35cqw; top: 42cqw; aspect-ratio: 3 / 4; z-index: 4; outline: none; }
.rv-stage:focus-visible { outline: 2px solid var(--red); outline-offset: 2cqw; border-radius: 7cqw; }
.rv-card {
  position: absolute; inset: 0; margin: 0; border-radius: 6.2cqw; overflow: hidden; background: #d8d8d8;
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  visibility: hidden; transform: translateY(3.7cqw) scale(.95) rotate(2deg);
  transition: transform .45s var(--ease-out);
}
.rv-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.rv-card.is-next { visibility: visible; z-index: 1; cursor: default; }
.rv-card.is-top { visibility: visible; z-index: 2; transform: none; }
.rv-card.is-dragging { cursor: grabbing; transition: none; }
.rv-card.is-gone { visibility: visible; z-index: 3; pointer-events: none; transition: transform .34s cubic-bezier(.4, .1, .7, 1); }
.rv-card.is-hint { animation: rv-nudge 3.6s ease-in-out 1.4s infinite; }
@keyframes rv-nudge { 0%, 62%, 100% { transform: none; } 70% { transform: translateX(-8cqw) rotate(-2.4deg); } 80% { transform: translateX(6cqw) rotate(1.8deg); } 88% { transform: none; } }
.rv-tab { position: absolute; top: 3cqw; padding: 1.9cqw 2.8cqw 1.6cqw; border-radius: 2.8cqw; background: var(--grey); font: 600 3.7cqw/1 var(--display); letter-spacing: -0.005em; }
.rv-tab--l { left: 3cqw; color: var(--red); }
.rv-tab--r { right: 3cqw; color: #6a6a6a; font-weight: 500; }
.rv-stamp { position: absolute; top: 50%; width: 30cqw; height: 30cqw; margin-top: -19cqw; border-radius: 50%; display: grid; place-items: center; background: rgba(237, 237, 237, .92); color: var(--red); opacity: 0; pointer-events: none; }
.rv-stamp svg { width: 18cqw; height: 18cqw; }
.rv-stamp--k { left: 6.8cqw; }
.rv-stamp--d { right: 6.8cqw; }
.rv-btns { position: absolute; left: 4.35cqw; right: 4.35cqw; top: 138.2cqw; z-index: 6; display: flex; justify-content: space-between; padding: 0 5cqw; }
.rv-btn { display: grid; place-items: center; width: 19.9cqw; height: 19.9cqw; padding: 0; border-radius: 50%; background: var(--grey); color: var(--red); transition: transform .45s var(--spring), opacity .3s; }
.rv-btn:active { transform: scale(.9); }
.rv-btn[disabled] { opacity: 0; pointer-events: none; }
.rv-btn svg { width: 11.4cqw; height: 11.4cqw; }
.rv-thumbs { position: absolute; left: 0; right: 0; top: 184cqw; z-index: 5; display: flex; justify-content: center; gap: 1.9cqw; }
.rv-th { position: relative; width: 8.7cqw; height: 11.5cqw; border-radius: 1.9cqw; overflow: hidden; background: #ccc; }
.rv-th img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s; }
.rv-th.is-current { outline: .6cqw solid var(--red); outline-offset: .3cqw; }
.rv-th.is-gone img { opacity: .28; }
.rv-th::after { content: ''; position: absolute; inset: 0; opacity: 0; background: center / 70% no-repeat; transition: opacity .3s; }
.rv-th.is-gone::after { opacity: 1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 28'%3E%3Cpath d='M4 7 16 21M16 7 4 21' fill='none' stroke='%23ee3b26' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.rv-th.is-kept::after { opacity: 1; background: right 12% bottom 10% / 46% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 34Q8 24 8 16Q8.5 10 14 10Q18 10.5 20 15Q22 10.5 26 10Q31.5 10 32 16Q32 24 20 34' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.rv-done { position: absolute; inset: 0; border-radius: 6.2cqw; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqw; text-align: center; }
.rv-done[hidden] { display: none; }
.rv-done h2 { font: 600 10.6cqw/1 var(--display); letter-spacing: -0.04em; color: var(--red); }
.rv-done p { font: 500 4.3cqw/1.4 var(--text); color: #6a6a6a; }
.rv-again { margin-top: 4cqw; display: inline-flex; align-items: center; gap: 2.4cqw; height: 13.6cqw; padding: 0 5.6cqw; border-radius: 999px; box-shadow: inset 0 0 0 .5cqw var(--red); color: var(--red); font: 600 4.7cqw/1 var(--display); }
.rv-again svg { width: 6.8cqw; height: 6.8cqw; }

/* ---------------------------------------------------------------- samples: one screen each */
.pc-section--feats { padding-top: 0; }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 120px); padding-block: clamp(48px, 7vw, 112px); }
.feat--flip .feat-media { order: 2; }
.feat-media { display: grid; place-items: center; }
.feat-copy .pc-lede { max-width: 30ch; margin-top: 22px; }

/* The widget on a Home Screen. */
.rr-wall { position: absolute; inset: 0; background: linear-gradient(170deg, #d7e1ee 0%, #e9e2ec 52%, #f2dbe2 100%); }
.wdg { position: absolute; left: 6.2cqw; right: 6.2cqw; top: 20.5cqw; aspect-ratio: 338 / 158; border-radius: 6.8cqw; overflow: hidden; }
.wdg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wtab { position: absolute; background: var(--grey); color: var(--red); }
.wtab--tl { left: 0; top: 0; padding: 2.8cqw 3.7cqw 2.5cqw; border-radius: 0 0 4.3cqw 0; font: 600 4cqw/1 var(--display); }
.wtab--br { right: 0; bottom: 0; display: flex; gap: 1.2cqw; padding: 1.9cqw 2.5cqw 1.9cqw 3.1cqw; border-radius: 4.3cqw 0 0 0; }
.wtab--br svg { width: 8cqw; height: 8cqw; }
.wtab--br path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.apps { position: absolute; left: 7.4cqw; right: 7.4cqw; top: 73cqw; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6.8cqw 5.6cqw; }
.apps i, .apps img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 22%; }
.apps i { background: rgba(255, 255, 255, .55); }
.dock { position: absolute; left: 3.7cqw; right: 3.7cqw; bottom: 4.3cqw; height: 26cqw; border-radius: 9.3cqw; background: rgba(255, 255, 255, .4); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5.6cqw; padding: 3.7cqw 6.2cqw; align-items: center; }
.dock i { display: block; aspect-ratio: 1; border-radius: 22%; background: rgba(255, 255, 255, .7); }

/* rerun's home: the wordmark around the island, the count, the month, the folders. */
.rr-home { background: #fff; }
.hm-re, .hm-run { position: absolute; top: 4.2cqw; color: var(--ink-rr); }
.hm-re { right: calc(65.5% + 1.8cqw); width: 8cqw; }
.hm-run { left: calc(65.5% + 1.8cqw); width: 15.6cqw; }
.hm-grid { position: absolute; left: 5cqw; right: 5cqw; top: 20cqw; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.7cqw; }
.hm-count { font: 600 21cqw/.86 var(--display); letter-spacing: -0.06em; padding-top: 1.8cqw; }
.hm-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1.5cqw; padding: 3cqw 1.2cqw 0 1.8cqw; }
.hm-cal i { display: block; aspect-ratio: 1; border-radius: 50%; background: #e6e6e6; }
.hm-cal i.k { background: #f6c531; } .hm-cal i.d { background: #f07bc0; } .hm-cal i.t { background: #7fcb5c; }
.folders { position: absolute; left: 4.3cqw; right: 4.3cqw; top: 52cqw; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5.6cqw 3.7cqw; }
.fd { position: relative; display: block; height: 46cqw; transform: rotate(var(--r, 0deg)); }
.fd:nth-child(even) { margin-top: 8cqw; }
.fd-back { position: absolute; left: 0; right: 0; top: 3.7cqw; bottom: 0; border-radius: 1.9cqw 5cqw 5cqw 5cqw; }
.fd-tab { position: absolute; left: 0; top: 0; width: 52%; height: 6.8cqw; border-radius: 2.8cqw 3.7cqw 0 0; }
.fd-ph { position: absolute; width: 17.4cqw; height: 22.4cqw; border-radius: 1.6cqw; overflow: hidden; box-shadow: 0 0 0 .8cqw #fff; transform: rotate(var(--t, 0deg)); }
.fd-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-front { position: absolute; left: 0; right: 0; bottom: 0; height: 28.6cqw; border-radius: 4.3cqw; padding: 3.7cqw 3.7cqw 3.1cqw; display: flex; flex-direction: column; justify-content: space-between; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fd-front b { font: 600 4.7cqw/1.05 var(--display); letter-spacing: -0.02em; }
.fd-front span { font: 500 3.4cqw/1 var(--text); opacity: .75; }

/* The pile, before one confirmation. */
.rr-pend { background: #fff; }
.pend-title { position: absolute; left: 5.6cqw; top: 20cqw; font: 600 9.3cqw/1 var(--display); letter-spacing: -0.04em; }
.pend-grid { position: absolute; left: 5.6cqw; right: 5.6cqw; top: 36cqw; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5cqw; }
.pg { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 3.1cqw; overflow: hidden; }
.pg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg svg { position: absolute; right: 1.6cqw; top: 1.6cqw; width: 6.8cqw; height: 6.8cqw; padding: .9cqw; border-radius: 50%; background: var(--grey); }
.pg path { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; }
.pend-go { position: absolute; left: 5.6cqw; right: 5.6cqw; bottom: 19cqw; height: 16.8cqw; border-radius: 5cqw; background: var(--red); color: #fff; display: grid; place-items: center; font: 600 5.3cqw/1 var(--display); }
.pend-note { position: absolute; left: 0; right: 0; bottom: 11cqw; text-align: center; font: 500 3.4cqw/1.3 var(--text); color: #8a8a8a; }

/* ---------------------------------------------------------------- a few more things: hand-drawn icons, no cards */
.rr-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(40px, 4.4vw, 64px) clamp(24px, 2.6vw, 44px); margin: 0; padding: 0; list-style: none; }
.rr-tile svg { width: 48px; height: 48px; margin-left: -4px; }
.rr-tile path { fill: none; stroke: var(--ink-rr); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rr-tile h3 { margin-top: 16px; font: 600 20px/1.1 var(--display); letter-spacing: -0.02em; }
.rr-tile p { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--fg-mute); }

/* ---------------------------------------------------------------- privacy band: the buddy peeks over its edge */
.rr-band { position: relative; background: var(--page-2); text-align: center; padding: clamp(96px, 10vw, 150px) 0 clamp(80px, 9vw, 130px); }
.rr-band .pc-lede { margin-inline: auto; max-width: 34ch; }
.rr-peek { position: absolute; left: 62%; top: calc(clamp(64px, 6vw, 92px) * -0.58); width: clamp(64px, 6vw, 92px); aspect-ratio: 1; overflow: hidden; }
.rr-peek svg { display: block; width: 100%; height: auto; }
.rr-peek--404 { position: relative; left: auto; top: auto; display: block; width: 96px; height: 58px; margin: 0 auto 28px; border-bottom: 2px solid var(--ink-rr); }

/* ---------------------------------------------------------------- FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(28px, 6vw, 110px); }
.faq-grid .pc-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 2px; cursor: pointer; list-style: none;
  font: 600 clamp(18px, 1.5vw, 22px)/1.25 var(--display); letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--page-2); transition: transform .5s var(--spring), background-color .3s; }
.faq-item summary i::before, .faq-item summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: currentColor; }
.faq-item summary i::after { rotate: 90deg; }
.faq-item[open] summary i { transform: rotate(45deg); background: var(--spark); }
.faq-item summary:hover i { background: #e6e6e6; }
.faq-a p { max-width: 62ch; padding: 0 2px 24px; line-height: 1.55; color: var(--fg-mute); }
.faq-a a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- get */
.pc-get { padding: clamp(40px, 6vw, 100px) 0 clamp(80px, 10vw, 150px); }
.pc-get-inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: clamp(32px, 5vw, 80px); }
.pc-get-icon { width: 104px; height: 104px; border-radius: 24px; }
.rr-get-mark { width: clamp(200px, 22vw, 320px); margin-top: 34px; color: var(--ink-rr); }
.rr-get-mark .rr-mark path { stroke-width: 1.7; }
.pc-get .pc-lede { margin: 18px auto 30px; }

/* ---------------------------------------------------------------- footer (OMO contact pattern, rerun navigation) */
.theme-rerun .site-footer {
  min-height: 0; display: block; background: var(--bg); color: var(--fg);
  padding: clamp(72px, 8vw, 120px) 0 0; border-top: 1px solid var(--line);
}
.theme-rerun .footer-top { grid-template-columns: minmax(0, 1fr) 384px; align-items: start; gap: clamp(32px, 4vw, 64px); }
.theme-rerun .footer-hello { min-width: 0; }
.pop-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pop-foot-cols h2 { margin-bottom: 14px; font: 600 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-mute); }
.pop-foot-cols a { display: block; width: fit-content; padding: 6px 0; font: 500 16px/1.2 var(--display); }
.theme-rerun .footer-base { margin-top: clamp(48px, 6vw, 88px); align-items: center; padding-top: 24px; }
.made-by { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-rr); }
.made-by svg { width: 64px; height: auto; }
@media (min-width: 1101px) {
  .theme-rerun .footer-hello .footer-mail { font-size: clamp(36px, 4.7vw, 80px); }
}

/* ---------------------------------------------------------------- documents */
.reading-layout {
  display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 760px); gap: clamp(28px, 5vw, 80px);
  justify-content: center; align-items: start;
  padding: calc(var(--header-h) + clamp(32px, 6vw, 90px)) var(--gutter) clamp(80px, 10vw, 140px);
}
.chapter-rail { position: sticky; top: calc(var(--header-h) + 24px); }
.chapter-rail > p { display: none; }
.chapter-rail ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.chapter-rail a { display: block; padding: 7px 12px; border-radius: 999px; font-size: 0; color: var(--ink-rr); transition: background-color .3s, opacity .3s; opacity: .55; }
.chapter-rail a span { font: 500 14px/1.2 var(--display); }
.chapter-rail a:hover, .chapter-rail a.is-current { opacity: 1; background: var(--card); }
.reading-paper { min-width: 0; padding: clamp(24px, 4.4vw, 68px); border-radius: var(--radius); background: var(--card); font-size: 17px; line-height: 1.62; }
.reading-paper .breadcrumb { display: flex; gap: 8px; margin-bottom: clamp(28px, 4vw, 52px); font: 500 14px/1 var(--display); opacity: .5; }
.reading-paper .breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.reading-paper .signal-label, .reading-paper .chapter-number, .reading-paper .note-module > span, .reading-paper .next-track > span { display: none; }
.reading-paper .article-hero { margin-bottom: clamp(28px, 4vw, 52px); }
.reading-paper h1 { font: 600 clamp(44px, 6.4vw, 96px)/0.92 var(--display); letter-spacing: -0.05em; text-wrap: balance; }
.reading-paper .article-hero p { margin-top: 16px; font: 400 clamp(18px, 1.5vw, 22px)/1.4 var(--text); opacity: .7; }
.reading-paper section { margin-top: clamp(36px, 4.4vw, 56px); scroll-margin-top: calc(var(--header-h) + 20px); }
.reading-paper h2 { font: 600 clamp(24px, 2.4vw, 34px)/1.05 var(--display); letter-spacing: -0.03em; margin-bottom: 14px; text-wrap: balance; }
.reading-paper p, .reading-paper li, .reading-paper address { max-width: 66ch; }
.reading-paper p + p { margin-top: 14px; }
.reading-paper a:not(.next-track) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.reading-paper ul { margin: 14px 0 0; padding-left: 1.2em; }
.reading-paper li + li { margin-top: 8px; }
.reading-paper address { font-style: normal; }
.reading-paper .note-module { margin-top: 0; padding: clamp(20px, 2.4vw, 32px); border-radius: 22px; }
.reading-paper .note-module h2 { margin-bottom: 10px; }
.note-module-blue { background: #f4f4f4; }
.note-module-lime { background: #f3f5c8; }
.reading-paper .check-list { list-style: none; padding: 0; }
.reading-paper .check-list li { position: relative; padding-left: 30px; }
.reading-paper .check-list li::before { content: ''; position: absolute; left: 0; top: .42em; width: 18px; height: 12px; border-radius: 6px; background: var(--ink-rr); }
.reading-paper .check-list li::after { content: ''; position: absolute; left: 9px; top: calc(.42em + 3px); width: 4px; height: 6px; border-radius: 2px; background: var(--card); }
.reading-paper .table-wrap { overflow-x: auto; margin-top: 16px; border-radius: 16px; border: 1px solid var(--line); }
.reading-paper table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.reading-paper th, .reading-paper td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.reading-paper th { font: 600 14px/1.2 var(--display); background: rgba(10, 10, 11, .03); }
.reading-paper tr:last-child td { border-bottom: 0; }
.reading-paper .next-track {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(20px, 2.4vw, 30px); border-radius: 22px; background: var(--ink-rr); color: #fff;
  font: 600 clamp(20px, 2vw, 28px)/1.1 var(--display); letter-spacing: -0.025em; transition: transform .6s var(--spring);
}
.reading-paper .next-track:hover { transform: translateY(-3px); }
.reading-paper .next-track b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink-rr); font-weight: 500; }

.not-found { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--header-h) var(--gutter); }
.not-found h1 { font: 600 clamp(44px, 7vw, 110px)/0.92 var(--display); letter-spacing: -0.05em; }
.not-found p { margin: 16px auto 28px; max-width: 34ch; opacity: .65; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1100px) {
  .theme-rerun .footer-top { grid-template-columns: 1fr; }
  .rr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Portrait screens: title, then the whole phone, then the sentence and the badge. */
@media (max-width: 860px), (orientation: portrait) and (max-width: 1180px) {
  .pc-hero--split { display: block; min-height: 0; padding-top: calc(var(--header-h) + clamp(8px, 2svh, 24px)); }
  .pc-hero-split { --fs: clamp(40px, 10.5vw, 76px); grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0; padding-block: 0 clamp(48px, 8vw, 96px); text-align: center; }
  .pc-hero-copy { display: contents; }
  .pc-hero-split .pc-display { order: 1; font-size: var(--fs); }
  .rr-try { order: 2; margin-top: clamp(18px, 2.6svh, 28px); }
  .rr-device { --ph: calc(100svh - var(--header-h) - clamp(8px, 2svh, 24px) - var(--fs) * 1.8 - clamp(18px, 2.6svh, 28px) - clamp(20px, 3svh, 32px)); width: min(calc(var(--ph) * 0.46), 86vw, 360px); }
  .pc-hero-split .pc-lede { order: 3; margin: clamp(32px, 5vw, 48px) auto 0; }
  .pc-hero-split .pc-actions { order: 4; justify-content: center; margin-top: 24px; }
}
@media (max-width: 860px) {
  .feat { grid-template-columns: minmax(0, 1fr); gap: 36px; text-align: center; }
  .feat--flip .feat-media { order: 0; }
  .feat-copy .pc-lede { margin-inline: auto; }
  .rr-device--s { width: min(72vw, 320px); }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .pc-head { position: static; }
  .rr-peek { left: auto; right: 12%; }
  .reading-layout { grid-template-columns: minmax(0, 1fr); }
  .chapter-rail { position: static; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .chapter-rail ol { display: flex; gap: 6px; width: max-content; }
  .chapter-rail a { background: var(--card); }
}
@media (max-width: 520px) {
  .pc-display { font-size: clamp(46px, 13.5vw, 64px); }
  .rr-tiles { gap: 32px 18px; }
  .rr-tile svg { width: 40px; height: 40px; }
  .rr-tile h3 { font-size: 17px; }
  .rr-tile p { font-size: 14px; }
  .pop-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .rv-card, .rv-card.is-gone { transition-duration: .01s; }
  .rv-card.is-hint { animation: none; }
}
