/* Bridge between the app pages' older class names and the current design system (core.css).
   The app stylesheets (app.css, docs.css, explorer.css) read these variables. */
:root {
  --night: var(--bg);
  --night-2: var(--paper);
  --night-3: var(--bg-2);
  --night-ink: var(--ink);
  --night-mute: var(--muted);
  --night-line: var(--line);
  --glass: var(--paper);
  --glass-line: var(--line);
  --glass-hi: none;
  --dur-quick: .18s;
  --dur-state: .28s;
  --ease-out: var(--ease);
}
[hidden] { display: none !important; }
body.app { background: var(--bg); }

.label { font: 500 .74rem/1.3 var(--mono); letter-spacing: .02em; color: var(--muted); margin: 0; }
.btn-amber { background: var(--amber); border-color: var(--amber); color: #050505; }
.btn-amber:hover { background: var(--ink); border-color: var(--ink); color: #050505; }
.btn > span[aria-hidden="true"] { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover > span[aria-hidden="true"] { transform: translateX(4px); }
.lede { text-align: left; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

/* FAQ list used in docs */
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; font: 500 1.05rem/1.35 var(--font); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 400 1.3rem/1 var(--mono); color: var(--cobalt); transition: transform .4s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 18px; color: var(--ink-2); }

/* link cards used at the end of docs */
.app-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; text-decoration: none; transition: border-color .3s var(--ease), transform .5s var(--ease); }
.app-card:hover { border-color: var(--ink) !important; transform: translateY(-3px); }
.app-name { font: 800 1.6rem/1 var(--display); font-stretch: 118%; text-transform: uppercase; letter-spacing: -.02em; }
.app-desc { color: var(--ink-2); font-size: .95rem; }
.app-go { margin-top: auto; font-weight: 500; }

@keyframes maskRise { from { clip-path: inset(0 0 100% 0); transform: translateY(.45em); } to { clip-path: inset(0 0 -10% 0); transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* app hero orbit (replaces the dark point clouds) */
.app-visual { overflow: hidden; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.app-orbit { position: absolute; inset: -30% -10%; width: 120%; height: 160%; max-width: none; z-index: 0; }
.av-labels { z-index: 1; color: var(--muted) !important; }
.av-labels b { color: var(--ink) !important; }
.av-labels .av-r b { color: var(--cobalt-ink) !important; }

/* app pages sit under the strip + floating header */
body.app { --top-h: 112px; }

.app-hero { align-items: start; row-gap: 18px; }
.app-hero .kicker, .doc-hero .kicker { display: flex; gap: 10px; align-items: center; }
.app-hero h1 em, .doc-hero h1 em, .ex-hero h1 b { color: var(--cobalt); }
.doc-hero h1, .app-hero h1 { font-weight: 600; letter-spacing: -.045em; }

/* old sheets used --ink as "black text on a light chip"; --ink is light now */
/* (prefixed with body.app so they beat app.css, which loads later) */
body.app .seg button[aria-selected="true"], body.app .slip button[aria-pressed="true"], body.app .tok-ico, body.app .tag-soon { color: #050505; }
body.app .tok-ico.alt { color: #050505; }

/* roadmap */
.rm-hero { max-width: 880px; margin-bottom: clamp(32px, 5vw, 56px); display: grid; gap: 16px; }
.rm-hero h1 { font: 600 clamp(2.25rem, 5.6vw, 4.5rem)/1 var(--font); letter-spacing: -.045em; text-wrap: balance; }
.rm-hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--amber); letter-spacing: -.01em; }
.rm-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: .88rem; color: var(--muted); }
.rm-legend li { display: flex; gap: 8px; align-items: center; }
.rm { position: relative; display: grid; gap: 18px; counter-reset: none; }
.rm::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
.rm-phase { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; }
.rm-mark span { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); font: 600 .95rem var(--mono); color: var(--muted); }
.rm-phase.is-done .rm-mark span { background: var(--amber); border-color: var(--amber); color: #050505; }
.rm-phase.is-now .rm-mark span { border-color: var(--amber); color: var(--amber); }
.rm-body { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 28px); }
.rm-phase.is-now .rm-body { border-color: var(--cobalt-line); }
.rm-body h2 { font: 600 1.4rem/1.2 var(--font); letter-spacing: -.02em; margin-bottom: 10px; }
.rm-body ul { display: grid; }
.rm-body li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.rm-body li:first-child { border-top: 0; }
.rm-what { color: var(--ink-2); }
.rm-what a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.rm-what a:hover { text-decoration-color: var(--amber); }
.rm-what code { font-size: .85em; color: var(--ink); }
.rm-fixed { margin-top: clamp(40px, 6vw, 72px); max-width: 880px; display: grid; gap: 14px; }
.rm-fixed h2 { font: 600 1.4rem/1.2 var(--font); }
.rm-fixed ul { display: grid; gap: 10px; }
.rm-fixed li { color: var(--ink-2); }
.rm-fixed b { color: var(--ink); font-weight: 500; }
@media (max-width: 600px) { .rm-phase { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; } .rm::before { left: 17px; } .rm-mark span { width: 36px; height: 36px; } .rm-body li { flex-direction: column; align-items: flex-start; gap: 6px; } }
