/* jumpedit.com: the shared layer (every page). Uses only assets/tokens.css (loaded first). The home page's sections
   are in home.css. Scroll rules: no 100vh shells; the body clips sideways with overflow-x: clip (never hidden). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; overflow-x: clip; background: var(--s-page); color: var(--text);
  font: 400 var(--t-body) / var(--t-body-lh) var(--font-text); -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--d-hover) var(--ease-hover); }
a:hover { color: var(--text); }
::selection { background: var(--volt); color: var(--ink); }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--bone); color: var(--ink); padding: 10px 16px; border-radius: var(--r-pill); z-index: 60; }
.skip:focus { left: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; }
.display { font-size: var(--t-display); line-height: var(--t-display-lh); letter-spacing: var(--t-display-track); }
h2 { font-size: var(--t-h2); line-height: var(--t-h2-lh); letter-spacing: var(--t-h2-track); }
h3 { font-size: var(--t-h3); line-height: var(--t-h3-lh); letter-spacing: var(--t-h3-track); }
p { margin: 0; }
.lead { font-size: var(--t-lead); line-height: var(--t-lead-lh); color: var(--text-2); max-width: 34em; text-wrap: pretty; }
.muted { color: var(--text-2); }
.small { font-size: var(--t-small); line-height: var(--t-small-lh); color: var(--text-3); }
.small a, .lead a { color: var(--text); }

/* ---------- the header: fixed glass (Linear), its scrolled state (KeyLast) ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); border-bottom: 1px solid transparent;
  transition: background-color 300ms var(--ease-glide), border-color 300ms var(--ease-glide), backdrop-filter 300ms var(--ease-glide); }
.top.scrolled { background: var(--s-glass); border-bottom-color: var(--hairline);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); }
.top-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); text-decoration: none;
  font: 600 18px/1 var(--font-display); letter-spacing: -0.04em; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.nav a:not(.btn) { color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; border-radius: var(--r-pill); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { margin-left: 8px; }
body { padding-top: var(--header-h); }
@media (max-width: 760px) {
  .nav a.hide-s:not(.btn) { display: none; } :root { --header-h: 56px; } .nav .btn-s { height: var(--tap); }
  .nav .btn-s { transition: opacity 200ms var(--ease-glide), transform var(--d-release) var(--ease-press); }
  .hero-form-on .nav .btn-s { opacity: 0; pointer-events: none; transform: scale(0.96); }
}

/* ---------- buttons: the app's primary (Bone, Ink text), Compound's physical key, KeyLast's press ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--btn-h); padding: 0 26px;
  border-radius: var(--r-pill); border: 0; font: 600 16px/1 var(--font-text); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; background: var(--bone); color: var(--ink); box-shadow: var(--shadow-key);
  transition: transform var(--d-release) var(--ease-press), background-color var(--d-hover) var(--ease-hover), box-shadow var(--d-hover) var(--ease-hover);
}
.btn:hover { background: #ffffff; color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); transition-duration: var(--d-press); transition-timing-function: var(--ease-glide); }
.btn-s { height: var(--btn-h-s); padding: 0 18px; font-size: 14px; }
.btn.quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--outline); }
.btn.quiet:hover { background: rgba(255, 255, 255, 0.06); }
.btn.small-btn { height: var(--btn-h-s); padding: 0 18px; font-size: 15px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn svg { width: 18px; height: 18px; }
.btn.apple { background: var(--bone); color: var(--ink); }
.soon { display: inline-flex; align-items: center; gap: 10px; height: var(--btn-h); padding: 0 22px; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--outline); font-weight: 600; font-size: 16px; }
.soon .dot, .now { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); flex: none; display: inline-block; }
.now { box-shadow: 0 0 0 0 var(--volt-halo); animation: now-pulse 2s var(--ease-glide) infinite; }
@keyframes now-pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 255, 63, 0.45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(212, 255, 63, 0); } }

/* ---------- early access ---------- */
.early { display: grid; gap: 12px; max-width: 520px; }
.early-row { display: flex; gap: 6px; padding: 6px; border-radius: var(--r-pill); background: var(--s-card); box-shadow: var(--shadow-edge);
  transition: box-shadow var(--d-hover) var(--ease-hover); }
.early-row:hover { box-shadow: var(--shadow-edge-hover); }
.early-row:focus-within { box-shadow: 0 0 0 1.5px var(--volt), 0 0 30px rgba(212, 255, 63, 0.12); }
.early input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; color: var(--text); padding: 0 18px;
  font: 400 17px/1 var(--font-text); outline: none; border-radius: var(--r-pill); }
.early input::placeholder { color: var(--text-3); }
.early .btn { flex: none; height: 52px; padding: 0 22px; }
.early.done .early-row { display: none; }
.early-note { font-size: var(--t-label); line-height: var(--t-label-lh); color: var(--text-3); padding-left: 18px; }
.early-note.ok { color: var(--volt); }
.early-note.bad { color: #FF8A7A; }
@media (max-width: 420px) {
  /* Phones: the field and the button stack, with no card around them (round 2: "the extra card wrapper"). */
  .early-row, .early-row:hover, .early-row:focus-within { flex-direction: column; gap: 10px; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .early input { flex: none; height: 52px; padding: 0 18px; font-size: 16px; background: var(--s-card); border-radius: var(--r-pill); box-shadow: var(--shadow-edge); }
  .early input:focus { box-shadow: 0 0 0 1.5px var(--volt); }
  .early .btn { width: 100%; }
  .early-note { padding-left: 0; }
}

/* ---------- a video in a rounded frame (examples page, the home sections) ---------- */
.frame, .frame-v { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-card); overflow: hidden; background: var(--night); isolation: isolate;
  box-shadow: 0 0 0 1px var(--glass-line), var(--shadow-lift); }
.frame { width: clamp(240px, 26vw, 360px); }
.frame video, .frame img, .frame-v video, .frame-v img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.toggle { position: absolute; right: 10px; bottom: 10px; z-index: 3; width: var(--tap); height: var(--tap); border-radius: 50%; border: 0;
  background: rgba(10, 10, 11, 0.55); color: var(--bone); display: grid; place-items: center; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color var(--d-hover) var(--ease-hover), transform var(--d-press) var(--ease-glide); }
.toggle:hover { background: rgba(10, 10, 11, 0.8); }
.toggle:active { transform: scale(0.94); }
.toggle svg { width: 14px; height: 14px; }
.credit-line { font-size: var(--t-label); line-height: var(--t-label-lh); color: var(--text-3); margin-top: 20px; max-width: 60em; }
.credit-line a { color: var(--text-2); }

/* ---------- questions (home + facts) ---------- */
.faq { max-width: 900px; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font: 600 19px/1.35 var(--font-display); letter-spacing: -0.02em; position: relative;
  transition: color var(--d-hover) var(--ease-hover); }
.faq summary:hover { color: #ffffff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: inherit; letter-spacing: inherit; margin: 0; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(45deg); transition: transform var(--d-reveal) var(--ease-glide); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -1px; }
.faq details p { padding: 0 0 24px; color: var(--text-2); max-width: 40em; }

/* ---------- the footer: KeyLast's closing moment, ending on the wordmark ---------- */
.foot { position: relative; overflow: hidden; border-top: 1px solid var(--hairline); padding: 64px 0 28px; }
.foot-light { position: absolute; left: 50%; bottom: -30%; width: 120%; height: 90%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 60%, rgba(244, 241, 236, 0.07), rgba(212, 255, 63, 0.025) 45%, transparent 70%); }
.foot .wrap { position: relative; }
.foot-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.foot-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 64px; font-size: 14px; }
.foot-cols div { display: grid; gap: 2px; align-content: start; }
.foot-cols p { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.foot-cols a { color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; min-width: 44px; width: fit-content; }
.foot-cols a:hover { color: var(--text); }
.foot-end { text-align: right; display: grid; gap: 6px; justify-items: end; align-content: start; }
.foot-end p { color: var(--text-2); font-size: 15px; }
.foot-go { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); color: var(--text); font-weight: 600; text-decoration: none; }
.foot-go { text-decoration: underline; text-decoration-color: var(--outline); text-underline-offset: 6px; }
.foot-go:hover { text-decoration-color: currentColor; }
.wordmark { margin: 72px 0 0; text-align: center; font: 600 clamp(76px, 16.5vw, 270px) / 0.9 var(--font-display); letter-spacing: -0.04em; user-select: none;
  color: var(--bone); }
.foot-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--outline); display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-3); }
.foot-base a { color: var(--text-2); }
@media (max-width: 760px) {
  .foot-cols { grid-template-columns: repeat(3, auto); gap: 20px 28px; font-size: 13px; }
  .foot-cols a { min-height: var(--tap); }
  .foot-end { text-align: left; justify-items: start; }
  .wordmark { margin-top: 48px; }
}

/* ---------- plain pages (pricing, facts, examples, credits, 404) ---------- */
.page { padding: clamp(48px, 8vw, 112px) var(--gutter) clamp(64px, 9vw, 140px); display: grid; gap: clamp(48px, 6vw, 88px); }
.head { display: grid; gap: 24px; max-width: 980px; }
.head.flush { margin-bottom: 0; }
.display.page-title { font-size: clamp(48px, 7vw, 96px); }
.prose { max-width: 44em; display: grid; gap: 18px; }
.prose h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 24px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; }
.updated { font-size: var(--t-small); color: var(--text-3); }
.facts { display: grid; margin: 0; }
.facts.wide { max-width: 980px; }
.facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--hairline); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--text-2); }
@media (max-width: 900px) { .facts div { grid-template-columns: 1fr; gap: 6px; } }
.credits-list { display: grid; gap: 28px; max-width: 900px; }
.credit { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; }
.credit .frame { width: 120px; border-radius: var(--r-tile); }
.credit p { color: var(--text-2); font-size: 16px; }
.credit h3 { font-size: 20px; margin-bottom: 6px; }
.h-small { font-size: 28px; letter-spacing: -0.03em; margin-bottom: 8px; }

/* ---------- the credits page (account) ---------- */
.account { display: grid; gap: 32px; max-width: 640px; }
.balance { display: flex; align-items: baseline; gap: 14px; }
.balance .n { font: 600 clamp(72px, 12vw, 132px) / 0.9 var(--font-display); letter-spacing: -0.06em; font-variant-numeric: var(--num); }
.packs { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.pack { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--outline); cursor: pointer; transition: box-shadow var(--d-hover) var(--ease-hover); }
.pack:hover { box-shadow: inset 0 0 0 1px var(--glass-line); }
.pack:has(input:checked) { box-shadow: inset 0 0 0 2px var(--bone); }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack:has(input:focus-visible) { outline: 2px solid var(--volt); outline-offset: 3px; }
.pack b { font-size: 20px; letter-spacing: -0.02em; }
.history { display: grid; margin: 0; padding: 0; list-style: none; }
.history li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.history .when { font-size: 14px; color: var(--text-3); }
.notice { padding: 16px 18px; border-radius: var(--r-tile); box-shadow: inset 0 0 0 1px var(--outline); color: var(--text-2); }
.notice.good { box-shadow: inset 0 0 0 1px rgba(212, 255, 63, 0.45); color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; scroll-behavior: auto !important; }
}

/* A clock time never breaks across lines ("10:40 / PM"). */
[data-ready], [data-now] { white-space: nowrap; }

/* ---------- v2 (config.json "home": "v2", 2026-10-30): the footer on every page, the form's success line ---------- */
/* The success line of the early-access form: the Iris (the app's mark) in front, like the app's own confirmations. */
.early.done .early-note { padding-left: 0; }
.early-note.ok::before { content: ''; display: inline-block; width: 15px; height: 15px; margin-right: 8px; vertical-align: -3px; background: url('/favicon.svg') center / contain no-repeat; }

/* The footer (every page, build.mjs footer()): the link columns sit in the right half, under the questions; the other
   pages put their closing line + action in the left half. The wordmark sinks into the page (KeyLast's closing). */
.foot2 .foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: clamp(40px, 6vw, 112px); row-gap: 20px; }
.foot2 .foot-brand { grid-column: 1; grid-row: 1; align-self: start; }
.foot2 .foot-cols { grid-column: 2; grid-row: 1 / span 2; }
.foot2 .foot-end { grid-column: 1; grid-row: 2; text-align: left; justify-items: start; }
.wordmark-fade { background: linear-gradient(180deg, var(--bone) 25%, rgba(244, 241, 236, 0.2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 960px) {
  .foot2 .foot-top { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .foot2 .foot-brand, .foot2 .foot-cols, .foot2 .foot-end { grid-column: 1; grid-row: auto; }
}
@media (max-width: 760px) {
  .foot2 .foot-base { flex-direction: column; gap: 6px; }
}

/* A friend's invite (invite.html): the code on a card, big enough to read off a phone and type, and its two actions. */
.invite-card { display: grid; gap: 14px; max-width: 640px; padding: clamp(22px, 4vw, 32px); border-radius: var(--r-card);
  background: var(--s-card); box-shadow: var(--shadow-edge); }
.invite-card p { margin: 0; }
.invite-code { font: 600 clamp(40px, 9vw, 64px) / 1 var(--font-display); letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
  color: var(--text); overflow-wrap: anywhere; }
.invite-gift { color: var(--text-2); }
.invite-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.invite-store-row { margin: 0 0 12px; }
.invite-store { display: inline-block; }
.invite-store img { display: block; width: 162px; height: 54px; }

/* Pricing (pricing.html): each group's heading sits on its list. */
.price-group { display: grid; gap: 4px; }
