/* Relay's website (the landing page, /download, the 404 page, and the base of
   the big-file pages with file.css), in the app's own identity: near-black
   ground, the lime to green gradient on what you press, moss blooms and film
   grain; VP Pixel for labels, keys and status, Roboto for everything you read.
   Everything is served from here: no inline styles or scripts (site.ts). */

@font-face { font-family: 'VP Pixel'; src: url('/fonts/VPPixel-Standard.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('/fonts/Roboto-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('/fonts/Roboto-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; src: url('/fonts/Roboto-Regular-ext.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; src: url('/fonts/Roboto-Medium.woff2') format('woff2'); font-weight: 500 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; src: url('/fonts/Roboto-Medium-ext.woff2') format('woff2'); font-weight: 500 700; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0b0b0b;
  --accent-rgb: 213, 255, 95;
  --deep-rgb: 57, 153, 71;
  --tint-rgb: 70, 205, 160;
  --lime: rgb(var(--accent-rgb));
  --green: rgb(var(--deep-rgb));
  --tint: rgb(var(--tint-rgb));
  --lime-hover: #e1ff8a;
  --accent-mid: color-mix(in oklab, var(--green) 58%, var(--lime));
  --accent-tinted: color-mix(in oklab, var(--tint) 38%, var(--lime));
  --grad-word: linear-gradient(100deg, var(--accent-mid) 0%, var(--accent-tinted) 42%, var(--lime) 78%, var(--lime-hover) 100%);
  --grad-base: linear-gradient(104deg, color-mix(in oklab, var(--green) 42%, var(--lime)) 0%, var(--accent-tinted) 34%, var(--lime) 64%, var(--lime-hover) 100%);
  --grad-sheen: radial-gradient(130% 150% at 8% -30%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.12) 32%, rgba(255, 255, 255, 0) 55%);
  --fill-edge: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -12px rgba(var(--accent-rgb), 0.75), 0 4px 14px -6px rgba(var(--tint-rgb), 0.35);
  --text: #f4f4f1;
  --text-2: #c1c1c1;
  --text-3: #9a9a96;
  --text-4: #82827e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --lime-soft: rgba(var(--accent-rgb), 0.1);
  --lime-line: rgba(var(--accent-rgb), 0.42);
  --card: rgba(18, 18, 18, 0.62);
  --surface: #121212;
  --surface-2: #171717;
  --surface-3: #1e1e1e;
  --on-lime: #0d0d0d;
  --amber: #f5c86a;
  --red: #ff6b5e;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --pixel: 'VP Pixel', 'SF Mono', ui-monospace, monospace;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
code { font: 13.5px var(--mono); color: var(--text); padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
::selection { background: rgba(var(--accent-rgb), 0.3); }
.pixel { font-family: var(--pixel); font-weight: 400; letter-spacing: 0.02em; }
.grad { background: var(--grad-word); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 8px 14px; border-radius: 10px; background: var(--lime); color: var(--on-lime); text-decoration: none; }
.skip:focus { top: 12px; }
kbd { display: inline-block; min-width: 20px; font: 400 12px/1 var(--pixel); letter-spacing: 0.03em; text-align: center; padding: 4px 6px 3px; border-radius: 6px; color: var(--text); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 -1px 0 rgba(255, 255, 255, 0.06); }

/* ---- ambient: blooms and grain ------------------------------------------ */

.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bloom { position: absolute; border-radius: 50%; opacity: 0.55; }
.bloom-a { width: 90vmax; height: 90vmax; left: -40vmax; top: -45vmax; background: radial-gradient(closest-side, rgba(178, 226, 60, 0.5), rgba(88, 124, 26, 0.22) 45%, rgba(88, 124, 26, 0.05) 75%, transparent); animation: drift-a 60s var(--ease) infinite alternate; }
.bloom-b { width: 70vmax; height: 55vmax; right: -35vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(var(--tint-rgb), 0.3), rgba(var(--tint-rgb), 0.1) 50%, transparent); animation: drift-b 70s var(--ease) infinite alternate; }
.bloom-c { width: 60vmax; height: 50vmax; right: -25vmax; bottom: -30vmax; background: radial-gradient(closest-side, rgba(178, 226, 60, 0.22), rgba(88, 124, 26, 0.1) 50%, transparent); }
.grain { position: absolute; inset: 0; background: url('/img/grain.svg'); background-size: 240px 240px; opacity: 0.07; mix-blend-mode: overlay; }
@keyframes drift-a { to { transform: translate(6vmax, 4vmax) scale(1.05); } }
@keyframes drift-b { to { transform: translate(-5vmax, 6vmax); } }

/* ---- buttons ------------------------------------------------------------ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 0;
  font: 500 15px/1 var(--font);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease), filter 0.2s var(--ease);
}
.btn:hover { box-shadow: inset 0 0 0 1px var(--lime-line); color: var(--lime); background: rgba(var(--accent-rgb), 0.05); }
.btn:active { transform: translateY(1px); }
.btn-primary { color: var(--on-lime); background: var(--grad-sheen), var(--grad-base); box-shadow: var(--fill-edge); }
.btn-primary:hover { color: var(--on-lime); background: var(--grad-sheen), var(--grad-base); box-shadow: var(--fill-edge), 0 0 40px rgba(var(--accent-rgb), 0.28); filter: brightness(1.06); }
.btn-small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-big { height: auto; min-height: 64px; padding: 12px 24px 12px 20px; justify-content: flex-start; text-align: left; border-radius: 14px; }
.btn .ico { width: 24px; height: 24px; fill: currentColor; flex: none; }
.btn .ico-line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-lines { display: flex; flex-direction: column; gap: 6px; }
.btn-title { font-size: 17px; font-weight: 500; }
.btn-sub { font-size: 11.5px; opacity: 0.72; letter-spacing: 0.04em; }
.btn[aria-disabled='true'] { pointer-events: none; opacity: 0.55; }
.text-link { display: inline-block; margin-top: 14px; color: var(--lime); font-size: 15px; text-decoration: none; box-shadow: inset 0 -1px 0 var(--lime-line); }
.text-link:hover { box-shadow: inset 0 -2px 0 var(--lime); }
.text-link::after { content: ' \2192'; }

/* ---- nav ---------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  padding: 0 max(var(--gutter), calc((100% - var(--wrap)) / 2));
  background: rgba(11, 11, 11, 0.72);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 22px; flex: none; }
.brand img { border-radius: 8px; filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.25)); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text-3); text-decoration: none; font-size: 14px; transition: color 0.2s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current='true'] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.nav-menu { position: relative; display: none; }
.nav-menu summary { list-style: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--text-2); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-strong); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime-line); }
.nav-sheet { position: absolute; right: 0; top: 46px; width: min(280px, calc(100vw - 32px)); display: grid; padding: 8px; border-radius: 14px; background: #141414; box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 60px -12px rgba(0, 0, 0, 0.8); }
.nav-sheet a { padding: 10px 12px; border-radius: 9px; color: var(--text-2); text-decoration: none; font-size: 15px; }
.nav-sheet a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.nav-sheet-rule { height: 1px; margin: 6px 4px; background: var(--line); }

/* ---- layout ------------------------------------------------------------- */

main section { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(96px, 14vh, 150px); }
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center h2 { margin-left: auto; margin-right: auto; }
.eyebrow { font-size: 13px; color: var(--lime); letter-spacing: 0.06em; text-transform: lowercase; }
main h2 { margin-top: 14px; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.025em; max-width: 20ch; }
main h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.005em; line-height: 1.3; }
.section-lead { margin-top: 18px; color: var(--text-2); font-weight: 300; font-size: clamp(17px, 1.8vw, 19px); line-height: 1.55; max-width: 62ch; }
.section-lead kbd { font-size: 12px; }

/* ---- hero --------------------------------------------------------------- */

.hero { padding-top: clamp(40px, 8vh, 96px); text-align: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  background: rgba(0, 0, 0, 0.3);
}
.dot { width: 7px; height: 7px; border-radius: 1px; background: var(--lime); box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.7); }
.hero h1 { margin: 28px auto 0; font-size: clamp(42px, 6.6vw, 88px); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 .pixel { display: block; letter-spacing: 0; font-size: 0.86em; line-height: 1.15; white-space: nowrap; }
.lead { margin: 26px auto 0; max-width: 640px; font-size: clamp(17px, 2vw, 20px); font-weight: 300; color: var(--text-2); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 38px auto 0; }
.hero-cta .btn-big { min-width: 250px; }
.hero-alt { margin-top: 16px; font-size: 14px; color: var(--text-3); }
.hero-alt a, .dl-alt a, .dl-more a { color: var(--text-2); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.hero-alt a:hover, .dl-alt a:hover, .dl-more a:hover { color: var(--lime); text-decoration-color: var(--lime-line); }
.hero-alt .sep { margin: 0 10px; color: var(--text-4); }
.works { margin-top: clamp(36px, 6vh, 56px); font-size: 12px; letter-spacing: 0.08em; color: var(--text-4); }

.hero-shot { position: relative; margin: clamp(44px, 7vh, 72px) auto 0; max-width: 1140px; text-align: left; }
.hero-shot::before { content: ''; position: absolute; inset: 6% 6% -4%; z-index: -1; background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.16), transparent); filter: blur(30px); }

/* ---- the app, drawn in HTML (hero) -------------------------------------- */

.app { position: relative; border-radius: 16px; overflow: hidden; background: #0d0d0d; font-size: 13px; line-height: 1.4; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2px 6px rgba(0, 0, 0, 0.35), 0 40px 100px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(var(--accent-rgb), 0.06); }
.app kbd { font-size: 10px; padding: 3px 4px 2px; min-width: 16px; color: var(--text-3); }
.lights { display: inline-flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #2c2c2c; }
.lights i:nth-child(1) { background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.app-top { display: flex; align-items: center; gap: 18px; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #111; }
.app-search { display: flex; align-items: center; gap: 8px; flex: 0 1 420px; margin-left: 150px; height: 28px; padding: 0 6px 0 10px; border-radius: 8px; color: var(--text-4); background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line); }
.app-search svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.app-search kbd { margin-left: auto; }
.app-body { display: grid; grid-template-columns: 184px minmax(0, 1.05fr) minmax(0, 1fr); min-height: 520px; }
.app-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.app-compose { display: flex; align-items: center; justify-content: space-between; height: 36px; margin-bottom: 12px; padding: 0 10px 0 12px; border-radius: 10px; font-weight: 500; color: var(--on-lime); background: var(--grad-sheen), var(--grad-base); box-shadow: var(--fill-edge); }
.app-compose kbd { color: rgba(0, 0, 0, 0.6); background: rgba(0, 0, 0, 0.08); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.app-nav { position: relative; display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; color: var(--text-2); }
.app-nav b { font: 400 11px var(--pixel); color: var(--text-3); }
.app-nav.on { color: var(--lime); background: rgba(var(--accent-rgb), 0.07); }
.app-nav.on b { color: var(--lime); }
.app-nav.on::before { content: ''; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.6); }
.app-list { border-right: 1px solid var(--line); min-width: 0; }
.app-tabs { display: flex; gap: 18px; padding: 0 16px; height: 42px; align-items: center; border-bottom: 1px solid var(--line); font: 400 12.5px var(--pixel); letter-spacing: 0.03em; color: var(--text-3); white-space: nowrap; overflow: hidden; }
.app-tabs b { font-weight: 400; font-size: 10px; color: var(--text-4); margin-left: 3px; }
.app-tabs .on { position: relative; color: var(--lime); }
.app-tabs .on b { color: var(--lime); }
.app-tabs .on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -14px; height: 2px; border-radius: 2px; background: var(--grad-base); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5); }
.row { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; align-items: baseline; padding: 11px 16px 11px 26px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); color: var(--text-3); }
.row .who { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .who em { font: normal 10px var(--pixel); color: var(--text-4); margin-left: 4px; }
.row .what { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .what b { font-weight: 400; color: var(--text-2); margin-right: 6px; }
.row .when { font: 400 11px var(--pixel); color: var(--text-4); }
.row.unread .who, .row.unread .what b { color: var(--text); font-weight: 500; }
.row.unread::before { content: ''; position: absolute; left: 11px; top: 17px; width: 6px; height: 6px; border-radius: 1px; background: var(--lime); }
.row.sel { background: rgba(var(--accent-rgb), 0.06); }
.row.sel::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--lime); }
.row .chips { grid-column: 2 / 4; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); }
.thumb { display: inline-block; width: 16px; height: 16px; border-radius: 4px; background: linear-gradient(135deg, #b9d86a, #3a8f55); flex: none; }
.thumb.t2 { margin-left: 8px; background: linear-gradient(135deg, #e6c27a, #8a6a3a); }
.app-read { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 16px; min-width: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(var(--deep-rgb), 0.08), transparent 60%); }
.read-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.read-subject { font-size: 15px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg { display: inline-flex; padding: 2px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-strong); font: 400 11px var(--pixel); letter-spacing: 0.04em; }
.seg > * { padding: 4px 9px 3px; border-radius: 6px; color: var(--text-3); font-weight: 400; }
.seg b { color: var(--on-lime); background: var(--grad-base); }
.bubble { display: flex; gap: 10px; }
.bubble p { margin-top: 4px; padding: 10px 12px; border-radius: 4px 14px 14px 14px; color: var(--text-2); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); }
.bubble-who { font-size: 12.5px; font-weight: 500; color: var(--text); }
.bubble-who time { font: 400 10.5px var(--pixel); color: var(--text-4); margin-left: 6px; }
.av { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; font: 500 12px var(--font); color: #0d0d0d; background: linear-gradient(135deg, #d5ff5f, #399947); }
.av-k { background: linear-gradient(135deg, #a7f0d0, #2b8c78); }
.av-s { background: linear-gradient(135deg, #ffd38a, #d8794a); }
.av-j { background: linear-gradient(135deg, #b9c6ff, #5560d8); }
.av-m { background: linear-gradient(135deg, #ffb3c9, #c4477d); }
.av-p { background: linear-gradient(135deg, #d4f58a, #5a9a2a); }
.av-a { background: linear-gradient(135deg, #9fe3ff, #2e86b8); }

/* the assistant's card, as in the app */
.asst { display: grid; gap: 9px; padding: 12px 14px 12px; border-radius: 14px; background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.06), rgba(255, 255, 255, 0.03)); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.28), 0 12px 32px -14px rgba(0, 0, 0, 0.8); }
.asst-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.asst-tag { font-size: 11px; letter-spacing: 0.04em; color: var(--lime); white-space: nowrap; }
.asst-asked { flex: 1; min-width: 0; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asst-sure { font: 400 10.5px var(--pixel); padding: 3px 7px 2px; border-radius: 99px; color: var(--lime); background: rgba(var(--accent-rgb), 0.1); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.3); }
.asst-to { font-size: 11.5px; color: var(--text-4); }
.asst-reply { padding: 10px 12px; border-radius: 10px; color: var(--text); background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px var(--line); }
.asst-files { display: flex; gap: 6px; flex-wrap: wrap; }
.file-chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px 0 5px; border-radius: 8px; font-size: 12px; color: var(--text-2); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-strong); white-space: nowrap; }
.file-chip .pdf, .file-chip .doc { font: 400 8.5px/18px var(--pixel); width: 24px; height: 18px; text-align: center; border-radius: 4px; color: #fff; background: #d6493d; font-style: normal; }
.file-chip .doc { background: #3f6fd8; }
.file-chip .thumb { width: 18px; height: 18px; margin: 0; }
.file-chip.on { color: var(--text); box-shadow: inset 0 0 0 1px var(--lime-line); }
.asst-evidence { font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.asst-evidence .pixel { color: var(--text-4); margin-right: 6px; font-size: 10.5px; }
.asst-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 8px; font-size: 12px; font-weight: 500; color: var(--text-2); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-strong); white-space: nowrap; }
.mini-btn.primary { color: var(--on-lime); background: var(--grad-sheen), var(--grad-base); box-shadow: var(--fill-edge); }
.mini-btn.primary kbd { color: rgba(0, 0, 0, 0.6); background: rgba(0, 0, 0, 0.08); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); }
.replybar { display: flex; align-items: center; justify-content: space-between; margin-top: auto; height: 42px; padding: 0 8px 0 14px; border-radius: 12px; color: var(--text-4); background: #151515; box-shadow: inset 0 0 0 1px var(--line-strong); }
.spark, .spark-ico { width: 16px; height: 16px; background: var(--grad-base); -webkit-mask: url('/img/sparkle.svg') center / contain no-repeat; mask: url('/img/sparkle.svg') center / contain no-repeat; flex: none; }
.app-status { display: flex; gap: 18px; align-items: center; height: 28px; padding: 0 14px; border-top: 1px solid var(--line); font-size: 10.5px; letter-spacing: 0.06em; color: var(--text-4); white-space: nowrap; overflow: hidden; }
.app-status .live { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 1px; background: var(--lime); box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.8); }
.app-status span:first-child { color: var(--lime); }
.app-status .keys { margin-left: auto; }

/* ---- bento tiles -------------------------------------------------------- */

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
.tile { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 20px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.3s var(--ease); }
.tile:hover { box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.22); }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-12 { grid-column: span 12; }
.tile-visual { position: relative; flex: 1 0 auto; display: grid; place-items: center; min-height: 220px; border-bottom: 1px solid var(--line); background: radial-gradient(90% 90% at 50% 0%, rgba(var(--deep-rgb), 0.12), transparent 70%), rgba(0, 0, 0, 0.22); overflow: hidden; }
.tile-visual.pad { padding: clamp(18px, 3vw, 32px); }
.tile-body { padding: 22px 24px 26px; }
.tile-body p { margin-top: 10px; color: var(--text-3); font-size: 15.5px; line-height: 1.6; }
.tile-body p kbd { font-size: 11px; }
.tag { display: inline-block; margin-bottom: 14px; font-size: 11.5px; letter-spacing: 0.06em; color: var(--text-4); transition: color 0.3s var(--ease); }
.tile:hover .tag { color: var(--lime); }
.tile-text .tile-body { padding: 26px 26px 28px; }
.tile-row { display: grid; grid-template-columns: 1.25fr 1fr; }
.tile-row .tile-visual { border-bottom: 0; border-right: 1px solid var(--line); }
.tile-row .tile-body { align-self: center; }

/* a stage for one animation: its size is fixed before it loads (no layout shift) */
.stage { position: relative; width: 100%; max-width: 520px; aspect-ratio: 4 / 3; }
.stage svg { display: block; }
.anim-toggle { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; color: var(--text-3); background: rgba(11, 11, 11, 0.7); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; opacity: 0; transition: opacity 0.2s var(--ease), color 0.2s var(--ease); }
.anim-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.tile:hover .anim-toggle, .anim-toggle:focus-visible, .anim-toggle.paused { opacity: 1; }
.anim-toggle:hover { color: var(--lime); }
@media (hover: none) { .anim-toggle { opacity: 0.85; } }

/* "tell it what to do" */
.mock-ask { width: 100%; max-width: 440px; display: grid; gap: 12px; }
.ask-input { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 10px 8px 14px; border-radius: 14px; background: #151515; box-shadow: inset 0 0 0 1px var(--lime-line), 0 0 30px rgba(var(--accent-rgb), 0.08); font-size: 14px; color: var(--text); }
.ask-text { flex: 1; min-width: 0; }
.ask-text::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--lime); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ask-result { display: grid; justify-items: start; gap: 7px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.ask-tag { font-size: 11px; color: var(--lime); }
.ask-step { position: relative; padding-left: 16px; font-size: 12.5px; color: var(--text-3); }
.ask-step::before { content: ''; position: absolute; left: 2px; top: 0.5em; width: 6px; height: 6px; border-radius: 1px; background: var(--text-4); }
.ask-step:last-of-type::before { background: var(--lime); }

/* how you write */
.mock-voice { width: 100%; max-width: 460px; display: grid; gap: 8px; }
.mv-title { font-size: 11px; color: var(--text-4); letter-spacing: 0.06em; margin-bottom: 2px; }
.mv-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line); }
.mv-row > div { display: grid; gap: 2px; min-width: 0; }
.mv-row b { font-weight: 500; font-size: 13.5px; }
.mv-row > div > span { font-size: 13px; color: var(--text-3); }
.mv-row.proposed { display: grid; gap: 6px; box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.3); background: rgba(var(--accent-rgb), 0.04); }
.mv-row.proposed > .pixel { font-size: 10.5px; color: var(--lime); }
.mv-row.proposed > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mv-row.proposed > div > span:first-child { color: var(--text); }
.mv-actions { display: flex; gap: 6px; }
.mv-actions i { font-style: normal; font-size: 12px; padding: 4px 10px; border-radius: 7px; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.mv-actions i:first-child { color: var(--on-lime); background: var(--grad-base); box-shadow: none; }

/* choices and one-line summaries */
.mock-choice { width: 100%; max-width: 420px; display: grid; gap: 8px; }
.mock-choice .q { font-size: 12px; color: var(--text-2); margin-bottom: 4px; letter-spacing: 0.03em; }
.opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; font-size: 13.5px; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.opt.on { color: var(--text); background: rgba(var(--accent-rgb), 0.07); box-shadow: inset 0 0 0 1px var(--lime-line); }
.opt.on kbd { color: var(--on-lime); background: var(--lime); box-shadow: none; }
.mock-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; width: 100%; max-width: 460px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.05), rgba(255, 255, 255, 0.02)); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.25); }
.sum-line { font-size: 14px; color: var(--text); font-weight: 500; }
.sum-due { font-size: 11px; color: var(--amber); padding: 3px 7px 2px; border-radius: 99px; background: rgba(245, 200, 106, 0.1); box-shadow: inset 0 0 0 1px rgba(245, 200, 106, 0.35); }
.mock-summary .mini-btn { margin-left: auto; }

/* done, undo, scheduled */
.mock-toasts { display: grid; gap: 10px; justify-items: center; width: 100%; }
.toast { display: flex; align-items: center; gap: 10px; width: min(340px, 100%); height: 44px; padding: 0 8px 0 14px; border-radius: 12px; font-size: 13.5px; color: var(--text); background: #171717; box-shadow: inset 0 0 0 1px var(--line-strong), 0 14px 30px -14px rgba(0, 0, 0, 0.9); }
.toast.dim { color: var(--text-2); }
.toast i { width: 8px; height: 8px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.6); flex: none; }
.toast i.send { background: var(--tint); box-shadow: 0 0 10px rgba(var(--tint-rgb), 0.6); }
.toast i.clock { background: var(--amber); box-shadow: none; }
.toast-key { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--lime); padding: 5px 8px; border-radius: 8px; background: rgba(var(--accent-rgb), 0.08); }
.toast-key kbd { font-size: 10px; padding: 2px 4px 1px; }

/* recipients */
.mock-recip { width: 100%; max-width: 520px; display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #131313; box-shadow: inset 0 0 0 1px var(--line-strong); }
.rc-mode { display: inline-flex; justify-self: start; padding: 2px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 12px; }
.rc-mode span { padding: 4px 10px; border-radius: 7px; color: var(--text-3); }
.rc-mode .on { color: var(--on-lime); background: var(--grad-base); font-weight: 500; }
.rc-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rc-label { width: 26px; font-size: 12.5px; color: var(--text-4); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 3px; border-radius: 99px; font-size: 12.5px; color: var(--text); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-strong); }
.chip .av { width: 22px; height: 22px; font-size: 10px; }
.chip.bad { padding-left: 10px; color: var(--red); background: rgba(255, 107, 94, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 107, 94, 0.45); }
.rc-draft { font-size: 12px; color: var(--text-4); }
.rc-draft .pixel { color: var(--lime); margin-right: 4px; }

/* dark mode, before and after */
.compare { position: relative; width: 100%; max-width: 560px; aspect-ratio: 16 / 11; --pos: 50%; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-strong), 0 24px 50px -24px rgba(0, 0, 0, 0.9); }
.mail-sheet { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 28px; text-align: center; }
.mail-sheet.light { background: #ffffff; color: #2a2118; }
.mail-sheet.dark { background: #171717; color: #ece6dc; clip-path: inset(0 0 0 var(--pos)); }
.ms-brand { display: flex; align-items: center; gap: 8px; font: 500 13px var(--font); letter-spacing: 0.02em; }
.ms-logo { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 65% 35%, transparent 38%, #2a2118 40%); }
.dark .ms-logo { background: radial-gradient(circle at 65% 35%, transparent 38%, #2a2118 40%), #f1ebe1; box-shadow: 0 0 0 3px #f1ebe1; }
.ms-hero { display: grid; place-items: center; width: 100%; height: 30%; border-radius: 10px; background: linear-gradient(160deg, #f4b85c, #e0763b); }
.ms-sun { width: 40px; height: 40px; border-radius: 50%; background: #fff3d6; box-shadow: 0 0 0 8px rgba(255, 243, 214, 0.25); }
.ms-h { font: 500 17px/1.2 var(--font); }
.ms-p { max-width: 34ch; font-size: 12.5px; line-height: 1.5; color: #5d5246; }
.dark .ms-p { color: #b9b1a5; }
.ms-btn { margin-top: 2px; padding: 8px 16px; border-radius: 99px; font: 500 12px var(--font); color: #fff; background: #c4542b; }
.ms-foot { margin-top: auto; font-size: 10px; color: #8c8174; }
.dark .ms-foot { color: #8f877c; }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--lime); box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.7); pointer-events: none; }
.compare-line::after { content: ''; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--lime) url('/img/drag.svg') center / 16px no-repeat; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.compare-label { position: absolute; top: 10px; padding: 4px 8px 3px; border-radius: 6px; font-size: 10.5px; letter-spacing: 0.05em; pointer-events: none; }
.compare-label.l { left: 10px; color: #2a2118; background: rgba(0, 0, 0, 0.06); }
.compare-label.r { right: 10px; color: var(--lime); background: rgba(0, 0, 0, 0.5); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(.compare-range:focus-visible) { outline: 2px solid var(--lime); outline-offset: 3px; }

/* chat or mail */
.mock-view { width: 100%; max-width: 380px; display: grid; gap: 14px; }
.seg-big { justify-self: center; font-size: 12px; }
.seg-big label { padding: 6px 16px 5px; border-radius: 6px; color: var(--text-3); cursor: pointer; transition: color 0.2s var(--ease); }
.seg-big label:hover { color: var(--text); }
#view-chat:checked ~ .seg label[for='view-chat'], #view-mail:checked ~ .seg label[for='view-mail'] { color: var(--on-lime); background: var(--grad-base); }
#view-chat:focus-visible ~ .seg label[for='view-chat'], #view-mail:focus-visible ~ .seg label[for='view-mail'] { outline: 2px solid var(--lime); outline-offset: 2px; }
.view-chat, .view-mail { display: grid; gap: 8px; min-height: 152px; align-content: start; }
#view-chat:checked ~ .view-mail, #view-mail:checked ~ .view-chat { display: none; }
.b { max-width: 82%; padding: 9px 12px; font-size: 13px; border-radius: 14px; }
.b.in { justify-self: start; border-top-left-radius: 4px; color: var(--text-2); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); }
.b.out { justify-self: end; border-top-right-radius: 4px; color: var(--on-lime); background: var(--grad-base); }
.m { display: grid; gap: 3px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.m b { font-size: 12.5px; font-weight: 500; }
.m i { font-style: normal; font-size: 13px; color: var(--text-3); }

/* the file viewer */
.mock-pdf { width: 100%; max-width: 560px; display: grid; gap: 12px; justify-items: center; }
.pdf-page { display: grid; gap: 9px; align-content: start; width: min(300px, 80%); aspect-ratio: 3 / 3.6; padding: 22px 20px; border-radius: 6px; background: #fafaf7; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9); }
.pdf-title { width: 46%; height: 10px; border-radius: 3px; background: #2b2b2b; margin-bottom: 6px; }
.pdf-l { height: 6px; border-radius: 3px; background: #cfcfca; }
.w9 { width: 90%; } .w8 { width: 78%; } .w7 { width: 66%; }
.pdf-table { display: grid; grid-template-columns: 2fr 1fr; gap: 7px 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e3e3de; }
.pdf-table i { height: 6px; border-radius: 3px; background: #dadad5; }
.pdf-table i:nth-child(even) { justify-self: end; width: 60%; }
.pdf-total { justify-self: end; width: 34%; height: 10px; border-radius: 3px; background: #2f7d43; margin-top: 4px; }
.pdf-strip { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

/* read status */
.timeline { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 480px; display: grid; gap: 4px; }
.timeline li { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 30px; border-radius: 10px; font-size: 13.5px; color: var(--text); }
.timeline li::before { content: ''; position: absolute; left: 14px; top: -6px; bottom: -6px; width: 1px; background: var(--line-strong); }
.timeline li:first-child::before { top: 50%; }
.timeline li:last-child::before { bottom: 50%; }
.tl-dot { position: absolute; left: 10px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 2px; background: var(--text-3); }
.timeline li.muted { color: var(--text-4); }
.timeline li.muted .tl-dot { background: #3a3a38; }
.timeline li.real { background: rgba(var(--accent-rgb), 0.05); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.18); }
.timeline li.real .tl-dot { background: var(--lime); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.7); }
.tl-what { flex: 1; min-width: 0; }
.verdict { font-size: 10.5px; padding: 3px 7px 2px; border-radius: 99px; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line-strong); white-space: nowrap; }
.real .verdict { color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime-line); }
.tl-when { font-size: 11px; color: var(--text-4); }

/* a browser window (big files, the web) */
.browser { width: 100%; max-width: 560px; border-radius: 12px; overflow: hidden; background: #0f0f0f; box-shadow: 0 0 0 1px var(--line-strong), 0 24px 50px -24px rgba(0, 0, 0, 0.9); }
.browser-bar { display: flex; align-items: center; gap: 14px; height: 36px; padding: 0 12px; background: #161616; border-bottom: 1px solid var(--line); }
.browser-bar .lights i { width: 9px; height: 9px; }
.url { flex: 1; min-width: 0; height: 22px; padding: 0 10px; border-radius: 6px; font: 400 11.5px/22px var(--mono); color: var(--text-3); background: rgba(255, 255, 255, 0.05); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-page { position: relative; }
.file-mock { display: grid; justify-items: center; gap: 12px; padding: 26px 20px 28px; text-align: center; background: radial-gradient(80% 90% at 0% 0%, rgba(178, 226, 60, 0.16), transparent 60%), #0b0b0b; }
.fm-icon { width: 40px; height: 40px; border-radius: 10px; background: url('/img/icon-64.png') center / cover; }
.fm-title { font: 300 22px/1.15 var(--font); letter-spacing: -0.02em; }
.fm-card { display: grid; gap: 3px; width: min(320px, 100%); padding: 12px 14px; border-radius: 12px; background: rgba(18, 18, 18, 0.8); box-shadow: inset 0 0 0 1px var(--line-strong); }
.fm-card b { font-weight: 500; font-size: 14px; }
.fm-card span { font-size: 12px; color: var(--text-3); }
.fm-btn { padding: 9px 30px; border-radius: 10px; font-weight: 500; font-size: 13.5px; color: var(--on-lime); background: var(--grad-sheen), var(--grad-base); box-shadow: var(--fill-edge); }
.web-mock { display: grid; grid-template-columns: 34px 1fr 1.1fr; height: 230px; background: #0d0d0d; }
.wm-side { display: grid; align-content: start; gap: 10px; padding: 12px 10px; border-right: 1px solid var(--line); }
.wm-side i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.wm-side i.on { background: var(--lime); }
.wm-list { display: grid; align-content: start; border-right: 1px solid var(--line); }
.wm-tabs { display: flex; gap: 8px; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.wm-tabs b, .wm-tabs i { height: 6px; width: 28px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.wm-tabs b { background: var(--lime); }
.wm-row { display: flex; align-items: center; gap: 8px; padding: 11px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.wm-row i { width: 26%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); }
.wm-row b { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); }
.wm-row.u i { background: rgba(255, 255, 255, 0.4); }
.wm-row.sel { background: rgba(var(--accent-rgb), 0.07); box-shadow: inset 2px 0 0 var(--lime); }
.wm-read { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.wm-bubble { height: 34px; width: 80%; border-radius: 4px 10px 10px 10px; background: rgba(255, 255, 255, 0.07); }
.wm-card { display: grid; gap: 6px; padding: 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.3); background: rgba(var(--accent-rgb), 0.04); }
.wm-card i { width: 40%; height: 5px; border-radius: 3px; background: var(--lime); }
.wm-card b { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); }
.wm-card b + b { width: 70%; }
.wm-card em { justify-self: end; width: 30%; height: 14px; border-radius: 5px; background: var(--grad-base); }
.wm-reply { margin-top: auto; height: 24px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-strong); }

.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; padding: 0; }
.pills li { font: 400 11.5px var(--pixel); letter-spacing: 0.04em; padding: 5px 9px 4px; border-radius: 99px; color: var(--lime); background: rgba(var(--accent-rgb), 0.07); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.25); }
.accounts { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; }
.providers { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 26px 26px; font-size: 13px; letter-spacing: 0.05em; }
.providers li { padding: 8px 12px 7px; border-radius: 10px; color: var(--text-2); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line-strong); }
.providers li:last-child { color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime-line); }

/* the command palette */
.palette { width: 100%; max-width: 500px; padding: 8px; border-radius: 14px; background: #151515; box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -24px rgba(0, 0, 0, 0.9); }
.pal-input { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text); }
.pal-input .pixel { font-size: 11px; color: var(--lime); padding: 3px 6px 2px; border-radius: 5px; background: rgba(var(--accent-rgb), 0.1); }
.caret { width: 2px; height: 18px; margin-left: -8px; background: var(--lime); animation: blink 1.1s steps(1) infinite; }
.pal-hint { color: var(--text-4); font-size: 14px; }
.pal-input .caret { margin-left: 0; }
.pal-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; color: var(--text-2); }
.pal-item.on { color: var(--text); background: rgba(var(--accent-rgb), 0.08); box-shadow: inset 2px 0 0 var(--lime); }
.pal-keys { display: inline-flex; gap: 4px; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 18px 0 0; }
.keys div { display: flex; align-items: center; gap: 10px; }
.keys dt { display: flex; gap: 4px; min-width: 58px; }
.keys dd { margin: 0; font-size: 14px; color: var(--text-3); }
.extras { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 14px 0 0; padding: 0; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }
.extras li { padding: 22px 24px 24px; box-shadow: inset -1px -1px 0 var(--line); }
.extras h3 { font-size: 16px; }
.extras p { margin-top: 6px; font-size: 14.5px; color: var(--text-3); }

/* small settings rows on text tiles */
.settings { display: grid; gap: 8px; padding: 22px 26px 0; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 11px; font-size: 13.5px; color: var(--text-2); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.setting.blocked { justify-content: flex-start; gap: 8px; color: var(--text-3); }
.setting.blocked .pixel { font-size: 11px; color: var(--lime); padding: 3px 7px 2px; border-radius: 99px; background: rgba(var(--accent-rgb), 0.08); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.3); }
.switch { position: relative; flex: none; width: 34px; height: 20px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #e8e8e4; }
.switch.on { background: var(--grad-base); }
.switch.on::after { left: 17px; background: #0d0d0d; }

/* ---- privacy ------------------------------------------------------------ */

.privacy-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pv { padding: 26px 26px 28px; border-radius: 20px; background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.05), rgba(18, 18, 18, 0.6) 40%); box-shadow: inset 0 0 0 1px var(--line); }
.pv p { margin-top: 10px; color: var(--text-3); font-size: 15.5px; }
.pv-wide { grid-column: 1 / -1; background: radial-gradient(120% 160% at 0% 0%, rgba(var(--accent-rgb), 0.12), rgba(var(--deep-rgb), 0.05) 45%, rgba(18, 18, 18, 0.7) 75%); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.18); }

/* ---- platforms (the landing page's "get relay" and /download) ----------- */

.platforms { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.platform { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 90px; }
.platform:target, .platform:focus-within { box-shadow: inset 0 0 0 1px var(--lime-line); }
.platform .tag { margin-bottom: 4px; }
.platform h2, .platform h3 { margin: 0; font-size: 24px; font-weight: 400; letter-spacing: -0.01em; }
.platform > p { color: var(--text-3); font-size: 15px; line-height: 1.55; }
.platform .dl-mac, .platform .dl-web, .platform .dl-iphone { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 10px; }
.platform .btn-big { width: 100%; }
.dl-alt { font-size: 14px; color: var(--text-3); text-align: center; }
.dl-more { margin: 22px auto 0; font-size: 14px; color: var(--text-3); text-align: center; }

.waitlist { width: 100%; text-align: left; }
.waitlist-title { font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.waitlist-title .pixel { color: var(--lime); margin-right: 6px; font-size: 12px; text-transform: lowercase; }
.waitlist-row { display: flex; gap: 8px; }
.waitlist input[type='email'] {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 0;
  font: 400 15px var(--font);
  color: var(--text);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow 0.2s var(--ease);
}
.waitlist input[type='email']::placeholder { color: var(--text-4); }
.waitlist input[type='email']:focus { outline: none; box-shadow: inset 0 0 0 1px var(--lime-line), 0 0 0 3px rgba(var(--accent-rgb), 0.12); }
.waitlist-msg { font-size: 13px; color: var(--text-3); }
.waitlist-msg:not(:empty) { margin-top: 10px; }
.waitlist-msg.ok { color: var(--lime); }
.waitlist-msg.err { color: var(--red); }
.waitlist.done .waitlist-row { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.whatsnew { margin: 22px auto 0; max-width: 560px; text-align: left; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.whatsnew summary { cursor: pointer; list-style: none; padding: 12px 16px; font-size: 14px; color: var(--text-2); display: flex; gap: 10px; align-items: center; }
.whatsnew summary::-webkit-details-marker { display: none; }
.whatsnew summary .pixel { color: var(--lime); font-size: 12px; }
.whatsnew summary::after { content: '+'; margin-left: auto; font: 16px var(--pixel); color: var(--text-3); }
.whatsnew[open] summary::after { content: '-'; }
.whatsnew-body { padding: 0 18px 16px; font-size: 14.5px; color: var(--text-2); }
.whatsnew-body h4 { margin: 10px 0 4px; font-size: 14px; font-weight: 500; color: var(--text); }
.whatsnew-body p { margin: 0 0 8px; }
.whatsnew-body ul { margin: 0 0 8px; padding-left: 18px; }
.whatsnew-body li::marker { color: var(--lime); }

/* ---- faq ---------------------------------------------------------------- */

.faq-list { margin-top: 32px; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary, .faq-list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-size: 18px; color: var(--text); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font: 20px var(--pixel); color: var(--text-3); transition: color 0.2s var(--ease); }
.faq-list details[open] summary::after { content: '-'; color: var(--lime); }
.faq-list summary:hover::after { color: var(--lime); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details p { padding: 0 40px 22px 0; color: var(--text-3); font-size: 16px; max-width: 720px; }
.faq-list details a { color: var(--lime); text-underline-offset: 3px; }

/* ---- the closing call, the 404 page and the big-file pages -------------- */

.cta { padding-top: clamp(100px, 16vh, 170px); padding-bottom: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta img { border-radius: 22px; filter: drop-shadow(0 18px 40px rgba(var(--accent-rgb), 0.18)); }
.cta h2 { margin: 24px auto 0; }
.cta h2 .pixel { letter-spacing: 0; }
.cta-lead { margin-top: 14px; color: var(--text-2); font-size: 18px; font-weight: 300; }
.cta-buttons { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.notfound { min-height: calc(100vh - 160px); min-height: calc(100svh - 160px); justify-content: center; padding-top: 48px; }
.notfound .eyebrow { margin-top: 26px; }
.nf-title { margin: 12px auto 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.08; letter-spacing: -0.025em; }
.nf-title .pixel { letter-spacing: 0; }
.notfound p.cta-lead { max-width: 40ch; }

.footer {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--wrap);
  margin: 60px auto 0;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  font-size: 14px;
  color: var(--text-3);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { border-radius: 6px; }
.footer-brand .pixel { color: var(--text); font-size: 16px; }
.footer-by a, .footer-links a { color: var(--text-2); text-decoration: none; }
.footer-by a:hover, .footer-links a:hover { color: var(--lime); }
.footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-left: auto; }
.footer-note { width: 100%; font-size: 12px; color: var(--text-4); }

/* ---- the download page -------------------------------------------------- */

.dl-hero { padding-top: clamp(32px, 7vh, 80px); }
.dl-hero h1 { font-size: clamp(40px, 5.4vw, 72px); }
.dl-hero h1 .pixel { display: inline; font-size: 0.9em; }
.dl-notes { text-align: center; padding-top: 28px; }
.dl-sync { margin-top: 14px; }
.tile-body .tile-title { margin-top: 0; max-width: none; font-size: 19px; font-weight: 500; letter-spacing: -0.005em; line-height: 1.3; }
.dl-sync .tile-visual { min-height: 0; }
.dl-sync .stage { max-width: 380px; }

/* ---- reveal on scroll (only with JavaScript and motion) ------------------ */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), box-shadow 0.3s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---- smaller screens ---------------------------------------------------- */

@media (max-width: 1120px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .nav-actions { margin-left: auto; }
  .app-body { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .app-side { display: none; }
  .app-search { margin-left: 20px; }
}
@media (max-width: 960px) {
  .span-5, .span-6, .span-7 { grid-column: span 12; }
  .tile-row, .accounts { grid-template-columns: 1fr; }
  .tile-row .tile-visual { border-right: 0; border-bottom: 1px solid var(--line); }
  .providers { padding: 0 26px 26px; }
  .platforms { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { max-width: 440px; }
}
@media (max-width: 760px) {
  .app-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-list { display: none; }
  .app-status .keys { display: none; }
  .app-search { flex: 1; }
  .privacy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .nav { height: 58px; gap: 10px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .nav-actions { gap: 6px; }
  .nav .btn-small { height: 34px; padding: 0 11px; font-size: 13.5px; }
  .hero h1 .pixel { font-size: 0.74em; white-space: normal; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn-big { width: 100%; min-width: 0; }
  .hero-alt .sep { display: block; height: 6px; overflow: hidden; color: transparent; }
  .app { border-radius: 12px; font-size: 12.5px; }
  .app-top { gap: 10px; padding: 0 10px; }
  .app-search { margin-left: 4px; }
  .app-read { padding: 12px; }
  .asst-evidence { display: none; }
  .bento { gap: 12px; margin-top: 32px; }
  .tile { border-radius: 16px; }
  .tile-visual { min-height: 0; }
  .tile-body { padding: 18px 18px 22px; }
  .tile-text .tile-body { padding: 20px 18px 22px; }
  .settings { padding: 18px 18px 0; }
  .tile-body p { font-size: 15px; }
  .providers { padding: 0 18px 20px; }
  .extras { grid-template-columns: 1fr; }
  .extras li { padding: 18px 18px 20px; }
  .keys { grid-template-columns: 1fr; }
  .pv { padding: 20px 18px 22px; }
  .waitlist-row { flex-direction: column; }
  .waitlist-row input[type='email'] { flex: none; width: 100%; }
  .waitlist-row .btn { width: 100%; }
  .platform { padding: 20px 18px; }
  .mock-summary .mini-btn { margin-left: 0; }
  .toast { font-size: 12.5px; }
  .compare { aspect-ratio: 1 / 1.02; }
  .mail-sheet { gap: 8px; padding: 18px 16px; }
  .ms-hero { height: 26%; }
  .ms-h { font-size: 16px; }
  .web-mock { grid-template-columns: 24px 1fr; }
  .wm-read { display: none; }
  .faq-list summary { font-size: 16.5px; }
  .footer-links { margin-left: 0; }
}
@media (max-width: 340px) {
  .brand .pixel { display: none; }
}
