/* Slint — bold rebrand design language (shared lab stylesheet)
   Dark canvas matches the live site (#151D21). Brand blue→purple gradient,
   with coral + ice as the warm/cool accent pair. Light + dark via body.light. */

:root {
  --ink: #151D21;          /* site dark canvas */
  --ink-2: #1A242A;
  --panel: #1E2A31;
  --card: #202D35;
  --code-bg: #0F1418;
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #EEF3F5;
  --muted: #9FB0B8;
  --faint: #8493A1;   /* bumped from #6E7E86 → ≥4.5:1 on --ink (WCAG AA) */

  --blue: #2379F4;         /* exact brand blue */
  --purple: #6B0DFF;       /* exact brand purple */
  --ice: #0DB1FF;          /* cool accent */
  --coral: #FF6A3D;        /* warm accent */
  --green: #2FD39B;

  --grad: linear-gradient(103deg, #2379F4 4%, #6B0DFF 96%);
  --grad-bright: linear-gradient(103deg, #4F9BFF 2%, #9F5BFF 98%);
  --grad-warm: linear-gradient(103deg, #FF6A3D 0%, #0DB1FF 100%);

  --display: "Red Hat Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Source Code Pro", ui-monospace, monospace;

  --shadow: 0 30px 80px rgba(5, 10, 14, 0.5);
}

body.light {
  --ink: #F7F9FC;
  --ink-2: #FFFFFF;
  --panel: #FFFFFF;
  --card: #FFFFFF;
  --code-bg: #131C22;
  --line: rgba(18, 28, 38, 0.10);
  --line-2: rgba(18, 28, 38, 0.17);
  --text: #121A20;
  --muted: #51616B;
  --faint: #64707A;   /* darkened for WCAG AA (≥4.5:1) on the light --ink */
  --shadow: 0 16px 44px rgba(20, 35, 60, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }  /* offset in-page anchors below the 75px sticky header */
/* Bold canvas applies only to converted pages (body.bold); legacy/blog/docs keep style.css. */
body.bold {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .3s, color .3s;
}

/* Soft radial-gradient blobs instead of filter: blur(150px) — same look, but
   blur() forces an expensive offscreen rasterization on every repaint/scroll.
   A gradient that fades to transparent is composited essentially for free. */
.glow { position: absolute; z-index: 0; pointer-events: none; opacity: 0.5; will-change: auto; }
body.light .glow { opacity: 0.22; }
.glow.a { width: 620px; height: 620px; background: radial-gradient(circle, var(--blue) 0%, transparent 70%); top: -200px; left: -180px; }
.glow.b { width: 560px; height: 560px; background: radial-gradient(circle, var(--purple) 0%, transparent 70%); top: -140px; right: -160px; }
.glow.c { width: 680px; height: 680px; background: radial-gradient(circle, #1a3f7a 0%, transparent 70%); top: 820px; left: 28%; }
body.light .glow.c { opacity: 0.14; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
body.bold a { color: inherit; text-decoration: none; }
body.bold a.btn-grad { color: #fff; }  /* gradient buttons keep white text in both themes (beats the inherit above) */

/* Header / nav */
header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(21, 29, 33, 0.72); border-bottom: 1px solid var(--line); }
body.light header { background: rgba(255, 255, 255, 0.82); }
.nav { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: inline-flex; align-items: center; height: 30px; transition: opacity .15s ease; }
.brand:hover { opacity: .72; }
.brand img { height: 30px; width: auto; display: block; }
.brand .logo-light { display: none; }
body.light .brand .logo-light { display: block; }
body.light .brand .logo-dark { display: none; }
.nav-links { display: flex; gap: 24px; margin-left: 16px; }
.nav-mobile-actions { display: none; }                              /* Contact / Sign in / GitHub — surfaced inside the dropdown on mobile only */
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .18s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
/* Grouped nav dropdown (Product) */
.nav-group { position: relative; display: inline-flex; align-items: center; }
.nav-grp-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 0; margin: 0; font: inherit; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; transition: color .18s; }
.nav-grp-btn .caret { transition: transform .2s; }
.nav-group:hover .nav-grp-btn, .nav-group:focus-within .nav-grp-btn { color: var(--text); }
.nav-group:hover .caret, .nav-group:focus-within .caret { transform: rotate(180deg); }
.nav-group::after { content: ""; position: absolute; top: 100%; left: -12px; right: -12px; height: 14px; }
.nav-menu { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); min-width: 190px; flex-direction: column; gap: 2px; padding: 8px; background: #0F1519; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 22px 44px rgba(0,0,0,0.5); display: none; z-index: 60; }
body.light .nav-menu { background: #FFFFFF; }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { display: flex; }
.nav-menu a { padding: 9px 14px; border-radius: 8px; color: var(--muted); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.nav-menu a:hover { background: rgba(127,142,150,0.12); color: var(--text); }
body.light .nav-menu a:hover { background: rgba(0,0,0,0.05); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-right .btn { white-space: nowrap; }                            /* never let the CTA wrap to two lines */
.ghost-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 13px; text-decoration: none; transition: color .15s, border-color .15s; }
.ghost-pill:hover { color: var(--text); border-color: var(--ice); }
.toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; }
.toggle:hover { color: var(--text); }
.toggle .moon { display: none; } body.light .toggle .moon { display: inline; } body.light .toggle .sun { display: none; }
/* Sign-in icon button (returning users) — matches the theme toggle */
.acct-ic { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; transition: color .18s, border-color .18s; }
.acct-ic:hover { color: var(--text); border-color: var(--blue); }

.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; border-radius: 11px; padding: 11px 18px; cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(53, 27, 180, 0.4); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(53, 27, 180, 0.55); }
.btn-ghost { background: rgba(127, 142, 150, 0.12); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(127, 142, 150, 0.2); }
.btn-lg { font-size: 16px; padding: 15px 26px; border-radius: 13px; }
.btn:focus { outline: none; }
.btn:focus-visible { outline: 2px solid rgba(96,165,250,0.7); outline-offset: 3px; }
.btn-outline { background: transparent; border-color: rgba(96,165,250,0.55); color: var(--text); }
.btn-outline:hover { transform: translateY(-2px); background: rgba(35,121,244,0.12); border-color: var(--blue); }

/* Announcement — ice accent */
.announce { width: 100%; background: rgba(13, 177, 255, 0.09); border-bottom: 1px solid rgba(13, 177, 255, 0.18); padding: 10px 20px; text-align: center; }
.announce a { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: var(--text); transition: color .2s; }
.announce a:hover { color: var(--ice); }
.announce a .tag { color: var(--ice); font-weight: 700; }
.announce a .arr { color: var(--muted); }
.announce a:hover { background: rgba(13, 177, 255, 0.18); }
.announce .tag { font-weight: 700; color: var(--ice); }

/* Hero */
.hero { text-align: center; padding: 26px 0 12px; }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase; color: #7fb6ff; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(35, 121, 244, 0.08); margin-bottom: 26px; }
body.light .eyebrow { color: #1c5fd0; background: rgba(35, 121, 244, 0.07); }
body.bold h1 { font-family: var(--display); font-weight: 900; letter-spacing: -0.035em; word-spacing: normal; line-height: 1.03; font-size: clamp(42px, 7vw, 84px); margin: 0 auto 22px; max-width: 17ch; }   /* word-spacing:normal undoes the legacy mobile "one word per line" hack (style.css) */
h1 .grad, .grad-text { background: var(--grad-bright); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.light h1 .grad, body.light .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(18px, 2.1vw, 22px); color: var(--muted); max-width: 720px; margin: 0 auto 32px; line-height: 1.55; }
.lede b { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.micro { margin-top: 18px; font-size: 13.5px; color: var(--faint); font-family: var(--mono); }
.hero-free { margin-top: 9px; font-size: 13px; font-family: var(--mono); color: var(--muted); }
.hero-free b { color: var(--ice); font-weight: 600; }

/* Section scaffolding */
section.block { padding: 72px 0; position: relative; }
@media (max-width: 760px) { section.block { padding: 56px 0; } }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: #6ea2ff; margin-bottom: 14px; }
body.light .kicker { color: #2466cf; }
body.bold h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(29px, 3.9vw, 45px); margin: 0 0 16px; line-height: 1.08; }
.section-lede { color: var(--muted); font-size: 18px; max-width: 650px; margin: 0; }
.center { text-align: center; } .center .section-lede { margin: 0 auto; }

/* Code + preview showpiece (stays dark in both themes) */
.show { margin: 24px auto 0; max-width: 1000px; display: grid; grid-template-columns: 1.5fr 1fr; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: var(--code-bg); box-shadow: var(--shadow); }
.pane-bar { display: flex; align-items: center; gap: 7px; padding: 0 16px; min-height: 50px; box-sizing: border-box; border-bottom: 1px solid rgba(255,255,255,0.08); }
.pane-bar .d { width: 11px; height: 11px; border-radius: 50%; background: #2c3947; }
.pane-bar .fn { margin-left: 10px; font-family: var(--mono); font-size: 12.5px; color: #7e8b96; }
.code-pane { border-right: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; }
body.bold pre { margin: 0; padding: 20px 22px; font-family: var(--mono); font-size: 13px; line-height: 1.75; overflow-x: auto; color: #e6ecf2; }
.k { color: #c08bff; } .t { color: #5aa6ff; } .s { color: #46d8a6; } .p { color: #8b97a6; } .c2 { color: #5b6b78; }
.preview-pane { display: flex; flex-direction: column; overflow: hidden; }
.preview-bar { padding: 0 16px; min-height: 50px; box-sizing: border-box; border-bottom: 1px solid rgba(255,255,255,0.08); font-family: var(--mono); font-size: 12.5px; color: #7e8b96; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.device { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 26px; color: #e6ecf2; }
.device .title { font-family: var(--display); font-weight: 800; font-size: 22px; }
.gauge { width: 150px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; }
.gauge i { display: block; height: 100%; width: 64%; background: var(--grad-bright); }
.device .b { background: var(--grad); color: #fff; font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: 9px; }
.agent { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.agent .msg { font-family: var(--mono); font-size: 12.5px; padding: 10px 12px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.08); color: #c6d2dc; }
.agent .msg.ok { border-color: rgba(47,211,155,0.4); color: #aef0d6; }
.agent .msg .who { color: #7e8b96; }
/* Agent-loop animation (scroll-triggered, reduced-motion safe) + running-app preview */
.cbline { border-radius: 4px; padding: 0 3px; transition: background .3s; }
.cbline.lit { background: rgba(35,121,244,0.16); }
.runapp { max-width: 1000px; margin: 16px auto 0; display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.runwin { position: relative; width: 258px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #eef2f7; transition: background .45s; }
.runwin .runbar { display: flex; align-items: center; gap: 5px; padding: 8px 11px; background: #e2e8f0; transition: background .45s; }
.runwin .rd { width: 8px; height: 8px; border-radius: 50%; background: #c2ccd8; }
.runwin .rt { margin-left: 6px; font-family: var(--mono); font-size: 11px; color: #5a6b7d; transition: color .45s; }
.runwin .runbody { padding: 12px 13px; }
.runwin .rl { font-size: 11px; color: #5a6b7d; margin-bottom: 7px; transition: color .45s; }
.runwin .rtrack { position: relative; height: 5px; border-radius: 3px; background: #cfd8e2; margin-bottom: 13px; transition: background .45s; }
.runwin .rfill { position: absolute; left: 0; top: 0; bottom: 0; width: 40%; border-radius: 3px; background: var(--blue); }
.runwin .rknob { position: absolute; left: 40%; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); transform: translate(-50%,-50%); }
.runwin .rrow { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: #33414f; transition: color .45s; }
.runwin .rck { width: 15px; height: 15px; border-radius: 4px; border: 1px solid #9fb0c0; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 10px; transition: background .3s, border-color .3s, color .3s; }
.runwin.on { background: #10171d; }
.runwin.on .runbar { background: #1a242c; }
.runwin.on .rt, .runwin.on .rl { color: #9aa7b3; }
.runwin.on .rrow { color: #d4dde5; }
.runwin.on .rtrack { background: #2a3742; }
.runwin.on .rck { border-color: var(--blue); background: var(--blue); color: #fff; }
.runwin .rflash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.runwin.shot .rflash { animation: lpflash .5s ease; }
@keyframes lpflash { 0% { opacity: 0; } 28% { opacity: .8; } 100% { opacity: 0; } }
.runcap { font-family: var(--mono); font-size: 12px; color: var(--faint); max-width: 150px; line-height: 1.5; text-align: left; margin: 0; }
.lp-replay { font-family: var(--mono); font-size: 12.5px; color: var(--muted); background: rgba(127,142,150,0.1); border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 13px; margin-top: 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: color .18s, border-color .18s; }
.lp-replay:hover { color: var(--text); border-color: var(--blue); }
.lp-replay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#agentloop.playing .loop .step { opacity: .5; transition: .35s; }
#agentloop.playing .loop .step.hot { opacity: .5; border-color: var(--line-2); background: rgba(127,142,150,0.08); color: var(--muted); }
#agentloop.playing .loop .step.done { opacity: 1; color: #bfe9d8; border-color: rgba(47,211,155,0.32); background: rgba(47,211,155,0.08); }
#agentloop.playing .loop .step.on { opacity: 1; color: var(--text); border-color: rgba(107,13,255,0.6); background: rgba(107,13,255,0.2); transform: translateY(-1px) scale(1.05); }
#agentloop.playing .agent .msg { opacity: 0; transform: translateY(7px); transition: .4s; }
#agentloop.playing .agent .msg.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .lp-replay { display: none; } }

/* Realistic preview (SlintPad-style running app) */
.pv { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 13px; color: #e6ecf2; }
.pv-head { display: flex; align-items: center; justify-content: space-between; }
.pv-head .t { font-family: var(--display); font-weight: 800; font-size: 17px; }
.pv-head .s { font-family: var(--mono); font-size: 11px; color: #7e8b96; display: flex; align-items: center; gap: 6px; }
.pv-ringwrap { display: flex; align-items: center; gap: 14px; }
.pv-ring { width: 86px; height: 86px; border-radius: 50%; background: conic-gradient(#2379F4 0 64%, rgba(255,255,255,0.10) 64% 100%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pv-ring .hole { width: 64px; height: 64px; border-radius: 50%; background: var(--code-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pv-ring .hole b { font-family: var(--display); font-weight: 800; font-size: 17px; }
.pv-ring .hole span { font-size: 10px; color: #7e8b96; }
.pv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.pv-tile { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); border-radius: 9px; padding: 8px 10px; }
.pv-tile .v { font-family: var(--display); font-weight: 700; font-size: 15px; }
.pv-tile .k { font-size: 10.5px; color: #7e8b96; }
.pv-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #aab4be; }
.pv-track { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.12); position: relative; }
.pv-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 58%; border-radius: 999px; background: var(--grad-bright); }
.pv-track .knob { position: absolute; left: 58%; top: 50%; transform: translate(-50%,-50%); width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.45); }
.pv-switch { width: 38px; height: 22px; border-radius: 999px; background: #2379F4; position: relative; flex-shrink: 0; }
.pv-switch i { position: absolute; right: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.pv-btn { background: var(--grad); color: #fff; font-weight: 600; font-size: 13px; text-align: center; padding: 9px; border-radius: 9px; }

/* "One codebase, every screen" — a real multi-device shot above the target rail */
.targets-shot { margin: 36px auto 0; max-width: 880px; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.targets-shot img { width: 100%; height: auto; display: block; }
.targets-shot figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--muted); padding: 11px 16px; border-top: 1px solid var(--line); background: var(--card); text-align: center; }

/* Real-application gallery — actual Slint UIs across industries (Platforms etc.) */
.app-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; text-align: left; }
.app-shots figure { margin: 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.app-shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.app-shots figcaption { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--faint); padding: 10px 13px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .app-shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .app-shots { grid-template-columns: 1fr; } }

/* Style gallery — the same widget set rendered in each design language (Components) */
.style-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 42px auto 0; max-width: 920px; }
.style-shots figure { margin: 0; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.style-shots img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: top center; display: block; background: #fff; }
.style-shots figcaption { font-size: 13.5px; color: var(--muted); padding: 13px 16px; border-top: 1px solid var(--line); text-align: left; }
.style-shots figcaption b { font-family: var(--display); font-weight: 700; font-size: 15px; }
@media (max-width: 560px) { .style-shots { grid-template-columns: 1fr; } }

/* MCU board matrix (Platforms) — grouped by silicon vendor, verified from data/boards.json */
.boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; text-align: left; align-items: start; }
.vendor { border: 1px solid var(--line-2); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
body:not(.light) .vendor { background: rgba(255,255,255,0.03); box-shadow: none; }
.vendor-head { display: flex; align-items: baseline; gap: 10px; padding: 4px 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; flex-wrap: wrap; }
.vendor-head .vn { font-family: var(--display); font-weight: 700; font-size: 15.5px; color: var(--text); }
.vendor-head .vt { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.board { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 10px; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.board:hover { background: rgba(35,121,244,0.08); border-color: var(--line-2); text-decoration: none; }
.board .bn { font-weight: 600; font-size: 14px; color: var(--text); }
.board .bm { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
@media (max-width: 860px) { .boards { grid-template-columns: 1fr; } .vendor-head .vt { margin-left: 0; } }

/* Spectrum rail */
.rail { margin-top: 44px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.rail::before { content: ""; position: absolute; left: 6%; right: 6%; top: 22px; height: 2px; background: var(--grad-warm); opacity: 0.55; }
.node { text-align: center; position: relative; }
.node .bulb { width: 18px; height: 18px; border-radius: 50%; margin: 24px auto 18px; position: relative; z-index: 1; }
.node .nicon { width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 12px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.node .nicon svg { width: 22px; height: 22px; }
.node .name { font-family: var(--display); font-weight: 700; font-size: 16px; }
.node .sub { color: var(--faint); font-size: 13px; margin-top: 3px; }
.node .spec { font-family: var(--mono); font-size: 12px; margin-top: 8px; }
body.light .node .spec { color: var(--muted) !important; }   /* accent colours (inline) fail contrast on the light canvas */

/* Bento + cards */
.bento { margin-top: 54px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cell { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; position: relative; overflow: hidden; transition: transform .2s, border-color .2s; box-shadow: var(--shadow); }
body:not(.light) .cell { box-shadow: none; background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012)); }
.cell:hover { transform: translateY(-4px); border-color: var(--line-2); }
.cell h3 { font-family: var(--display); font-weight: 800; font-size: 21px; margin: 0 0 8px; letter-spacing: -0.01em; }
.cell p { color: var(--muted); font-size: 15.5px; margin: 0; }
.cell .ic { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: rgba(35,121,244,0.14); }
.cell .ic.p { background: rgba(107,13,255,0.16); } .cell .ic.i { background: rgba(13,177,255,0.16); } .cell .ic.o { background: rgba(255,106,61,0.16); } .cell .ic.g { background: rgba(47,211,155,0.16); }
.cell .ic svg { width: 22px; height: 22px; }
.c-6 { grid-column: span 6; } .c-4 { grid-column: span 4; } .c-3 { grid-column: span 3; } .c-2 { grid-column: span 2; }
/* width/height/border-radius reset guards against legacy style.css `div.feature` (a 24px circle) leaking in */
.cell.feature { background: linear-gradient(120deg, rgba(35,121,244,0.18), rgba(107,13,255,0.16)); border: 1px solid rgba(107,13,255,0.3); border-radius: 18px; width: auto; height: auto; grid-row: span 2; }
.badge { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ice); border: 1px solid rgba(13,177,255,0.4); border-radius: 999px; padding: 4px 11px; display: inline-block; margin-bottom: 14px; }

/* Loop stepper */
.loop { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 44px; }
.loop .step { font-family: var(--mono); font-size: 14px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(127,142,150,0.08); }
.loop .arrow { align-self: center; color: var(--faint); }
.loop .step.hot { border-color: rgba(107,13,255,0.5); background: rgba(107,13,255,0.14); color: var(--text); }

/* Pillars */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.pillar { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: var(--card); box-shadow: var(--shadow); text-align: left; }
body:not(.light) .pillar { box-shadow: none; background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012)); }
.pillar.i-blue   { --ac: #2379F4; --ac-bg: rgba(35,121,244,0.12);  --ac-bd: rgba(35,121,244,0.30); }
.pillar.i-purple { --ac: #6B0DFF; --ac-bg: rgba(107,13,255,0.14);  --ac-bd: rgba(107,13,255,0.34); }
.pillar.i-green  { --ac: #12A578; --ac-bg: rgba(47,211,155,0.16);  --ac-bd: rgba(47,211,155,0.36); }
body:not(.light) .pillar.i-blue   { --ac: #5B9DFF; }
body:not(.light) .pillar.i-purple { --ac: #A684FF; }
body:not(.light) .pillar.i-green  { --ac: #4FE0B0; }
.pillar h3 { font-family: var(--display); font-weight: 800; font-size: 20px; margin: 0 0 10px; display: flex; align-items: center; gap: 12px; }
.pillar .cap-badge { width: 34px; height: 34px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--ac-bg); border: 1px solid var(--ac-bd); color: var(--ac); }
.pillar .cap-badge svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pillar ul { margin: 0; padding: 0; list-style: none; }
.pillar li { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.pillar li svg { width: 17px; height: 17px; flex: none; color: var(--ac); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
.chip { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); }
body:not(.light) .chip { background: rgba(255,255,255,0.04); }
.chip .b { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* Feed */
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.feed .f { text-align: center; border: 1px solid var(--line); border-radius: 16px; padding: 24px 16px; background: var(--card); box-shadow: var(--shadow); }
body:not(.light) .feed .f { box-shadow: none; background: rgba(255,255,255,0.03); }
.feed .f .t2 { font-family: var(--mono); font-weight: 700; font-size: 15px; margin-bottom: 6px; color: var(--text); }
.feed .f p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* Enable code block */
.enable { margin: 40px auto 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--code-bg); max-width: 760px; box-shadow: var(--shadow); }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; }
.qa { border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin-bottom: 14px; background: var(--card); box-shadow: var(--shadow); }
body:not(.light) .qa { box-shadow: none; background: rgba(255,255,255,0.03); }
.qa h4 { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.qa p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; border: 1px solid var(--line); border-radius: 16px; padding: 30px 14px; background: var(--card); box-shadow: var(--shadow); }
body:not(.light) .stat { box-shadow: none; background: rgba(255,255,255,0.02); }
.stat .n { font-family: var(--display); font-weight: 900; font-size: 40px; letter-spacing: -0.02em; background: var(--grad-bright); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.light .stat .n { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Licensing strip — green/ice reassurance */
.license { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: space-between; border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px; background: var(--card); }
body:not(.light) .license { background: rgba(255,255,255,0.03); }
.license h3 { font-family: var(--display); font-weight: 800; font-size: 24px; margin: 0 0 6px; }
.license p { color: var(--muted); margin: 0; font-size: 15.5px; }
.license .pills { display: flex; gap: 10px; flex-wrap: wrap; }
.license .pill { font-size: 14px; color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 15px; background: rgba(127,142,150,0.07); }

/* Logos */
.logos { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 28px; opacity: 0.85; }
.logos span { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--text); letter-spacing: -0.01em; }
.logos img { height: 30px; width: auto; max-width: 124px; object-fit: contain; filter: brightness(0) invert(1); }
body.light .logos img { filter: brightness(0); }

/* CTA band */
.cta-band { text-align: center; border: 1px solid rgba(107,13,255,0.3); border-radius: 24px; padding: 62px 30px; background: linear-gradient(135deg, rgba(35,121,244,0.16), rgba(107,13,255,0.18)); position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(31px, 4.2vw, 50px); }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 86px; padding: 48px 0 58px; color: var(--faint); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: center; }
.foot .links { display: flex; gap: 22px; flex-wrap: wrap; } .foot .links a { color: var(--muted); font-size: 14px; }
.foot .brand img { height: 32px; }

@media (max-width: 860px) {
  .show { grid-template-columns: 1fr; } .code-pane { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .rail { grid-template-columns: repeat(2, 1fr); gap: 26px; } .rail::before { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); } .c-6, .c-4, .c-3, .c-2 { grid-column: span 2; } .cell.feature { grid-row: auto; }
  .grid3 { grid-template-columns: 1fr; } .feed { grid-template-columns: repeat(2, 1fr); } .stats { grid-template-columns: repeat(2, 1fr); }
  .pane-bar .pane-save { display: none; }                          /* Download / Open-in-AI are desktop-only — the mobile editor is read-only */
  .code-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .code-tabs::-webkit-scrollbar { display: none; }
}

/* Phone (≤600px): shrink the headline so it stops spilling word-per-line, let the
   sub-head reflow, stack the CTAs full-width, and compact the announcement bar. */
@media (max-width: 600px) {
  body.bold .hero h1 { font-size: clamp(26px, 7.2vw, 40px); line-height: 1.12; max-width: none; word-spacing: normal; }   /* word-spacing:normal so it reads as the two <br> lines, not one word per line (overrides the legacy section.hero h1 mobile hack) */
  .hero .lede { font-size: 16px; line-height: 1.55; color: var(--text); opacity: .88; max-width: 38ch; margin-bottom: 26px; }
  .hero .lede br { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .announce { padding: 7px 14px; }
  .announce a { font-size: 12.5px; gap: 6px; line-height: 1.4; }
  .announce-more { display: none; }                                /* drop the long tail on phones — keeps the bar to one line */
}

/* Showcase band — Made with Slint */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; text-align: left; }
.case { display: flex; flex-direction: column; cursor: pointer; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.case .read { align-self: flex-start; margin-top: auto; padding-top: 14px; color: var(--ice); font-size: 12.5px; font-weight: 600; }
.case:hover .read { text-decoration: underline; }
body.light .read { color: #1c5fbf; }   /* --ice fails contrast on white cards in light mode */
body:not(.light) .case { box-shadow: none; }
.case:hover { transform: translateY(-4px); border-color: var(--line-2); }
.case .shot { height: 128px; display: flex; align-items: flex-end; padding: 12px; background-size: cover; background-position: center; position: relative; }
.case .shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,12,16,0.62), rgba(8,12,16,0) 58%); }
.case .shot .sector { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,0.45); border-radius: 999px; padding: 4px 10px; position: relative; z-index: 1; }
.case .body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.case .name { font-family: var(--display); font-weight: 800; font-size: 18px; margin: 0 0 3px; }
.case .out { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.case blockquote { margin: 0; font-size: 13.5px; line-height: 1.5; }
.case .who { color: var(--faint); font-size: 12px; margin-top: 8px; }

/* ===== Blog index — card grid ===== */
.blog-list { padding-bottom: 40px; }
.blog-list .bfilter { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }   /* radios drive the filter; the labels are the visible chips */
.blog-head { padding-bottom: 40px; }                    /* .hero handles centring + top padding; extra bottom space separates the filters from the first card */
.blog-head .blog-rss { color: var(--faint); margin-left: 6px; white-space: nowrap; transition: color .18s; }
.blog-head .blog-rss svg { vertical-align: middle; }
.blog-head .blog-rss:hover { color: var(--ice); }
.blog-filters { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; }
.blog-filters-label { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.bchips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bchip { font-family: var(--mono); font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 15px; cursor: pointer; user-select: none; transition: color .15s, border-color .15s, background .15s; }
.bchip:hover { color: var(--text); border-color: var(--muted); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bcard { display: flex; flex-direction: column; margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
body:not(.light) .bcard { box-shadow: none; background: rgba(255,255,255,0.03); }
.bcard:hover { transform: translateY(-4px); border-color: var(--line-2); }
.bcard-thumb { display: block; aspect-ratio: 2 / 1; background: var(--code-bg); overflow: hidden; }
.bcard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.bcard-tags { font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; color: var(--ice); margin: 0; }
.blog-grid .bcard-title { font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }   /* .blog-grid prefix beats body.bold h2 (0,1,2), which otherwise forces 45px */
.blog-grid .bcard-title a { color: var(--text); transition: color .15s; }
.blog-grid .bcard-title a:hover { color: var(--ice); }
.bcard-date { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: auto; padding-top: 2px; }

/* Featured: the newest post spans the full width, image beside the copy */
.blog-grid .bcard:first-child { grid-column: 1 / -1; flex-direction: row; }
.blog-grid .bcard:first-child .bcard-thumb { width: 50%; aspect-ratio: auto; flex-shrink: 0; }
.blog-grid .bcard:first-child .bcard-body { justify-content: center; padding: 28px 30px; gap: 11px; }
.blog-grid .bcard:first-child .bcard-title { font-size: 22px; }

@media (max-width: 860px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .blog-grid .bcard:first-child .bcard-title { font-size: 20px; }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid .bcard:first-child { flex-direction: column; }
  .blog-grid .bcard:first-child .bcard-thumb { width: 100%; aspect-ratio: 2 / 1; }
  .blog-grid .bcard:first-child .bcard-body { padding: 16px 18px 18px; }
  .blog-grid .bcard:first-child .bcard-title { font-size: 18px; }
}

/* Components teaser (text 40 : gallery 60) */
.components { display: grid; grid-template-columns: 2fr 3fr; gap: 38px; align-items: center; text-align: left; }
.components .copy h2 { text-align: left; }
.styletags { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 22px; }
.styletags span { font-size: 13px; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; color: var(--muted); }
.widgets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wcard { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; min-height: 84px; justify-content: space-between; }
body:not(.light) .wcard { box-shadow: none; background: rgba(255,255,255,0.03); }
.wcard .lbl { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.w-btn { background: var(--grad); color: #fff; font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 8px; text-align: center; align-self: flex-start; }
.w-switch { width: 40px; height: 23px; border-radius: 999px; background: var(--blue); position: relative; }
.w-switch i { position: absolute; right: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; }
.w-track { height: 6px; border-radius: 999px; background: rgba(127,142,150,0.28); position: relative; }
.w-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 55%; border-radius: 999px; background: var(--grad-bright); }
.w-track .k { position: absolute; left: 55%; top: 50%; transform: translate(-50%,-50%); width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.4); }
.w-bars { display: flex; align-items: flex-end; gap: 5px; height: 34px; }
.w-bars span { flex: 1; border-radius: 3px 3px 0 0; background: var(--grad-bright); }
.w-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.w-check .box { width: 18px; height: 18px; border-radius: 5px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; }

/* Live WASM embed (real Slint running in the browser) */
.live-embed { border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--code-bg); box-shadow: var(--shadow); }
.le-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.le-bar .d { width: 10px; height: 10px; border-radius: 50%; background: #2c3947; }
.le-bar .le-title { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: #7e8b96; }
.le-bar .le-live { margin-left: auto; font-family: var(--mono); font-size: 11px; color: #7e8b96; display: flex; align-items: center; gap: 6px; }
.live-embed iframe { width: calc(100% + 8px); height: 470px; border: 0; outline: none; display: block; background: #0b0e13; margin-left: -4px; }
/* Gallery preview box tracks the demo's aspect ratio so the scaled canvas fills it at any width (no crop, no empty margin) */
#galleryPreview { height: auto; aspect-ratio: 660 / 470; }
/* Mobile: the live WASM previews are heavy and the editor is awkward on phones —
   swap them for a Playground CTA, leaving the read-only code visible (≤860px). */
.pv-mobile { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px 24px; text-align: center; min-height: 220px; }
.pv-mobile p { margin: 0; color: var(--muted); font-size: 14px; max-width: 32ch; }
@media (max-width: 860px) {
  .preview-pane .hero-pv, #galleryPreview { display: none; }
  .pv-mobile { display: flex; }
  .preview-pane::after, .live-embed::after { display: none; }
  .preview-pane .preview-bar { display: none; }   /* "live preview · real WASM" is misleading once the WASM is swapped for the Playground CTA */
  /* Hero only: the energy-card poster is just SVG/CSS (no WASM), so show it on mobile too —
     a real UI visual instead of an apologetic line — with the Playground CTA below it. */
  .preview-pane .pv-poster { position: static; height: 330px; }
  .preview-pane .pv-mobile { min-height: auto; padding: 14px 24px 22px; }
  .preview-pane .pv-mobile p { display: none; }
}

/* Hero live editor + WASM preview — syntax-highlighted overlay
   A transparent <textarea> sits over a highlighted <pre>; both share identical
   type metrics so the real Slint tokens (highlight.js) line up under the caret. */
.editor-wrap { position: relative; flex: 1; min-height: 360px; background: var(--code-bg); overflow: hidden; }
.editor, .hl, .hl code {
  font-family: var(--mono); font-size: 13px; line-height: 1.7; letter-spacing: 0; text-align: left;
  white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word; tab-size: 4;
}
.hl {
  position: absolute; inset: 0; margin: 0; padding: 18px 20px; border: 0;
  overflow: hidden; pointer-events: none; background: transparent; z-index: 1;
  color: #cdd6e0; box-sizing: border-box;
}
.hl code { display: block; padding: 0; background: transparent; color: inherit; }
.editor {
  position: absolute; inset: 0; margin: 0; padding: 18px 20px; border: 0; z-index: 2;
  resize: none; outline: none; box-sizing: border-box; overflow: auto;
  background: transparent; color: transparent; -webkit-text-fill-color: transparent;
  caret-color: #7fb6ff; scrollbar-width: none;
}
.editor::-webkit-scrollbar { width: 0; height: 0; }
.editor::selection { background: rgba(127, 182, 255, 0.30); }
.editor::-moz-selection { background: rgba(127, 182, 255, 0.30); }
/* Slint token colours (highlight.js classes) */
.hl .hljs-comment, .hl .hljs-quote { color: #5d6b78; font-style: italic; }
.hl .hljs-keyword { color: #c792ea; }
.hl .hljs-literal { color: #ff9d6b; }
.hl .hljs-built_in { color: #5ccfe6; }
.hl .hljs-type { color: #5ad19a; }
.hl .hljs-number { color: #ffc26b; }
.hl .hljs-string { color: #a9dc76; }
.hl .hljs-symbol, .hl .hljs-attr { color: #7ea9ff; }
.hl .hljs-title, .hl .hljs-name { color: #ffd479; }
.hl .hljs-meta { color: #7ea9ff; }
.hero-pv { width: calc(100% + 8px); height: 364px; border: 0; outline: none; display: block; background: #14181e; margin-left: -4px; }

/* Hero preview poster — a static recreation of the energy-dashboard the code renders, shown until
   the live WASM boots (fadePoster() adds .gone). Matches the app's fixed dark Theme, so no light variant. */
.pv-poster { position: absolute; top: 50px; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: center; background: #14181e; transition: opacity .45s ease; }
.pv-poster.gone { opacity: 0; pointer-events: none; }
.pvp { width: min(84%, 340px); display: flex; flex-direction: column; gap: 16px; }
.pvp-t { font-family: var(--display); font-weight: 800; font-size: 23px; color: #fafafa; letter-spacing: -0.01em; }
.pvp-row { display: flex; align-items: center; gap: 18px; }
.pvp-g { position: relative; width: 116px; height: 116px; flex-shrink: 0; }
.pvp-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.pvp-trk { fill: none; stroke: #243042; stroke-width: 11; }
.pvp-val { fill: none; stroke: #3b82f6; stroke-width: 11; stroke-linecap: round; stroke-dasharray: 352; stroke-dashoffset: 239; }   /* 2πr≈352; 32% filled */
.pvp-rd { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.pvp-rd b { font-family: var(--display); font-weight: 800; font-size: 26px; color: #fafafa; line-height: 1; }
.pvp-rd span { font-size: 12px; color: #cbd5e1; }
.pvp-b { flex: 1; display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.pvp-b i { flex: 1; border-radius: 4px 4px 0 0; background: #3b82f6; }
.pvp-b i.d { background: #2b5a9e; }
.pvp-b i:nth-child(1){height:28%}.pvp-b i:nth-child(2){height:22%}.pvp-b i:nth-child(3){height:34%}.pvp-b i:nth-child(4){height:46%}.pvp-b i:nth-child(5){height:60%}.pvp-b i:nth-child(6){height:80%}.pvp-b i:nth-child(7){height:100%}.pvp-b i:nth-child(8){height:78%}.pvp-b i:nth-child(9){height:54%}
.pvp-eco { display: flex; align-items: center; justify-content: space-between; }
.pvp-eco span:first-child { font-size: 16px; color: #fafafa; }
.pvp-tog { width: 46px; height: 26px; border-radius: 999px; background: #3b82f6; position: relative; flex-shrink: 0; }
.pvp-tog i { position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.pvp-boost { background: #2563eb; color: #fff; font-weight: 600; font-size: 15px; text-align: center; padding: 12px; border-radius: 10px; }
/* Hero code-pane file tabs (app.slint / widgets.slint / theme.slint) */
.code-tabs { display: inline-flex; gap: 2px; margin-left: 8px; }
.code-tab { font-family: var(--mono); font-size: 11.5px; color: #7e8b96; background: none; border: 0; padding: 4px 9px; border-radius: 6px; cursor: pointer; }
.code-tab:hover { color: #e6ecf2; background: rgba(127,142,150,0.10); }
.code-tab.on { color: #e6ecf2; background: rgba(127,142,150,0.16); }
.edit-hint { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ice); }

/* Components: per-widget live WASM snippets */
.widget-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.wgt { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
body:not(.light) .wgt { box-shadow: none; background: rgba(255,255,255,0.03); }
.wgt .wlbl { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.wgt .wlbl .live { color: var(--ice); }
.wgt iframe { width: 100%; height: 118px; border: 0; display: block; background: #151D21; }

/* Ecosystem / partner trust band */
.ecosystem { text-align: center; }
.rustfdn { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 18px; margin-bottom: 30px; }
.rustfdn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.eco-row { margin: 16px 0; }
.eco-row .grp { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.eco-logos { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; opacity: 0.92; }
.eco-logos span { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--text); }
.eco-logos img { height: 30px; width: auto; max-width: 142px; object-fit: contain; opacity: 0.85; filter: brightness(0) invert(1); transition: opacity .2s; }
body.light .eco-logos img { filter: brightness(0); opacity: 0.72; }
.eco-logos img:hover { opacity: 1; }

/* Ecosystem as a stack — each partner adds value at its own layer (silicon → OS → Slint → app) */
.eco-stack { max-width: 720px; margin: 34px auto 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.eco-layer { display: flex; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 14px; padding: 15px 22px; background: var(--card); }
body:not(.light) .eco-layer { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012)); }
.eco-layer .lyr { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); width: 84px; flex-shrink: 0; }
.eco-layer .eco-logos { justify-content: flex-start; flex: 1; gap: 26px; opacity: 1; margin: 0; }
.eco-layer.app { border-style: dashed; background: transparent; justify-content: center; padding: 11px; }
body:not(.light) .eco-layer.app { background: transparent; border-color: rgba(255, 255, 255, 0.30); }
body.light .eco-layer.app { border-color: rgba(18, 28, 38, 0.34); }
.eco-layer.app .lyr { width: auto; color: var(--muted); }
.eco-layer.slint { background: linear-gradient(120deg, #2379F4, #6B0DFF); border-color: transparent; gap: 14px; justify-content: center; box-shadow: 0 12px 34px rgba(53,27,180,0.32); }
.eco-layer.slint .bmark { width: 20px; height: 28px; color: #fff; flex-shrink: 0; }
.eco-layer.slint .name { font-family: var(--display); font-weight: 800; font-size: 19px; color: #fff; }
.eco-layer.slint .sub { color: rgba(255,255,255,0.92); font-size: 14.5px; }
.eco-frame { max-width: 768px; margin: 34px auto 0; padding: 22px 22px 16px; border: 1px solid var(--line); border-radius: 24px; }
body:not(.light) .eco-frame { background: rgba(255,255,255,0.02); }
.eco-frame .eco-stack { margin: 0; max-width: 100%; }
.eco-frame .eco-row { max-width: 100%; margin: 20px 0 0; }
.eco-layer:not(.app):not(.slint) { display: grid; grid-template-columns: 74px 1fr 74px; gap: 0; align-items: center; }
.eco-layer:not(.app):not(.slint) .eco-logos { justify-content: center; flex: none; gap: 18px; flex-wrap: nowrap; }
.eco-layer:not(.app):not(.slint) .eco-logos img { height: 27px; }
.eco-layer:not(.app):not(.slint) .lyr { width: auto; }
.eco-logos .rpi-word { font-size: 18px; }
.eco-frame .eco-row .eco-logos { gap: 18px; flex-wrap: nowrap; }
.eco-frame .eco-row .eco-logos img { height: 24px; max-width: 116px; }
@media (max-width: 640px) {
  .eco-layer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .eco-layer .lyr { width: auto; }
  .eco-layer.app, .eco-layer.slint { flex-direction: row; align-items: center; }
  .eco-layer:not(.app):not(.slint) { display: flex; grid-template-columns: none; }
  .eco-frame { padding: 16px 14px 10px; }
}


@media (max-width: 860px) {
  .cases { grid-template-columns: repeat(2, 1fr); }
  .components { grid-template-columns: 1fr; gap: 26px; }
}

/* Safety page */
.eyebrow-safe { color: #46d8a6; background: rgba(47,211,155,0.09); border-color: rgba(47,211,155,0.32); }
body.light .eyebrow-safe { color: #0f9e72; background: rgba(47,211,155,0.10); }
.safety-band { align-items: stretch; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); font-size: 15.5px; margin-bottom: 13px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; background: rgba(47,211,155,0.16); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px; border: solid #2FD39B; border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* Architecture stack diagram (stays dark in both themes, like the code windows) */
.arch { padding: 18px; display: flex; flex-direction: column; }
.arch-layer { border-radius: 12px; padding: 15px 18px; border: 1px solid rgba(255,255,255,0.12); display: flex; flex-direction: column; gap: 3px; }
.arch-layer .al-k { font-family: var(--display); font-weight: 800; font-size: 15px; color: #eef3f5; }
.arch-layer .al-d { font-size: 12px; color: #9aa6b2; font-family: var(--mono); }
.arch-layer.ui { background: linear-gradient(120deg, rgba(35,121,244,0.20), rgba(13,177,255,0.16)); border-color: rgba(13,177,255,0.38); }
.arch-layer.core { background: rgba(47,211,155,0.13); border-color: rgba(47,211,155,0.36); }
.arch-layer.hw { background: rgba(255,255,255,0.05); }
.arch-conn { text-align: center; font-family: var(--mono); font-size: 11px; color: #7e8b96; padding: 9px 0; }

/* Compare page — at-a-glance matrix */
.cmp { max-width: 980px; margin: 0 auto; overflow-x: auto; }
.cmp-table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
body:not(.light) .cmp-table { background: rgba(255,255,255,0.02); box-shadow: none; }
.cmp-table th, .cmp-table td { padding: 14px 16px; text-align: center; font-size: 14px; border-bottom: 1px solid var(--line); }
.cmp-table thead th { font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--text); background: rgba(255,255,255,0.03); }
body.light .cmp-table thead th { background: rgba(18,28,38,0.03); }
.cmp-table .rowlbl { text-align: left; color: var(--muted); font-family: var(--sans); font-weight: 500; }
.cmp-table .rl-sub { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--faint); letter-spacing: .04em; margin-top: 2px; }
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table .me { background: rgba(35,121,244,0.10); color: var(--text); border-left: 1px solid rgba(35,121,244,0.30); border-right: 1px solid rgba(35,121,244,0.30); }
.cmp-table thead th.me { background: rgba(35,121,244,0.18); color: #cfe0ff; }
body.light .cmp-table thead th.me { color: var(--blue); }
.cmp-table tbody tr:last-child td.me { border-bottom: 1px solid rgba(35,121,244,0.30); }
.cmp-table .yes { color: var(--green); font-weight: 700; }
.cmp-table .no { color: var(--faint); }
.cmp-table .mid { color: var(--coral); font-weight: 700; }
.cmp-foot { color: var(--muted); font-size: 14px; max-width: 760px; margin: 18px auto 0; text-align: center; }
.cmp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.cmp-card { display: block; border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--card); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
body:not(.light) .cmp-card { box-shadow: none; background: rgba(255,255,255,0.03); }
.cmp-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.cmp-card .cc-name { font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 10px; }
.cmp-card .cc-name b { font-weight: 900; }
.cmp-card p { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; line-height: 1.5; }
.cmp-card .read { color: var(--ice); font-size: 13px; font-weight: 600; }
.cmp-card:hover .read { text-decoration: underline; }
.cmp-card.alt { background: linear-gradient(120deg, rgba(35,121,244,0.16), rgba(107,13,255,0.16)); border-color: rgba(107,13,255,0.30); }
@media (max-width: 860px) { .cmp-cards { grid-template-columns: 1fr; } }

/* Platforms — one-source → targets fan-out (stays dark, like the code windows) */
.fanout { padding: 20px; }
.fan-src { border-radius: 12px; padding: 14px 18px; text-align: center; font-family: var(--mono); font-weight: 700; font-size: 15px; color: #eaf1ff; background: linear-gradient(120deg, rgba(35,121,244,0.22), rgba(107,13,255,0.20)); border: 1px solid rgba(35,121,244,0.40); }
.fan-src span { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; color: #9aa6b2; margin-top: 3px; }
.fan-conn { text-align: center; font-family: var(--mono); font-size: 11px; color: #7e8b96; padding: 11px 0; }
.fan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fan-tile { border-radius: 11px; padding: 13px 15px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); display: flex; flex-direction: column; gap: 3px; }
.fan-tile b { font-family: var(--display); font-size: 14.5px; }
.fan-tile span { font-family: var(--mono); font-size: 11px; color: #9aa6b2; }
.fan-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.fan-chip { font-family: var(--mono); font-size: 11px; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16); background: transparent; color: #9aa6b2; cursor: pointer; transition: background .18s, border-color .18s, color .18s; }
.fan-chip:hover:not(.on) { border-color: rgba(255,255,255,0.4); color: #eaf1ff; }
.fan-chip.on { background: var(--fc); border-color: transparent; color: #fff; }

/* Pricing — plan cards */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; align-items: stretch; }
.plans.two { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-left: auto; margin-right: auto; }
.plan { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; }
body:not(.light) .plan { box-shadow: none; background: rgba(255,255,255,0.03); }
.plan.featured { background: linear-gradient(150deg, rgba(35,121,244,0.16), rgba(107,13,255,0.16)); border-color: rgba(35,121,244,0.40); }
.plan .ptag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; display: inline-block; align-self: flex-start; }
.plan .price { font-family: var(--display); font-weight: 900; font-size: 34px; letter-spacing: -0.02em; margin: 18px 0 4px; }
.plan .price span { font-family: var(--sans); font-weight: 500; font-size: 14px; color: var(--faint); letter-spacing: 0; }
.plan .psub { color: var(--muted); font-size: 14.5px; margin: 0 0 6px; min-height: 42px; }
.plan .ticks { flex: 1; margin: 8px 0 18px; }
.plan .ticks li { font-size: 14.5px; margin-bottom: 10px; }
.plan .pbtn { width: 100%; justify-content: center; }
.plan .pnote { font-size: 12px; color: var(--faint); margin: 12px 0 0; text-align: center; }
.plan .pflag { position: absolute; top: -11px; right: 20px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; font-family: var(--mono); letter-spacing: .04em; }
@media (max-width: 860px) { .plans, .plans.two { grid-template-columns: 1fr; } }

/* Dark-mode background for accented card variants — must beat the generic
   `body:not(.light) .cell/.cmp-card/.plan` rule (equal class count, but the
   generic one's :not() + element edge it out otherwise). */
body:not(.light) .cell.feature { background: linear-gradient(120deg, rgba(35,121,244,0.18), rgba(107,13,255,0.16)); }
body:not(.light) .cmp-card.alt { background: linear-gradient(120deg, rgba(35,121,244,0.16), rgba(107,13,255,0.16)); }
body:not(.light) .plan.featured { background: linear-gradient(150deg, rgba(35,121,244,0.16), rgba(107,13,255,0.16)); }

/* Components page — live category panels (window-chrome cards) */
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; }
.comp-cell { border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--code-bg); box-shadow: var(--shadow); }
.comp-cell .cc-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); font-family: var(--mono); font-size: 11.5px; color: #7e8b96; }
.comp-cell .cc-bar .dot3 { width: 9px; height: 9px; border-radius: 50%; background: #2c3947; }
.comp-cell .cc-bar .cc-live { margin-left: auto; color: var(--ice); display: flex; align-items: center; gap: 6px; }
.comp-cell iframe { width: calc(100% + 8px); height: 250px; border: 0; outline: none; display: block; background: #0b0e13; margin-left: -4px; }
@media (max-width: 860px) { .comp-grid { grid-template-columns: 1fr; } }

/* ============ UX / a11y / polish pass ============ */

/* Skip-to-content (visible only on focus) */
.skip-link { position: absolute; left: 12px; top: -52px; z-index: 200; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; transition: top .18s; }
.skip-link:focus { top: 12px; outline: 2px solid #fff; outline-offset: 2px; }

/* Mobile nav toggle (hamburger) — hidden on desktop */
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .22s, opacity .22s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Multi-column footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 86px; padding: 56px 0 40px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand .brand { height: 30px; margin-bottom: 16px; } .foot-brand .brand img { height: 30px; }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 300px; margin: 0 0 18px; line-height: 1.55; }
.foot-social { display: flex; gap: 12px; }
.foot-social a { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: color .18s, border-color .18s; }
.foot-social a:hover { color: var(--text); border-color: var(--text); }
.foot-col .foot-h { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; transition: color .15s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.foot-legal { display: flex; gap: 20px; } .foot-legal a { color: var(--faint); } .foot-legal a:hover { color: var(--text); }

/* Scroll-reveal — only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* Preview skeleton — shimmers behind the iframe until it paints */
.preview-pane, .live-embed, .comp-cell { position: relative; }
.preview-pane::after, .live-embed::after, .comp-cell::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 1; transition: opacity .4s; background: linear-gradient(100deg, rgba(255,255,255,0.02) 30%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.02) 70%); background-size: 200% 100%; animation: shimmer 1.5s linear infinite; }
.preview-pane.loaded::after, .live-embed.loaded::after, .comp-cell.loaded::after { opacity: 0; animation: none; }
.preview-pane iframe, .live-embed iframe, .comp-cell iframe { position: relative; z-index: 1; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .preview-pane::after, .live-embed::after, .comp-cell::after { animation: none; } }

/* Header responsive */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; gap: 0; margin: 0; padding: 8px 0; background: #0F1519; border-bottom: 1px solid var(--line); box-shadow: 0 22px 44px rgba(0,0,0,0.5);
               max-height: calc(100vh - 106px); max-height: calc(100dvh - 106px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;   /* tall menu on short screens (e.g. iPhone SE): cap to the viewport and scroll inside instead of clipping */
               visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .2s ease, transform .22s ease, visibility 0s linear .22s; }
  body.light .nav-links { background: #FFFFFF; }
  .nav-links.open { visibility: visible; opacity: 1; transform: translateY(0); transition: opacity .2s ease, transform .22s ease; }
  .nav-links a { padding: 13px 28px; font-size: 16px; }
  .nav-mobile-actions { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 4px; }
  .nav-mobile-actions a, .nav-mobile-actions button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 28px; font-size: 16px; text-align: left; background: none; border: 0; color: var(--muted); font-family: inherit; cursor: pointer; }
  .nav-mobile-actions .nav-signin { color: var(--text); font-weight: 600; }
  .nav-mobile-actions .nav-gh svg { flex-shrink: 0; }
  .nav-mobile-actions .nav-gh b { margin-left: auto; color: var(--text); font-weight: 700; }
  .nav-group { width: 100%; flex-direction: column; align-items: stretch; }
  .nav-grp-btn { width: 100%; padding: 13px 28px; font-size: 16px; justify-content: space-between; }
  .nav-group::after { display: none; }
  .nav-menu { position: static; transform: none; display: flex; min-width: 0; padding: 0 0 6px; background: none; border: 0; box-shadow: none; }
  .nav-menu a { padding: 10px 40px; font-size: 15px; }
  .nav-right { gap: 10px; } .nav-right .ghost-pill, .nav-right .nav-contact, .nav-right .acct-ic { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }   /* stay 2-up instead of one tall column */
  .foot-brand p { display: none; }                                 /* trim the brand blurb to shorten the footer */
  .foot-brand .foot-social { margin-top: 4px; }
  .nav-right .btn-grad { padding: 9px 13px; font-size: 14px; }
}

/* ============ Account-aware layer (mocked) ============ */
.btn-sm { font-size: 14px; padding: 9px 15px; border-radius: 10px; }
.acct-slot { display: inline-flex; align-items: center; gap: 10px; }
.acct-guest-chip { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 999px; padding: 6px 11px; }
.acct-menu { position: relative; }
.acct-avatar { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; font-family: var(--display); font-weight: 800; font-size: 15px; cursor: pointer; }
.acct-dropdown { position: absolute; right: 0; top: 48px; width: 234px; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: none; flex-direction: column; z-index: 70; }
body:not(.light) .acct-dropdown { background: #141C20; }
.acct-menu.open .acct-dropdown { display: flex; }
.acct-head { padding: 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.acct-head b { font-family: var(--display); font-size: 14.5px; }
.acct-head span { font-size: 12px; color: var(--faint); }
.acct-dropdown a, .acct-dropdown button { text-align: left; padding: 9px 12px; border-radius: 9px; color: var(--muted); font-size: 14px; background: none; border: 0; cursor: pointer; font-family: var(--sans); }
.acct-dropdown a:hover, .acct-dropdown button:hover { background: rgba(127,142,150,0.14); color: var(--text); }

.auth-overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(6,10,14,0.62); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.auth-overlay.open { display: flex; opacity: 1; }
.auth-card { width: 384px; max-width: 100%; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 20px; padding: 30px 28px; position: relative; box-shadow: 0 40px 90px rgba(0,0,0,0.55); }
body:not(.light) .auth-card { background: #161F24; }
.auth-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; }
.auth-x:hover { background: rgba(127,142,150,0.14); color: var(--text); }
.auth-title { font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -0.02em; }
.auth-sub { color: var(--muted); font-size: 14px; margin: 7px 0 22px; line-height: 1.5; }
.auth-provider { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; margin-bottom: 10px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(127,142,150,0.08); color: var(--text); font-family: var(--sans); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background .15s; }
.auth-provider:hover { background: rgba(127,142,150,0.18); }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; margin: 16px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-email { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 11px; padding: 4px 4px 4px 12px; color: var(--faint); }
.auth-email input { flex: 1; border: 0; background: transparent; color: var(--text); font-size: 14px; font-family: var(--sans); padding: 8px 0; outline: none; }
.auth-guest { display: block; width: 100%; text-align: center; margin-top: 14px; background: none; border: 0; color: var(--muted); font-size: 13.5px; cursor: pointer; }
.auth-guest:hover { color: var(--text); text-decoration: underline; }
.auth-note { color: var(--faint); font-size: 12px; line-height: 1.55; margin: 20px 0 0; text-align: center; }

.guest-ribbon { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 12px 18px; font-size: 13.5px; color: var(--text); background: rgba(35,121,244,0.14); border-top: 1px solid rgba(35,121,244,0.32); backdrop-filter: blur(10px); }
.guest-ribbon .gr-x { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 14px; }
.guest-ribbon .gr-x:hover { color: var(--text); }

.acct-toast { position: fixed; top: 84px; left: 50%; transform: translate(-50%, -12px); z-index: 120; background: #11181C; color: #eef3f5; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 18px; font-size: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.acct-toast.show { opacity: 1; transform: translate(-50%, 0); }
body.light .acct-toast { background: #fff; color: #121A20; }

@media (max-width: 860px) { .acct-hide-sm { display: none; } }

/* "Your Slint account" promo (homepage) */
.acct-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.acct-promo-copy h2 { text-align: left; }
.acct-promo-card { border: 1px solid var(--line-2); border-radius: 18px; background: var(--code-bg); box-shadow: var(--shadow); overflow: hidden; }
.apc-bar { display: flex; align-items: center; gap: 9px; padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,0.08); font-family: var(--mono); font-size: 12px; color: #7e8b96; }
.apc-bar .ava { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--display); }
.apc-body { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.apc-tile { border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; padding: 14px; background: rgba(255,255,255,0.03); }
.apc-tile .t { font-family: var(--mono); font-size: 11px; color: #9aa6b2; letter-spacing: .06em; text-transform: uppercase; }
.apc-tile .v { font-family: var(--display); font-weight: 800; font-size: 17px; color: #eef3f5; margin-top: 5px; }
.apc-tile .s { font-size: 11.5px; color: #7e8b96; margin-top: 2px; }
.apc-tile.wide { grid-column: 1 / -1; }
.apc-bar2 { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.1); margin-top: 9px; overflow: hidden; }
.apc-bar2 i { display: block; height: 100%; background: var(--grad-bright); }

/* Account dashboard (account.html) */
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.dash-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--card); box-shadow: var(--shadow); }
body:not(.light) .dash-card { box-shadow: none; background: rgba(255,255,255,0.03); }
.dash-card h3 { font-family: var(--display); font-weight: 800; font-size: 18px; margin: 0 0 6px; display: flex; align-items: center; gap: 9px; }
.dash-card p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.dash-card .token { font-family: var(--mono); font-size: 11.5px; color: #9fd986; background: var(--code-bg); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; word-break: break-all; }
.dash-card.span2 { grid-column: span 2; }
@media (max-width: 860px) { .acct-promo { grid-template-columns: 1fr; } .dash-grid { grid-template-columns: 1fr; } .dash-card.span2 { grid-column: auto; } }

/* "Open in your AI editor" tool picker */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool-btn { display: flex; align-items: center; gap: 9px; padding: 13px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(127,142,150,0.08); color: var(--text); font-family: var(--sans); font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s; }
.tool-btn:hover { background: rgba(127,142,150,0.16); border-color: var(--blue); }
.tool-ic { color: #7fb6ff; flex-shrink: 0; }

/* ============================================================
   LEGACY-PAGE COMPAT LAYER
   Renders not-yet-redesigned pages (still using style.css's column
   grid) readably on the bold dark canvas, so a page can opt into the
   rebrand (body.bold) without a full rewrite. Every rule is scoped to
   the LEGACY container classes (never bare `body.bold main …`) so it
   can't bleed into the redesigned pillar pages (which also carry
   body.bold but use .hero/.block/.lede/etc.).
   ============================================================ */
body.bold :is(.one-column, .two-column, .col-2-img-txt, .col-2-txt-img, .people, .accordion, section.blog) {
  max-width: 1100px; margin: 0 auto; padding: 22px 28px; position: relative; z-index: 1;
}
body.bold .one-column { max-width: 820px; }

/* Headings inside legacy content (smaller than the bold hero h1/h2) */
body.bold :is(.one-column,.two-column,.col-2-img-txt,.col-2-txt-img,.people,.accordion,section.blog) h1 { font-size: clamp(34px, 5vw, 56px); margin: 26px 0 16px; max-width: none; }
body.bold :is(.one-column,.two-column,.col-2-img-txt,.col-2-txt-img,.people,.accordion,section.blog) h2 { margin: 26px 0 14px; }
body.bold :is(.one-column,.two-column,.col-2-img-txt,.col-2-txt-img,.people,.accordion,section.blog) :is(h3,h4) { font-family: var(--display); font-weight: 700; color: var(--text); line-height: 1.2; margin: 20px 0 10px; }
body.bold :is(.one-column,.two-column,.col-2-img-txt,.col-2-txt-img,.people,.accordion,section.blog) h3 { font-size: 1.45rem; }
body.bold :is(.one-column,.two-column,.col-2-img-txt,.col-2-txt-img,.people,.accordion,section.blog) h4 { font-size: 1.15rem; font-weight: 600; }

/* Body text + links inside legacy content */
body.bold :is(.one-column,.two-column,.col-2-img-txt,.col-2-txt-img,.people,.accordion,section.blog) :is(p,li) { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
body.bold :is(.one-column,.two-column,.col-2-img-txt,.col-2-txt-img,.people,.accordion,section.blog) :is(strong,b) { color: var(--text); font-weight: 700; }
body.bold :is(.one-column,.two-column,.col-2-img-txt,.col-2-txt-img,.people,.accordion,section.blog) :is(ul,ol) { padding-left: 1.25em; margin: 0 0 1em; }
body.bold :is(.one-column,.two-column,.col-2-img-txt,.col-2-txt-img,.people,.accordion,section.blog) li { margin-bottom: .4em; }
body.bold :is(.one-column,.two-column,.col-2-img-txt,.col-2-txt-img,.people,.accordion,section.blog) a { color: var(--ice); text-decoration: underline; text-underline-offset: .15em; }
body.light :is(.one-column,.two-column,.col-2-img-txt,.col-2-txt-img,.people,.accordion,section.blog) a { color: #1c5fbf; }
body.bold :is(.one-column,.two-column,.col-2-img-txt,.col-2-txt-img,.people,.accordion,section.blog) a:hover { color: var(--text); }
body.bold :is(.one-column,.two-column,.col-2-img-txt,.col-2-txt-img,.people,.accordion,section.blog) img { max-width: 100%; height: auto; border-radius: 10px; }
body.bold :is(.one-column,.two-column,.col-2-img-txt,.col-2-txt-img,.people,.accordion,section.blog) blockquote { border-left: 3px solid var(--blue); margin: 1em 0; padding: .2em 0 .2em 1em; color: var(--muted); }
body.bold :is(.one-column,.two-column,.col-2-img-txt,.col-2-txt-img,.people,.accordion,section.blog) hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }

/* Team / people grid (about-us) */
body.bold .people .col-1 { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
body.bold .person { text-align: center; width: 160px; }
body.bold .person img { width: 150px; height: 150px; border-radius: 16px; object-fit: cover; margin: 0 auto 8px; }
body.bold .person p { color: var(--muted); font-size: .95rem; }

/* Accordion / FAQ (legacy <details>) */
body.bold main details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 0 0 12px; background: rgba(255,255,255,0.02); }
body.bold main summary { cursor: pointer; font-weight: 600; color: var(--text); font-family: var(--display); }

/* Legacy buttons → bold */
body.bold main a.btn, body.bold main .btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
  border-radius: 11px; padding: 11px 18px; margin: 6px 10px 6px 0;
  background: rgba(127,142,150,0.12); border: 1px solid var(--line-2); color: var(--text); cursor: pointer;
}
body.bold main a.btn:hover, body.bold main .btn:hover { background: rgba(127,142,150,0.2); text-decoration: none; transform: translateY(-1px); }
body.bold main a.btn.blue, body.bold main .btn.blue { background: var(--grad); border-color: transparent; color: #fff; }
body.bold main .btn-center, body.bold main .col-2.two-cta { justify-content: center; }

/* The bold design's own button variants must survive the legacy-compat block above
   (same selector specificity → these win by coming later). Restores the gradient
   primary CTA + outline secondary that the legacy flattening had greyed out. */
body.bold main a.btn-grad, body.bold main .btn-grad { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(53,27,180,0.32); }
body.bold main a.btn-grad:hover, body.bold main .btn-grad:hover { background: var(--grad); box-shadow: 0 14px 36px rgba(53,27,180,0.48); transform: translateY(-2px); }
body.bold main a.btn-outline, body.bold main .btn-outline { background: transparent; border-color: rgba(96,165,250,0.55); color: var(--text); }
body.bold main a.btn-outline:hover, body.bold main .btn-outline:hover { background: rgba(35,121,244,0.12); border-color: var(--blue); transform: translateY(-2px); }

/* Inline prose links (FAQ answers, footnotes, ledes) — re-styled above body.bold's link reset so they read as links */
body.bold main .qa a, body.bold main .cmp-foot a, body.bold main .lede a, body.bold main .section-lede a { color: var(--ice); text-decoration: underline; text-underline-offset: 2px; }
body.light main .qa a, body.light main .cmp-foot a, body.light main .lede a, body.light main .section-lede a { color: #1c5fbf; }

/* Tables in legacy content */
body.bold main table { width: 100%; border-collapse: collapse; margin: 1em 0; }
body.bold main :is(th,td) { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
body.bold main th { color: var(--text); background: rgba(255,255,255,0.03); }
/* ===== /legacy compat ===== */

/* Legacy two-column rows (col-wrap > col-2) for grid-based content pages */
body.bold .col-wrap { align-items: flex-start; }
body.bold .col-wrap > .col-2 { flex: 1 1 calc(50% - 16px); min-width: 260px; }
body.bold .col-wrap > .col-2.two-cta { flex: 0 0 auto; }

/* Batch 3 compat: FAQ accordion, legacy price cards, logo grids */
body.bold .accordion-item { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; background: rgba(255,255,255,0.02); overflow: hidden; }
body.bold .accordion-header { margin: 0; }
body.bold :is(.accordion-header, .accordion-button) { font-family: var(--display); font-weight: 600; color: var(--text); background: transparent; }
body.bold .accordion-body { color: var(--muted); }
body.bold .accordion-body :is(p, li, td) { color: var(--muted); }

body.bold :is(.three-gs-boxes, .three-gs-lic-boxes) { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
body.bold .price-box { background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: 16px; padding: 24px; flex: 1 1 260px; }
body.bold .price-box, body.bold .price-box :is(h2, h3, h4, strong, b) { color: var(--text) !important; }
body.bold .price-box :is(p, li, span, .description) { color: var(--muted) !important; }

body.bold :is(.col-1.three, .col-1.four, .col-1.silicon, .col-1.os) { display: flex; flex-wrap: wrap; gap: 22px 30px; justify-content: center; align-items: center; }
body.bold :is(.col-1.three, .col-1.four, .col-1.silicon, .col-1.os) img { max-height: 64px; width: auto; }
/* ===== /batch 3 compat ===== */

/* faqs: the legacy accordion needs Bootstrap JS we don't ship; show all answers (good FAQ UX, no JS) */
body.bold .accordion-collapse { display: block !important; height: auto !important; visibility: visible !important; }
body.bold .accordion-button::after, body.bold .accordion-header .icon, body.bold .accordion-header svg { display: none; }

/* ===== Wall of love (curated social proof: showcase + services) ===== */
.wol { column-count: 3; column-gap: 16px; margin-top: 44px; }
.wol-card { display: block; break-inside: avoid; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; margin: 0 0 16px; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
body:not(.light) .wol-card { background: rgba(255,255,255,0.03); }
a.wol-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.wol-tag { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: #7fb1ff; border: 1px solid rgba(35,121,244,0.32); border-radius: 999px; padding: 2px 9px; margin-bottom: 11px; }
.wol-top { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.wol-av { width: 34px; height: 34px; border-radius: 50%; background: rgba(35,121,244,0.16); color: #7fb1ff; font-family: var(--display); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.wol-id { min-width: 0; flex: 1; }
.wol-name { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wol-sub { display: block; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wol-src { color: var(--muted); flex: none; display: flex; }
.wol-src svg { width: 16px; height: 16px; }
.wol-q { font-size: 14px; line-height: 1.55; color: var(--muted); }
body.light .wol-tag { color: #2466cf; border-color: rgba(36,102,207,0.32); }
body.light .wol-av { color: #2466cf; }
@media (max-width: 860px) { .wol { column-count: 2; } }
@media (max-width: 560px) { .wol { column-count: 1; } }

/* ===================================================================
   Brand-recall system — the Slint mark + Slint SC (folded from the lab)
   =================================================================== */
:root { --sc-deep: #680606; --sc: #D33A2F; --sc-line: rgba(211,58,47,.5); --sc-dim: rgba(104,6,6,.30); }
body.light { --sc: #680606; }                 /* deep oxblood reads best on white — the booth context */

/* The Slint mark, recoloured via currentColor */
.bmark { display: inline-block; line-height: 0; color: var(--blue); }
.bmark svg, .sc-mark svg, .cta-chevron svg { display: block; width: 100%; height: 100%; }

/* The Slint mark woven into the site background now lives in the site-wide .hero-guides
   backdrop (below), unified with the guide-lines so the lines knock out of its silhouette. */

/* Homepage CTA: the mark knifing off the corner — "cutting edge", upright, brand gradient */
.cta-band > .cta-chevron { position: absolute; pointer-events: none; right: -80px; top: -130px; width: 300px; height: 420px; opacity: .12; z-index: 0; }
.cta-band > :not(.cta-chevron) { position: relative; z-index: 1; }

/* Footer #MadeWithSlint badge */
.made-with { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.made-with:hover { border-color: var(--blue); color: var(--text); }
.made-with .bmark { width: 14px; height: 20px; color: var(--blue); }
.made-with b { color: var(--text); font-weight: 700; }

/* ---- Slint SC (safety-critical line) ---- */
.sc-mark { display: inline-block; line-height: 0; color: var(--sc); }
.sc-lockup { display: inline-flex; align-items: center; gap: 13px; }
.sc-lockup .bmark { width: 26px; height: 36px; color: var(--text); }
.sc-lockup .word { font-family: var(--display); font-weight: 800; font-size: 27px; color: var(--text); letter-spacing: -.02em; }
.sc-lockup .sc-mark { width: 30px; height: 35px; }
.sc-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sc); border: 1px solid var(--sc-line); background: var(--sc-dim); border-radius: 999px; padding: 5px 12px; }
.sc-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sc); display: inline-block; }
.sc-band { position: relative; overflow: hidden; border: 1px solid var(--sc-line); border-radius: 22px; padding: 48px; background: linear-gradient(135deg, var(--sc-dim), rgba(255,255,255,0.02)); }
.sc-band .wm { position: absolute; right: -50px; bottom: -70px; width: 320px; height: 372px; color: var(--sc-deep); opacity: .5; }
body.light .sc-band .wm { opacity: .14; }
@media (max-width: 720px) { .sc-band { padding: 32px 24px; } .sc-band .wm { width: 220px; height: 256px; right: -64px; bottom: -54px; } }

/* Blueprint guide-lines + Slint mark — one fixed SVG backdrop on every (bold) page.
   z-index:-1 keeps the whole layer below page content (.wrap, z-index:1); safe because
   html has no background, so the body canvas paints below z-index:-1. The guide-lines are
   knocked out of the mark's silhouette (see templates/main.html) so they pass behind it.
   Gated to bold pages like the old watermark; legacy pages keep it hidden. */
.hero-guides { display: none; }
body.bold .hero-guides { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-guides svg { width: 100%; height: 100%; display: block; }
/* Guide-lines: present at the same quiet strength on every page. */
.hero-guides line { stroke: var(--blue); stroke-width: 1.25px; opacity: 0.16; vector-effect: non-scaling-stroke; }
body.light .hero-guides line { opacity: 0.12; }
/* Mark: a quiet watermark on inner pages, bold on the homepage where the lines balance it. */
.hg-mark { color: #fff; opacity: 0.06; }
body.light .hg-mark { color: var(--blue); opacity: 0.06; }
body.home .hg-mark { opacity: 0.14; }
body.home.light .hg-mark { opacity: 0.12; }
/* The desktop mark sits at the right of the landscape viewBox, which crops off-screen in
   portrait — so on narrow viewports swap to the portrait-positioned mark (.hg-mark-m). */
.hg-mark-m { display: none; }
@media (max-width: 760px) { .hg-mark-d { display: none; } .hg-mark-m { display: block; } }

