/* RaamCode, one screen at a time (the launch site, without RaamAI for now): the hero's Crossover, the walk-forward,
   and the same code live. */

/* The editor's own code font, from the app (`/fonts/`, as its index.css loads it). */
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/geist-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/geist-mono-600.woff2') format('woff2'); }

:root { --code: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

.hero { padding-top: max(12vh, 84px); }
/* Tighter than the home's hero: the headline on one line on a wide screen, so the code is in the first screen. */
.hero h1 { font-size: clamp(2.75rem, min(7vw, 10.5vh), 6.25rem); }
@media (min-width: 900px) { .hero h1 .l { display: inline; } }
.hero .scene { margin-top: clamp(20px, 3.6vh, 36px); }
.eyebrow { margin-bottom: 18px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--iris-soft); }
.hero .sub {
  margin-top: clamp(14px, 2.4vh, 24px); max-width: 46ch; color: var(--soft);
  font-size: clamp(1.1rem, min(2.1vw, 3vh), 1.5rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.3;
  text-wrap: balance;
}
.hero .eyebrow { animation: fade 1.2s var(--ease) .05s both; }
.hero .sub { animation: fade 1.2s var(--ease) 1.05s both; }

/* ── The sentence: the member's words, to his own ChatGPT or Claude. Each phrase is the line of code that says it. ── */
.say {
  display: flex; align-items: flex-start; gap: 12px; max-width: 40ch; margin-top: clamp(20px, 3.4vh, 34px);
  font-size: clamp(1.15rem, min(2vw, 2.9vh), 1.45rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.35;
  color: var(--white); text-align: left; text-wrap: balance;
  animation: fade 1.2s var(--ease) 1.3s both;
}
[dir="rtl"] .say { text-align: right; }
.say .orb { flex: none; width: 18px; height: 18px; margin-top: .32em; }
.ph {
  white-space: nowrap; border-radius: 6px; box-shadow: inset 0 -1px rgba(166, 151, 255, .45);
  transition: color .5s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease), opacity .6s var(--ease);
}
.ph.gone { opacity: .42; }
.ph.lit { color: #fff; background-color: rgba(166, 151, 255, .18); box-shadow: inset 0 -2px rgb(166, 151, 255); opacity: 1; }
.fine-pointer .ph { cursor: default; }

/* ── The code cards: the editor's own font and colours (raamcode-theme's light table) ── */
.src-card .bar span { font-family: var(--code); }
.src-card .src {
  min-height: 2em; padding: 12px 0 14px; counter-reset: ln;
  font: 13px/1.7 var(--code); color: #1f1f1f;
}
.src-card .ln { position: relative; padding: 0 18px 0 52px; white-space: pre; transition: background-color .5s var(--ease), opacity .5s var(--ease); }
.src-card .ln::before {
  content: attr(data-n); position: absolute; left: 0; width: 34px; text-align: right;
  color: #8f8f8f; font-size: 12px;
}
.src-card .ln.skip::before { content: ""; }
.tk-c { color: #008000; }
.tk-k { color: #af00db; }
.tk-t { color: #0f766e; }
.tk-cl { color: #0f766e; font-weight: 600; }
.tk-d { color: #0550ae; font-weight: 600; }
.tk-i { color: #0f766e; }
.tk-f { color: #7a5d00; }
.tk-s { color: #b44309; font-weight: 600; }
.tk-x { color: #c02626; font-weight: 600; }
.tk-p { color: #a03a16; }
.tk-n { color: #087c51; }
.tk-b { color: #0431fa; }
.tk-o { color: #8f8f8f; }

/* The hero: the lines the sentence says wait for their phrase; the frame of the strategy is already there. */
.rv #door.writing .ln[data-l] { opacity: 0; }
.rv #door.writing .ln[data-l].in { opacity: 1; }
.rv #door.writing .ln:not([data-l]) { opacity: .55; }
.src-card .ln.lit { background-color: rgba(166, 151, 255, .14); box-shadow: inset 2px 0 #7357ff; }
/* What the sentence never said: how much to sell. */
.unsaid { text-decoration: underline dotted rgba(255, 140, 50, .95) 2px; text-underline-offset: 4px; }

.src-card .status b.ok, .src-card.checking .status b.wait { display: inline; }
.src-card .status b.wait, .src-card.checking .status b.ok { display: none; }
.src-card.checking .status i { background: var(--mu); }

/* The branch that fired, lit in its side's colour with the app's chip (../styles.css `.hit`). */
.src-card .hit .ln:first-child::after { right: 14px; }

/* ── The app's pieces, framed: the editor (twice) and the run ── */
.scene.wide { max-width: 700px; }
.scene.wider { max-width: 900px; }
.card.frame { position: relative; min-height: 180px; background: #fff; }
.card.frame iframe { display: block; width: 100%; height: 360px; border: 0; background: transparent; }
/* The run: the app's lane and figures on its own white, in a card with the page's corners. */
.card.frame.flat { min-height: 52px; padding: 10px; background: #fff; border-radius: 14px; }
.wait-frame {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 12px; color: var(--mu); transition: opacity .4s;
}
.card.frame.ready .wait-frame { opacity: 0; pointer-events: none; }

.door > p.connect a, .hero > p.connect a { color: var(--iris-soft); white-space: nowrap; }
.door > p.connect a:hover, .hero > p.connect a:hover { text-decoration: underline; text-underline-offset: 3px; }
.door > p.fine, .hero > p.fine { margin-top: 18px; font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--muted); }

/* ── Tested: the compact card, the band the past is drawn in, and the run under it ── */
#tested .scene { max-width: 700px; }
.src-card.compact .src { padding: 10px 0 12px; }
.past { width: min(1100px, 100%); height: clamp(140px, 20vh, 200px); margin-top: clamp(16px, 3vh, 32px); }
.run { width: min(1100px, 100%); margin-top: 8px; }
.run .card.frame iframe { border-radius: 6px; }
.run .label { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }

/* ── Live: the code, then the account it trades through RaamExecute (the app's own account journal) ── */
#live .scene { max-width: 700px; }
#live .scene.account { margin-top: 16px; text-align: center; }
.journal-card .frame { position: relative; height: 400px; background: #fff; }
.journal-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.journal-card .bar .who { font-weight: 600; }
.journal-card .bar em { font-size: 11.5px; }
#live .scene.account > .more { display: inline-block; margin-top: 16px; }

/* ── Your move ── */
.close .more { margin-top: 18px; }

@media (max-width: 560px) {
  .say { max-width: 100%; font-size: 1.2rem; }
  .src-card .src { font-size: 11.5px; }
  .src-card .ln { padding: 0 12px 0 calc(34px + 12ch); text-indent: -12ch; white-space: pre-wrap; }
  .src-card .ln::before { left: 0; width: 26px; font-size: 11px; text-indent: 0; }
  .past { height: 170px; }
  /* The line runs under the hero's card and the live card on a phone: room for it, its chips, what each trade made
     and what it is (simulated, demo data), before the next screen's words. */
  /* With the next screen's own padding (80px) that is room for the line's whole band, its chips and the caption. */
  .hero .scene { margin-bottom: 216px; }
  /* Under the live card the line trades before the account: room for it, its chips and what each trade made. */
  #live .scene:not(.account) { margin-bottom: 290px; }
  #live .scene.account { margin-top: 0; }
  .journal-card .frame { height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero .sub, .say { animation: none; }
  .ph, .src-card .ln { transition: none; }
}
