/* souljaterm landing — same 90s VST / early-Mac chrome as the app. */
:root {
  --tint-hue: 265;
  --chrome:      hsl(var(--tint-hue) 7% 80%);
  --chrome-deep: hsl(var(--tint-hue) 7% 72%);
  --light: #ffffff;
  --dark:  #707070;
  --darker:#4a4a4a;
  --ink:   #1a1a1a;
  --screen:#0e1015;
  --lcd:   #8be0c0;
  --ui-font: "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  --mono-font: "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 13px var(--ui-font); color: var(--ink); padding: 28px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  /* Windows-98 desktop minty green */
  background: radial-gradient(130% 100% at 50% 0%, #5fc4ab, #2f9e86 75%), #2f9e86;
  background-attachment: fixed;
}

/* ---- bevels (lifted from the app) ---- */
.panel-raised { background: var(--chrome); border: 2px solid; border-color: var(--light) var(--dark) var(--dark) var(--light); }
.inset { border: 2px solid; border-color: var(--dark) var(--light) var(--light) var(--dark); }
.bevel-title { background: repeating-linear-gradient(var(--chrome-deep) 0 1px, transparent 1px 2px); border-bottom: 1px solid var(--dark); }
.btn {
  display: inline-block; background: var(--chrome); color: var(--ink); text-decoration: none;
  border: 2px solid; border-color: var(--light) var(--dark) var(--dark) var(--light);
  font: 12px Monaco, var(--mono-font); cursor: pointer; padding: 4px 10px;
}
.btn:active { border-color: var(--dark) var(--light) var(--light) var(--dark); }

/* ---- window ---- */
#frame { width: min(880px, 100%); }
.titlebar { height: 24px; display: flex; align-items: center; gap: 8px; padding: 0 8px; }
.lights { display: flex; gap: 5px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--chrome-deep);
  border: 1px solid var(--darker); display: block; }
.lights i:nth-child(1){ background:#f7768e } .lights i:nth-child(2){ background:#e0af68 } .lights i:nth-child(3){ background:#9ece6a }
.title { font-size: 11px; letter-spacing: 1px; font-weight: bold; }

.body { display: flex; gap: 8px; padding: 8px; }

/* ---- the "screen" (pitch) ---- */
.screen { flex: 1; min-width: 0; background: var(--screen); color: var(--lcd);
  font-family: var(--mono-font); padding: 18px 20px 20px; }
.prompt { font-size: 12px; opacity: .85; }
.prompt .ar { color: #9ece6a; }
.cur { animation: caret .7s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.screen h1 { font: 700 26px var(--mono-font); margin: 14px 0 6px; color: #c0caf5;
  text-shadow: 0 0 12px rgba(122,162,247,.3); line-height: 1.1; }
.tag { margin: 0 0 14px; color: var(--lcd); opacity: .9; font-size: 13px; }
.feats { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.feats li { color: #a9b1d6; }
.kbd { font-family: var(--mono-font); color: #e0af68; background: rgba(224,175,104,.12);
  border: 1px solid rgba(224,175,104,.35); border-radius: 3px; padding: 0 4px; white-space: nowrap; }

/* ---- download CTA ---- */
.cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.btn.big { font: 700 15px var(--mono-font); padding: 9px 18px; }
.dl-os { font-size: 12px; color: var(--lcd); }
.dl-os a { color: #7dcfff; text-decoration: none; }
.dl-os a:hover { text-decoration: underline; }
.note { font-size: 11px; opacity: .6; color: #a9b1d6; }

/* ---- Roll panel ---- */
.roll { width: 176px; flex: 0 0 176px; display: flex; flex-direction: column; }
.roll-head { height: 20px; display: flex; align-items: center; padding: 0 8px; font-size: 10px; letter-spacing: 1px; font-weight: bold; }
.lcd { background: var(--screen); color: var(--lcd); border: 2px solid; border-color: var(--dark) var(--light) var(--light) var(--dark); }
#face { aspect-ratio: 1/1; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 6px 0; }
#face img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
/* Eyes layer: stacked over the mouth/base img and clipped to the top 62.5% (the eye band) so a
   blink swaps ONLY the eyes — the mouth animating underneath is untouched. Hidden unless blinking. */
#face .eyes { position: absolute; inset: 0; z-index: 1; display: none; clip-path: inset(0 0 37.5% 0); }
/* tagged-text effects ([shake]/[wave]) + "thinking" status, matching the app's message box */
#msg.thinking { color: #ffb02e; text-align: center; }
#msg .fx-shake { display: inline-block; animation: fxShake .26s steps(2) infinite; }
@keyframes fxShake { 0% { transform: translate(0,0); } 25% { transform: translate(.6px,-.6px); }
  50% { transform: translate(-.6px,.5px); } 75% { transform: translate(.5px,.6px); } 100% { transform: translate(0,0); } }
#msg .fx-wave { display: inline-block; animation: fxWave 1s ease-in-out infinite; }
@keyframes fxWave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
/* fixed (taller) height so her text scrolls inside instead of growing the panel + pushing the page */
#msg { height: 150px; overflow-y: auto; padding: 9px; font: 12px var(--mono-font);
  line-height: 1.5; color: var(--lcd); white-space: pre-wrap; word-break: break-word; }
#msg.typing::after { content: "▋"; animation: caret .6s steps(1) infinite; }

/* power-on gate: almost nothing shows until you click Roll's TV (the click also unlocks audio) */
.reveal { display: none; }
body.on .reveal { display: block; animation: fadeUp .5s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.boot-hint { margin-top: 16px; color: #e0af68; font-size: 13px; animation: blink 1.1s steps(2) infinite; }
body.on .boot-hint { display: none; }
@keyframes blink { 50% { opacity: .35; } }
.power {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; background: #0e1015; border: none; cursor: pointer;
  font: 700 30px var(--mono-font); -webkit-appearance: none;
  animation: powerGlow 1.6s ease-in-out infinite;
}
.power span { font-size: 9px; letter-spacing: 1.5px; opacity: .85; }
.power:hover { animation-duration: .8s; }
@keyframes powerGlow {
  0%, 100% { color: #7aa2f7; text-shadow: 0 0 6px rgba(122,162,247,.5); }
  50%      { color: #c8d3ff; text-shadow: 0 0 16px rgba(122,162,247,.95), 0 0 30px rgba(122,162,247,.55); }
}
body.on .power { display: none; }

/* CRT shader overlay for Roll's face — same engine + base settings as the app (fx.js). */
#fx-overlay { position: fixed; inset: 0; z-index: 40; pointer-events: none; display: none; }

/* boot warp-in (same effect as the app) */
#face { position: relative; }
#face.warp-pending img { opacity: 0; }
#face.warp-in img { animation: crtOn 1s ease-out; transform-origin: center; }
@keyframes crtOn {
  0%   { opacity: 0; transform: scaleY(.006) scaleX(1.3); filter: brightness(7) saturate(0); }
  10%  { opacity: 1; transform: scaleY(.006) scaleX(1.3); filter: brightness(7) saturate(0); }
  35%  { transform: scaleY(.05) scaleX(1.05); filter: brightness(4) saturate(.4); }
  60%  { transform: scaleY(1) scaleX(1); filter: brightness(2) saturate(1.6); }
  70%  { filter: brightness(.5); } 82% { filter: brightness(1.6); }
  100% { transform: none; filter: none; opacity: 1; }
}

.foot { font-size: 11px; color: #0e3b31; }
.foot a { color: #0a5c4a; }

@media (max-width: 620px) {
  body { padding: 14px 8px; }
  #frame { width: 100%; }
  .body { flex-direction: column; padding: 6px; gap: 6px; }

  .screen { padding: 14px 14px 16px; }
  .screen h1 { font-size: 20px; }
  .feats { font-size: 12px; }
  .btn.big { font-size: 14px; }

  /* Roll panel: ROLL header full-width on top (it wraps the row below it), then her
     square face to the LEFT of the message box, both the same height. */
  .roll { width: 100%; flex: 0 0 auto; flex-flow: row wrap; gap: 6px; align-items: flex-start; }
  .roll-head { width: 100%; }
  #face { width: 120px; flex: 0 0 120px; height: 120px; margin: 0; }
  #msg { flex: 1 1 0; min-width: 0; height: 120px; }
}
