/* The Saiki site: page layout, type, sections, the bento grid and the reveal motion. */

/* Instrument Serif (SIL Open Font License, assets/fonts/OFL.txt), served from this site so no page calls a font service. */
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0c0c0e;
  --surface: #141417;
  --surface-2: #1a1a1e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f1f1f3;
  --muted: #a0a0a8;
  --dim: #6c6c75;
  --blue: #74b8ff;
  --amber: #ffb45a;
  --radius-lg: 20px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.88em; background: rgba(255,255,255,0.07); padding: 1px 6px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; }

/* ---------- Reveal: everything fades and rises in, top to bottom ---------- */
/* Hidden only when the script runs, so a page without it still shows everything. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out), filter 0.8s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; filter: none; transition: opacity 0.3s; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 max(20px, calc((100vw - 1200px) / 2));
  background: rgba(12, 12, 14, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; }
.links { display: flex; gap: 24px; margin: 0 auto; font-size: 14px; color: var(--muted); }
.links a { transition: color 0.2s; }
.links a:hover, .links a[aria-current] { color: var(--text); }
.soon::after { content: "soon"; font-size: 10px; margin-left: 5px; padding: 1px 5px; border-radius: 5px; background: rgba(255,255,255,0.08); color: var(--dim); vertical-align: 2px; }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* The mark: the bar's glowing caret drawn as an S (assets/logo.svg). */
.logo { height: 40px; width: auto; display: block; margin: -4px 0 0 -8px; }
.menubar .mark { width: 11px; height: 14px; background: url(../mark-mono.svg) center / contain no-repeat; opacity: 0.92; }
.mark-logo { width: 22px; height: 22px; background: url(../favicon.svg) center / contain no-repeat; }

/* ---------- Buttons ---------- */
.btn-light, .btn-dark, .btn-star {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.2s var(--ease-out), background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-light { background: #f4f4f6; color: #0c0c0e; box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 24px -8px rgba(255,255,255,0.25); }
.btn-light:hover { transform: translateY(-1px); background: #fff; }
.btn-dark { background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.btn-dark:hover { background: rgba(255,255,255,0.11); transform: translateY(-1px); }
.btn-light.small, .btn-star { height: 36px; padding: 0 15px; font-size: 13.5px; }
.btn-star { background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); color: var(--text); }
.btn-star:hover { background: rgba(255,255,255,0.1); }
.count { padding-left: 9px; margin-left: 2px; border-left: 1px solid rgba(255,255,255,0.15); color: var(--muted); font-variant-numeric: tabular-nums; }
.btn-light :is(svg, .sym), .btn-dark :is(svg, .sym), .btn-star :is(svg, .sym) { width: 17px; height: 17px; }
.i-gh, .i-apple, .i-search { display: inline-grid; }
.btn-star .i-gh :is(svg, .sym) { width: 15px; height: 15px; }

/* ---------- Hero (every page): sized like Slashy's, a modest serif title, one short paragraph and two buttons on
   the left, then the demo at full width ---------- */
.hero { padding: 88px 20px 36px; max-width: 1240px; margin: 0 auto; }
.hero h1 { max-width: 640px; margin: 0; font-size: clamp(32px, 2.9vw, 41px); line-height: 1.08; letter-spacing: -0.015em; color: #f4f4f6; text-wrap: balance; }
.lede { max-width: 540px; margin: 18px auto 0; font-size: 16.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.hero .lede { margin: 16px 0 0; font-size: 16px; line-height: 1.45; }
.kbd { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 0.86em; line-height: 1.6; color: var(--text); background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 1px 0 rgba(0,0,0,0.5); }
.cta { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.hero .cta { justify-content: flex-start; gap: 12px; margin-top: 24px; }
.hero .btn-light, .hero .btn-dark { height: 44px; padding: 0 20px; font-size: 15px; }
.fine { margin: 14px 0 0; font-size: 13px; color: var(--dim); }
/* The demo sits in a soft pool of the bar's own colours. */
.hero-stage { position: relative; margin-top: 56px; text-align: left; }
.hero-stage::before {
  content: "";
  position: absolute;
  inset: -6% 8% 20%;
  z-index: -1;
  background: radial-gradient(40% 55% at 30% 45%, rgba(106,168,255,0.22), transparent 70%),
    radial-gradient(38% 50% at 70% 40%, rgba(255,158,199,0.16), transparent 70%),
    radial-gradient(36% 45% at 55% 75%, rgba(255,180,90,0.14), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-stage .stage { border-radius: 26px; box-shadow: 0 40px 120px -50px rgba(0,0,0,0.9), 0 0 0 1px var(--line); }
.more { display: inline-flex; gap: 6px; margin-top: 18px; font-size: 14.5px; color: var(--text); opacity: 0.8; transition: opacity 0.2s, gap 0.25s var(--ease-out); }
.more:hover { opacity: 1; gap: 10px; }

/* ---------- Intro (home, once per visit): "Welcome to" and the wordmark writing itself on, its i-dots tapping in
   with a ring each; then the word wisps up into the nav's logo as the page fades in ---------- */
.intro { display: none; }
.intro-on .intro, .intro.fly { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); }
.intro.fly { background: transparent; pointer-events: none; transition: background-color 0.8s var(--ease-out); }
html.intro-on { overflow: hidden; }
.intro-mark { display: grid; justify-items: center; gap: 6px; }
.intro-hi { margin: 0; font: italic 400 clamp(22px, 2.4vw, 32px) var(--serif); color: var(--muted); letter-spacing: 0.01em; opacity: 0; transform: translateY(8px); filter: blur(4px); animation: hi 0.7s var(--ease-out) 0.1s forwards; }
@keyframes hi { to { opacity: 1; transform: none; filter: none; } }
.nav .brand { transition: opacity 0.45s var(--ease-out); }
.intro-brand .nav .brand { opacity: 0; }
/* The motes the word pours into the logo. */
.pour { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 201; pointer-events: none; }
/* Until it lands, what the page revealed stays hidden; the nav only fades so the logo's spot doesn't move. */
.intro-on [data-reveal].in { opacity: 0; transform: translateY(18px); filter: blur(6px); }
.intro-on .nav[data-reveal].in { transform: none; filter: none; }

/* The wordmark written on: the pen's path reveals the ink; the i-dots tap in as it finishes, each with a ring. */
.write { width: min(440px, 74vw); height: auto; overflow: visible; transform-origin: 0 0; }
.write .pen { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: pen 2.2s cubic-bezier(0.5, 0.05, 0.3, 1) 0.5s forwards; }
@keyframes pen { to { stroke-dashoffset: 0; } }
.write .tap, .write .ping { transform-box: fill-box; transform-origin: center; opacity: 0; }
.write .tap { transform: scale(0.2); animation: tap 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; }
.write .ping { animation: ping 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.write .t1 { animation-delay: 2.05s; }
.write .t2 { animation-delay: 2.3s; }
.write.done .pen { animation: none; stroke-dashoffset: 0; }
.write.done .tap { animation: none; opacity: 1; transform: none; }
@keyframes tap { to { opacity: 1; transform: none; } }
@keyframes ping { 0% { opacity: 0.85; transform: scale(0.6); } 100% { opacity: 0; transform: scale(4.5); } }

.glass-switch { display: inline-flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; justify-content: flex-start; }
.glass-switch small { color: var(--dim); font-size: 13px; }
.seg { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { position: relative; z-index: 1; appearance: none; border: 0; background: none; color: var(--muted); font: 500 13px var(--sans); padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: color 0.2s; }
.seg button[aria-checked="true"] { color: var(--text); }
.seg::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: var(--x, 3px); width: var(--w, 70px); border-radius: 999px; background: rgba(255,255,255,0.12); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); transition: left var(--d-select, 0.2s) var(--e-select, ease), width var(--d-select, 0.2s) var(--e-select, ease); }

/* ---------- Trust ---------- */
.trust { text-align: center; padding: 56px 20px 24px; }
.trust p { margin: 0 0 18px; font-size: 13px; color: var(--dim); letter-spacing: 0.02em; }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(26px, 6vw, 64px); justify-content: center; flex-wrap: wrap; align-items: center; }
.trust li { color: rgba(255,255,255,0.42); font-size: 21px; transition: color 0.3s; }
.trust li:hover { color: rgba(255,255,255,0.75); }
.wm-google { font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; }
.wm-microsoft { font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; }
.wm-uni { font-family: var(--serif); font-size: 24px !important; }

/* ---------- Feature sections (Slashy-style: a list beside a demo) ---------- */
.feature { max-width: 1240px; margin: 0 auto; padding: 120px 20px 20px; }
.f-head { max-width: 640px; margin-bottom: 44px; }
.f-head h2 { font-size: clamp(36px, 5vw, 54px); line-height: 1.04; }
.f-head p { color: var(--muted); font-size: 17px; margin: 18px 0 0; }
.f-head .eyebrow { margin-bottom: 12px; font-size: 14px; font-weight: 500; color: #c9b6ff; letter-spacing: 0; }
.flip .f-head { margin-left: auto; text-align: right; }
.f-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 48px; align-items: center; }
.flip .f-grid { grid-template-columns: 1fr minmax(280px, 380px); }
.flip .f-list { order: 2; }
.f-list { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.f-list li {
  position: relative;
  padding: 18px 0 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  counter-increment: f;
}
.f-list li b { display: block; font-weight: 500; font-size: 16px; color: var(--dim); transition: color 0.3s; }
.f-list li b::before { content: counter(f, decimal-leading-zero) ". "; font-family: var(--mono); font-size: 13px; font-weight: 400; margin-right: 4px; }
.f-list li span { display: block; color: var(--dim); font-size: 14px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.45s var(--ease-out), opacity 0.35s, margin 0.45s var(--ease-out); }
.f-list li.on b { color: var(--text); }
.f-list li.on span { max-height: 80px; opacity: 1; margin-top: 6px; color: var(--muted); }
.f-list li:hover b { color: var(--text); }
.f-list li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: linear-gradient(90deg, var(--blue), #fff 60%, var(--amber)); }
.f-list li.on::after { animation: progress var(--dur, 9s) linear forwards; }
.f-list.paused li.on::after { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }
.f-stage .stage { box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7), 0 0 0 1px var(--line); }

/* ---------- Bento ---------- */
.bento-wrap, .open { max-width: 1240px; margin: 0 auto; padding: 140px 20px 0; }
.center-head { text-align: center; margin-bottom: 48px; }
.center-head h2 { font-size: clamp(36px, 5vw, 54px); line-height: 1.05; }
.center-head p { color: var(--muted); margin: 14px 0 0; font-size: 17px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cell { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; min-height: 320px; overflow: hidden; transition: background 0.3s; }
.cell:hover { background: var(--surface-2); }
.cell.w2 { grid-column: span 2; }
.cell .demo { flex: 1; display: flex; flex-direction: column; justify-content: center; margin-bottom: 18px; font-size: 13px; }
.cap { margin: 0 0 6px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.cell h3 { font-size: 17px; font-weight: 500; line-height: 1.35; }

.mini-field { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: rgba(0,0,0,0.35); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; margin-bottom: 10px; }
.mini-field :is(svg, .sym) { width: 15px; height: 15px; color: var(--muted); }
.mini-field .scope { font-size: 12.5px; padding: 3px 8px; border-radius: 7px; background: rgba(255,255,255,0.1); font-weight: 500; }
.mcaret { width: 2px; height: 18px; border-radius: 1px; background: linear-gradient(var(--blue), #fff 30%, #fff 70%, var(--amber)); box-shadow: 0 0 6px rgba(116,184,255,0.8); animation: caret 1.1s steps(1) infinite; }
.clip-row { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 10px; color: rgba(255,255,255,0.85); }
.clip-row:nth-child(3) { background: rgba(255,255,255,0.07); }
.clip-row small { display: block; color: var(--dim); font-size: 11.5px; }
.clip-row > small { margin-left: auto; }
.tagp { font-size: 10.5px; padding: 2px 6px; border-radius: 5px; background: rgba(255,180,90,0.15); color: var(--amber); }
.thumb { width: 30px; height: 22px; border-radius: 4px; background: linear-gradient(135deg, #3b4a6b, #7b8db5); flex: none; }
.red { font-family: var(--mono); font-size: 12px; padding: 2px 7px; border-radius: 6px; background: rgba(248,113,113,0.12); color: #fca5a5; }

.emoji { display: grid !important; grid-template-columns: repeat(6, 1fr); gap: 6px; align-content: center; }
.emoji span { aspect-ratio: 1; display: grid; place-items: center; font-size: 24px; border-radius: 10px; transition: background 0.3s, transform 0.3s var(--ease-out); }
.emoji span.hit { background: rgba(255,255,255,0.12); transform: scale(1.08); }

.devtools { gap: 8px; }
.dt { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,0.3); box-shadow: inset 0 0 0 1px var(--line); }
.dt span { color: var(--dim); font-size: 12px; font-family: var(--mono); }
.dt b { font-family: var(--mono); font-weight: 500; font-size: 14px; }

.awake { align-items: center; gap: 12px; }
.aw-ring { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--amber) 0 var(--p, 82%), rgba(255,255,255,0.08) 0); -webkit-mask: radial-gradient(circle, transparent 57px, #000 58px); mask: radial-gradient(circle, transparent 57px, #000 58px); position: relative; }
.aw { position: relative; display: grid; place-items: center; }
.aw-t { position: absolute; font-family: var(--mono); font-size: 18px; }
.awake small { color: var(--dim); }

.looks { flex-direction: row !important; gap: 12px; align-items: center; }
.look { flex: 1; height: 150px; border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; background: url(../../art/windows.webp) center / cover; position: relative; overflow: hidden; }
.look::before { content: ""; position: absolute; inset: 0; }
.look.liquid::before { background: linear-gradient(180deg, rgba(0,0,0,0.95) 0, rgba(0,0,0,0.4) 28%, rgba(0,0,0,0.36) 28%, rgba(0,0,0,0.04) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 0 0 1px rgba(255,255,255,0.12); border-radius: 14px; }
.look.frosted::before { background: rgba(0,0,0,0.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 14px; }
.look.frosted { filter: none; }
.look.frosted::after { content: ""; position: absolute; inset: 0; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 0; border-radius: 14px; }
.look span { position: relative; z-index: 1; height: 12px; border-radius: 5px; background: rgba(255,255,255,0.5); }
.look span:first-child { height: 16px; width: 70%; background: rgba(255,255,255,0.75); margin-bottom: 10px; }
.look span:nth-child(3) { width: 60%; }

.settings { flex-direction: row !important; gap: 14px; align-items: stretch; }
.set-side { display: flex; flex-direction: column; gap: 2px; width: 150px; font-size: 13px; color: var(--muted); }
.set-side span { padding: 6px 10px; border-radius: 8px; }
.set-side .on { background: rgba(255,255,255,0.08); color: var(--text); }
.set-main { flex: 1; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; height: 46px; border-radius: 12px; background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px var(--line); }
.kcs { display: flex; gap: 4px; }
.kcs i { font-style: normal; font-size: 11.5px; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,0.08); color: var(--muted); }
.tog { width: 38px; height: 22px; border-radius: 11px; background: rgba(255,255,255,0.15); position: relative; transition: background 0.3s; }
.tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.3s var(--ease-out); box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.tog.on { background: #3b82f6; }
.tog.on::after { transform: translateX(16px); }

.hotkeys { gap: 10px; }
.hk { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 12px; background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px var(--line); }
.hk b { margin-left: auto; font-weight: 500; }
.kc2 { min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: linear-gradient(rgba(255,255,255,0.14), rgba(255,255,255,0.06)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 1px 0 rgba(0,0,0,0.4); font-size: 13px; }
.alias { font-family: var(--mono); font-size: 13px; padding: 3px 9px; border-radius: 7px; background: rgba(116,184,255,0.12); color: var(--blue); }

.pins { gap: 6px; }
.pin-row { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-radius: 12px; }
.pin-row:first-child { background: rgba(255,255,255,0.08); }
.pin-row small { margin-left: auto; color: var(--dim); }
.pi { width: 28px; height: 28px; flex: none; object-fit: contain; }
.pi.gh { display: grid; place-items: center; width: 22px; height: 22px; margin: 0 3px; border-radius: 6px; background: #24292f; color: #fff; }
.pi.gh svg { width: 14px; height: 14px; }

.np-demo { align-items: center; }
.npbig { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 22px; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255,255,255,0.08); }
.npbig .art { width: 52px; height: 52px; border-radius: 10px; background: linear-gradient(135deg, #e8b4a2, #8e6fb8 60%, #3e4a8c); }
.npbig small { display: block; color: var(--dim); }
.np-ring { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(#fff 0 var(--np, 40%), rgba(255,255,255,0.12) 0); -webkit-mask: radial-gradient(circle, transparent 14px, #000 15px); mask: radial-gradient(circle, transparent 14px, #000 15px); margin-left: 8px; }

.sites { gap: 14px; }
.mini-field .scope.yt { background: rgba(255, 0, 51, 0.22); }
.site-keys { display: flex; flex-wrap: wrap; gap: 8px; }
.site-keys span { font-size: 12.5px; color: var(--muted); padding: 5px 10px; border-radius: 9px; background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px var(--line); }
.site-keys b { font-family: var(--mono); font-weight: 500; color: var(--text); margin-right: 4px; }

/* ---------- Open source ---------- */
.open-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ocard { padding: 24px 22px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ocard h3 { font-size: 17px; font-weight: 500; margin: 16px 0 8px; }
.ocard p { margin: 0; color: var(--muted); font-size: 14.5px; }
.oi { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.oi :is(svg, .sym) { width: 19px; height: 19px; }

/* ---------- Final ---------- */
.final { max-width: 1240px; margin: 140px auto 0; padding: 0 20px; }
.final-art { position: relative; border-radius: 28px; overflow: hidden; min-height: 460px; display: grid; place-items: center; text-align: center; background: url(../../art/footer.webp) center / cover; box-shadow: 0 0 0 1px var(--line); }
.final-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(8,8,14,0.15), rgba(8,8,14,0.55)); }
.final-copy { position: relative; padding: 40px 20px; }
.final h2 { font-size: clamp(56px, 10vw, 112px); line-height: 1; }
.final p { color: rgba(255,255,255,0.75); margin: 10px 0 0; font-size: 17px; }

.foot { max-width: 1240px; margin: 0 auto; padding: 56px 20px 64px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.foot .logo { height: 30px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot nav a:hover { color: var(--text); }
.foot small { margin-left: auto; color: var(--dim); font-size: 13px; }

/* The contact address, written out, with a small Copy button beside it. */
.mail { display: inline-flex; align-items: center; gap: 8px; }
.mail a { color: var(--text); border-bottom: 1px solid rgba(255,255,255,0.25); }
.mail a:hover { border-bottom-color: var(--text); }
.copy { height: 24px; padding: 0 9px; border: 0; border-radius: 7px; font: 500 12px var(--sans); color: var(--muted); background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); cursor: pointer; transition: background 0.2s, color 0.2s; }
.copy:hover { background: rgba(255,255,255,0.13); color: var(--text); }
.final-mail { margin-top: 22px !important; font-size: 15px !important; }
.mail.on-art .copy { background: rgba(0,0,0,0.35); color: rgba(255,255,255,0.85); }

/* ---------- Privacy (and any other plain page): one readable column ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 88px 20px 40px; }
.legal h1 { font-size: clamp(32px, 2.9vw, 41px); line-height: 1.08; letter-spacing: -0.015em; }
.legal .updated { margin: 8px 0 0; font-size: 13.5px; color: var(--dim); }
.legal .lede { margin: 22px 0 0; max-width: none; font-size: 17px; line-height: 1.6; color: var(--text); }
.legal h2 { margin: 44px 0 10px; font-size: 27px; }
.legal h3 { margin: 26px 0 8px; font: 600 16px var(--sans); }
.legal p, .legal li { font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.legal p { margin: 10px 0 0; }
.legal ul { margin: 10px 0 0; padding-left: 18px; }
.legal li { margin: 8px 0; }
.legal li b { color: var(--text); font-weight: 600; }
.legal a { color: var(--text); border-bottom: 1px solid rgba(255,255,255,0.25); }
.legal a:hover { border-bottom-color: var(--text); }

/* ---------- Demo pieces that live on the page's stages ---------- */
.pillglass {
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  background: linear-gradient(180deg, rgba(0,0,0,0.42), rgba(0,0,0,0.22));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 1px 0 rgba(255,255,255,0.18), 0 14px 40px -10px rgba(0,0,0,0.5);
}
[data-glass="frosted"] .pillglass { background: rgba(0,0,0,0.4); box-shadow: 0 14px 40px -10px rgba(0,0,0,0.5); }
.okdot { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #22c55e; color: #fff; }
.okdot :is(svg, .sym) { width: 11px; height: 11px; }
.fav :is(svg, .sym) { width: 14px; height: 14px; color: #fff; }
.spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(96,165,250,0.25); border-top-color: #60a5fa; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chat .think { display: inline-flex; align-items: center; gap: 7px; }
.chat .steps :is(svg, .sym) { width: 14px; height: 14px; color: #4ade80; }
.chat .steps .revert { margin-left: 4px; padding: 1px 8px; border-radius: 6px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); font-size: 12px; }
.chat .t { margin-bottom: 14px; }
.confirm code, .needs code { font-family: var(--mono); font-size: 11.5px; background: rgba(255,255,255,0.1); padding: 1px 5px; border-radius: 5px; }
.confirm .ch .ci :is(svg, .sym) { width: 18px; height: 18px; }
.needs .btns { display: flex; justify-content: flex-end; gap: 8px; }
.toast :is(svg, .sym) { width: 11px; height: 11px; }

.vh { display: flex; align-items: center; gap: 12px; margin: 4px 4px 12px; }
.vh .ai-app { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.vh b { display: block; font-size: 17px; font-weight: 600; }
.vh span { font-size: 13px; color: rgba(255,255,255,0.55); }
.lrow.appear { animation: rowIn 0.32s var(--ease-out) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } }
.lrow.tall { height: 54px; }
.lrow .nm { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lrow .nm .path { flex: none; }
.lrow .glyph :is(svg, .sym) { width: 19px; height: 19px; }
.view.done { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 330px; animation: rowIn 0.4s var(--ease-out) both; }
.view.done .okdot { width: 44px; height: 44px; }
.view.done .okdot :is(svg, .sym) { width: 24px; height: 24px; }
.view.done b { font-size: 18px; font-weight: 600; }
.view.done span { color: rgba(255,255,255,0.55); }
.bar-ask .scan { display: inline-flex; align-items: center; gap: 8px; }

.usage .uprov { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 8px; font-size: 18px; }
.usage .tag { font-size: 12px; color: rgba(255,255,255,0.55); }
.usage .upd { margin-left: auto; font-size: 12px; color: rgba(255,255,255,0.4); }
.um { margin-bottom: 14px; }
.uh { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.uh b { font-weight: 600; }
.un { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 6px; }
.meter { position: relative; }
.meter > i { width: 0; }
.meter s { position: absolute; top: -2px; width: 2px; height: 10px; background: rgba(255,255,255,0.45); border-radius: 1px; }

.disk { margin: 6px 4px 18px; }
.dbar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,0.1); gap: 2px; }
.dbar i { width: 0; transition: width 1s var(--ease-out); }
.dbar i:nth-child(2) { transition-delay: 0.08s; } .dbar i:nth-child(3) { transition-delay: 0.16s; } .dbar i:nth-child(4) { transition-delay: 0.24s; } .dbar i:nth-child(5) { transition-delay: 0.32s; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: rgba(255,255,255,0.65); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; }
.vsec { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.52); margin: 0 4px 4px; }


.doc { padding: 6px 10px; font-size: 15px; line-height: 1.6; }
.doc h3 { font-family: var(--sans); font-size: 22px; font-weight: 700; margin: 4px 0 8px; }
.doc p { margin: 0 0 6px; }
.mailh { border-bottom: 1px solid rgba(0,0,0,0.08); padding: 8px 10px; font-size: 13.5px; }
.mailh span { color: rgba(0,0,0,0.45); margin-right: 6px; }
.tcaret { display: inline-block; width: 2px; height: 1.15em; vertical-align: -0.2em; background: currentColor; margin-left: 1px; animation: caret 1.1s steps(1) infinite; }
.term { font-family: var(--mono); font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.88); }
.term.small { font-size: 12px; }
.term .pr { color: #7dd3fc; } .term .gt { color: #c084fc; } .term .dim { color: rgba(255,255,255,0.45); }
.term .box { border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 8px 12px; }
.wh { display: block; font-size: 17px; margin: 4px 0 8px; }
.hero-mock { height: 110px; border-radius: 10px; margin-bottom: 12px; background: linear-gradient(135deg, #86efac, #15803d 60%, #064e3b); }
.cursor { position: absolute; width: 26px; height: 26px; z-index: 60; transition: transform 0.15s; }
.cursor :is(svg, .sym) { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4)); }
.cursor.grab { transform: scale(0.88); }

/* ---------- Feature pages: chapters, each a demo beside what it shows ---------- */
.chapter { max-width: 1240px; margin: 0 auto; padding: 110px 20px 0; display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 56px; align-items: center; }
.chapter.flip { grid-template-columns: 1fr minmax(280px, 360px); }
.chapter.flip .ch-copy { order: 2; }
.ch-num { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: #c9b6ff; }
.ch-copy h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.06; text-wrap: balance; }
.ch-copy > p { color: var(--muted); font-size: 16.5px; margin: 16px 0 0; text-wrap: pretty; }
.ch-keys { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--muted); }
.ch-keys li { display: flex; align-items: center; gap: 10px; }
.ch-keys .k { display: inline-flex; gap: 3px; min-width: 64px; }
.ch-keys .kc2 { min-width: 24px; height: 24px; font-size: 12px; padding: 0 6px; }
.ch-stage .stage { box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7), 0 0 0 1px var(--line); }
.page-intro { max-width: 1240px; margin: 0 auto; padding: 120px 20px 0; }
.page-intro h2 { font-family: var(--serif); font-size: clamp(36px, 5vw, 54px); line-height: 1.05; max-width: 760px; }
.page-intro p { color: var(--muted); font-size: 17px; max-width: 640px; margin: 14px 0 0; }

.all { max-width: 1240px; margin: 0 auto; padding: 140px 20px 0; }
.all-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fcard { position: relative; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.3s; }
.fcard:hover { background: var(--surface-2); }
.fcard .fi { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.fcard .fi .sym { width: 18px; height: 18px; }
.fcard .fi img { width: 26px; height: 26px; }
.fcard h3 { font-size: 16.5px; font-weight: 500; margin: 14px 0 6px; }
.fcard p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.fcard .tag { position: absolute; top: 22px; right: 20px; font-size: 11px; font-family: var(--mono); letter-spacing: 0.04em; padding: 3px 8px; border-radius: 6px; background: rgba(255,180,90,0.12); color: var(--amber); }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .links { display: none; }
  .nav-cta { margin-left: auto; }
  .f-grid, .flip .f-grid { grid-template-columns: 1fr; gap: 28px; }
  .f-list, .flip .f-list { order: 2; }
  .f-stage { order: 1; }
  .flip .f-head { text-align: left; margin-left: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .open-grid { grid-template-columns: 1fr 1fr; }
  .feature { padding-top: 90px; }
  .chapter, .chapter.flip { grid-template-columns: 1fr; gap: 26px; padding-top: 80px; }
  .chapter .ch-copy, .chapter.flip .ch-copy { order: 2; }
  .all-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-top: 56px; }
  .lede { font-size: 16px; }
  .bento, .open-grid, .all-grid { grid-template-columns: 1fr; }
  .cell.w2 { grid-column: auto; }
  .settings { flex-direction: column !important; }
  .set-side { flex-direction: row; width: auto; overflow: hidden; }
  .nav .btn-star { display: none; }
  .foot small { margin-left: 0; }
  .hero-stage .stage, .stage { border-radius: 14px; }
  .final-art { min-height: 380px; }
}
