/* llamatree.dev: one stylesheet for the home page and the docs. */
:root {
  --bg: #061018;
  --bg-2: #0a1822;
  --bg-3: #0f2130;
  --line: #1b3242;
  --line-2: #26475c;
  --text: #e6eef2;
  --text-dim: #9fb3bf;
  --text-faint: #6c8594;
  --orange: #ff8a1a;
  --orange-2: #ffb14c;
  --cyan: #46e8f5;
  --green: #39ed9a;
  --purple: #b9b2ff;
  --pink: #ff5fa2;
  --blue: #4aa8ff;
  --radius: 14px;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); overflow-x: hidden; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
code { background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px; padding: .08em .38em; }
kbd { background: var(--bg-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: .05em .4em; font-size: .82em; white-space: nowrap; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 21px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 3px; border-radius: 4px; }
.grad { background: linear-gradient(100deg, var(--orange-2), var(--orange) 45%, #ff5f6d); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(6, 16, 24, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--text-dim); font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); text-decoration: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.gh { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.gh:hover { color: var(--text); border-color: var(--line-2); text-decoration: none; }
.gh svg { width: 17px; height: 17px; fill: currentColor; }
.gh .stars:empty { display: none; }
.gh .stars::before { content: "★ "; color: var(--orange-2); }
@media (max-width: 760px) { .nav-links { display: none; } .gh .label { display: none; } .nav .btn-sm { padding: 7px 12px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 600 16px/1 var(--sans); padding: 14px 20px; border-radius: 11px; border: 1px solid transparent; cursor: pointer; color: var(--text); background: var(--bg-3); border-color: var(--line-2); white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--text-faint); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-primary { background: linear-gradient(180deg, var(--orange-2), var(--orange)); color: #1b0d00; border-color: #ffb14c; box-shadow: 0 6px 24px -8px rgba(255, 138, 26, .7); }
.btn-primary:hover { filter: brightness(1.06); border-color: #ffc777; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 9px; }

/* Hero */
.hero { position: relative; padding: 64px 0 40px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -120px 0 auto; height: 620px; background: radial-gradient(ellipse 60% 55% at 50% 30%, rgba(255, 138, 26, .17), transparent 70%), radial-gradient(ellipse 40% 40% at 80% 20%, rgba(70, 232, 245, .08), transparent 70%); pointer-events: none; z-index: -1; }
.hero-mark { display: block; width: 140px; height: 140px; margin: 0 auto 22px; filter: drop-shadow(0 10px 30px rgba(255, 138, 26, .25)); }
@media (max-width: 640px) { .hero-mark { width: 104px; height: 104px; margin-bottom: 18px; } }
.pill { display: inline-block; max-width: 100%; font-size: 14px; color: var(--text-dim); border: 1px solid var(--line-2); background: rgba(15, 33, 48, .6); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px; }
.pill b { color: var(--green); font-weight: 600; }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); max-width: 15ch; margin: 0 auto 20px; letter-spacing: -.035em; }
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--text-dim); max-width: 680px; margin: 0 auto 30px; }
.lead strong { color: var(--text); font-weight: 600; }

/* Install box */
.install { max-width: 720px; margin: 0 auto; text-align: left; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); }
.tabs { display: flex; gap: 4px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { font: 600 14px/1 var(--sans); color: var(--text-dim); background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px 12px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.tab svg { width: 15px; height: 15px; fill: currentColor; }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--orange); }
.tab:hover { color: var(--text); }
.panel { padding: 16px; }
.panel[hidden] { display: none; }
.cmd { display: flex; align-items: stretch; background: #030a10; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cmd pre { margin: 0; padding: 14px 16px; flex: 1; min-width: 0; color: #d8f6ff; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd pre .p { color: var(--text-faint); user-select: none; }
.copy { flex: none; display: flex; align-items: center; gap: 6px; background: var(--bg-3); color: var(--text-dim); border: 0; border-left: 1px solid var(--line); padding: 0 16px; cursor: pointer; font: 600 13px var(--sans); }
.copy:hover { color: var(--text); }
.copy svg { width: 16px; height: 16px; fill: currentColor; }
.copy.done { color: var(--green); }
.install-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; font-size: 14.5px; color: var(--text-dim); }
.install-alt .btn { padding: 10px 14px; font-size: 14.5px; }
.install-note { font-size: 13.5px; color: var(--text-faint); margin: 12px 0 0; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 22px auto 0; font-size: 14px; color: var(--text-dim); list-style: none; padding: 0; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; fill: var(--green); flex: none; }

/* Demo video */
.demo { margin: 56px auto 0; max-width: 1100px; padding: 0 20px; }
.window { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #0b0b0b; box-shadow: 0 50px 120px -40px rgba(255, 138, 26, .35), 0 30px 60px -30px #000; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #141414; border-bottom: 1px solid #222; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #333; }
.window-bar span { margin: 0 auto; font-size: 12.5px; color: #8a8a8a; transform: translateX(-20px); }
.window video, .window img { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #111; }
.demo-caption { text-align: center; color: var(--text-faint); font-size: 14px; margin-top: 14px; }
.demo-controls { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.demo-controls button { font: 500 13px var(--sans); color: var(--text-dim); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.demo-controls button:hover { color: var(--text); border-color: var(--line-2); }

/* Works with */
.works { padding: 48px 0 8px; text-align: center; }
.works p { color: var(--text-faint); font-size: 14px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.works ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; padding: 0; margin: 0; }
.works li { border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; color: var(--text-dim); font-size: 15px; background: rgba(10, 24, 34, .6); }
.works li b { color: var(--text); font-weight: 600; }

/* Sections */
section.block { padding: 96px 0; }
section.block.tight { padding-top: 40px; }
.eyebrow { font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--orange-2); margin-bottom: 14px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-dim); font-size: 19px; }

/* Pain -> fix */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pain .before { color: var(--text-faint); font-size: 15px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.pain .before s { text-decoration-color: rgba(255, 95, 162, .7); }
.pain h3 { font-size: 19px; }
.pain p { color: var(--text-dim); font-size: 16px; margin: 0; }
@media (max-width: 860px) { .pains { grid-template-columns: 1fr; } }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center; padding: 56px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip > .copyside { order: 2; }
.feature h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; }
.feature .copyside > p { color: var(--text-dim); font-size: 17.5px; }
.feature ul { padding: 0; margin: 18px 0 0; list-style: none; }
.feature li { position: relative; padding-left: 26px; margin: 9px 0; color: var(--text-dim); font-size: 16px; }
.feature li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 138, 26, .18); }
.feature li b { color: var(--text); font-weight: 600; }
.shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #111; box-shadow: 0 30px 70px -35px #000; }
.shot img { width: 100%; height: auto; }
.shot figcaption { font-size: 13.5px; color: var(--text-faint); padding: 10px 14px; background: var(--bg-2); border-top: 1px solid var(--line); }
figure { margin: 0; }
.tag { display: inline-block; font: 600 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); background: rgba(70, 232, 245, .08); border: 1px solid rgba(70, 232, 245, .25); border-radius: 999px; padding: 3px 10px; margin-bottom: 14px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; } .feature.flip > .copyside { order: 0; } }

/* Status dots demo */
.dots { display: grid; gap: 10px; margin-top: 22px; }
.dot-row { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-size: 15px; }
.dot-row .name { font-family: var(--mono); font-size: 14px; color: var(--text); min-width: 130px; }
.dot-row .what { color: var(--text-dim); font-size: 14.5px; }
.sd { width: 11px; height: 11px; border-radius: 50%; flex: none; position: relative; }
.sd.working { background: var(--blue); animation: pulse 1.1s ease-in-out infinite; }
.sd.asking { background: var(--pink); animation: hop 1.4s ease-in-out infinite; box-shadow: 0 0 12px var(--pink); }
.sd.waiting { background: var(--orange); box-shadow: 0 0 10px var(--orange); animation: beat 1.6s ease-in-out infinite; }
.sd.idle { background: var(--green); box-shadow: 0 0 8px rgba(57, 237, 154, .6); }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } }

/* A portrait screenshot (a dialog): kept to a readable width. */
.shot.narrow { max-width: 520px; justify-self: center; }

/* Grid of smaller features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 138, 26, .1); border: 1px solid rgba(255, 138, 26, .28); margin-bottom: 14px; }
.card .ico svg { width: 20px; height: 20px; fill: none; stroke: var(--orange-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 17.5px; margin-bottom: 6px; }
.card p { color: var(--text-dim); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* Comparison */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
table.compare { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 14px; color: var(--text-dim); font-weight: 600; background: var(--bg-3); }
.compare thead th.us { color: var(--orange-2); }
.compare td:first-child { color: var(--text); font-weight: 500; }
.compare td { color: var(--text-dim); }
.compare td.us { color: var(--text); background: rgba(255, 138, 26, .04); }
.yes, .no { font-weight: 700; margin-right: 6px; }
.yes { color: var(--green); }
.no { color: var(--text-faint); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 22px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #1b0d00; font-weight: 800; }
.step h3 { font-size: 18px; margin-top: 4px; }
.step p { color: var(--text-dim); font-size: 15.5px; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-size: 18px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--text-faint); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { color: var(--text-dim); padding: 0 0 20px; font-size: 16.5px; }
.faq details > div p:last-child { margin: 0; }

/* Final CTA */
.cta { text-align: center; padding: 100px 0 110px; position: relative; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 50% 60%, rgba(255, 138, 26, .14), transparent 70%); z-index: -1; }
.cta h2 { font-size: clamp(32px, 5vw, 54px); }
.cta p { color: var(--text-dim); font-size: 19px; margin-bottom: 30px; }
.cta .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--text-faint); font-size: 14.5px; }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
footer h4 { color: var(--text-dim); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 7px 0; }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--text); }
footer .brand { margin-bottom: 12px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr 1fr; } footer .about { grid-column: 1 / -1; } }

/* Docs */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-top: 36px; padding-bottom: 80px; }
.docs-nav { position: sticky; top: 82px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; font-size: 15px; }
.docs-nav h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin: 20px 0 8px; }
.docs-nav h4:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; padding: 0; margin: 0; }
.docs-nav a { display: block; color: var(--text-dim); padding: 6px 12px; border-radius: 8px; border-left: 2px solid transparent; }
.docs-nav a:hover { color: var(--text); background: var(--bg-2); text-decoration: none; }
.docs-nav a[aria-current="page"] { color: var(--text); background: var(--bg-2); border-left-color: var(--orange); }
.docs-nav .sub a { font-size: 14px; padding: 4px 12px 4px 24px; }
.doc { max-width: 780px; }
.doc h1 { font-size: clamp(32px, 4.5vw, 44px); letter-spacing: -.03em; }
.doc .intro { font-size: 19px; color: var(--text-dim); margin-bottom: 32px; }
.doc h2 { font-size: 26px; margin-top: 52px; padding-top: 8px; scroll-margin-top: 80px; }
.doc h3 { font-size: 19px; margin-top: 32px; scroll-margin-top: 80px; }
.doc p, .doc li { color: #c6d4dc; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.doc pre { background: #030a10; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; line-height: 1.5; font-size: 14px; color: #d8f6ff; }
.doc pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.doc .cmd { margin: 0 0 16px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0 24px; display: block; overflow-x: auto; }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { color: var(--text-dim); font-weight: 600; background: var(--bg-2); white-space: nowrap; }
.doc td { color: #c6d4dc; }
.doc figure { margin: 24px 0; }
.callout { border: 1px solid var(--line-2); border-left: 3px solid var(--cyan); background: var(--bg-2); border-radius: 10px; padding: 14px 18px; margin: 20px 0; font-size: 15.5px; }
.callout.warn { border-left-color: var(--orange); }
.callout p:last-child { margin: 0; }
.doc-next { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc-next a { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; color: var(--text); flex: 1; max-width: 48%; }
.doc-next a:hover { border-color: var(--line-2); text-decoration: none; }
.doc-next a small { display: block; color: var(--text-faint); font-size: 13px; }
.doc-next a.next { text-align: right; margin-left: auto; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 0; padding-top: 16px; }
  .docs-nav { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); margin-bottom: 28px; }
  .docs-nav .inner { display: none; padding: 4px 12px 14px; }
  .docs-nav.open .inner { display: block; }
  .menu-btn { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0; color: var(--text); font: 600 15px var(--sans); padding: 14px 16px; cursor: pointer; }
}

/* A feature with two screenshots: the copy on top, the pair side by side below it. */
.feature.stack { grid-template-columns: 1fr; gap: 32px; }
.feature.stack > .copyside { max-width: 760px; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.shot-pair .shot { margin: 0; }
@media (max-width: 760px) { .shot-pair { grid-template-columns: 1fr; } }

/* The small things: a list of six beside one viewer showing the one picked, then the rest as a compact list. */
.showcase { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 40px; }
.sc-list { display: grid; gap: 6px; }
.sc-item { text-align: left; font: inherit; color: inherit; background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 12px 16px; cursor: pointer; transition: background .15s, border-color .15s; }
.sc-item:hover { background: var(--bg-2); }
.sc-item[aria-selected="true"] { background: var(--bg-2); border-color: var(--line-2); box-shadow: inset 3px 0 0 var(--orange); }
.sc-item:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sc-t { display: block; font-weight: 700; font-size: 16.5px; }
.sc-d { display: none; color: var(--text-dim); font-size: 14.5px; line-height: 1.5; margin-top: 4px; }
.sc-item[aria-selected="true"] .sc-d { display: block; }
.sc-stage { position: sticky; top: 88px; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #1b1b1b; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
/* Every picture and clip is 16:9 at the source: it scales as a whole, never cropped. */
.sc-panel .media { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.sc-panel[hidden] { display: none; }
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; gap: 14px; }
  .sc-stage { position: static; order: -1; }
  .sc-list { grid-template-columns: 1fr 1fr; }
  .sc-item { padding: 10px 12px; }
  .sc-item[aria-selected="true"] .sc-d { display: none; }
}

/* The rest: icon, title and a line each, three across, without card boxes. */
.grid.compact { gap: 10px 32px; }
.grid.compact .card { background: none; border: 0; padding: 10px 0; display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; align-items: start; }
.grid.compact .card:hover { transform: none; }
.grid.compact .ico { grid-row: span 2; margin: 2px 0 0; }
.grid.compact h3 { font-size: 16px; margin: 0 0 2px; }
.grid.compact p { font-size: 14.5px; }


/* The comparison on a phone: each row is a small card, the feature over its two answers, each answer labelled. */
@media (max-width: 700px) {
  .compare-wrap { overflow: visible; border: 0; background: none; }
  table.compare { min-width: 0; font-size: 15px; }
  table.compare, .compare tbody, .compare tr, .compare td { display: block; width: auto; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
  .compare td { border: 0; padding: 4px 16px 10px; }
  .compare td:first-child { padding: 14px 16px 8px; font-weight: 700; font-size: 16px; }
  .compare td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 2px; }
  .compare td.us { margin: 2px 8px 8px; padding: 10px 10px 10px; border-radius: 10px; border: 1px solid rgba(255, 138, 26, .22); background: rgba(255, 138, 26, .06); }
  .compare td.us::before { color: var(--orange-2); }
}
