/* Console Mode page. Its own look, taken from the app: deep teal-black,
   the icon's green and the cyan of the "1.6" in the tour, Inter. */
:root {
  --bg: #0a1414;
  --bg-2: #0f1d1d;
  --panel: rgba(255, 255, 255, .035);
  --panel-line: rgba(255, 255, 255, .08);
  --ink: #eef6f3;
  --ink-2: #a9bcb7;
  --ink-3: #6f8580;
  --green: #36ca90;
  --green-2: #2aa877;
  --cyan: #2fb3d8;
  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 32px);
  --sans: "Segoe UI Variable Display", Inter, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body.cm { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--green); color: #04110c; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.cm-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* header */
.cm-top { position: sticky; top: 0; z-index: 10; background: rgba(10, 20, 20, .72); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--panel-line); }
.cm-top-in { height: 68px; display: flex; align-items: center; gap: 28px; }
.cm-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.cm-brand img { width: 32px; height: 32px; border-radius: 8px; }
.cm-brand.small img { width: 22px; height: 22px; border-radius: 6px; }
.cm-nav { display: flex; gap: 26px; margin-left: auto; font-size: .9375rem; color: var(--ink-2); }
.cm-nav a:hover, .cm-lang:hover { color: var(--ink); }
.cm-lang { font-family: var(--mono); font-size: .8125rem; color: var(--ink-3); }

/* buttons */
.cm-btn { display: inline-flex; align-items: baseline; gap: 10px; padding: 15px 24px; border-radius: 999px; background: linear-gradient(180deg, #3ed79c, var(--green-2)); color: #04110c; font-weight: 700; font-size: 1rem; box-shadow: 0 10px 30px -10px rgba(54, 202, 144, .6), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .15s, box-shadow .15s; }
.cm-btn small { font-weight: 500; font-size: .8125rem; opacity: .7; }
.cm-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(54, 202, 144, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.cm-btn.ghost { background: var(--panel); color: var(--ink); border: 1px solid var(--panel-line); box-shadow: none; }
.cm-btn.ghost:hover { border-color: rgba(255, 255, 255, .22); }
.cm-btn.small { padding: 9px 16px; font-size: .875rem; }

/* hero */
.cm-hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 40px; overflow: hidden; }
.cm-hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 120%; background: radial-gradient(50% 45% at 72% 35%, rgba(47, 179, 216, .18), transparent 70%), radial-gradient(40% 40% at 20% 20%, rgba(54, 202, 144, .14), transparent 70%); pointer-events: none; }
.cm-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.cm-badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--panel-line); border-radius: 999px; background: var(--panel); font-size: .8125rem; color: var(--ink-2); }
.cm-badge span { padding: 2px 10px; border-radius: 999px; background: rgba(54, 202, 144, .14); color: var(--green); font-family: var(--mono); font-size: .75rem; }
.cm-hero h1 { margin-top: 20px; font-weight: 800; font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem); line-height: 1.02; letter-spacing: -.035em; background: linear-gradient(100deg, #fff 30%, #9ff0cf 62%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance; }
.cm-lead { margin-top: 20px; font-size: 1.125rem; color: var(--ink-2); max-width: 34em; }
.cm-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cm-winget { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; font-size: .875rem; color: var(--ink-3); }
.cm-winget code { font-family: var(--mono); font-size: .8125rem; color: var(--ink); background: rgba(0, 0, 0, .35); border: 1px solid var(--panel-line); border-radius: 8px; padding: 6px 10px; }
.cm-winget button { font: 500 .8125rem var(--sans); color: var(--ink-2); background: none; border: 1px solid var(--panel-line); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.cm-winget button:hover { color: var(--ink); border-color: rgba(255, 255, 255, .22); }
.cm-winget button.done { color: var(--green); border-color: rgba(54, 202, 144, .5); }
.cm-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 22px; font-size: .8125rem; color: var(--ink-3); }
.cm-meta a:hover { color: var(--ink); }
.cm-tv { position: relative; border-radius: 18px; padding: 10px; background: linear-gradient(160deg, #1c2b2b, #0c1515); border: 1px solid var(--panel-line); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4), 0 0 120px -40px rgba(47, 179, 216, .45); }
.cm-tv video { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; }

/* sections */
.cm-sec { padding: clamp(56px, 8vw, 96px) 0 0; }
.cm-sec h2, .cm-end h2 { font-weight: 800; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.025em; }
.cm-sub { margin-top: 12px; color: var(--ink-2); max-width: 46em; }
.cm-sub a { color: var(--green); }
.cm-sub a:hover { text-decoration: underline; }
.cm-panel { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02)); border: 1px solid var(--panel-line); }

.cm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.cm-steps li { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-line); }
.cm-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(54, 202, 144, .14); color: var(--green); font-weight: 700; }
.cm-steps h3, .cm-feats h3 { margin-top: 16px; font-weight: 700; font-size: 1.0625rem; letter-spacing: -.01em; }
.cm-steps p, .cm-feats p { margin-top: 8px; color: var(--ink-2); font-size: .9375rem; }

.cm-pad { margin-top: 24px; border-top: 1px solid var(--panel-line); }
.cm-pad li { display: grid; grid-template-columns: 12em minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--panel-line); }
.cm-hold { font-weight: 600; }
.cm-does { color: var(--ink-2); font-size: .9375rem; }
.cm-keys { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.cm-keys i { font-style: normal; color: var(--ink-3); }
.cm-keys small { width: 100%; text-align: right; font-size: .75rem; color: var(--ink-3); }
kbd { font: 600 .8125rem var(--sans); padding: 5px 10px; border-radius: 999px; background: #1a2a2a; border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .4); color: var(--ink); }

.cm-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.cm-feats li { padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-line); transition: border-color .2s, background .2s; }
.cm-feats li:hover { border-color: rgba(54, 202, 144, .35); background: rgba(54, 202, 144, .04); }
.cm-feats h3 { margin-top: 0; }
.cm-feats h3::before { content: ""; display: block; width: 28px; height: 4px; margin-bottom: 14px; border-radius: 2px; background: linear-gradient(90deg, var(--green), var(--cyan)); }

.cm-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.cm-shots img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--panel-line); background: #000; }
.cm-shots figcaption { margin-top: 10px; font-size: .875rem; color: var(--ink-3); }

.cm-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.cm-news { margin-top: 18px; }
.cm-news li { position: relative; padding: 0 0 0 26px; color: var(--ink-2); font-size: .9375rem; }
.cm-news li + li { margin-top: 10px; }
.cm-news li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(54, 202, 144, .6); }
.cm-faq { margin-top: 18px; }
.cm-faq details { border-bottom: 1px solid var(--panel-line); }
.cm-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; font-weight: 600; list-style: none; }
.cm-faq summary::-webkit-details-marker { display: none; }
.cm-faq summary::after { content: "+"; color: var(--green); font-weight: 400; font-size: 1.25rem; line-height: 1; transition: transform .2s; }
.cm-faq details[open] summary::after { transform: rotate(45deg); }
.cm-faq p { padding: 0 0 18px; color: var(--ink-2); font-size: .9375rem; }

.cm-end { margin-top: clamp(64px, 9vw, 112px); padding: clamp(56px, 8vw, 88px) 0; text-align: center; background: radial-gradient(60% 120% at 50% 0%, rgba(54, 202, 144, .16), transparent 70%), var(--bg-2); border-top: 1px solid var(--panel-line); }
.cm-end p { margin: 14px auto 0; max-width: 34em; color: var(--ink-2); }
.cm-end .cm-cta { justify-content: center; }

.cm-foot { padding: 32px 0 40px; border-top: 1px solid var(--panel-line); font-size: .875rem; color: var(--ink-3); }
.cm-foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.cm-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.cm-foot a:hover { color: var(--ink); }
.cm-foot p { margin-left: auto; }
.cm-foot p a { color: var(--ink-2); }

@media (max-width: 1000px) {
  .cm-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .cm-hero-in, .cm-two { grid-template-columns: minmax(0, 1fr); }
  .cm-nav { display: none; }
  .cm-lang { margin-left: auto; }
  .cm-steps, .cm-shots { grid-template-columns: minmax(0, 1fr); }
  .cm-pad li { grid-template-columns: minmax(0, 1fr); }
  .cm-keys { justify-content: flex-start; }
  .cm-keys small { text-align: left; }
  .cm-foot p { margin-left: 0; }
}
@media (max-width: 520px) {
  .cm-feats { grid-template-columns: minmax(0, 1fr); }
  .cm-cta .cm-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cm-btn { transition: none; } }

/* ── arriving from the lippdev site (render.mjs sets html.cm-from-site) ──
   The page starts on the same frame the site's transition ended on, the icon
   centred on the app background, then that screen fades away and the hero
   rises into place. */
html.cm-from-site::after { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; background: url("icon.png") center / 72px 72px no-repeat, radial-gradient(50% 45% at 50% 50%, rgba(54, 202, 144, .14), transparent 70%), #0a1414; animation: cm-veil-out .5s .08s cubic-bezier(.4, 0, .2, 1) forwards; }
html.cm-from-site .cm-hero-text > *, html.cm-from-site .cm-tv { animation: cm-rise .7s cubic-bezier(.2, .8, .2, 1) backwards; }
html.cm-from-site .cm-hero-text > :nth-child(2) { animation-delay: .16s; }
html.cm-from-site .cm-hero-text > :nth-child(3) { animation-delay: .22s; }
html.cm-from-site .cm-hero-text > :nth-child(n+4) { animation-delay: .28s; }
html.cm-from-site .cm-tv { animation-delay: .3s; }
html.cm-from-site .cm-hero-text > :first-child { animation-delay: .1s; }
@keyframes cm-veil-out { to { opacity: 0; visibility: hidden; } }
@keyframes cm-rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { html.cm-from-site::after { display: none; } html.cm-from-site * { animation: none !important; } }
