/* Page layouts shared by every page: nav, heroes, grids, FAQ, footer. */
.site-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.site-nav .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.site-nav .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 18px var(--font-head); margin-right: auto; }
.site-nav .brand img { width: 28px; height: 28px; border-radius: 50%; }
.site-nav a:not(.brand) { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-nav a:not(.brand):hover, .site-nav a[aria-current] { color: var(--text); }
@media (max-width: 480px) { .site-nav .wrap { gap: 14px; } .site-nav a:not(.brand) { font-size: 14px; } }

/* Centred hero: orbit behind, copy over its lower part */
.hero-centre { position: relative; }
.hero-centre .orbit { height: 680px; --cy: 40%; }
.hero-centre .hero-copy { position: absolute; left: 0; right: 0; bottom: 56px; text-align: center; padding: 0 16px; }
.hero-copy .lead { color: var(--muted); font-size: 19px; max-width: 560px; margin: 0 auto 26px; }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; }
@media (max-width: 900px) { .hero-centre .orbit { height: 600px; } }
@media (max-width: 480px) {
  .hero-centre .orbit { height: 420px; --cy: 46%; }
  .hero-centre .hero-copy { position: static; margin-top: -24px; padding-bottom: 32px; }
  .hero-copy .lead { font-size: 17px; }
}

/* Split hero: copy left, orbit right */
.hero-split { position: relative; padding-top: 68px; overflow: hidden; }
.hero-split .orbit { position: absolute; inset: 0; height: auto; --cy: 50%; }
.hero-split .orbit .orbit-scene { left: 72%; }
.hero-split pre.code { font-size: 12.5px; }
.hero-split .grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; min-height: 620px; pointer-events: none; }
.hero-split .grid > * { pointer-events: auto; }
.hero-split .lead { color: var(--muted); font-size: 18px; margin-bottom: 22px; }
.hero-split .actions { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 22px; }
@media (max-width: 900px) {
  .hero-split .grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 40px; }
  .hero-split .orbit { position: relative; inset: auto; height: 420px; }
  .hero-split .orbit .orbit-scene { left: 50%; }
}

/* Code */
pre.code { background: #14144Acc; border: 1px solid #2B2A78; color: var(--lavender-bright); border-radius: 12px; padding: 16px 18px; margin: 0; font-size: 13.5px; line-height: 1.6; overflow-x: auto; max-width: 100%; }
pre.code .k { color: var(--lavender); }
pre.code .s { color: var(--mint); }
pre.code .c { color: #8A85B0; }

/* Grids and cards */
.grid-2, .grid-3 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card.local { border-color: var(--mint); background: var(--raised); }
.card.frontier { border-color: var(--amber); }
.card .tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 10px; }
.card .tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.card.local .tag { color: var(--mint); }
.card.frontier .tag { color: var(--amber); }
.card .foot { margin-top: 12px; font-size: 14px; }
.band { background: var(--void); }

/* Companion features: alternating rows, each with a tilted app window drawn in HTML
   (swap a window's .win-body contents for a screenshot <img> when one exists) */
.feat-row { --tone: var(--rim); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; margin: 0 0 88px; }
.feat-row[data-tone="lavender"] { --tone: var(--lavender); }
.feat-row[data-tone="mint"] { --tone: var(--mint); }
.feat-row.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.feat-row.flip .feat-copy { order: 2; }
.feat-tag { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tone); margin-bottom: 12px; }
.feat-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 12px var(--tone); }
.feat-copy h3 { font-size: clamp(26px, 3vw, 34px); }
.feat-copy > p { color: var(--muted); font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700;
  color: var(--night); background: var(--tone); transform: translateY(3px); }

.win { position: relative; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--tone) 35%, #2B2A78);
  background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 10%, var(--raised)), var(--night) 70%);
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--tone) 60%, transparent), 0 0 0 1px #ffffff08 inset;
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); transition: transform .5s ease; }
.feat-row.flip .win { transform: perspective(1400px) rotateY(9deg) rotateX(3deg); }
.feat-row:hover .win { transform: perspective(1400px) rotateY(0) rotateX(0); }
.win::after { content: ""; position: absolute; inset: 10% -6% -14%; z-index: -1; border-radius: 50%; filter: blur(50px);
  background: color-mix(in srgb, var(--tone) 28%, transparent); }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A3880; }
.win-bar span { margin-left: 8px; font: 12px var(--font-mono); color: var(--muted); }
.win-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; min-height: 280px; font-size: 14px; line-height: 1.4; }
.win-body > img { width: 100%; display: block; border-radius: 0 0 16px 16px; }

/* Scene parts, drawn from the Companion design system (sophi-companion docs/design/system): tags tint their colour at 16%,
   pink (needs-you) means "needs you" and nothing else, glows only for state */
.vg-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.vg-row.end { justify-content: flex-end; }
.vg-time, .meta { font: 12px var(--font-body); color: var(--faint); }
.vg-time { font-family: var(--font-mono); }
.tag { --c: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; font: 600 10.5px/14px var(--font-body); letter-spacing: .04em;
  white-space: nowrap; color: var(--fg, var(--c)); background: color-mix(in srgb, var(--c) 16%, transparent); }
.tag.sq { border-radius: 5px; padding: 2px 6px; }
.tag.info { --c: var(--rim); }
.tag.accent { --c: var(--lavender); --fg: var(--lavender-bright); }
.tag.caution { --c: var(--amber); }
.tag.needs { --c: var(--needs-you); --fg: var(--needs-you-text); }
.tag.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rim); box-shadow: 0 0 8px var(--rim); animation: pulse 1.6s ease-in-out infinite; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.needs { background: var(--needs-you); box-shadow: 0 0 0 3px color-mix(in srgb, var(--needs-you) 22%, transparent); }
.sp-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--card-border); }
.label { display: flex; align-items: center; gap: 8px; font: 600 10.5px/14px var(--font-body); letter-spacing: .076em; text-transform: uppercase; color: var(--faint); }
.b { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 9px; font: 600 12px var(--font-body); white-space: nowrap;
  border: 1px solid var(--ghost-border); color: var(--ghost-text); }
.b.sec { background: var(--accent-tint); border-color: var(--accent-border); color: var(--lavender-bright); }
.b.pri { background: var(--lavender); border-color: var(--lavender); color: var(--void); font-weight: 700; }
.btns { display: inline-flex; gap: 6px; }
.help { display: flex; align-items: center; gap: 8px; }
.line { color: var(--muted); }
.wave { display: flex; align-items: center; gap: 3px; height: 34px; }
.wave i { flex: 1; height: 30%; border-radius: 2px; background: linear-gradient(var(--rim), color-mix(in srgb, var(--rim) 40%, transparent)); animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.4s; } .wave i:nth-child(3n+1) { animation-delay: -.8s; }
.wave i:nth-child(4n) { animation-duration: 1.6s; } .wave i:nth-child(5n) { animation-duration: .9s; }
/* Promises: an Octo-Ping question with lettered options, then the promise and what SoPhi is doing about it */
.ping-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.quote { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-style: italic; }
.quote .tag { font-style: normal; }
.ask-line { display: flex; align-items: center; gap: 9px; }
.ask-line img { border-radius: 50%; flex: none; box-shadow: 0 0 0 1.5px var(--lavender); }
.opts { display: grid; gap: 6px; }
.opt { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 9px; font: 600 13px var(--font-body); background: var(--option-fill); border: 1px solid var(--option-border); }
.opt i { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font: 700 11px/1 var(--font-body); font-style: normal; background: var(--letter-rest); color: var(--lavender-bright); }
.opt.on { background: var(--accent-tint); border-color: var(--lavender); }
.opt.on i { background: var(--lavender); color: var(--void); }
.sp-card.promise { flex-direction: row; align-items: center; gap: 10px; }
.promise .tick { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--outline); flex: none; }
.promise .tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.promise .grow { flex: 1; color: var(--muted); font-size: 13px; }
/* Goals: the plan card and the permission card, as in the chat */
.plan b { font: 600 13.5px var(--font-head); }
.bar { height: 4px; border-radius: 2px; background: var(--accent-tint); overflow: hidden; }
.bar span { display: block; width: 50%; height: 100%; background: var(--lavender); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.steps li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--idle); flex: none; }
.steps li.done::before { background: var(--mint); }
.steps li.now { color: var(--text); }
.steps li.now::before { background: var(--lavender); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lavender) 25%, transparent); animation: pulse 1.6s ease-in-out infinite; }
.perm { background: var(--raised); border-color: color-mix(in srgb, var(--needs-you) 45%, transparent); }
.perm .req { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 12px; border-radius: 9px; background: var(--night); }
.perm code { flex-basis: 100%; font-size: 12.5px; color: var(--lavender-bright); overflow-wrap: anywhere; }
@keyframes pulse { 50% { opacity: .3; } }
@keyframes wave { 0%, 100% { height: 22%; } 50% { height: 100%; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* The window's contents arrive one by one as it scrolls into view; without scroll timelines they are simply there */
@supports (animation-timeline: view()) {
  .seq > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
  .seq > :nth-child(2) { animation-range: entry 30% cover 44%; }
  .seq > :nth-child(3) { animation-range: entry 40% cover 48%; }
  .seq > :nth-child(4) { animation-range: entry 50% cover 52%; }
  .seq > :nth-child(5) { animation-range: entry 60% cover 56%; }
  .seq > :nth-child(6) { animation-range: entry 70% cover 60%; }
  .seq .wave i { animation-timeline: auto; animation-range: normal; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.feature-strip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 18px; }
.feature-strip li { padding: 20px; border-radius: 14px; background: var(--card); border: 1px solid #2B2A78; color: var(--muted); font-size: 14px; transition: border-color .25s ease, transform .25s ease; }
.feature-strip li:hover { border-color: var(--lavender); transform: translateY(-3px); }
.feature-strip svg { width: 22px; height: 22px; display: block; margin-bottom: 12px; fill: none; stroke: var(--lavender); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-strip b { display: block; margin-bottom: 4px; color: var(--lavender-bright); font-family: var(--font-head); font-size: 16px; }
@media (max-width: 900px) {
  .feat-row, .feat-row.flip { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-bottom: 64px; }
  .feat-row.flip .feat-copy { order: 0; }
  .win, .feat-row.flip .win { transform: none; }
  .win::after { inset: 10% 0 -14%; }
}
@media (max-width: 480px) {
  .win-body { padding: 14px; font-size: 13px; min-height: 0; }
}

/* Code inside a feature window (home) */
.win > pre.code { border: 0; border-radius: 0 0 16px 16px; background: transparent; font-size: 12.5px; padding: 18px 20px; }
.hero-split .facts { margin: 18px 0 0; font: 12.5px var(--font-mono); color: var(--muted); }

/* Launch sign-up (posts to functions/api/notify.js; the result notes show via :target, no JS) */
/* As the app's first-run form: a raised card, a TextField and a Primary button, a faint hint */
.notify { margin: 28px auto 0; max-width: 480px; text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px;
  background: var(--raised); border: 1px solid var(--card-border); border-radius: 14px; }
.notify label { font: 600 15px/20px var(--font-head); color: var(--text); }
.notify-row { display: flex; gap: 8px; flex-wrap: wrap; }
.notify input[type="email"] { flex: 1 1 220px; min-width: 0; height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--outline);
  background: var(--night); color: var(--text); font: 400 14px var(--font-body); }
.notify input[type="email"]::placeholder { color: var(--faint); }
.notify input[type="email"]:focus { outline: none; border: 2px solid var(--lavender); padding: 0 11px; }
.notify button { height: 36px; padding: 0 14px; border: 0; border-radius: 9px; cursor: pointer; font: 700 13px var(--font-body); }
.notify .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.section-head .notify p { margin: 0; font-size: 12px; line-height: 17px; color: var(--faint); }
.section-head .notify .notify-note a { color: var(--muted); }
.notify .notice { display: none; align-items: center; gap: 8px; font-size: 13px; }
.notify .notice:target { display: flex; }
.notify .notice::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: currentColor; }
.section-head .notify .notice.ok { color: var(--mint); }
.section-head .notify .notice.err { color: #FF9D9D; }

/* Link lists */
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.link-list a, .link-list > li > span { display: block; padding: 14px 16px; border-radius: 10px; background: var(--card); border: 1px solid #2B2A78; color: var(--text); text-decoration: none; }
.link-list a:hover { border-color: var(--lavender); }
.link-list small { display: block; color: var(--muted); margin-top: 2px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid #2B2A78; padding: 18px 0; }
.faq summary { cursor: pointer; font: 600 17px var(--font-head); list-style-position: outside; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid #2B2A78; padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-left: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Simple text pages */
.prose { max-width: 760px; margin: 0 auto; padding: 140px 16px 80px; }
.prose h2 { margin-top: 48px; font-size: 24px; }
.prose p, .prose li { color: var(--muted); }
/* Articles: long-form reading */
.article { font-size: 17px; line-height: 1.7; }
.article h1 { font-size: clamp(30px, 5vw, 44px); margin-top: 8px; }
.article h2 { font-size: 24px; margin: 48px 0 12px; }
.article h3 { font-size: 19px; margin: 32px 0 10px; }
.article p, .article li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.article .eyebrow a { color: inherit; text-decoration: none; }
.article .byline { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.article figure { margin: 32px 0; }
.article figure img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--card-border); }
.article figcaption { margin-top: 8px; font-size: 13px; color: var(--faint); text-align: center; }
/* Code: a card with the language on top; tokens are coloured at build time (tools/build_articles.py, Pygments) */
.article figure.code { margin: 28px 0; border-radius: 14px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--lavender) 18%, transparent);
  --code-bg: color-mix(in srgb, var(--raised) 45%, var(--void)); background: var(--code-bg);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .7), 0 0 0 1px #ffffff05 inset; }
.article figure.code figcaption { display: flex; align-items: center; gap: 7px; margin: 0; padding: 10px 14px; text-align: left;
  background: color-mix(in srgb, var(--sidebar, var(--void)) 85%, transparent); border-bottom: 1px solid var(--hairline); }
.article figure.code figcaption i { width: 10px; height: 10px; border-radius: 50%; background: #3A3880; flex: none; }
.article figure.code figcaption .name { flex: 1; min-width: 0; margin-left: 8px; font: 500 12.5px var(--font-mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article figure.code figcaption .lang { flex: none; padding: 2px 8px; border-radius: 999px; font: 600 10.5px/14px var(--font-body); letter-spacing: .04em;
  color: var(--lavender-bright); background: color-mix(in srgb, var(--lavender) 16%, transparent); }
.article figure.code pre { margin: 0; padding: 16px 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; tab-size: 4; color: var(--lavender-bright);
  white-space: pre; font-variant-ligatures: none; scrollbar-width: thin; scrollbar-color: var(--outline) transparent; }
.article figure.code code { font-size: inherit; background: none; padding: 0; counter-reset: ln; }
.article figure.code.numbered pre { padding-left: 0; }
/* The gutter sticks to the left edge while long lines scroll */
.article figure.code.numbered .ln::before { counter-increment: ln; content: counter(ln); position: sticky; left: 0; display: inline-block; box-sizing: border-box;
  width: 3.4em; margin-right: 16px; padding-right: 12px; text-align: right; color: color-mix(in srgb, var(--faint) 65%, transparent);
  background: var(--code-bg); border-right: 1px solid var(--hairline); user-select: none; }
.article figure.code .copy { flex: none; padding: 3px 10px; border-radius: 7px; border: 1px solid var(--ghost-border); background: transparent;
  font: 600 11.5px/16px var(--font-body); color: var(--muted); cursor: pointer; transition: color var(--motion-short, 180ms), border-color var(--motion-short, 180ms), background var(--motion-short, 180ms); }
.article figure.code .copy:hover, .article figure.code .copy:focus-visible { color: var(--lavender-bright); border-color: var(--accent-border); background: var(--accent-tint); }
.article :not(pre) > code { font-size: .86em; padding: .12em .4em; border-radius: 5px; background: var(--accent-tint); color: var(--lavender-bright); }
.article .k, .article .kd, .article .kn, .article .kr, .article .kc, .article .kt, .article .ow { color: var(--lavender); font-weight: 500; }
.article .s, .article .s1, .article .s2, .article .sa, .article .sb, .article .sc, .article .se, .article .si, .article .dl { color: var(--mint); }
.article .c, .article .c1, .article .cm, .article .cs, .article .ch, .article .cp { color: var(--faint); font-style: italic; }
.article .m, .article .mi, .article .mf, .article .mh, .article .il, .article .nd, .article .na { color: var(--amber); }
.article .nf, .article .fm, .article .nt { color: var(--rim); }
.article .nc, .article .nn, .article .nb, .article .bp { color: #8FD8E8; }
.article .o, .article .p { color: var(--muted); }
.article .gh, .article .gu, .article .ge, .article .gs { color: var(--lavender); }
/* Tables written in Markdown */
.article:not(.compare) table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; line-height: 1.5; display: block; overflow-x: auto; }
.article:not(.compare) th, .article:not(.compare) td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.article:not(.compare) thead th { color: var(--text); font-family: var(--font-head); background: var(--void); }
.article:not(.compare) td { color: var(--muted); }
.article hr { border: 0; border-top: 1px solid var(--hairline); margin: 40px 0; }
.article .series-back { margin-top: 48px; }
/* Comparison page: the table scrolls inside its own box on narrow screens */
.compare { max-width: 1040px; }
.table-scroll { overflow-x: auto; margin: 24px 0; border: 1px solid var(--card-border); border-radius: 12px; }
.compare table { border-collapse: collapse; min-width: 860px; width: 100%; font-size: 14px; line-height: 1.5; }
.compare th, .compare td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); color: var(--muted); }
.compare thead th { font: 600 14px var(--font-head); color: var(--text); background: var(--void); }
.compare thead th:nth-child(2), .compare td:nth-child(2) { background: color-mix(in srgb, var(--lavender) 7%, transparent); color: var(--text); }
.compare tbody th { font-weight: 600; color: var(--text); white-space: nowrap; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare .sources li { font-size: 15px; }

/* Tabs: radio inputs, no JS. Panels follow the inputs in the same order. */
.tabs { max-width: 860px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 6px; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tabs label { padding: 9px 16px; border-radius: 10px; background: var(--card); border: 1px solid #2B2A78; color: var(--muted); cursor: pointer; font-weight: 500; }
.tabs input:checked + label { color: var(--night); background: var(--lavender); border-color: var(--lavender); }
.tabs input:focus-visible + label { outline: 2px solid var(--lavender); outline-offset: 3px; }
.tabs .tab-panel { display: none; order: 1; width: 100%; margin-top: 10px; }
#run-sdk:checked ~ .tab-panel:nth-of-type(1),
#run-cli:checked ~ .tab-panel:nth-of-type(2),
#run-web:checked ~ .tab-panel:nth-of-type(3) { display: block; }
