/* ScholarsNode Ink — the landing page in the APP's own design system.
   Tokens = app/frontend/global.css, radii = rn-stylefn.config.js (xs 2 / sm 4 / md 4), surfaces = ui/app/Block
   (surface fill, 1 px EDGE border, 4 px corners, no shadow), panels = chrome/SideBar (+ SideBarHeader: 8/12 padding,
   a rule below), controls = ui/base/sizes (40 / 32 / 48 high, radius 4, font 14 / 13 / 16, weight 500), plans =
   views/PricingDialog, hero = screens/LoginScreen. Icons: Hugeicons stroke-rounded (assets/img/icons.svg sprite). */

@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/IBMPlexSans-Variable.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/IBMPlexSans-Italic-Variable.woff2") format("woff2"); font-weight: 100 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/Caveat-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* global.css :root */
  --bg: #eef0ea; --surface: #eef0ea; --hover: #dfe3da; --border: #c3c9be; --edge: #212428;
  --text: #212428; --text-muted: #626970; --text-secondary: #3d4248; --muted: #e6e9e2; --active-bg: #cdd3c8;
  --primary: #212428; --primary-fg: #eef0ea; --danger: #c7382b; --secondary: #dfe3da;
  --r-xs: 2px; --r-sm: 4px; --r-md: 4px;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", cursive;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1b1e21; --surface: #262a2d; --hover: #30353a; --border: #3d4348; --edge: #0f1113; --text: #eceee8; --text-muted: #a2a9a3; --text-secondary: #c9cec8; --muted: #2c3034; --active-bg: #454b50; --primary: #eceee8; --primary-fg: #262a2d; --danger: #e0503f; --secondary: #30353a; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 13px; line-height: 18px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }
@media (max-width: 720px) { .wrap { width: calc(100% - 32px); } }
section { padding: 64px 0; position: relative; }
.muted { color: var(--text-muted); }
/* Hugeicons */
.hi { width: 18px; height: 18px; flex: none; color: inherit; }
.hi.sm { width: 14px; height: 14px; }
.hi.xs { width: 12px; height: 12px; }

/* ── type (ui/base/Text variants + LoginScreen) ── */
.h1 { font-size: 36px; line-height: 40px; font-weight: 800; letter-spacing: -0.5px; }
.h2 { font-size: 30px; line-height: 34px; font-weight: 600; letter-spacing: -0.25px; }
.h3 { font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: -0.25px; }
.title { font-size: 15px; line-height: 20px; font-weight: 600; }
.label { font-size: 11px; line-height: 16px; font-weight: 600; color: var(--text-muted); }
.lede { font-size: 15px; line-height: 22px; color: var(--text-secondary); max-width: 52ch; }
.eyebrow { font-size: 11px; line-height: 16px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }

/* ── surfaces: Block (slab) and SideBar (panel) ── */
.block { background: var(--surface); border: 1px solid var(--edge); border-radius: var(--r-sm); }
.seg { height: 40px; display: inline-flex; align-items: center; gap: 2px; padding: 0 2px; }
.seg .sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }
.panel { background: var(--surface); border: 1px solid var(--edge); border-radius: var(--r-sm); overflow: hidden; display: flex; flex-direction: column; }
.panel .head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-bottom: 1px solid var(--border); }
.panel .head .hi { color: var(--text); }
.panel .head .t { font-size: 14px; line-height: 18px; font-weight: 600; }
.panel .head .s { font-size: 11px; line-height: 14px; color: var(--text-muted); }
.panel .body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.panel .body p { color: var(--text-secondary); font-size: 13px; line-height: 18px; }
.panel .body .line { font-family: var(--hand); font-size: 18px; line-height: 20px; color: var(--text-muted); margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }
.panel img { width: 100%; background: var(--bg); }

/* ── controls (ui/base/Button + sizes) ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--text); font: 500 14px/1 var(--font); cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background 0.12s ease, opacity 0.12s ease; }
.btn .hi { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: var(--surface); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: var(--bg); border: 1px solid var(--border); }
.btn-outline:hover, .btn-ghost:hover { background: var(--hover); }
.btn-secondary { background: var(--secondary); }
.btn-sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 16px; font-size: 16px; }
/* the button inside a seg: slab − 6, concentric corner */
.seg .btn { height: 34px; border-radius: var(--r-xs); padding: 0 10px; font-size: 13px; }
.seg .btn-primary { padding: 0 12px; }
/* Tabs (ui/base/Tabs, size sm): a muted track with an active-bg pill */
.tabs { display: inline-flex; padding: 4px; gap: 2px; background: var(--muted); border-radius: var(--r-md); }
.tabs button { height: 28px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-muted); font: 500 13px/1 var(--font); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--active-bg); color: var(--text); }

/* ── the chrome: the app's title block (top-left) and action seg (top-right), 12 px in from the edges ── */
.chrome { position: fixed; top: 12px; z-index: 50; }
.chrome.l { left: 12px; }
.chrome.r { right: 12px; }
.titleblock { display: flex; align-items: center; gap: 2px; padding-right: 12px; }
.titleblock .mark { width: 34px; height: 34px; display: grid; place-items: center; }
.titleblock .mark img { width: 22px; height: 22px; }
.titleblock .name { font-size: 13px; line-height: 16px; font-weight: 600; }
.titleblock .sub { font-size: 10px; line-height: 12px; color: var(--text-muted); }
.chrome.r .links { display: contents; }
@media (max-width: 900px) { .chrome.r .links, .chrome.r .sep { display: none; } .titleblock .sub { display: none; } }

/* ── hero = the login page (LoginScreen: cols 53.5 % / floating sheet 46.5 %; stack on phones) ── */
.hero { position: relative; min-height: 100vh; display: grid; grid-template-columns: 53.5% 46.5%; max-width: 1600px; margin: 0 auto; }
.hero .copy { padding: 112px 24px 64px clamp(24px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; gap: 32px; position: relative; z-index: 1; }
.hero .copy .eyebrow { margin: 0; }
.headline { font-size: 56px; line-height: 58px; font-weight: 700; letter-spacing: -1px; max-width: 560px; }
/* the signature: the login page's own lettering + marker spatter, written by signature.js (tap to replay) */
.sig { display: block; width: min(100%, 520px); margin: 2px 0 0 -6px; color: var(--text); cursor: pointer; line-height: 0; }
.sig svg { overflow: visible; }
@keyframes sigdash { to { stroke-dashoffset: 0; } }
.hero .lede { font-size: 17px; line-height: 24px; color: var(--text-muted); max-width: 440px; margin-top: 8px; }
.facts { display: flex; flex-direction: column; gap: 6px; max-width: 440px; }
.fact { display: flex; align-items: baseline; gap: 18px; }
.fact b { width: 108px; flex: none; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fact span { flex: 1; font-size: 13px; color: var(--text-muted); }
.foot { display: flex; gap: 24px; font-size: 12px; color: var(--text-muted); }
.foot a:hover { color: var(--text); }
.hero .side { position: relative; display: flex; align-items: center; justify-content: center; padding: 112px 24px 128px; }
/* the pencil portrait rides with the page (fixed, bottom-right, faint) so it stays on screen while scrolling */
.portrait { position: fixed; right: 0; bottom: 0; width: min(46vw, 640px); pointer-events: none; z-index: 0; opacity: 0.32; }
/* glass hosts: the moved-in content paints ABOVE the absolutely positioned lens / tint / rim layers */
[data-glass] { position: relative; isolation: isolate; }
[data-glass] > .ql-content { position: relative; z-index: 1; }
/* the sheet (LoginScreen .sheet): maxWidth 380 + 2·18, padding 18, gap 12, radius 8 — the app's ONE glass surface */
.sheet { width: 100%; max-width: 416px; border-radius: 8px; position: relative; z-index: 1; }
.sheet .ql-content { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.sheet .shead { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.sheet .stitle { font-size: 30px; line-height: 34px; font-weight: 700; letter-spacing: -0.2px; }
.sheet .slede { font-size: 13px; line-height: 18px; color: var(--text-muted); }
.sheet .btn { width: 100%; }
.sheet .rule { align-self: center; width: 70%; height: 1px; background: var(--border); margin-top: 6px; }
.sheet .note { text-align: center; font-size: 11px; line-height: 16px; color: var(--text-muted); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero .side { order: 0; padding: 78px 16px 0; align-items: stretch; }
  .sheet { max-width: 100%; }
  .hero .copy { order: 1; padding: 32px 16px 48px; gap: 32px; }
  .headline { font-size: 34px; line-height: 36px; }
  .sig { font-size: 42px; line-height: 44px; }
  .fact b { width: 72px; }
  .portrait { opacity: 0.22; width: 70vw; }
}
@media (min-width: 901px) and (max-width: 1279px) { .headline { font-size: 38px; line-height: 40px; } .sig { font-size: 46px; line-height: 48px; } .fact b { width: 72px; } }

/* ── features: six panels ── */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 960px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid3, .grid2 { grid-template-columns: 1fr; } }

/* ── showcases: copy beside a panel ── */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.show.flip .panel { order: -1; }
.show .list { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.show .list li { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 18px; color: var(--text); }
.show .list .hi { margin-top: 2px; color: var(--text); }
@media (max-width: 900px) { .show, .show.flip { grid-template-columns: 1fr; } .show.flip .panel { order: 0; } }

/* ── plans = views/PricingDialog ── */
.plans-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.plans-head .dt { font-size: 18px; line-height: 24px; font-weight: 600; }
.plans-head .dd { font-size: 13px; color: var(--text-muted); }
.plans { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.plan { flex: 1 1 260px; min-width: 240px; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); }
.plan.popular { border-color: var(--text); }
.plan .badge { align-self: flex-start; padding: 2px 6px; border-radius: var(--r-sm); background: var(--active-bg); color: var(--text); font-size: 10px; line-height: 14px; font-weight: 600; }
.plan .name { font-size: 16px; line-height: 20px; font-weight: 700; }
.plan .tagline { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.plan .price { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
.plan .price b { font-size: 28px; line-height: 32px; font-weight: 700; }
.plan .price > span { font-size: 12px; color: var(--text-muted); }
.plan .pernote { font-size: 10px; line-height: 14px; color: var(--text-muted); }
.plan .pernote[hidden] { display: none; }
.plan .features { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.plan .features li { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 18px; }
.plan .features .hi { margin-top: 2px; color: var(--text); }
.plan .cta { margin-top: auto; padding-top: 8px; display: flex; }
.plan .cta .btn { flex: 1; }

/* ── CTA + footer (the login foot) ── */
.cta { padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.cta .row { display: flex; gap: 8px; flex-wrap: wrap; }
footer { padding: 24px 0 48px; }
footer .foot { flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ── legal pages ── */
.legal { max-width: 720px; margin: 0 auto; padding: 112px 0 96px; }
.legal h1 { font-size: 36px; line-height: 40px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
.legal h2 { font-size: 15px; line-height: 20px; font-weight: 600; margin: 28px 0 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.legal p, .legal li { color: var(--text-secondary); font-size: 13px; line-height: 20px; }
.legal ul { padding-left: 18px; list-style: disc; }
.legal li { margin: 4px 0; }
.legal .box { padding: 12px 14px; margin: 20px 0; }
.legal strong { color: var(--text); }

/* ── the backdrop: the login backdrop's guide + shapes, fixed behind the page ── */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.backdrop svg { font-family: var(--font); }
.backdrop .g-ink { stroke: var(--text); }
.backdrop .g-pencil { stroke: var(--text-muted); }
.backdrop .g-inkfill { fill: var(--text); }
.backdrop .g-pencilfill { fill: var(--text-muted); }
.backdrop .g-paper { fill: var(--bg); }
.backdrop path.g-ink, .backdrop circle.g-ink:not(.g-paper) { fill: none; }

/* ── one motion: the reveal ── */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Study sheets: ink owns the colour; chrome keeps the app's neutral tokens. */
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px; background: var(--surface); border: 1px solid var(--edge); border-radius: 4px; }
.skip-link:focus { top: 64px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
main { display:block; }
section[id] { scroll-margin-top: 60px; }
.sketch-demo { max-width:440px; }
.sketch-demo[hidden] { display:none; }
.sketch-head { display:flex; align-items:center; justify-content:space-between; padding:4px 8px 4px 12px; border-bottom:1px solid var(--border); font-weight:500; }
#sketchpad { display:block; width:100%; height:112px; touch-action:none; cursor:crosshair; }
.sketch-demo p { font-size:11px; line-height:16px; color:var(--text-muted); padding:8px 12px; border-top:1px solid var(--border); }
.hero .copy { gap:24px; }
.hero .facts { display:none; }
.placeholder-note { font-size:11px; line-height:16px; color:var(--text-muted); }
.class-flow { padding:12px 0 32px; }
.class-flow ol { list-style:none; margin:18px 0 0; padding:0; display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.class-flow li { border-top:1px solid var(--border); padding-top:12px; }
.class-flow li span { font-family:var(--hand); font-size:26px; display:block; margin-bottom:12px; }
.class-flow b { font-weight:500; }
.class-flow p { margin-top:6px; color:var(--text-muted); }
.faq { display:grid; grid-template-columns:1fr 1.3fr; gap:44px; }
.faq details { border-top:1px solid var(--border); padding:16px 0; }
.faq details:last-child { border-bottom:1px solid var(--border); }
.faq summary { cursor:pointer; font-size:15px; line-height:22px; font-weight:500; }
.faq details p { color:var(--text-secondary); margin:12px 0 0; max-width:60ch; }
.footer-links { display:flex; gap:16px 24px; flex-wrap:wrap; }
footer > .placeholder-note { margin-top:16px; }
.reveal { opacity:1; transform:none; }
/* Dark mode: only the brand mark inverts. The hero portrait is ink on alpha and reads as-is on the dark page — no filter (user 2026-09-18). */
@media (prefers-color-scheme:dark) { .brand .mark img { filter:invert(1); } }
@media (max-width:640px) {
 .faq { grid-template-columns:1fr; gap:28px; }
 .class-flow ol { grid-template-columns:1fr 1fr; gap:24px 16px; }
 .hero .side { order:1; padding:0 16px 48px; }
 .hero .copy { order:0; padding-top:100px; }
 .brand .sub { display:none; }
 .chrome.r .btn { font-size:12px; padding:0 8px; }
 .chrome.r .btn .hi { display:none; }
 section { padding:44px 0; }
 .sketch-demo { max-width:100%; }
}
@media (prefers-reduced-motion:reduce) {
 html { scroll-behavior:auto; }
 *, *::before, *::after { animation:none !important; transition:none !important; }
}

img { height:auto; }

.capture-note { padding:10px 12px; border-top:1px solid var(--border); font-size:11px; line-height:16px; color:var(--text-muted); }

/* ── the brand lockup (the store frames' lockup, no slab, no border): the mark spans both lines ── */
.brand { position: fixed; top: 10px; left: 14px; z-index: 50; display: flex; align-items: center; gap: 4px; }
.brand .mark { width: 46px; height: 46px; display: grid; place-items: center; }
.brand .mark img { width: 46px; height: 46px; transform: scale(1.12); }
.brand .tb { display: flex; flex-direction: column; gap: 1px; }
.brand .name { font-size: 15px; line-height: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.brand .sub { font-size: 10.5px; line-height: 13px; font-weight: 500; color: var(--text-muted); }

/* ── download: the phone / browser places, one highlighted for this device ── */

/* ── plans: cards + an overview comparison (the app's tokens: 1 px hairlines, 4 px corners, no shadow) ── */
.plans-head.center { align-items: center; text-align: center; }
.plans-head.center .lede { text-align: center; }
.plan-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 12px; justify-content: center; margin-top: 28px; }
.plan-card { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); display: flex; flex-direction: column; overflow: hidden; }
.plan-card.popular { border-color: var(--text); }
.plan-card .cap { text-align: center; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-muted); padding: 8px 12px; border-bottom: 1px solid var(--border); }
.plan-card .pc-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.plan-card .name { font-size: 16px; line-height: 20px; font-weight: 700; }
.plan-card .tagline { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.plan-card .price { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.plan-card .price b { font-size: 30px; line-height: 34px; font-weight: 700; letter-spacing: -0.02em; }
.plan-card .price > span { font-size: 12px; color: var(--text-muted); }
.plan-card .pernote { font-size: 10px; line-height: 14px; color: var(--text-muted); }
.plan-card .pernote[hidden] { display: none; }
.plan-card .cta { margin-top: auto; padding-top: 12px; }
.plan-card .cta .btn { width: 100%; }
.compare { margin-top: 36px; }
.compare .label { padding-bottom: 8px; border-bottom: 1px solid var(--border); letter-spacing: 0.04em; text-transform: uppercase; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 14px 8px; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 18px; text-align: center; vertical-align: middle; }
.compare th { font-weight: 500; }
.compare thead th { font-size: 12px; color: var(--text-muted); padding-top: 12px; }
.compare tbody th { text-align: left; padding-left: 0; }
.compare td .hi { width: 16px; height: 16px; color: var(--text); }
.compare td .no { color: var(--text-muted); }
.compare td small { display: block; font-size: 11px; color: var(--text-muted); }
@media (max-width: 640px) { .plan-cards { grid-template-columns: 1fr; } .compare th, .compare td { padding: 10px 4px; font-size: 12px; } }

/* ── the work carousel: the shots run as a STRIP behind one stationary tablet (the store-art slab at 1×: #1b1e21 body,
   2 px #3a3f44 rim, 21 / 9 px radii). The active shot fills the screen slot; its neighbours show flat and smaller either
   side and fade out at the viewport edges. Controls stay in the header row; the active shot's caption sits under the
   tablet. The whole block fits ONE screen: the slot is bounded by the viewport height. ── */
#work { --slide-w: max(280px, min(calc((100vh - 390px) * 1.6), calc(100vw - 96px), 880px)); --slide-h: calc(var(--slide-w) / 1.6); --bezel: 12px; }
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.work-head .lede { max-width: 56ch; }
.work-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.work-stage { position: relative; margin-top: 22px; padding: calc(var(--bezel) + 2px) 0 30px; }
.work-track { position: relative; display: flex; align-items: center; padding-inline: calc(50% - var(--slide-w) / 2); /* slide 1 and slide 6 can sit exactly under the slot */ overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline-offset: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.work-track::-webkit-scrollbar { display: none; }
/* neighbours: 0.88 scale and pulled 4 % towards the tablet (layout pitch stays exactly one slide, so snapping is exact);
   ~16 px of air is left between them and the screen edge */
.work-card { position: relative; flex: 0 0 var(--slide-w); width: var(--slide-w); height: var(--slide-h); margin: 0; scroll-snap-align: center; scroll-snap-stop: always;
  transform: scale(0.88); opacity: 0.72; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease; }
.work-card:has(~ .work-card[aria-current="true"]) { transform: translateX(4%) scale(0.88); }
.work-card[aria-current="true"] ~ .work-card { transform: translateX(-4%) scale(0.88); }
.work-card[aria-current="true"] { transform: none; opacity: 1; z-index: 1; }
.work-card img { display: block; width: 100%; height: 100%; border: 1px solid var(--edge); border-radius: var(--r-sm); background: var(--surface); }
.work-device { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); width: calc(var(--slide-w) + var(--bezel) * 2); height: calc(var(--slide-h) + var(--bezel) * 2); pointer-events: none; z-index: 2;
  border: var(--bezel) solid #1b1e21; border-radius: 21px; box-shadow: 0 0 0 2px #3a3f44, 0 18px 40px rgba(33, 36, 40, 0.26); }
.work-captions { display: grid; margin-top: 2px; }
.work-cap { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-rows: auto auto; gap: 0 32px; align-items: start;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s; }
.work-cap[aria-current="true"] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.work-cap .eyebrow { display: block; grid-column: 1; grid-row: 1; margin-bottom: 2px; }
.work-cap h3 { grid-column: 1; grid-row: 2; font-size: 18px; line-height: 24px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.work-cap p { grid-column: 2; grid-row: 1 / span 2; color: var(--text-secondary); max-width: 60ch; padding-top: 18px; margin: 0; }
.seg .ibtn { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; color: var(--text); border-radius: var(--r-xs); cursor: pointer; }
.seg .ibtn:hover { background: var(--hover); }
.seg .ibtn:disabled { color: var(--text-muted); cursor: default; background: transparent; }
.seg .ibtn .hi { width: 18px; height: 18px; }
.hi.flip { transform: scaleX(-1); }
.work-count { font-size: 12px; line-height: 16px; color: var(--text-muted); padding: 0 10px; font-variant-numeric: tabular-nums; }
.work-count b { color: var(--text); font-weight: 600; }
.work-dots { display: flex; gap: 6px; }
.work-dots button { width: 22px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: var(--border); cursor: pointer; }
.work-dots button[aria-current="true"] { background: var(--text); }
@media (prefers-reduced-motion: reduce) { .work-card, .work-cap { transition: none; } }
@media (max-width: 900px) {
  #work { --slide-w: calc(100vw - 64px); --bezel: 9px; }
  .work-head { flex-direction: column; align-items: flex-start; }
  .work-nav { flex-direction: row; align-items: center; gap: 14px; }
  .work-device { border-radius: 15px; }
  .work-cap { grid-template-columns: 1fr; grid-template-rows: auto; gap: 4px; }
  .work-cap .eyebrow, .work-cap h3, .work-cap p { grid-column: 1; grid-row: auto; }
  .work-cap p { padding-top: 4px; }
}
/* the Android download card: the phone shot framed on its middle band */

/* ── the puck (#puck): the app's tool puck drawn live in SVG, the Copic wheel opening around it (puck.js) ── */
/* the stage is a square the puck is centred in; the wheel (the app's real radii, 1 unit = 1 px) is far larger and
   spills past it — nothing clips it. A mask fades the wheel out towards the copy on the right and at the top and
   bottom, so the spill lands in air, not on text. */
#puck { padding: 150px 0 110px; }
.puck-stage { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin: 0 auto; overflow: visible; }
.puck-stage svg { position: absolute; display: block; overflow: visible; font-family: var(--font); -webkit-mask-composite: source-in; mask-composite: intersect; }   /* mask stops are set in px by puck.js */
.puck-stage [tabindex]:focus { outline: none; }   /* Chrome paints its blue focus ring on SVG buttons even on a click */
.puck-stage .sec:focus-visible, .puck-stage .dot:focus-visible { stroke: var(--text); stroke-width: 1.5; }
.puck-stage text { fill: var(--text); pointer-events: none; user-select: none; }
.puck-stage text.muted { fill: var(--text-muted); }
.puck-stage .ico { color: var(--text); pointer-events: none; }
/* the app's depth: the puck is a lifted disc (elevation shadow); the wheel itself is flat, as in the app */
.puck-stage .puck { filter: drop-shadow(0 14px 34px rgba(33, 36, 40, 0.26)) drop-shadow(0 2px 4px rgba(33, 36, 40, 0.16)); }
.puck-stage .disc { fill: var(--surface); stroke: var(--border); stroke-width: 1; transition: r 0.26s ease; }
.puck-stage .core { fill: var(--surface); stroke: var(--border); stroke-width: 1; }
.puck-stage .fam-band { fill: var(--surface); stroke: var(--border); stroke-width: 1; }
.puck-stage .tool.recessed .sec { fill: rgba(0, 0, 0, 0.035); }   /* undo + redo: the app's recessed band */
.puck-stage .tool.recessed.pulse .sec { fill: var(--active-bg); }
.puck-stage .ring-line { fill: none; stroke: var(--border); stroke-width: 1; }
.puck-stage .sec { fill: var(--surface); stroke: var(--border); stroke-width: 1; cursor: pointer; transition: fill 0.15s ease; }
.puck-stage .sec:hover { fill: var(--hover); }
.puck-stage .fam .sec { cursor: default; }
.puck-stage .fam .sec:hover { fill: var(--surface); }
.puck-stage .fam text { fill: var(--text-secondary); }
.puck-stage .fam .item.on .sec { fill: var(--active-bg); stroke: var(--border); }
.puck-stage .fam .item.on text { fill: var(--text); }
.puck-stage .item.on .sec { fill: var(--text); stroke: var(--text); }
.puck-stage .item.on text { fill: var(--surface); }
.puck-stage .item.on .ico { color: var(--surface); }
.puck-stage .item.pulse .sec { fill: var(--active-bg); }
.puck-stage .dot { stroke: var(--edge); stroke-width: 1; cursor: pointer; transition: fill 0.25s ease; }
.puck-stage .dot:hover, .puck-stage .dot:focus-visible { stroke-width: 2; outline: none; }
/* the wheel: each sector rests collapsed at the centre (its own seat vector, --ox/--oy) and slides out on open with a
   spring, delayed by its slice group (--d) — the app's traced open; the close is a short accelerate-decelerate retract */
.puck-stage .wheel .seg { cursor: pointer; opacity: 0; transform: translate(calc(var(--ox) * -1px), calc(var(--oy) * -1px)); transition: transform 0.225s cubic-bezier(0.45, 0, 0.55, 1), opacity 0.18s ease; }
.puck-stage .wheel .seg path { stroke: var(--bg); stroke-width: 0.5; }   /* hairline gaps between tiles, as in the app — no borders */
.puck-stage .wheel .seg text { font-size: 7.5px; font-weight: 600; letter-spacing: 0.2px; }
.puck-stage .wheel .seg text.light { fill: var(--surface); }
.puck-stage .wheel.open .seg { opacity: 1; transform: none; transition: transform 0.5s cubic-bezier(0.2, 1.25, 0.4, 1) var(--d), opacity 0.25s ease var(--d); }
.puck-stage .wheel.open .seg:hover path, .puck-stage .wheel.open .seg:focus-visible path { stroke: var(--text); stroke-width: 1.5; }
@media (prefers-reduced-motion: reduce) { .puck-stage .wheel .seg, .puck-stage .wheel.open .seg { transition: none; } }
.puck-info { margin-top: 18px; }
.puck-info .body { min-height: 96px; }
.puck-info .body p { transition: opacity 0.25s ease; }
.puck-info.tick .body p { animation: puckTick 0.3s ease; }
@keyframes puckTick { from { opacity: 0.35; } to { opacity: 1; } }
.puck-info .swatch { width: 14px; height: 14px; border-radius: var(--r-xs); border: 1px solid var(--edge); margin-left: auto; }
.puck-info .hint { font-size: 12px; line-height: 16px; color: var(--text-muted); padding-top: 8px; border-top: 1px solid var(--border); margin-top: auto; }
@media (max-width: 900px) { #puck { padding: 90px 0 60px; overflow: hidden; } .puck-stage { max-width: 420px; } }

/* ── get the app (#download): the Nerd Assist installer table in our tokens — one row per build, this device marked ── */
.get, .get-notes { margin-top: 24px; }
.get-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); padding-bottom: 10px; border-bottom: 1px solid var(--edge); }
.get-ver { letter-spacing: 0; text-transform: none; font-weight: 500; }
.get-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.get-row .os { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text); }
.get-row .os .sub { display: block; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--text-muted); margin-top: 2px; }
.get-row .file { font-size: 12.5px; line-height: 18px; color: var(--text-secondary); }
.get-row .file b { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 600; color: var(--text); }
.get-row .chip { display: none; margin-left: 10px; padding: 1px 6px; border: 1px solid var(--text); border-radius: var(--r-xs); font-size: 10px; line-height: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); vertical-align: 1px; }
.get-row.mine { background: var(--muted); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: var(--r-sm); }
.get-row.mine .chip { display: inline-block; }
.get-row .dl { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.get-row .dl .hi { width: 14px; height: 14px; }
.get-row.soon .os, .get-row.soon .file { color: var(--text-muted); }
.get-row.soon .file b { color: var(--text-muted); font-weight: 500; }
.get-row.soon .dl { opacity: 0.5; pointer-events: none; }
.get-notes .note { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 19px; color: var(--text-secondary); }
.get-notes .note .k { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; letter-spacing: 0.06em; color: var(--text-muted); padding-top: 1px; }
.get-notes .note b { color: var(--text); font-weight: 600; }
.get-notes kbd { font: 600 12px/1.4 var(--font); padding: 0 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: var(--r-xs); background: var(--surface); color: var(--text); white-space: nowrap; }
@media (max-width: 760px) {
  .get-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .get-row .dl { justify-self: start; }
  .get-row .chip { display: none; }
  .get-row.mine .chip { display: block; width: max-content; margin: 6px 0 0; }
  .get-notes .note { grid-template-columns: 1fr; gap: 4px; }
}
