/* Repostur landing. Graphite, cyan and rose on a pale graphite-white ground; Gabarito throughout.
   Hand-written, no framework. Served under a strict CSP: no inline styles anywhere. */

@font-face {
  font-family: "Gabarito";
  src: url("/fonts/gabarito-latin-wght-normal.5-3-0.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #f4f4f4;
  --ink: #2a2a2a;
  --muted: #5a5a5a;
  --line: #e0e0e0;
  --card: #ffffff;
  --alt: #f2f2f2;
  --graphite: #444444;
  --graphite-ink: #ffffff;
  --graphite-muted: #dddddd;
  --cyan: #00d1cd;
  --cyan-ink: #10302f;
  --rose: #e0005f;
  --rose-hover: #c20052;
  --rose-ink: #ffffff;
  --ok: #007a77;
  --pending: #8a5a00;
  --failed: #b3261e;

  --font: "Gabarito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-tile: 32px;
  --radius-card: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 18px 40px -18px rgba(42, 42, 42, 0.35), 0 2px 6px rgba(42, 42, 42, 0.06);
  --shadow-phone: 0 30px 60px -22px rgba(42, 42, 42, 0.5), 0 8px 20px rgba(42, 42, 42, 0.16);
  --gutter: 40px;
  --section-gap: 128px;
}

/* ── Base ─────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }
a { color: inherit; text-underline-offset: 3px; }
::selection { background: var(--rose); color: var(--rose-ink); }
/* On magenta surfaces a magenta selection would be invisible: select in graphite there instead. */
.final-card::selection, .final-card ::selection,
.btn-primary::selection, .btn-primary ::selection,
.thumb:not(.thumb-alt)::selection, .thumb:not(.thumb-alt) ::selection,
.tg-actions .is-primary::selection, .rail-account .avatar::selection,
.stats-total span::selection { background: var(--ink); color: #fff; }
/* Inputs inside the magenta card are white, so they keep the default magenta selection. */
.final-card input::selection { background: var(--rose); color: var(--rose-ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 10;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius-pill); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.brand { width: 1em; height: 1em; fill: currentColor; flex: none; }
.mark { width: 28px; height: 28px; flex: none; }
/* Unscoped on purpose: selectors do not reach through <use> into the cloned symbol, but rules matching the symbol itself do. */
.mark-bg { fill: var(--ink); }
.mark-fg { stroke: var(--ground); }
.mark-dot { fill: var(--ground); }
.mark-src { fill: var(--cyan); }

/* ── Buttons ──────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border: 0; border-radius: var(--radius-pill);
  font: inherit; font-size: 1rem; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s ease-out;
}
.btn-primary { background: var(--rose); color: var(--rose-ink); }
.btn-primary:hover { background: var(--rose-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-lg { height: 58px; padding: 0 32px; font-size: 1.05rem; }
.btn:disabled { cursor: progress; opacity: 0.85; }

/* ── Header ───────────────────────────────────────────────────────────────────────────── */
.site-header { padding: 14px 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: var(--row-pad); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; text-decoration: none; }
.header-cta { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; padding: 8px 0; }
.header-cta:hover { text-decoration-color: var(--rose); }
.site-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.site-nav a { font-weight: 600; font-size: 0.95rem; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-pill); white-space: nowrap; }
.site-nav a:hover { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.site-nav a[aria-current] { color: var(--cyan-ink); background: rgba(0, 209, 205, 0.16); box-shadow: none; }

/* Mid widths: the section links keep their full text; the wordmark shrinks to its mark and the CTA to a round
   "Join" button (its accessible name stays "Join the beta"). Phones (<=760px) use the two-row layout instead. */
.cta-short { display: none; }
.header-cta { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 900px) {
  .wordmark-text, .cta-long { display: none; }
  .cta-short { display: inline; }
  .site-header .header-cta, .site-header.is-floating .header-cta { display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; border-radius: 50%; background-color: var(--rose); color: var(--rose-ink);
    text-decoration: none; font-size: 0.78rem; font-weight: 700; }
  .site-header .header-cta:hover { background-color: var(--rose-hover); }
}

/* Sticky header (JS only; without JS it scrolls away as a plain header). Past 40px of scroll site.js adds
   .is-floating and the full-width row morphs into an inset, rounded, frosted bar. Vertical padding and an equal
   negative margin grow together, so the header's height in the flow never changes and nothing below it jumps. */
@property --row-pad { syntax: "<length>"; inherits: true; initial-value: 40px; }
.header-row { --row-pad: var(--gutter); }
.js .site-header { position: sticky; top: 6px; z-index: 50; pointer-events: none; }
.js .header-row { pointer-events: auto; margin-block: 0; padding-block: 0; border-radius: 28px;
  background-color: rgba(255, 255, 255, 0);
  box-shadow: 0 18px 40px -18px rgba(42, 42, 42, 0), 0 2px 6px rgba(42, 42, 42, 0), inset 0 0 0 1px rgba(224, 224, 224, 0); }
.js .header-cta { border-radius: var(--radius-pill); text-decoration-color: currentColor; }
.site-header.is-floating .header-row { --row-pad: 10px; max-width: calc(min(1240px, 100%) - 2 * var(--gutter) + 20px);
  padding-block: 8px; margin-block: -8px; background-color: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 18px 40px -18px rgba(42, 42, 42, 0.35), 0 2px 6px rgba(42, 42, 42, 0.06), inset 0 0 0 1px rgba(224, 224, 224, 1); }
.site-header.is-floating .site-nav a:hover { background: var(--alt); box-shadow: none; }
.site-header.is-floating .header-cta { background-color: var(--rose); color: var(--rose-ink); padding: 8px 18px; text-decoration-color: transparent; }
.site-header.is-floating .header-cta:hover { background-color: var(--rose-hover); }
@media (prefers-reduced-motion: no-preference) {
  .js .header-row { transition: --row-pad .45s var(--morph), max-width .45s var(--morph), padding-block .45s var(--morph), margin-block .45s var(--morph),
    background-color .3s ease, box-shadow .35s ease, backdrop-filter .3s ease; --morph: cubic-bezier(.2, .8, .2, 1); }
  .js .header-cta { transition: background-color .3s ease, color .3s ease, padding .45s cubic-bezier(.2, .8, .2, 1), text-decoration-color .2s ease; }
}
.plan:target { box-shadow: inset 0 0 0 3px var(--cyan); }


/* ── Hero ─────────────────────────────────────────────────────────────────────────────── */
.hero { padding-top: 16px; }
.hero-title + .lede { margin-top: 8px; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 16px; }
.hero-title {
  font-size: clamp(2.7rem, 6.2vw, 5.4rem); line-height: 0.98; font-weight: 900; letter-spacing: -0.035em;
  max-width: 13ch; text-wrap: balance;
}
.hl {
  background: var(--cyan); color: var(--ink); padding: 0 0.12em; border-radius: 0.18em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (min-width: 761px) {
  .hero-title { max-width: none; }
  .hl { display: inline-block; }
}
@media (max-width: 760px) { .br-wide { display: none; } }
.lede { max-width: 56ch; font-size: 1.18rem; line-height: 1.55; color: var(--muted); text-wrap: balance; }
.join { width: 100%; max-width: 560px; }

/* Signup form */
.join-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; justify-items: center; }
.field { width: 100%; display: grid; gap: 10px; }
.field-row { display: flex; gap: 8px; width: 100%; }
.field-row input {
  flex: 1 1 auto; min-width: 0; height: 56px; padding: 0 22px;
  border: 1px solid #cfcfcf; border-radius: var(--radius-pill); background: var(--card); color: var(--ink);
  font: inherit; font-size: 1rem;
}
.field-row input, .share-url { caret-color: var(--rose); }
.field-row input::placeholder { color: #6b6b6b; }
.field-row input:hover { border-color: #a9a9a9; }
.field-row input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.field-row input[aria-invalid="true"] { border-color: var(--failed); }
.field-row .btn { height: 56px; }
.field-error { color: var(--failed); font-weight: 600; font-size: 0.95rem; text-align: left; }
.field-error:empty { display: none; }
.privacy-note { display: flex; gap: 8px; align-items: flex-start; justify-content: center; font-size: 0.82rem; line-height: 1.45; color: var(--muted); text-align: left; max-width: 72ch; margin: 0 auto; }
.privacy-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; }

.spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
[aria-busy="true"] .spinner { display: inline-block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chips { border: 0; padding: 0; margin: 0; min-width: 0; width: min(940px, calc(100vw - 2 * var(--gutter))); display: grid; gap: 10px; justify-items: center; }
.chips legend { padding: 0; margin: 0 auto 6px; font-weight: 600; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--muted); margin-left: 6px; }
.chip-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip-input { position: absolute; opacity: 0; pointer-events: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-size: 0.9rem; font-weight: 500; cursor: pointer; user-select: none;
}
.chip .brand { width: 15px; height: 15px; }
.chip:hover { border-color: #a9a9a9; }
.chip-input:checked + .chip { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-input:focus-visible + .chip { outline: 3px solid var(--ink); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.trust { font-size: 0.88rem; }

/* Success state */
.join-success {
  background: var(--card); border-radius: 28px; padding: 28px; box-shadow: var(--shadow-card);
  display: grid; gap: 22px; text-align: left; outline: none;
}
.success-head { display: flex; gap: 16px; align-items: flex-start; }
.success-badge { width: 44px; height: 44px; border-radius: 50%; background: var(--cyan); display: grid; place-items: center; flex: none; }
.success-badge svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.success-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.success-head p { color: var(--muted); }
.success-head .success-title { color: var(--ink); }
.share { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.share-title { font-weight: 600; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-url { flex: 1 1 200px; min-width: 0; height: 52px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--alt); font: inherit; color: var(--ink); }
.share-status { font-size: 0.9rem; color: var(--ok); }
.share-status:empty { margin-top: -10px; }
.join-final .join-success { padding: 20px 24px; box-shadow: none; }

/* ── Orbit stage ──────────────────────────────────────────────────────────────────────── */
.stage { margin-top: 36px; position: relative; overflow-x: clip; }
.stage-inner {
  position: relative; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr); gap: 72px; align-items: center;
}
.stage-inner::before {
  content: ""; position: absolute; left: 50%; top: -6px; width: 760px; height: 760px;
  transform: translateX(-50%); border-radius: 50%; background: var(--cyan); z-index: 0;
}
.stage-inner > * { position: relative; z-index: 1; }
.stage-side { display: grid; gap: 56px; }
.stage-left { justify-items: end; }
.stage-right { justify-items: start; }
.stage-left .dest:nth-child(2) { margin-right: 40px; }
.stage-right .dest:nth-child(2) { margin-left: 40px; }
.stage-side .dest::after { content: ""; position: absolute; top: 50%; width: 72px; border-top: 1.5px dashed var(--ink); }
.stage-left .dest:nth-child(2)::after, .stage-right .dest:nth-child(2)::after { width: 112px; }
.stage-left .dest::after { left: 100%; }
.stage-right .dest::after { right: 100%; }
.stage { padding-bottom: 150px; }

.card { background: var(--card); color: var(--ink); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.dest { position: relative; width: 260px; padding: 16px; display: grid; gap: 8px; font-size: 0.88rem; line-height: 1.4; }
.dest-head { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.dest-head .brand { width: 16px; height: 16px; }
.kind { margin-left: auto; font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.dest-link { color: var(--muted); font-size: 0.8rem; text-decoration: underline; text-underline-offset: 3px; }
.story-row { display: flex; gap: 10px; align-items: center; }
.story-thumb { width: 44px; aspect-ratio: 9 / 16; border-radius: 8px; background: var(--rose); flex: none; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.status.is-done { color: var(--ok); }
.status.is-pending { color: var(--pending); }
.status.is-skipped { color: var(--muted); }
.status.is-failed { color: var(--failed); }
.status.is-working { color: var(--ink); }
.status.is-working::before { display: none; }
.wheel { width: 12px; height: 12px; border: 2px solid var(--cyan); border-right-color: transparent; border-radius: 50%; animation: spin 0.9s linear infinite; flex: none; }

/* Phone */
.phone { width: 300px; aspect-ratio: 9 / 19; border-radius: 46px; background: #161616; padding: 11px; box-shadow: var(--shadow-phone); }
.phone-screen { height: 100%; border-radius: 36px; background: var(--card); overflow: hidden; display: flex; flex-direction: column; }
.phone-bar { display: flex; justify-content: space-between; padding: 14px 24px 8px; font-size: 0.75rem; font-weight: 700; }
.phone-app { display: flex; align-items: center; gap: 8px; padding: 6px 16px 12px; font-size: 0.85rem; font-weight: 700; }
.phone-app .brand, .mini-app .brand { width: 18px; height: 18px; }

.thumb {
  position: relative; aspect-ratio: 16 / 9; background: var(--rose); color: #fff;
  display: flex; align-items: flex-end; padding: 12px;
}
.thumb b { font-size: 1.45rem; line-height: 0.95; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; max-width: 13ch; text-wrap: balance; }
.thumb-alt { background: var(--cyan); color: var(--cyan-ink); }
.duration { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.78); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 3px 7px; border-radius: 6px; }
.post-meta { padding: 12px 16px; display: grid; gap: 4px; }
.post-title { font-weight: 700; font-size: 0.95rem; line-height: 1.25; }
.post-by { font-size: 0.78rem; color: var(--muted); }
.spotted { margin: 6px 16px 0; padding: 10px 12px; border-radius: 14px; background: var(--alt); font-size: 0.78rem; line-height: 1.35; display: flex; gap: 10px; align-items: center; }
.spotted .mark { width: 22px; height: 22px; }
.drafted { margin: 10px 16px 0; display: grid; }
.approved { margin: auto 12px 14px; padding: 10px 12px; border-radius: 14px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 10px; font-size: 0.78rem; line-height: 1.3; }
.approved b { display: block; font-size: 0.82rem; }
.approved-check { width: 24px; height: 24px; border-radius: 50%; background: var(--cyan); display: grid; place-items: center; flex: none; }
.approved-check svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.drafted li { display: flex; align-items: center; gap: 8px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 0.8rem; font-weight: 600; }
.drafted li:last-child { border-bottom: 0; }
.drafted .brand { width: 14px; height: 14px; }
.drafted em { margin-left: auto; font-style: normal; font-weight: 500; color: var(--muted); }

/* ── Sections ─────────────────────────────────────────────────────────────────────────── */
.section-title { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.04; font-weight: 900; letter-spacing: -0.03em; max-width: 20ch; text-wrap: balance; }
.why, .platforms { padding-top: var(--section-gap); }

/* How-it-works carousel: steps, feed and stats share one band; one panel at a time. */
.tour {
  margin-top: calc(var(--section-gap) - 64px); padding: 64px 0 80px;
  transition: background-color 0.4s cubic-bezier(.16, 1, .3, 1), color 0.4s cubic-bezier(.16, 1, .3, 1);
}
.tour + .rules { padding-top: 56px; }
.tour-nav { border: 0; margin: 0 0 48px; padding: 0; min-width: 0; }
.tour-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tour-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* Same pills as the rule templates (.tpl-tab). */
.tour-tab { cursor: pointer; padding: 9px 16px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-weight: 600; font-size: 0.92rem; background-color: var(--card); color: var(--ink); }
.tour-tab:hover { border-color: var(--ink); }
#tour-steps:checked ~ .tour-tabs .tour-tab-steps, #tour-feed:checked ~ .tour-tabs .tour-tab-feed, #tour-stats:checked ~ .tour-tabs .tour-tab-stats { background-color: var(--ink); border-color: var(--ink); color: #fff; }
#tour-steps:focus-visible ~ .tour-tabs .tour-tab-steps, #tour-feed:focus-visible ~ .tour-tabs .tour-tab-feed, #tour-stats:focus-visible ~ .tour-tabs .tour-tab-stats { outline: 3px solid var(--rose); outline-offset: 3px; }
.tour-panel { display: none; }
.tour:has(#tour-steps:checked) .tour-panel-steps, .tour:has(#tour-feed:checked) .tour-panel-feed, .tour:has(#tour-stats:checked) .tour-panel-stats { display: block; }
.tour-next { margin-top: 32px; display: flex; justify-content: flex-end; }
.tour-next label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--cyan); }
.tour-next label:hover { text-decoration-color: currentColor; }
/* While the feed is open the whole band is the graphite dashboard band. */
.tour:has(#tour-feed:checked) { background: var(--graphite); color: var(--graphite-ink); }
.tour:has(#tour-feed:checked) .tour-tab:not(.tour-tab-feed) { background-color: transparent; border-color: rgba(255, 255, 255, 0.28); color: var(--graphite-ink); }
.tour:has(#tour-feed:checked) .tour-tab:hover { border-color: #fff; }
.tour:has(#tour-feed:checked) .tour-tab-feed { background-color: #fff; border-color: #fff; color: var(--ink); }
.tour:has(#tour-feed:checked) :focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .tour:has(#tour-steps:checked) .tour-panel-steps, .tour:has(#tour-feed:checked) .tour-panel-feed, .tour:has(#tour-stats:checked) .tour-panel-stats { animation: tour-in 0.45s cubic-bezier(.16, 1, .3, 1); }
}
@keyframes tour-in { from { opacity: 0; transform: translateY(12px); } }

/* Step tiles */
.tiles { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  border-radius: var(--radius-tile); padding: 28px 28px 0; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px; background: var(--cyan); color: var(--ink);
}
.tile-2 { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tile-3 { background: var(--graphite); color: var(--graphite-ink); }
.tile-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--ink); color: #fff; margin-bottom: 10px; }
.tile-3 .tile-num { background: #fff; color: var(--graphite); }
.tile h3 { font-size: 1.5rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.tile > p { line-height: 1.5; max-width: 34ch; }
.tile-2 > p { color: var(--muted); }
.tile-3 > p { color: var(--graphite-muted); }
.piece { margin-top: auto; margin-bottom: -2px; background: var(--card); color: var(--ink); border-radius: 22px 22px 0 0; }
.tile-2 .piece { box-shadow: 0 0 0 1px var(--line); }

.conn { padding: 6px 18px 18px; }
.tile-1 .conn { margin-top: 24px; }
.conn-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; font-weight: 500; }
.conn-row:last-child { border-bottom: 0; }
.conn-row .brand { width: 16px; height: 16px; }
.conn-row em { margin-left: auto; font-style: normal; font-size: 0.8rem; color: var(--muted); }
.conn-row em.is-on { color: var(--ok); font-weight: 600; }

.mini-post { overflow: hidden; padding-bottom: 18px; }
.mini-post .thumb { aspect-ratio: 16 / 7; }
.mini-body { padding: 14px 16px 0; display: grid; gap: 8px; }
.mini-app { display: flex; gap: 6px; align-items: center; font-size: 0.82rem; font-weight: 700; }
.mini-title { font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.mini-field { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.85rem; }
.mini-field span { color: var(--muted); }
.mini-btn { justify-self: end; background: var(--ink); color: #fff; border-radius: var(--radius-pill); padding: 9px 20px; font-weight: 700; font-size: 0.85rem; }

.tg { padding: 18px 18px 18px; font-size: 0.86rem; line-height: 1.45; }
.tg-who { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 10px; }
.tg-who .mark { width: 26px; height: 26px; }
.tg-who small { margin-left: auto; font-weight: 500; font-size: 0.78rem; color: var(--muted); }
.tg-list { margin: 10px 0 14px; display: grid; gap: 6px; }
.tg-list li { display: flex; gap: 10px; align-items: center; padding: 8px 12px; font-weight: 600; font-size: 0.82rem; border-radius: 12px; background: var(--alt); }
.tg-list .brand { width: 15px; height: 15px; flex: none; }
.tg-actions { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; }
.tg-actions span { height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; border: 1px solid var(--line); }
.tg-actions .is-primary { background: var(--rose); color: var(--rose-ink); border-color: transparent; }

/* Dashboard band */
.feed-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.feed-head p { font-size: 1.12rem; line-height: 1.55; color: var(--graphite-muted); max-width: 52ch; }

.board {
  background: var(--card); color: var(--ink); border-radius: 28px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6), 0 6px 18px rgba(0, 0, 0, 0.12);
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
}
.rail { background: var(--alt); border-right: 1px solid var(--line); padding: 24px 18px; display: grid; align-content: start; gap: 4px; font-size: 0.92rem; }
.rail-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 14px; }
.rail-account { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 0.88rem; }
.rail-account b { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-account .avatar { padding: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--rose); color: #fff; font-weight: 800; font-size: 0.8rem; }
.rail-account .chev { width: 16px; height: 16px; margin-left: auto; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rail-nav { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 4px; }
.rail-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rail-nav label { padding: 10px 12px; border-radius: 10px; color: var(--muted); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.rail-nav label:hover { color: var(--ink); background: rgba(0, 0, 0, 0.04); }
.rail-nav label em { margin-left: 8px; font-style: normal; font-size: 0.68rem; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-pill); border: 1px dashed #b5b5b5; color: var(--muted); vertical-align: 1px; }
.rail-input:checked + label { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.rail-input:focus-visible + label { outline: 3px solid var(--rose); outline-offset: 2px; }
.bd-panel { display: none; min-height: 620px; } /* the tallest section (Activity), so switching doesn't move the page */
.board:has(#bd-feed:checked) .bd-panel-feed,
.board:has(#bd-rules:checked) .bd-panel-rules,
.board:has(#bd-conn:checked) .bd-panel-conn,
.board:has(#bd-activity:checked) .bd-panel-activity,
.board:has(#bd-stats:checked) .bd-panel-stats,
.board:has(#bd-account:checked) .bd-panel-account { display: block; }
.feed { padding: 28px 32px 12px; }
.feed-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; font-size: 1.3rem; }
.feed-top small { font-size: 0.85rem; color: var(--muted); }
.feed-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.feed-item .thumb { border-radius: 14px; align-self: start; }
.feed-item .thumb b { font-size: 0.95rem; max-width: 14ch; }
.feed-title { font-weight: 700; font-size: 1.08rem; margin-bottom: 4px; }
.feed-src { display: flex; gap: 6px; align-items: center; font-size: 0.85rem; color: var(--muted); }
.feed-src .brand { width: 14px; height: 14px; color: var(--ink); }
.dests { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.dest-cell { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 5px; font-size: 0.82rem; }
.dest-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.88rem; }
.dest-name .brand { width: 14px; height: 14px; }
.dest-kind { color: var(--muted); }
.feed-stats { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font-size: 0.85rem; color: var(--muted); }
.feed-stats b { color: var(--ink); font-weight: 800; font-size: 0.95rem; }
.feed-stats-label em { font-style: normal; text-transform: none; letter-spacing: 0; margin-left: 6px; padding: 1px 7px; border-radius: var(--radius-pill); border: 1px dashed #b5b5b5; font-weight: 700; }
.feed-stats-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* Dashboard mock-up sections (example data) */
.feed-top strong em, .bd-planned { margin-left: 10px; font-style: normal; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); border: 1px dashed #b5b5b5; color: var(--muted); vertical-align: 3px; }
.bd-list { display: grid; gap: 10px; }
.bd-day { margin: 18px 0 10px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.feed-top + .bd-day { margin-top: 0; }
.bd-panel .brand { width: 15px; height: 15px; flex: none; }

.bd-rule { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 12px; }
.bd-rule.is-off { background: var(--alt); }
.bd-rule.is-off .bd-when, .bd-rule.is-off .bd-tags { opacity: 0.6; }
.bd-rule-head { display: flex; align-items: center; gap: 16px; }
.bd-when { flex: 1; min-width: 0; font-size: 0.95rem; }
.bd-when b { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--cyan); color: var(--cyan-ink); }
.bd-mode { display: grid; text-align: right; font-size: 0.85rem; font-weight: 700; }
.bd-mode small { font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.bd-switch { width: 38px; height: 22px; border-radius: var(--radius-pill); background: #c9c9c9; position: relative; flex: none; }
.bd-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.bd-switch.is-on { background: var(--ok); }
.bd-switch.is-on::after { left: 19px; }
.bd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-tags li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.bd-tags b { color: var(--ink); }

.bd-conns li { display: grid; grid-template-columns: minmax(0, 1fr) 170px 200px; align-items: center; gap: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; font-size: 0.88rem; }
.bd-conn-name { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); }
.bd-conn-name b { color: var(--ink); }
.bd-conn-role { font-size: 0.8rem; color: var(--muted); }

.bd-log { gap: 0; }
.bd-log li { display: grid; grid-template-columns: 44px 30px minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.88rem; }
.bd-log li:first-child { border-top: 0; }
.bd-log time { font-size: 0.8rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.bd-log-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--alt); box-shadow: inset 0 0 0 2px currentColor; }
.bd-log-icon .brand { color: var(--ink); width: 14px; height: 14px; }
.bd-log-icon.is-done { color: var(--ok); }
.bd-log-icon.is-pending { color: var(--pending); }
.bd-log-icon.is-failed { color: var(--failed); }
.bd-log-icon.is-skipped { color: #c4c4c4; }

.bd-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.bd-totals div { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.bd-totals dt { font-size: 0.8rem; color: var(--muted); }
.bd-totals dd { margin: 2px 0 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
.bd-bars { display: grid; gap: 10px; }
.bd-bars li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 56px; align-items: center; gap: 14px; font-size: 0.88rem; }
.bd-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.bd-bar-name { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.bd-bar, .bd-meter { appearance: none; -webkit-appearance: none; width: 100%; height: 14px; border: 0; border-radius: var(--radius-pill); background: var(--alt); overflow: hidden; color: var(--cyan); }
.bd-meter { height: 8px; color: var(--ink); }
.bd-bar::-webkit-progress-bar, .bd-meter::-webkit-progress-bar { background: var(--alt); }
.bd-bar::-webkit-progress-value { background: var(--cyan); border-radius: var(--radius-pill); }
.bd-meter::-webkit-progress-value { background: var(--ink); border-radius: var(--radius-pill); }
.bd-bar::-moz-progress-bar { background: var(--cyan); border-radius: var(--radius-pill); }
.bd-meter::-moz-progress-bar { background: var(--ink); border-radius: var(--radius-pill); }

.bd-plan { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 16px; background: var(--cyan); color: var(--cyan-ink); margin-bottom: 14px; }
.bd-plan p { display: grid; gap: 2px; }
.bd-plan b { font-size: 1.1rem; font-weight: 800; }
.bd-plan span { font-size: 0.85rem; }
.bd-btn { flex: none; padding: 9px 16px; border-radius: var(--radius-pill); background: var(--ink); color: #fff; font-size: 0.85rem; font-weight: 700; }
.bd-meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bd-meters li { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; }
.bd-meters p { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--muted); }
.bd-meters p b { color: var(--ink); white-space: nowrap; }
.bd-meters small { font-size: 0.75rem; color: var(--muted); }

/* Rules */
.rules { padding-top: var(--section-gap); }
.rules-head, .roadmap-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.rules-head > p, .roadmap-head > p:last-child { font-size: 1.12rem; line-height: 1.55; color: var(--muted); max-width: 50ch; }
.rules-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.rule-card { background: var(--card); border-radius: var(--radius-tile); box-shadow: var(--shadow-card); padding: 28px; }
.tpl-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tpl-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tpl-label { padding: 0; font-size: 0.92rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.tpl-tab { cursor: pointer; padding: 9px 16px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-weight: 600; font-size: 0.92rem; background: var(--card); }
.tpl-tab:hover { border-color: var(--ink); }
#tpl-yt:checked ~ .tpl-tabs .tpl-tab-yt, #tpl-ig:checked ~ .tpl-tabs .tpl-tab-ig, #tpl-tx:checked ~ .tpl-tabs .tpl-tab-tx { background-color: var(--ink); border-color: var(--ink); color: #fff; }
#tpl-yt:focus-visible ~ .tpl-tabs .tpl-tab-yt, #tpl-ig:focus-visible ~ .tpl-tabs .tpl-tab-ig, #tpl-tx:focus-visible ~ .tpl-tabs .tpl-tab-tx { outline: 3px solid var(--rose); outline-offset: 3px; }
.tpl-set { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.tpl-panel { display: none; }
.tpl-panel-yt { display: block; }
.rule-card:has(#tpl-ig:checked) .tpl-panel-yt, .rule-card:has(#tpl-tx:checked) .tpl-panel-yt { display: none; }
.rule-card:has(#tpl-ig:checked) .tpl-panel-ig, .rule-card:has(#tpl-tx:checked) .tpl-panel-tx { display: block; }
.rule-when { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.rule-src { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--cyan); color: var(--cyan-ink); font-size: 1.05rem; }
.rule-src .brand { width: 18px; height: 18px; }
.rule-then { margin: 14px 0 10px; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.rule-rows { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr) max-content; gap: 8px; }
.rule-rows li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; column-gap: 14px; row-gap: 10px; padding: 13px 16px; border-radius: 16px; background: var(--alt); font-size: 0.9rem; }
.rule-dest { display: flex; align-items: center; gap: 8px; }
.rule-dest .brand { width: 16px; height: 16px; }
.rule-kind { justify-self: start; font-size: 0.76rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--card); border: 1px solid var(--line); white-space: nowrap; }
.rule-detail { color: var(--muted); min-width: 0; }
.rule-sample { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 12px; border-radius: 10px; background: #e6f9f9; color: var(--ink); font-size: 0.85rem; line-height: 1.4; }
.rule-sample em { width: 100%; font-style: normal; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.rule-sample b { margin-left: auto; font-size: 0.75rem; color: var(--ok); white-space: nowrap; }
.rule-delay { text-align: right; font-size: 0.8rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.rule-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.rule-edit { margin-left: auto; }

.ladder-wrap { min-width: 0; }
.ladder { display: grid; gap: 12px; counter-reset: rung; }
.rung { position: relative; counter-increment: rung; background: var(--graphite); color: var(--graphite-ink); border-radius: 26px; padding: 22px 22px 22px 70px; }
.rung::before { content: counter(rung); position: absolute; left: 22px; top: 20px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--graphite); font-weight: 800; font-size: 0.9rem; }
.rung:nth-child(2) { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.rung:nth-child(2)::before { background: var(--ink); color: #fff; }
.rung:nth-child(3) { background: var(--cyan); color: var(--cyan-ink); }
.rung:nth-child(3)::before { background: var(--ink); color: #fff; }
.rung-step { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; }
.rung-text { text-wrap: pretty; margin-top: 2px; font-size: 0.92rem; line-height: 1.45; opacity: 0.92; }
.rung-ui { margin-top: 14px; border-radius: 16px; background: var(--card); color: var(--ink); padding: 12px 14px; font-size: 0.85rem; box-shadow: 0 8px 18px -10px rgba(42, 42, 42, 0.35); }
.rung:nth-child(2) .rung-ui { background: var(--alt); }
.streak { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.streak b { white-space: nowrap; }
.streak-label { color: var(--muted); }
.streak-dots { display: flex; gap: 5px; margin-left: auto; }
.streak-dots i { width: 22px; height: 8px; border-radius: 4px; background: var(--line); }
.streak-dots i.on { background: var(--rose); }
.offer p:first-child { line-height: 1.4; }
.offer-actions { display: flex; gap: 6px; margin-top: 10px; }
.offer-actions span { padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 0.8rem; }
.offer-actions .is-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.undo { display: flex; align-items: center; gap: 10px; }
.undo .mark { width: 24px; height: 24px; }
.undo-btn { margin-left: auto; font-weight: 800; color: var(--rose); }
.rung { display: flex; flex-direction: column; }
.rung-ui { margin-top: auto; }
.rung-text { margin-bottom: 14px; }
.rung-note { font-size: 0.88rem; color: var(--muted); line-height: 1.45; padding: 12px 6px 0; }

/* Swipe rails (phones): set in the phone block; site.js makes a rail focusable while it actually overflows. */
[data-rail]:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: var(--radius-tile); }

/* Roadmap */
.roadmap { padding-top: var(--section-gap); }
.road { display: grid; gap: 16px; }
.road-single .road-compose { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); column-gap: 48px; align-items: start; }
.road-single .road-compose > :not(.road-ui) { grid-column: 1; }
.road-single .road-tag { justify-self: start; }
.road-single .road-ui { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; padding-top: 0; }
.road-card { border-radius: var(--radius-tile); padding: 28px; display: flex; flex-direction: column; gap: 8px; background: var(--card); box-shadow: var(--shadow-card); overflow: hidden; }
.road-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 700; padding: 4px 11px; border-radius: var(--radius-pill); border: 1px solid currentColor; opacity: 0.85; }
.tag-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px dashed currentColor; }
.road-card h3 { font-size: 1.4rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; text-wrap: balance; }
.road-card > p:not(.road-tag) { line-height: 1.5; max-width: 52ch; opacity: 0.9; }
.road-ui { margin-top: auto; padding-top: 18px; }

.compose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; align-items: center; }
.week { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 4px; }
.week-set { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; min-width: 0; }
.week-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.week label { position: relative; padding: 8px 0 14px; border-radius: 12px; background: var(--alt); text-align: center; font-size: 0.78rem; font-weight: 700; color: var(--muted); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.week label:hover { color: var(--ink); }
.week .has::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--muted); }
#day-Mon:checked ~ .week [for=day-Mon],
#day-Tue:checked ~ .week [for=day-Tue],
#day-Wed:checked ~ .week [for=day-Wed],
#day-Thu:checked ~ .week [for=day-Thu],
#day-Fri:checked ~ .week [for=day-Fri],
#day-Sat:checked ~ .week [for=day-Sat],
#day-Sun:checked ~ .week [for=day-Sun] { background-color: var(--ink); color: #fff; }
#day-Mon:checked ~ .week .has[for=day-Mon]::after,
#day-Tue:checked ~ .week .has[for=day-Tue]::after,
#day-Wed:checked ~ .week .has[for=day-Wed]::after,
#day-Thu:checked ~ .week .has[for=day-Thu]::after,
#day-Fri:checked ~ .week .has[for=day-Fri]::after,
#day-Sat:checked ~ .week .has[for=day-Sat]::after,
#day-Sun:checked ~ .week .has[for=day-Sun]::after { background: var(--cyan); }
#day-Mon:focus-visible ~ .week [for=day-Mon],
#day-Tue:focus-visible ~ .week [for=day-Tue],
#day-Wed:focus-visible ~ .week [for=day-Wed],
#day-Thu:focus-visible ~ .week [for=day-Thu],
#day-Fri:focus-visible ~ .week [for=day-Fri],
#day-Sat:focus-visible ~ .week [for=day-Sat],
#day-Sun:focus-visible ~ .week [for=day-Sun] { outline: 3px solid var(--rose); outline-offset: 2px; }
.day-panel { display: none; }
.compose:has(#day-Mon:checked) .day-panel-Mon,
.compose:has(#day-Tue:checked) .day-panel-Tue,
.compose:has(#day-Wed:checked) .day-panel-Wed,
.compose:has(#day-Thu:checked) .day-panel-Thu,
.compose:has(#day-Fri:checked) .day-panel-Fri,
.compose:has(#day-Sat:checked) .day-panel-Sat,
.compose:has(#day-Sun:checked) .day-panel-Sun { display: contents; }
.compose-post.is-free { grid-column: 1 / -1; background: var(--alt); color: var(--ink); outline: 1.5px dashed #c4c4c4; outline-offset: -1.5px; }
.compose-post.is-free::after { display: none; }
.compose-post.is-free em { color: var(--muted); }
.compose-post { position: relative; padding: 16px; border-radius: 18px; background: var(--ink); color: #fff; }
.compose-post::after { content: ""; position: absolute; left: 100%; top: 50%; width: 14px; border-top: 1.5px dashed var(--ink); }
.compose-when { display: flex; justify-content: space-between; gap: 10px; font-size: 0.78rem; font-weight: 700; }
.compose-when em { font-style: normal; color: var(--cyan); }
.compose-text { margin-top: 8px; font-size: 0.95rem; font-weight: 600; line-height: 1.4; }
.compose-fan { display: grid; gap: 6px; }
.compose-fan li { display: grid; grid-template-columns: 16px 74px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--alt); font-size: 0.82rem; }
.compose-fan .brand { width: 14px; height: 14px; }
.compose-fan span { color: var(--muted); }
.compose-fan em { font-style: normal; font-weight: 700; font-size: 0.76rem; color: var(--ok); white-space: nowrap; }

.bars-key { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 0.75rem; font-weight: 600; }
.bars-key span { width: 10px; height: 10px; border-radius: 3px; background: var(--ink); }
.bars-key .k-rep { margin-left: 10px; background: var(--rose); }

/* Why */
.why-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.reasons li { border-top: 2px solid var(--rose); padding-top: 18px; }
.reasons h3 { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.reasons p { line-height: 1.55; color: var(--muted); }

/* Platforms */
.platforms-title { font-size: 1.6rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.platform-list { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.platform-list li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-pill); font-weight: 600; }
.platform-list .brand { width: 18px; height: 18px; }
.platform-list .platform-more { border-style: dashed; border-color: #bdbdbd; color: var(--muted); }
.platform-more .brand { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.platforms-note { margin-top: 16px; color: var(--muted); max-width: 70ch; }

/* Final */
.final { padding: var(--section-gap) 0 0; }
.final-card {
  background: var(--rose); color: var(--rose-ink); border-radius: 40px; padding: 96px 48px;
  display: grid; justify-items: center; text-align: center; gap: 18px;
}
.final-title { font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1; font-weight: 900; letter-spacing: -0.035em; max-width: 15ch; text-wrap: balance; }
.final-card > p:not(.trust) { font-size: 1.15rem; max-width: 46ch; }
.join-final { margin-top: 12px; max-width: 520px; }
.join-final .field-row input { border-color: transparent; }
.join-final .field-row input:focus-visible { outline-color: #fff; }
.join-final .privacy-note { color: #fff; max-width: 60ch; }
.join-final .field-row input[aria-invalid="true"] { border: 2px solid var(--ink); }
.join-final .field-error { justify-self: center; background: #fff; color: var(--failed); padding: 6px 14px; border-radius: var(--radius-pill); font-size: 0.9rem; }
.join-final .join-success { color: var(--ink); }
.final-card .trust { margin-top: 4px; font-size: 0.85rem; color: #fff; }
.final-card :focus-visible { outline-color: #fff; }

/* Footer */
.site-footer { padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 48px; font-size: 0.85rem; line-height: 1.5; color: var(--muted); }
.footer-id { display: grid; gap: 6px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.footer-brand .mark { width: 24px; height: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; align-content: start; justify-content: flex-end; gap: 10px 22px; font-weight: 600; color: var(--ink); }
.footer-nav a:hover { text-decoration-color: var(--rose); }
.footer-legal { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.78rem; }

/* Analytics preview */
.stats-head, .pricing-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: 44px; }
/* Heading rows share the column split of the grid under them, so the intro starts where the right-hand column does. */
.rules-head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 20px; }
.stats-head { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); column-gap: 16px; }
.pricing-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
.stats-head > p, .pricing-head > p { font-size: 1.12rem; line-height: 1.55; color: var(--muted); max-width: 50ch; }
.stats-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; }
.stats-card { border-radius: var(--radius-tile); padding: 28px; background: var(--card); box-shadow: var(--shadow-card); }
.stats-split { background: var(--graphite); color: var(--graphite-ink); box-shadow: none; }
.stats-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 0.85rem; font-weight: 700; }
.stats-split .stats-label { color: var(--graphite-muted); }
.tag { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 700; padding: 3px 11px; border-radius: var(--radius-pill); border: 1px solid currentColor; }
.tag-quiet { color: var(--muted); }
.stats-total { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 0.95rem; }
.stats-total b { font-size: 2.4rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.stats-total span { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--rose); color: #fff; font-weight: 700; font-size: 0.8rem; }
.chart { width: 100%; height: auto; margin-top: 18px; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--muted); font: 600 12px var(--font); }
.chart-orig { fill: var(--ink); }
.chart-rep { fill: var(--rose); }
.split-list { margin-top: 18px; display: grid; gap: 8px; }
.split-list li { display: grid; grid-template-columns: minmax(0, 1fr) 84px 44px; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); }
.split-name { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 10px; align-items: center; }
.split-name .brand { width: 16px; height: 16px; grid-row: span 2; }
.split-name b { font-size: 0.95rem; }
.split-name small { grid-column: 2; font-size: 0.78rem; color: var(--graphite-muted); }
.split-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.split-bar i { display: block; height: 100%; border-radius: 4px; background: var(--rose); }
.split-list li:first-child .split-bar i { background: #fff; }
.split-bar .w-100 { width: 100%; }
.split-bar .w-66 { width: 66%; }
.split-bar .w-47 { width: 47%; }
.split-num { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.split-list .is-none em { grid-column: 2 / -1; text-align: right; font-style: normal; font-size: 0.78rem; color: var(--graphite-muted); }
.stats-note { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 0.9rem; color: var(--muted); }

/* Pricing */
.pricing { padding-top: var(--section-gap); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan { border-radius: var(--radius-tile); padding: 28px 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 14px; }
.plan.is-featured { background: var(--graphite); color: var(--graphite-ink); box-shadow: none; }
.plan-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.plan-price { font-size: 0.95rem; color: var(--muted); }
.plan.is-featured .plan-price, .plan.is-featured .plan-key { color: var(--graphite-muted); }
.plan-price b { font-size: 2.6rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.plan.is-featured .plan-price b { color: #fff; }
.plan-facts { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.plan.is-featured .plan-facts { border-color: rgba(255, 255, 255, 0.18); }
.plan-facts b { font-weight: 800; }
.plan-key { font-size: 0.92rem; line-height: 1.45; color: var(--muted); }
.plans-note { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.plans-ps { margin-top: 6px; }
.plan-nudge { margin-top: 2px; padding: 8px 12px; border-radius: 12px; background: #e6f9f9; color: var(--cyan-ink); font-size: 0.82rem; font-weight: 600; line-height: 1.4; }
.plans-ps b { color: var(--ink); }
.plans-ps { position: relative; }
.info-btn { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; margin-left: 2px; vertical-align: -6px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: help; }
.info-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.info-btn .info-dot { fill: currentColor; stroke: none; }
.info-btn:hover, .info-btn:focus-visible { color: var(--ink); }
.tip {
  position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 5; width: min(360px, 100%);
  padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 0.85rem; line-height: 1.45;
  box-shadow: var(--shadow-card); opacity: 0; visibility: hidden; transition: opacity 0.15s ease-out, visibility 0.15s;
}
.info-btn:hover + .tip, .info-btn:focus + .tip, .tip:hover { opacity: 1; visibility: visible; }
.tip.is-dismissed { opacity: 0 !important; visibility: hidden !important; }
/* Wider screens: the tooltip sits right above the icon. Phones: it spans the paragraph (see .plans-ps), so it can't run off-screen. */
@media (min-width: 761px) {
  .tip-anchor { position: relative; display: inline-block; }
  .tip { left: auto; right: -10px; width: 340px; }
}
.plan-key { flex: 1 0 auto; }
.plan-x { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.plan.is-featured .plan-x { border-color: rgba(255, 255, 255, 0.18); }
.plan-x-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.plan.is-featured .plan-x-label { color: var(--graphite-muted); }
.plan-x-fixed { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px dashed #c4c4c4; border-radius: 14px; font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
.plan.is-featured .plan-x-fixed { border-color: rgba(255, 255, 255, 0.35); }
.plan-x-select { position: relative; }
.plan-x-select select {
  width: 100%; min-height: 44px; padding: 10px 36px 10px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); color: var(--ink); font: inherit; font-size: 0.88rem; font-weight: 600; line-height: 1.3;
  appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis;
}
.plan-x-select select:hover { border-color: var(--muted); }
.plan-x-select select:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.plan.is-featured .plan-x-select select { border-color: transparent; }
.plan.is-featured .plan-x-select select:focus-visible { outline-color: #fff; }
.plan-x-select svg { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; pointer-events: none; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* FAQ */
.faq { padding-top: var(--section-gap); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 1.15rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font-size: 1.2rem; font-weight: 600; }
.faq-item[open] summary::after { content: "\2212"; background: var(--ink); color: #fff; border-color: var(--ink); }
.faq-item summary:hover::after { border-color: var(--muted); }
.faq-item p { padding: 0 48px 22px 0; line-height: 1.6; color: var(--muted); max-width: 68ch; }

/* Final card extras */
.beta-when { padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.18); font-weight: 700; font-size: 0.95rem; }

/* Signup follow-up */
.follow-up { display: grid; gap: 14px; justify-items: start; padding-top: 18px; border-top: 1px solid var(--line); }
.follow-up .chips { width: 100%; justify-items: start; }
.follow-up .chips legend { margin: 0 0 6px; }
.follow-up .chip-list { justify-content: flex-start; max-width: none; margin: 0; }
.follow-up-done { padding-top: 18px; border-top: 1px solid var(--line); color: var(--ok); font-weight: 600; }
.privacy-note a { color: inherit; font-weight: 600; }

/* Legal and confirmation pages */
.doc { padding-top: 64px; padding-bottom: 32px; max-width: 820px; display: grid; gap: 16px; justify-items: start; }
.doc-narrow { max-width: 640px; padding-top: 96px; }
.doc-title { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.02; font-weight: 900; letter-spacing: -0.03em; text-wrap: balance; }
.doc h2 { margin-top: 24px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.doc p, .doc li { line-height: 1.6; max-width: 68ch; }
.doc ul, .doc ol { display: grid; gap: 6px; padding-left: 22px; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc-pending { padding: 14px 18px; border-radius: 16px; background: #fff4dc; color: #5c3d00; }
.facts { margin: 0; display: grid; width: 100%; max-width: 560px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.doc-aside { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.doc-aside a { color: var(--ink); }
/* Rendered Markdown (privacy policy): tables scroll inside their own box, long URLs wrap. */
.doc-legal { max-width: 900px; }
.doc-legal p, .doc-legal li { overflow-wrap: anywhere; }
.doc-legal h3 { margin-top: 12px; font-size: 1.1rem; font-weight: 800; }
.table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.doc-legal table { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.5; }
.doc-legal th, .doc-legal td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 140px; }
.doc-legal tr:last-child td { border-bottom: 0; }
.doc-legal th { background: var(--alt); font-weight: 700; }
.tbd { padding: 0 4px; border-radius: 4px; background: #fff0b3; color: #5c3d00; font-weight: 600; }

/* Status that changes mid-sequence: both states share one grid cell; at rest only the final one shows. */
.status-swap { display: grid; justify-items: start; }
.status-swap > * { grid-area: 1 / 1; }
.status-was { visibility: hidden; }


/* ── Hero sequence ────────────────────────────────────────────────────────────────────────
   The product loop, once (~5 s): the light comes on, the post goes live on the phone, Repostur spots it and drafts four
   reposts, "Send all" lands, then each platform's version travels out from the phone, its wire draws in, and X and
   Instagram flip from Reposting to Published. Every keyframe ends on the resting styles above, so no-JS and reduced
   motion show the same final frame. site.js holds it (.is-held) until the stage is in view, and repeats it 10 s after each run ends
   (.is-leaving fades the final frame out, .is-reset restarts it).
   Uses the individual translate/scale properties so the layout's own transforms stay untouched. */
@media (prefers-reduced-motion: no-preference) {
  .stage { --ease: cubic-bezier(.16, 1, .3, 1); }
  .stage-inner::before { animation: rp-light 1s var(--ease) both; }
  .phone { animation: rp-rise 0.8s var(--ease) 0.15s both; }
  .phone .thumb { animation: rp-wipe 0.7s var(--ease) 0.6s both; }
  .phone .post-meta { animation: rp-fade 0.4s ease-out 1.05s both; }
  .spotted { animation: rp-up 0.5s var(--ease) 1.5s both; }
  .spotted .mark { animation: rp-pop 0.5s var(--ease) 1.6s both; }
  .drafted li { animation: rp-row 0.4s var(--ease) both; }
  .drafted li:nth-child(1) { animation-delay: 1.85s; }
  .drafted li:nth-child(2) { animation-delay: 1.95s; }
  .drafted li:nth-child(3) { animation-delay: 2.05s; }
  .drafted li:nth-child(4) { animation-delay: 2.15s; }
  .approved { animation: rp-toast 0.55s var(--ease) 2.6s both; }
  .approved-check { animation: rp-pop 0.45s var(--ease) 2.85s both; }

  .stage-left .dest { --from-x: 64px; }
  .stage-right .dest { --from-x: -64px; }
  .stage-side .dest { --from-y: 0px; animation: rp-out 0.7s var(--ease) var(--at) both; }
  .stage-side .dest::after { animation: rp-wire 0.4s var(--ease) calc(var(--at) + 0.35s) both; }
  .stage-left .dest::after { transform-origin: right center; }
  .stage-right .dest::after { transform-origin: left center; }
  .stage-left .dest:nth-child(1) { --at: 3.2s; }
  .stage-right .dest:nth-child(1) { --at: 3.32s; }
  .stage-left .dest:nth-child(2) { --at: 3.44s; }
  .stage-right .dest:nth-child(2) { --at: 3.56s; }
  .stage-left .dest:nth-child(1) .status-was { animation: rp-was 0.25s ease-out 4.5s both; }
  .stage-left .dest:nth-child(1) .status-swap .is-done { animation: rp-done 0.35s var(--ease) 4.5s both; }
  .stage-left .dest:nth-child(2) .status-was { animation: rp-was 0.25s ease-out 4.85s both; }
  .stage-left .dest:nth-child(2) .status-swap .is-done { animation: rp-done 0.35s var(--ease) 4.85s both; }

  .stage.is-held *, .stage.is-held *::before, .stage.is-held *::after { animation-play-state: paused; }
  .stage.is-reset *, .stage.is-reset *::before, .stage.is-reset *::after { animation: none; }
  .stage-inner { transition: opacity 0.4s ease-out; }
  .stage.is-leaving .stage-inner { opacity: 0; }
}
@keyframes rp-light { from { scale: 0.35; opacity: 0; } 60% { opacity: 1; } }
@keyframes rp-rise { from { translate: 0 40px; scale: 0.94; opacity: 0; } }
@keyframes rp-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rp-fade { from { opacity: 0; } }
@keyframes rp-up { from { translate: 0 10px; opacity: 0; } }
@keyframes rp-pop { from { scale: 0.4; opacity: 0; } }
@keyframes rp-row { from { translate: -10px 0; opacity: 0; } }
@keyframes rp-toast { from { translate: 0 28px; scale: 0.96; opacity: 0; } }
@keyframes rp-out { from { translate: var(--from-x) var(--from-y); scale: 0.9; opacity: 0; } }
@keyframes rp-wire { from { scale: 0 1; } }
@keyframes rp-was { from { visibility: visible; opacity: 1; } to { visibility: visible; opacity: 0; } }
@keyframes rp-done { from { opacity: 0; translate: 0 4px; } }

/* ── Timed switching (site.js) ────────────────────────────────────────────────────────────
   The rule templates and the example week step through their options on a timer while in view. The active option
   shows the time left as a thin bar; hovering or focusing pauses it, and any click stops the timer for good. */
[data-cycle-label].is-timer {
  background-image: linear-gradient(color-mix(in srgb, currentColor 60%, transparent) 0 0);
  background-repeat: no-repeat; background-size: 0% 3px; background-position: left bottom;
  animation: rp-timer var(--cycle-ms, 5s) linear both;
}
.tpl-tab.is-timer, .tour-tab.is-timer { background-origin: content-box; background-position: left calc(100% + 5px); }
.is-paused .is-timer { animation-play-state: paused; }
@keyframes rp-timer { to { background-size: 100% 3px; } }
@media (prefers-reduced-motion: no-preference) {
  .tpl-panel .rule-when, .tpl-panel .rule-then { animation: rp-fade 0.35s ease-out both; }
  .tpl-panel .rule-rows li, .day-panel .compose-fan li { animation: rp-row 0.4s cubic-bezier(.16, 1, .3, 1) both; }
  .tpl-panel .rule-rows li:nth-child(2), .day-panel .compose-fan li:nth-child(2) { animation-delay: 0.05s; }
  .tpl-panel .rule-rows li:nth-child(3), .day-panel .compose-fan li:nth-child(3) { animation-delay: 0.1s; }
  .tpl-panel .rule-rows li:nth-child(4), .day-panel .compose-fan li:nth-child(4) { animation-delay: 0.15s; }
  .tpl-panel .rule-rows li:nth-child(n+5) { animation-delay: 0.2s; }
  .day-panel .compose-post { animation: rp-up 0.4s cubic-bezier(.16, 1, .3, 1) both; }
}

/* Error page */
.error-page { padding-top: 96px; padding-bottom: 96px; display: grid; gap: 20px; justify-items: start; }

/* ── Tablet ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  :root { --section-gap: 104px; }
  .stage-inner { grid-template-columns: minmax(0, 1fr) 260px minmax(0, 1fr); gap: 28px; padding: 0 24px; }
  .stage-inner::before { width: 640px; height: 640px; }
  .phone { width: 260px; aspect-ratio: auto; }
  .phone-screen { height: auto; }
  .approved { margin-top: 14px; }
  .dest { width: 100%; max-width: 260px; }
  .stage-side .dest::after { display: none; }
  .stage-left .dest:nth-child(2), .stage-right .dest:nth-child(2) { margin: 0; }
  .chip-list { max-width: 470px; margin: 0 auto; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 0; }
  .tile-3 { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-content: start; }
  .tile-3 > :not(.piece) { grid-column: 1; }
  .tile-3 { grid-template-rows: 1fr auto auto auto 1fr; }
  .tile-3 .tile-num { grid-row: 2; }
  .tile-3 h3 { grid-row: 3; }
  .tile-3 > p { grid-row: 4; }
  .tile-3 .piece { grid-column: 2; grid-row: 1 / -1; margin-top: 0; align-self: end; }
  .tile > p { margin-bottom: 24px; }
  .dests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { padding-bottom: 112px; }
  .feed-head, .why-grid { grid-template-columns: 1fr; gap: 24px; }
  .board { grid-template-columns: 1fr; }
  .rules-head, .roadmap-head, .rules-grid { grid-template-columns: 1fr; gap: 24px; }
  .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rung { padding: 22px; }
  .rung::before { position: static; margin-bottom: 12px; }
  .stats-head, .pricing-head, .stats-grid, .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road-single .road-compose { grid-template-columns: 1fr; }
  .road-single .road-ui { grid-column: 1; grid-row: auto; padding-top: 18px; }
  .rail { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail-brand, .rail-account { display: none; }
  .rail-nav { display: flex; gap: 6px; }
  .rail-nav label { flex: none; white-space: nowrap; padding: 8px 12px; }
  .bd-panel { min-height: 0; }
  .bd-conns li { grid-template-columns: minmax(0, 1fr) auto; }
  .bd-conn-role { display: none; }
}

/* ── Phone ────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  :root { --gutter: 16px; --section-gap: 88px; }
  .site-header { padding: 16px 0; }
  .header-row { flex-wrap: wrap; row-gap: 8px; }
  .site-nav { order: 3; width: calc(100% + 2 * var(--row-pad)); margin: 0 calc(-1 * var(--row-pad)); padding: 0 max(6px, calc(var(--row-pad) - 12px)); overflow-x: auto; scrollbar-width: none; }
  .site-header.is-floating .header-row { --row-pad: 8px; max-width: calc(100% - 16px); border-radius: 22px; }
  .site-header.is-floating .header-cta { padding: 8px 14px; }
  .site-nav::-webkit-scrollbar { display: none; }
  /* Centred while the links fit; once they overflow the auto margins collapse to 0 and the row scrolls from the start. */
  .site-nav a:first-child { margin-left: auto; }
  .site-nav a:last-child { margin-right: auto; }
  .hero { padding-top: 24px; }
  .hero-copy { gap: 18px; }
  .lede { font-size: 1.08rem; }
  .field-row { flex-direction: column; }
  .field-row .btn { width: 100%; }
  .stage { margin-top: 40px; }
  .stage-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px; }
  .stage-inner::before { width: 440px; height: 440px; top: 30%; transform: translate(-50%, -50%); }
  .phone { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: min(280px, 100%); margin-bottom: 12px; }
  .stage-side { display: contents; }
  .dest { max-width: none; padding: 12px; font-size: 0.8rem; border-radius: 16px; }
  .dest .kind { display: none; }
  .stage-side .dest { --from-x: 0px !important; --from-y: -24px !important; }
  .story-thumb { width: 28px; }
  .tiles, .ladder {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .tiles::-webkit-scrollbar, .ladder::-webkit-scrollbar { display: none; }
  .tile, .rung { flex: 0 0 min(84%, 330px); scroll-snap-align: start; }
  .stage-inner { align-items: start; }
  .chip-list { min-width: 0; gap: 6px; }
  .chip { min-height: 36px; padding: 0 12px; font-size: 0.86rem; }
  .tile-3 { display: flex; }
  .tile-3 .piece { margin-top: 24px; }
  .tile { padding: 24px 20px 0; border-radius: 26px; }
  .stage { padding-bottom: 8px; }
  .chips { width: 100%; }
  .chip-list { max-width: none; }
  .chips { justify-items: stretch; }
  .chips legend { justify-self: center; }
  .tour { padding: 48px 0 64px; margin-top: calc(var(--section-gap) - 48px); }
  .tour-nav { margin-bottom: 32px; }
  .tour-tabs { gap: 6px; }
  .tour-tab { padding: 9px 13px; font-size: 0.88rem; }
  .tour-next { justify-content: flex-start; margin-top: 24px; }
  .feed { padding: 18px 16px 6px; }
  .feed-top { font-size: 1.1rem; }
  .feed-item { grid-template-columns: 1fr; gap: 14px; }
  .feed-item .thumb { aspect-ratio: 16 / 6; }
  .dests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed-stats-label { flex-basis: 100%; }
  .bd-rule-head { flex-wrap: wrap; gap: 10px; }
  .bd-when { flex-basis: 100%; }
  .bd-mode { text-align: left; margin-right: auto; }
  .bd-conns li { grid-template-columns: 1fr; gap: 6px; }
  .bd-totals, .bd-meters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-meters { grid-template-columns: 1fr; }
  .bd-bars li { grid-template-columns: 96px minmax(0, 1fr) 48px; gap: 10px; }
  .bd-plan { flex-direction: column; align-items: flex-start; }
  .bd-log li { grid-template-columns: 40px 28px minmax(0, 1fr); gap: 10px; }
  .reasons { grid-template-columns: 1fr; gap: 28px; }
  .rule-card { padding: 20px 16px; border-radius: 26px; }
  .rule-when { font-size: 1.15rem; }
  .rule-rows { grid-template-columns: minmax(0, 1fr); }
  .rule-rows li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 14px; }
  .rule-kind { grid-column: 1; justify-self: start; }
  .rule-delay { grid-row: 1; grid-column: 2; }
  .rule-detail { grid-column: 1 / -1; }
  .rule-sample b { margin-left: 0; }
  .compose-post::after { display: none; }
  .rule-edit { margin-left: 0; }
  .rung { padding: 20px 18px; }
  .road-card { padding: 24px 20px; border-radius: 26px; min-height: 0; }
  .streak-label { width: 100%; }
  .streak-dots { margin-left: 0; }
  .compose { grid-template-columns: 1fr; }
  .week { gap: 4px; }
  .week label { font-size: 0.7rem; }
  .final-card { padding: 64px 22px; border-radius: 28px; }
  .chart-axis { font-size: 19px; }
  .stats-card { padding: 22px 16px; border-radius: 26px; }
  .stats-total b { font-size: 2rem; }
  .split-list li { grid-template-columns: minmax(0, 1fr) 56px 40px; gap: 8px; padding: 10px 12px; }
  .plans { grid-template-columns: 1fr; gap: 12px; }
  .plan { padding: 22px 20px; border-radius: 26px; }
  .faq-item summary { font-size: 1.05rem; }
  .faq-item p { padding-right: 0; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .doc { padding-top: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

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