/* Home: one dark page around the real product. The web app screen is the hero's proof, the rewind
   instrument the one playful moment, and everything else is quiet type on a 1200 px grid.
   Shared tokens and components (buttons, waitlist form, referral card) live in site.css. */

body.home {
  /* Colours come from site.css (warm charcoal and ivory). Home adds one raised surface. */
  --raised: #201f1c;
  /* Type scale: display, section title, step title, lead, body, caption. */
  --t-display: clamp(40px, 1.25rem + 3.4vw, 72px);
  --t-h2: clamp(34px, 1.2rem + 3vw, 64px);
  --t-h3: clamp(24px, 1rem + 1vw, 32px);
  --t-lead: clamp(17px, 1rem + .25vw, 20px);
  --t-cap: 14px;
  /* One container and one section rhythm for every block. */
  --container: 1200px;
  --inline: max(var(--gutter), env(safe-area-inset-left, 0px), calc((100% - var(--container)) / 2));
  --section-y: clamp(88px, 10vw, 152px);
  color-scheme: dark;
  background: var(--paper); color: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
body.home a, body.home button, body.home summary { touch-action: manipulation; }
body.home p, body.home dd, body.home li { text-wrap: pretty; }
body.home pre { font-variant-numeric: tabular-nums; }
/* In-page jumps and focus scrolls keep room at the top for the shared header (sticky on wide screens on other pages;
   home's sits over the S5 stage, see s5.css). home.css loads only on the home page, so this rule stays local to it. */
html { scroll-padding-top: calc(64px + 16px); }
body.home section[id], body.home h2[id] { scroll-margin-top: 0; }
/* The shared header lines up with home's wider 1200 px content column. */
body.home .top .wrap { max-width: none; padding-left: var(--inline); padding-right: var(--inline); }

/* The first section after the S5 hero (s5.css). It opens with the local-first facts, stated plainly. Only what is
   true today. */
.after-pin { position: relative; isolation: isolate; padding: clamp(28px, 4vw, 56px) var(--inline) calc(var(--section-y) * .5); overflow: hidden; background: var(--paper); }
.after-pin::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 900px; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgba(255, 255, 255, .06), transparent 70%); }
body.home .btn-primary { min-height: 44px; padding: 0 18px; border-radius: 8px; font-size: 15px; }
.hero-facts { display: grid; gap: 2px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: var(--t-cap); line-height: 1.55; }

/* The web app: three steps, each with a real screen. In the first section after the hero. */
.appshot { margin-top: clamp(64px, 8vw, 112px); }
.appshot h2 { margin: 0; font: 360 var(--t-h2)/1.03 var(--font-display); font-variation-settings: "opsz" 72; letter-spacing: -.03em; text-wrap: balance; }
.appshot .lead { max-width: 46ch; margin: 0; color: var(--ink-2); font-size: var(--t-lead); line-height: 1.6; }
/* Step 2: the four verdicts the app shows, as the app's own chips with one line each. */
.verdicts { display: grid; gap: 10px; max-width: 40ch; margin: 20px 0 0; }
.verdicts div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; align-items: baseline; }
.verdicts dt { margin: 0; }
.verdicts dd { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
@media (max-width: 360px) { .verdicts div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Three steps of one loop: Save, Check, Bring back. Raised panels, not floating tiles. */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; gap: 10px; min-height: 300px; padding: 28px; border-radius: 20px; background: linear-gradient(180deg, #24231f, #1f1e1b); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(250, 249, 245, .06); }
.card-k { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 var(--t-cap)/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.card h3 { margin: 14px 0 0; font: 400 var(--t-h3)/1.1 var(--font-display); letter-spacing: -.015em; }
.card-t { margin: 0; color: var(--ink-2); line-height: 1.55; }
.card-d { margin: 6px 0 0; color: var(--ink-3); font-size: 16px; line-height: 1.6; }
.card-term { margin: 8px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--term-bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--term-ink); font: 400 13px/1.65 var(--font-mono); white-space: pre-wrap; }
.card-term .d { color: var(--term-dim); }
.card-term .f { color: var(--broken-fg); }
.card-term .p { color: var(--works-fg); }
.card-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--t-cap); color: var(--ink-2); }
.ok { color: var(--works-fg); font-weight: 500; }

/* Footer: everything else lives here, in four columns, then the giant wordmark. */
.ft { position: relative; overflow: hidden; padding: 72px var(--inline) 28px;
  background: #141413; color: var(--ink-2); font-size: 14.5px; border-top: 1px solid var(--line); }
/* Text links in the footer and captions get 4 px above and below, so each reaches a 24 px target. */
.ft a, .rewind-story figcaption a { padding-block: 4px; }
.ft a { color: var(--ink); text-underline-offset: 3px; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .7fr); gap: 40px clamp(24px, 3vw, 48px); max-width: 1200px; margin: 0 auto; }
.ft-grid p { margin: 0; }
.ft-brand { color: var(--ink); font-weight: 600; font-size: 15px; }
.ft-lead { max-width: 40ch; margin: 14px 0 !important; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.ft-mail a { display: inline-flex; align-items: center; min-height: 44px; }
.ft-status { display: grid; gap: 8px; margin: 22px 0 0; }
.ft-status div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; }
.ft-status dt { color: var(--ink-3); font: 500 13px/1.6 var(--font-body); }
.ft-status dd { margin: 0; line-height: 1.5; }
.ft-h { margin: 0 0 12px !important; color: var(--ink); font-weight: 600; font-size: 15px; }
.ft-col ul { display: grid; gap: 9px; margin: 0 0 26px; padding: 0; list-style: none; line-height: 1.45; }
.ft-col nav ul, nav.ft-col ul { gap: 4px; }
nav.ft-col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); text-decoration: none; transition: color .15s; }
nav.ft-col a:hover { color: var(--ink); }
.tag-s { margin-left: 6px; padding: 2px 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 13px/1.2 var(--font-mono); color: var(--ink-3); }
.tag-s.ok { color: var(--works-fg); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .3); }
/* Compatibility, not a customer wall: one quiet list with explicit support status. */
.ft-col .agent-support { gap: 10px; margin-bottom: 16px; }
/* Provider marks are a private localhost preview only (assets/agent-preview.js); public pages list names. */
.agent-support.with-marks li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; align-items: center; }
.agent-support.with-marks .agent-mark { grid-row: span 2; }
.agent-mark { display: grid; place-items: center; width: 40px; height: 40px; padding: 8px; }
.agent-mark img { display: block; width: 24px; height: 24px; object-fit: contain; }
.agent-support-name { display: block; color: var(--ink); font-size: 14px; }
.agent-support-status { display: block; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.ft-grid .agent-support-note { margin: 0 0 20px; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.ft-faq details { border-top: 1px solid var(--line); }
.ft-faq details:last-child { border-bottom: 1px solid var(--line); }
.ft-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; color: var(--ink); cursor: pointer; list-style: none; }
.ft-faq summary::-webkit-details-marker { display: none; }
.ft-faq summary::after { content: "+"; color: var(--ink-3); font: 400 18px/1 var(--font-body); }
.ft-faq details[open] summary::after { content: "−"; }
.ft-faq details p { padding: 0 0 14px; line-height: 1.55; }
.ft-word { margin: 48px auto 0; padding: .08em .06em; max-width: 1200px; font: 400 min(12vw, 180px)/1.05 var(--font-display); font-variation-settings: "opsz" 72; letter-spacing: -.045em; white-space: nowrap; text-align: center; color: var(--ink-2); }
.ft-word em { color: var(--ink); }
/* One light sweep when the wordmark comes into view (motion.js adds .sweep). */
.ft-word.sweep { background: linear-gradient(100deg, #a8a59a 40%, #faf9f5 50%, #a8a59a 60%) 100% 0 / 250% 100% no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sweep 2.2s .2s var(--ease-inout) forwards; }
.ft-word.sweep em { color: transparent; }
/* The gradient stays under the whole word from start to end, so no letter is ever unfilled. */
@keyframes sweep { to { background-position: 0% 0; } }
.ft-legal { max-width: 1200px; margin: 18px auto 0; color: var(--ink-3); font-size: 13px; }

/* The home instrument reuses the story page's aluminium, layered case and knurled dial,
   without loading its fixed nine-act scroll rig. One finite story; no ambient loop. */
.rewind-story { --rs-duration: 650ms; --rs-fast: 240ms; --rs-ease: cubic-bezier(.22, 1, .36, 1); --rs-angle: 135deg; --rs-color: #f87171; display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: center; gap: 0 clamp(28px, 4vw, 64px); margin: clamp(64px, 8vw, 112px) 0 0; padding: clamp(40px, 5vw, 72px) 0 0; border-top: 1px solid var(--line); }
.rs-copy { position: relative; z-index: 2; padding-bottom: 28px; }
.rs-step { color: var(--accent); font-size: 14px; margin: 0 0 18px; }
.rs-copy h2 { margin: 0; min-height: 2.1em; font: 400 clamp(32px, 3.2vw, 46px)/1.05 var(--font-display); letter-spacing: -.025em; text-wrap: balance; white-space: pre-line; }
.rs-description { min-height: 5em; margin: 20px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.rs-prompt { margin: 20px 0 0; color: var(--ink-3); font-size: var(--t-cap); line-height: 1.5; max-width: 32ch; }
.rs-scene { position: relative; display: grid; align-items: end; justify-items: center; min-height: 480px; padding-top: 130px; perspective: 1400px; }
.rs-scene::before { content: ""; position: absolute; inset: 10% -5% 0; background: radial-gradient(ellipse at 50% 75%, rgba(255, 255, 255, .07), transparent 65%); pointer-events: none; }
.rs-instrument { position: relative; width: min(100%, 540px); transform-style: preserve-3d; transform: rotateX(12deg) rotateY(-13deg) rotateZ(-3deg); transition: transform var(--rs-duration) var(--rs-ease); }
.rs-device { position: relative; height: clamp(240px, 27vw, 330px); transform-style: preserve-3d; }
.rs-case { position: absolute; inset: 0; border-radius: 25px; background: linear-gradient(125deg, #34322d, #45433d 45%, #24231f); transform: translate3d(0, 12px, -12px); box-shadow: 0 28px 35px -12px #000; }
/* Graphite, not aluminium: a dark anodised face with a soft top light and ivory engraving. */
.rs-front { position: absolute; inset: 0; border-radius: 24px; transform-style: preserve-3d; transform: translateZ(8px); color: #d6d3c8;
  background: radial-gradient(140% 90% at 20% 0%, rgba(250, 249, 245, .09), transparent 55%), repeating-linear-gradient(90deg, rgba(250, 249, 245, .018) 0 1px, rgba(0, 0, 0, .05) 1px 2px, transparent 2px 4px), linear-gradient(170deg, #302f2a, #282722 50%, #21201d);
  box-shadow: inset 0 1px 0 rgba(250, 249, 245, .14), inset 0 -2px 0 #141413, inset 1px 0 0 rgba(250, 249, 245, .06); }
.rs-front::before { content: ""; position: absolute; top: -2px; left: 14%; width: 72%; height: 7px; border-radius: 50%; background: #393732; transform: translateZ(-2px); }
.rs-brand { position: absolute; left: 6%; right: 6%; top: 7%; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.rs-brand span { color: #a8a59a; font-size: 13px; font-weight: 400; }
.rs-screen { position: absolute; left: 5%; top: 18%; width: 56%; height: 47%; padding: 14px; border-radius: 12px; background: linear-gradient(145deg, #1c1e1a, #080908 75%); color: #f3f0e8; box-shadow: inset 0 2px 8px #000, 0 1px 0 rgba(250, 249, 245, .1); }
.rs-screen-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 13px/1.2 var(--font-mono); color: #aaa99f; }
.rs-screen-top i { font-style: normal; color: var(--rs-color); }
.rs-screen > b { display: block; margin-top: 10px; font: 500 clamp(25px, 3vw, 38px)/1 var(--font-mono); letter-spacing: -.04em; }
.rs-screen > span:not(.rs-screen-top) { display: block; margin-top: 6px; font-size: 13px; color: #d1cec3; }
.rs-screen p { margin: 8px 0 0; font: 13px/1.4 var(--font-mono); color: var(--rs-color); }
.rs-screen-line { position: absolute; left: 14px; right: 14px; bottom: 10px; display: flex; justify-content: space-between; border-top: 1px solid #4d5049; }
.rs-screen-line i { width: 5px; height: 5px; margin-top: -3px; border-radius: 50%; background: #74766c; }
.rs-screen-line i:nth-child(3) { background: #4ade80; }
.rs-screen-line i:nth-child(n+4) { background: #f87171; }
.rs-screen-line > b { position: absolute; top: -7px; left: 100%; width: 2px; height: 12px; background: #ffb27a; transform: translateX(var(--rs-head, 0px)); transition: transform var(--rs-duration) var(--rs-ease); }
.rs-dial-ring { position: absolute; width: 30%; aspect-ratio: 1; right: 5%; top: 19%; border: 1px dashed #5c5952; border-radius: 50%; }
.rs-dial-ring span { position: absolute; bottom: -22px; left: 0; font-size: 13px; color: #a8a59a; }
.rs-dial-ring span + span { left: auto; right: 0; }
.rs-dial { position: absolute; right: 7%; top: 22%; width: 26%; aspect-ratio: 1; border-radius: 50%; touch-action: none; cursor: grab; transform-style: preserve-3d; }
.rs-dial:active { cursor: grabbing; }
.rs-dial:focus-visible { outline: 3px solid var(--clay); outline-offset: 8px; }
.rs-knurl { position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(#141413 0 3deg, #3c3a35 3deg 6deg); box-shadow: 2px 12px 12px #0008; transform: translateZ(14px) rotate(var(--rs-angle)); transition: transform var(--rs-duration) var(--rs-ease); }
.rs-dial-face { position: absolute; inset: 8px; border-radius: 50%; background: radial-gradient(circle at 50% 65%, #201f1c, #3a3833 70%, #1e1d1a); box-shadow: inset 0 2px 1px rgba(250, 249, 245, .16), inset 0 -5px 9px #000a; transform: translateZ(4px); }
.rs-dial-face i { position: absolute; left: calc(50% - 2px); top: 7%; width: 4px; height: 24%; background: var(--clay); border-radius: 3px; }
.rs-led { position: absolute; left: 6%; bottom: 27%; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #a8a59a; }
.rs-led i { width: 8px; height: 8px; border-radius: 50%; background: var(--rs-color); box-shadow: inset 0 1px 1px #fff8, 0 0 0 1px #0003; }
.rs-restore { position: absolute; left: 5%; right: 5%; bottom: 8%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 9px; background: linear-gradient(#3a3833, #1c1b19); box-shadow: 0 3px 0 #0c0c0b, 0 5px 7px #0007, inset 0 1px 0 rgba(250, 249, 245, .16); color: #faf9f5; font: 500 13px/1.2 var(--font-body); cursor: pointer; transform: translateZ(10px); transition: transform var(--rs-fast) var(--rs-ease); }
.rs-restore:disabled { color: #b0aea6; cursor: not-allowed; }
.rs-restore:active:not(:disabled) { transform: translateZ(7px); }
.rs-restore:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }
.rs-restore span { color: #aaa99f; }
.rs-receipt { position: absolute; z-index: -1; top: 0; left: 14%; width: 72%; padding: 18px 20px 24px; background: #2b2a26; color: #faf9f5; border-radius: 4px; box-shadow: 0 0 0 1px rgba(250, 249, 245, .1), 0 12px 30px rgba(0, 0, 0, .5); transform: translate3d(0, 28px, -20px) rotate(-2deg); opacity: 0; transition: transform 900ms var(--rs-ease), opacity var(--rs-fast); }
.rs-receipt > span { display: block; font-size: 13px; }
.rs-receipt > b { display: flex; justify-content: space-between; margin-top: 14px; padding-bottom: 10px; border-bottom: 1px dashed #5c5952; font: 500 18px/1 var(--font-mono); }
.rs-receipt i { font-style: normal; color: var(--works-fg); }
.rs-receipt code { display: block; margin-top: 12px; font-size: 13px; overflow-wrap: anywhere; }
.rs-receipt p { margin: 8px 0 0; font-size: 13px; }
.rs-snapshots { position: absolute; inset: 0; pointer-events: none; }
.rs-snapshot { position: absolute; left: 12%; top: 9%; width: 138px; height: 176px; padding: 16px; border-radius: 8px; background: #201c18; color: #d6cdbf; border: 1px solid #655441; box-shadow: 0 12px 30px #0005; transform: rotate(-18deg) translateX(-30px); transition: transform var(--rs-duration) var(--rs-ease), opacity var(--rs-duration); }
.rs-snapshot:nth-child(2) { left: 38%; top: 5%; transform: rotate(-6deg); }
.rs-snapshot:nth-child(3) { left: 64%; top: 7%; transform: rotate(10deg); }
.rs-snapshot span { font: 13px/1.4 var(--font-mono); color: #b5a58e; }
.rs-snapshot b { display: block; margin: 12px 0; font-size: 13px; font-weight: 500; }
.rs-snapshot > i { display: block; height: 3px; margin: 8px 0; background: #716351; width: 85%; }
.rs-snapshot > i:nth-of-type(2) { width: 54%; }
.rs-snapshot small { display: block; margin-top: 16px; font: 13px/1 var(--font-mono); color: #e7a095; }
.rs-snapshot:first-child small { color: #83c79a; }
.rs-controls { grid-column: 1 / -1; display: grid; justify-items: center; gap: 12px; position: relative; z-index: 2; }
.rs-controls[hidden] { display: none; }
.rs-timeline { display: grid; grid-template-columns: repeat(6, minmax(44px, 1fr)); width: min(100%, 480px); }
.rs-timeline button { position: relative; display: grid; align-content: center; justify-items: center; gap: 9px; min-height: 60px; padding: 8px 0; border: 0; background: none; color: var(--ink-3); font: 13px/1 var(--font-mono); cursor: pointer; }
.rs-timeline button::before { content: ""; position: absolute; top: 20px; left: 0; right: 0; height: 1px; background: var(--line-2); }
.rs-timeline button:first-child::before { left: 50%; }
.rs-timeline button:last-child::before { right: 50%; }
.rs-timeline button > i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #27231e; border: 1px solid #948574; }
.rs-timeline [data-verdict="pass"] > i { background: #4ade80; border-color: #4ade80; }
.rs-timeline [data-verdict="fail"] > i { background: #f87171; border-color: #f87171; }
.rs-timeline [aria-pressed="true"] > i { outline: 1px solid var(--clay); outline-offset: 5px; }
.rs-timeline [aria-pressed="true"] { color: var(--ink); }
.rs-actions { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: center; }
.rs-actions button { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--accent); font: 500 var(--t-cap)/1.4 var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.rs-actions button + button { color: var(--ink-2); }
.rewind-story figcaption, .rs-fallback { grid-column: 1 / -1; margin: 18px auto 0; max-width: 74ch; color: var(--ink-3); font-size: var(--t-cap); line-height: 1.6; text-align: center; }
.rewind-story[data-phase="passed"], .rewind-story[data-phase="recovered"] { --rs-color: #4ade80; }
.rewind-story[data-phase="unchecked"] { --rs-color: #bbb8a9; }
.rewind-story[data-phase="recovered"] .rs-receipt { opacity: 1; transform: translate3d(0, -128px, 30px) rotate(-2deg); }
.rewind-story[data-phase="recovered"] .rs-instrument { transform: rotateX(6deg) rotateY(-6deg); }
.rewind-story[data-phase="recovered"] .rs-snapshot { opacity: .35; transform: translateY(10px) rotate(-9deg); }
.shot img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) {
  .rewind-story { grid-template-columns: minmax(0, 1fr); padding: 28px 0 12px; margin-top: 48px; }
  .rs-copy { text-align: center; padding: 0; max-width: 500px; justify-self: center; }
  .rs-step { margin-bottom: 12px; }
  .rs-copy h2 { min-height: 2.1em; font-size: 34px; }
  .rs-description { min-height: 4.8em; margin-top: 14px; font-size: 16px; }
  .rs-prompt { max-width: none; margin-top: 10px; }
  .rs-scene { min-height: 450px; padding-top: 140px; width: 100%; max-width: 500px; justify-self: center; }
  .rs-instrument { width: 94%; transform: rotateX(8deg) rotateY(-8deg) rotateZ(-2deg); }
  .rs-device { height: clamp(240px, 55vw, 310px); }
  .rs-screen { padding: 12px; }
  .rs-snapshot { width: 24%; height: 140px; padding: 12px; top: 22%; }
  .rs-snapshot:nth-child(2), .rs-snapshot:nth-child(3) { top: 20%; }
  .rs-controls { margin-top: 18px; }
}
@media (max-width: 420px) {
  .rs-scene { min-height: 400px; padding-top: 140px; }
  .rs-instrument { width: 97%; }
  .rs-screen { padding: 10px; }
  .rs-screen > b { margin-top: 9px; font-size: 26px; }
  .rs-screen p { display: none; }
  .rs-restore { padding: 0 12px; }
  .rs-receipt { left: 8%; width: 84%; padding: 14px 16px 20px; }
  .rs-snapshot { width: 27%; padding: 10px; }
}
/* The smallest phones: the screen label in the narrower body face, so "Saved version" and the verdict stay on one line at 13 px. */
@media (max-width: 360px) { .rs-screen-top { font-family: var(--font-body); } }
@media (prefers-reduced-motion: reduce) {
  .rs-instrument, .rewind-story[data-phase="recovered"] .rs-instrument { transform: none; }
  .rs-knurl, .rs-instrument, .rs-screen-line > b, .rs-snapshot { transition: none; }
  .rs-receipt { transition: opacity 150ms; }
}
:root[data-tier="low"] .rs-instrument { transform: none; }

/* Two views of one checkpoint state: the tactile story and a usable app illustration. */
.rs-views { grid-column: 1 / -1; justify-self: center; display: flex; gap: 4px; padding: 4px; margin-bottom: 24px; border: 1px solid var(--line-2); border-radius: 10px; background: #141413; }
.rs-views button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font: 500 14px/1.3 var(--font-body); cursor: pointer; }
.rs-views button[aria-pressed="true"] { background: var(--mist); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(250, 249, 245, .08); }
.rs-views button:hover:not([aria-pressed="true"]) { background: var(--card); color: var(--ink); }
.rs-views button, .rs-app button { touch-action: manipulation; }
.rs-views button:focus-visible, .rs-app button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.rs-views[hidden], .rs-scene[hidden], .rs-app[hidden] { display: none; }
.rs-app { position: relative; align-self: center; min-width: 0; width: 100%; border: 1px solid #5b5146; border-radius: 12px; background: #121211; color: #eeeae3; box-shadow: 0 24px 80px #0007; overflow: clip; }
.rs-app-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 10px 18px; border-bottom: 1px solid #39352e; font-size: 13px; }
.rs-app-bar > span + span { color: #b4aa9c; font-size: 13px; }
.rs-app-body { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 1.8fr); }
.rs-app-sidebar { padding: 18px 10px; border-right: 1px solid #39352e; background: #191815; }
.rs-app-sidebar > p { margin: 0 8px 16px; font-size: 13px; font-weight: 600; }
.rs-app-sidebar > span { display: block; margin: 0 8px 10px; color: #b4aa9c; font-size: 13px; }
.rs-app-sidebar button { display: grid; gap: 6px; width: 100%; min-height: 64px; margin: 4px 0; padding: 10px 8px; border: 1px solid transparent; border-radius: 5px; background: none; color: #eeeae3; text-align: left; font: 13px/1.35 var(--font-body); cursor: pointer; }
.rs-app-sidebar button[aria-pressed="true"] { border-color: #9c6a40; background: #34271d; }
.rs-app-sidebar button:hover { background: #2a261f; }
.rs-app-sidebar button small { font-size: 13px; color: #bbb6ab; }
.rs-app-sidebar [data-verdict="pass"] small { color: #8bd4a0; }
.rs-app-sidebar [data-verdict="fail"] small { color: #f69c93; }
.rs-app-detail { min-width: 0; padding: 24px 20px 18px; }
.rs-app-state { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--rs-color); font-size: 13px; }
.rs-app-state > span::first-letter { text-transform: uppercase; }
.rs-app-state code { color: #b4aa9c; font-size: 13px; }
.rs-app h3 { min-height: 2.5em; margin: 20px 0; font: 500 24px/1.25 var(--font-body); letter-spacing: -.025em; text-wrap: balance; }
.rs-app-evidence { padding: 12px; border: 1px solid #39352e; border-left: 2px solid var(--rs-color); border-radius: 5px; background: #0b0c0a; }
.rs-app-evidence p { margin: 0 0 8px; color: #b4aa9c; font-size: 13px; }
.rs-app-evidence code { color: #e4dfd4; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.rs-app-review { margin-top: 22px; }
.rs-app h4 { margin: 0; font-size: 14px; font-weight: 500; }
.rs-app-review > p { min-height: 4.5em; margin: 10px 0 14px; color: #c4bdb1; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.rs-app dl { margin: 0; }
.rs-app dl > div { padding: 10px 0; border-top: 1px solid #39352e; font-size: 13px; line-height: 1.4; }
.rs-app dt { color: #b4aa9c; }
.rs-app dd { margin: 4px 0 0; color: #eeeae3; }
.rs-app-recover { width: 100%; min-height: 44px; margin-top: 16px; padding: 10px 12px; border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: var(--paper); font: 600 13px/1.4 var(--font-body); cursor: pointer; }
.rs-app-recover:disabled { background: #24221e; border-color: #514a3f; color: #bbb4a8; cursor: not-allowed; }
.rs-app-recover:hover:not(:disabled) { background: var(--ink-2); }
.rs-app-recover:active:not(:disabled) { background: var(--ink-3); }
.rs-app-local { margin: 12px 0 0; color: #b4aa9c; font-size: 13px; line-height: 1.5; }
.rewind-story[data-view="app"] .rs-controls { margin-top: 24px; }
.rewind-story figcaption a { color: var(--ink-2); text-underline-offset: 3px; }
@media (max-width: 1060px) {
  .rewind-story[data-view="app"] { grid-template-columns: minmax(0, 1fr); }
  .rewind-story[data-view="app"] .rs-copy { max-width: 560px; justify-self: center; text-align: center; }
  .rewind-story[data-view="app"] .rs-prompt { max-width: none; }
  .rs-app { max-width: 760px; justify-self: center; }
}
@media (max-width: 540px) {
  .rs-app-body { grid-template-columns: minmax(0, 1fr); }
  .rs-app-sidebar { padding: 14px 12px; border-right: 0; border-bottom: 1px solid #39352e; }
  .rs-app-sidebar > p { margin: 0 4px 10px; }
  .rs-app-sidebar > span { display: none; }
  .rs-app-sidebar [data-app-points] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .rs-app-sidebar button { margin: 0; min-height: 72px; }
  .rs-app-detail { padding: 20px 16px 16px; }
  .rs-app h3 { font-size: 23px; }
  .rs-app-review > p { min-height: 3em; }
  .rewind-story[data-view="app"] .rs-copy { padding-bottom: 20px; }
}

/* Content blocks after the stage: one container, a hairline centred in the gap between blocks,
   the title left and its lead to the right on wide screens. */
.block { padding: calc(var(--section-y) * .5) var(--inline);
  background: linear-gradient(var(--line), var(--line)) 50% 0 / min(100% - 2 * var(--gutter), var(--container)) 1px no-repeat; }
.block-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 0 clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.block-head > * { grid-column: 1; }
.block-head .lead { grid-column: 2; grid-row: 1 / span 2; }
.block h2 { margin: 0; font: 360 var(--t-h2)/1.03 var(--font-display); font-variation-settings: "opsz" 72; letter-spacing: -.03em; text-wrap: balance; }
.block .lead { max-width: 46ch; margin: 0; color: var(--ink-2); font-size: var(--t-lead); line-height: 1.6; }

.story { display: grid; gap: clamp(64px, 8vw, 112px); margin: 0; padding: 0; list-style: none; }
.story-row { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.story-row.flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.story-row.flip .story-text { order: 2; }
.story-n { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: 0 0 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); font-size: var(--t-cap); font-weight: 500; font-variant-numeric: tabular-nums; }
.story-text h3 { margin: 0; font: 400 var(--t-h3)/1.12 var(--font-display); letter-spacing: -.015em; text-wrap: balance; }
.story-text h3 + p { max-width: 40ch; margin: 16px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.shot { margin: 0; border-radius: 16px; overflow: hidden; background: #201f1c; box-shadow: 0 0 0 1px var(--line), 0 40px 90px -40px rgba(0, 0, 0, .95); }
.shot img { outline: 1px solid rgba(255, 255, 255, .06); outline-offset: -1px; }
/* A soft light that follows the pointer (motion.js sets --mx and --my). */
.card, .shot { position: relative; }
.card::after, .shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(217, 119, 87, .1), transparent 60%); }
@media (hover: hover) and (pointer: fine) { .card:hover::after, .shot:hover::after { opacity: 1; } }
.shot figcaption { padding: 10px 16px; color: var(--ink-3); font: 400 var(--t-cap)/1.5 var(--font-body); border-top: 1px solid var(--line); }

.term-block { margin: 0; }
.term-block pre { margin: 0; padding: 22px 24px; border-radius: 16px; background: var(--term-bg); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(250, 249, 245, .05); color: var(--term-ink); font: 400 13px/1.7 var(--font-mono); overflow-x: auto; }
.term-block .d { color: var(--term-dim); }
.term-block .f { color: var(--broken-fg); }
.term-block .p { color: var(--works-fg); }
.term-block figcaption { margin-top: 12px; color: var(--ink-3); font: 400 var(--t-cap)/1.5 var(--font-body); }
.cards + .term-block { margin-top: 12px; }

/* The last word: centred, with the same quiet light as the hero. */
.end { position: relative; isolation: isolate; padding-bottom: var(--section-y); text-align: center; }
.end::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: 0; width: min(900px, 100%); height: 70%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 60% at 50% 60%, rgba(255, 255, 255, .05), transparent 70%); }
.end h2 { max-width: 16ch; margin: 0 auto 32px; font-size: clamp(38px, 1.4rem + 3.6vw, 76px); }
/* What Time Machine is not: four short lines between the last word and the button. */
.not { max-width: 880px; margin: 0 auto 40px; text-align: left; }
.not-h { margin: 0 0 12px; color: var(--ink-3); font-size: var(--t-cap); }
.not ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.not li { padding: 14px 0; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.not b { display: block; color: var(--ink); font-weight: 500; }
@media (max-width: 600px) { .not ul { grid-template-columns: minmax(0, 1fr); } }

/* What comes back and what does not, in the engine's own report wording. */
.back { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(32px, 6vw, 96px); }
.back-h { margin: 0 0 4px; color: var(--ink); font: 400 24px/1.2 var(--font-display); letter-spacing: -.01em; }
.back ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.back li { padding: 16px 0; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.back li b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 500; }
.back li code { color: var(--ink); overflow-wrap: anywhere; }
/* The last code in each item is the line from a real report. */
.back li code.line, .back-note code { display: block; width: fit-content; max-width: 100%; margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: var(--term-bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--term-ink); font: 400 13px/1.5 var(--font-mono); }
.back-note { max-width: 70ch; margin: 32px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
@media (max-width: 760px) { .back { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Pay once: one plan, raised, and the two honest notes beside it. The button is wired by buy.js. */
.plans { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.plan-aside { display: grid; gap: 20px; }
.plan-aside .plan-note { margin: 0; }
.plan-aside a { color: var(--ink); }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 20px; background: linear-gradient(180deg, #24231f, #1f1e1b); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(250, 249, 245, .06); }
.plan-paid { box-shadow: inset 0 0 0 1px rgba(217, 119, 87, .45), inset 0 1px 0 rgba(250, 249, 245, .06); }
.plan-k { margin: 0; color: var(--ink-3); font: 500 var(--t-cap)/1.4 var(--font-body); }
.plan-price { margin: 0; color: var(--ink); font: 400 clamp(36px, 1.4rem + 2vw, 52px)/1 var(--font-display); font-variation-settings: "opsz" 72; letter-spacing: -.03em; }
.plan-price span { color: var(--ink-3); font-size: 20px; letter-spacing: 0; }
.plan ul { display: grid; gap: 0; margin: 12px 0 0; padding: 0; list-style: none; }
.plan li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.plan li a { color: var(--ink); }
.plan .btn { align-self: start; margin-top: auto; padding-top: 0; }
.plan ul + .btn { margin-top: 20px; }
/* Checkout closed: buy.js disables the button and sets aria-disabled. It must not look like an action. */
.plan .btn[disabled] { opacity: 1; background: var(--mist); color: var(--ink-4); box-shadow: inset 0 0 0 1px var(--line); cursor: not-allowed; }
.plan-status { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.plan-status:empty { display: none; }
.plan-status a { color: var(--ink); }
.plan-note { max-width: 70ch; margin: 28px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.plan-note b { color: var(--ink); font-weight: 500; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .plan { padding: 22px; } }

/* Comparison table: scrolls sideways inside its own box on phones, never the page. */
.cmp-wrap { margin: 0; overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: #201f1c; scrollbar-color: var(--ink-3) var(--card); }
.cmp { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.cmp th, .cmp td { padding: 18px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.55; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { color: var(--ink-3); font-weight: 500; font-size: 14px; background: #24231f; }
.cmp thead th.tm { color: var(--ink); }
.cmp tbody th { width: 30%; color: var(--ink); font-weight: 500; }
.cmp td { color: var(--ink-2); }
.cmp td.yes { color: var(--works-fg); }
.cmp td.no { color: var(--ink-3); }
.cmp td:last-child { background: rgba(255, 255, 255, .04); box-shadow: inset 1px 0 0 var(--line); }
.cmp-note { margin: 14px 0 0; color: var(--ink-3); font-size: var(--t-cap); }
.cmp-note a { color: inherit; }
#cmp-scroll-hint { display: none; }
@media (max-width: 760px) {
  .cmp { --cmp-cell: calc(100vw - 2 * var(--gutter) - 146px); table-layout: fixed; min-width: 0; width: calc(144px + 3 * var(--cmp-cell)); }
  .cmp th:not(:first-child), .cmp td { width: var(--cmp-cell); }
  .cmp th:first-child { position: sticky; left: 0; z-index: 1; width: 144px; min-width: 144px; max-width: 144px; background: var(--card); border-right: 1px solid var(--line-2); }
  .cmp th, .cmp td { padding: 14px 16px; }
  #cmp-scroll-hint { display: block; margin: 0 0 12px; }
}

/* For developers: commands on the left; the Claude Code prompt and where save points live on the right
   (the end section says what Time Machine is not); then the one engine behind them, full width. */
#try { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 0 clamp(32px, 5vw, 72px); align-items: start; }
#try > .block-head, .dev-engine { grid-column: 1 / -1; }
.dev-engine { margin-top: clamp(56px, 7vw, 96px); }
.dev-engine h3 { margin: 0; font: 400 var(--t-h3)/1.12 var(--font-display); letter-spacing: -.015em; text-wrap: balance; }
.dev-lead { max-width: 60ch; margin: 12px 0 28px; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.install { min-width: 0; }
.install-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--ink); font-weight: 500; font-size: 16px; }
.install-h .tag-s { margin-left: 0; }
.term-block pre.term-scroll { white-space: pre; overflow-wrap: normal; }
.install-note { max-width: 62ch; margin: 14px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.install-note code, .facts code { color: var(--ink); overflow-wrap: anywhere; }
.install-ui { grid-column: 1; margin-top: 28px; }
#try .try-side { grid-column: 2; grid-row: 2 / span 2; }
.try-side { display: grid; gap: 40px; min-width: 0; }
.agent-setup { padding: 22px 24px 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.agent-setup-h { margin: 0; color: var(--ink); font-weight: 500; font-size: 16px; }
.agent-setup-t { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.agent-setup-t a { color: var(--ink); }
.agent-prompt { margin: 14px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--term-bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--term-ink); font: 400 13px/1.6 var(--font-mono); overflow-wrap: anywhere; }
.facts { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.facts li { padding: 20px 0 0; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.facts b { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 500; }

@media (max-width: 1020px) {
  .ft-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .block-head, #try { grid-template-columns: minmax(0, 1fr); }
  .block-head .lead { grid-column: 1; grid-row: auto; margin-top: 20px; }
  #try > .block-head, .dev-engine { grid-column: 1; }
  #try .install-ui, #try .try-side { grid-column: 1; grid-row: auto; }
  .try-side { margin-top: 40px; }
}
@media (max-width: 860px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; }
  .story { gap: 48px; }
  .story-row, .story-row.flip { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  /* The 390 px captures at phone size, not stretched to the column: one phone screen, framed. */
  .story-row .shot { justify-self: center; width: 100%; max-width: 280px; }
  .story-row.flip .story-text { order: 0; }
}
@media (max-width: 600px) {
  .ft-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .term-block pre { padding: 14px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .card { padding: 22px; }
}
@media (prefers-reduced-transparency: reduce) {
  .after-pin::before, .end::before { display: none; }
}
