/* Stockbit Companion — re-skinned to the linear.app design language.
   Tokens below are transcribed from Linear's own shipped CSS
   (assets/css/static.linear.app/*.css): bg-level-0..3, text/border levels,
   and the inset translucent-border card treatment. Brand accent is Stockbit's,
   sampled from the real app icon — Linear's own accent is not used. */

:root {
  /* surfaces — Linear --color-bg-level-0..3 */
  --bg: #08090a;
  --bg-2: #0f1011;
  --surface: #0f1011;
  --surface-2: #141516;
  --surface-3: #191a1b;

  /* text — Linear --color-text-primary/tertiary/quaternary */
  --fg: #f7f8f8;
  --fg-2: #d0d6e0;
  --muted: #8a8f98;
  /* brightened from Linear's #62666d (3.02:1) to meet WCAG AA 4.5:1 on all page surfaces */
  --muted-2: #7f858e;

  /* borders — Linear --color-border-primary / translucent */
  --border: #23252a;
  --border-soft: #1a1c20;
  --border-translucent: #ffffff0d;
  --border-translucent-strong: #ffffff14;

  /* brand — Stockbit, sampled from assets/stockbit/app-icon-256.png */
  --accent: #9c2cf1;
  --accent-soft: #f4629d;
  --up: #57d288;

  --font-sans: "Inter Variable", "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shell: 1160px;
  --radius: 10px;
  --radius-lg: 14px;

  /* Linear's shipped panel treatment: hairline inset ring + top highlight + soft ambient lift */
  --card-shadow: inset 0 0 0 1px var(--border-translucent), inset 0 1px 0 #ffffff0a,
    0 0 0 1px #00000059, 0 4px 4px #0000001a;
  --sheen: linear-gradient(180deg, #ffffff05 0%, #ffffff00 62%);
  --hairline: linear-gradient(
    90deg,
    transparent 0%,
    var(--border) 12%,
    var(--border) 88%,
    transparent 100%
  );

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
}

body {
  margin: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "cv01" 1, "cv09" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- background ----------
   Linear keeps its marketing canvas near-flat #08090a. What reads as "depth"
   is a single neutral-white spotlight at the top of the page, plus a barely
   perceptible brand tint — not a coloured wash. */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 50% -10%, #ffffff0a 0%, transparent 72%),
    radial-gradient(46% 34% at 50% -4%, color-mix(in oklab, var(--accent) 8%, transparent) 0%, transparent 74%);
}

/* faint dither so large dark fields never band */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.03;
  background-size: 180px 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: color-mix(in oklab, var(--accent) 42%, transparent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 32px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--fg);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus {
  left: 16px;
  top: 16px;
}

/* Vertical hairline rail down the content column — Linear's page-frame signal. */
main::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  translate: -50% 0;
  width: min(var(--shell), calc(100% - 64px));
  z-index: -1;
  pointer-events: none;
  border-inline: 1px solid var(--border-soft);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 140px, #000 calc(100% - 180px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 140px, #000 calc(100% - 180px), transparent 100%);
}

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 538;
  letter-spacing: -0.022em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
}
h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.012em;
  line-height: 1.4;
}

.lede {
  margin: 18px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.section-head .lede {
  margin-top: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 538;
  letter-spacing: -0.006em;
  cursor: pointer;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease),
    color 0.16s var(--ease), transform 0.16s var(--ease);
}
.btn svg {
  flex: none;
}

.btn-primary {
  background: #e5e5e6;
  color: #08090a;
  border-color: #e5e5e6;
}
.btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #08090a;
}
.btn-primary:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-translucent-strong);
  color: var(--fg);
}
.btn-ghost:hover {
  background: #ffffff0a;
  border-color: #ffffff26;
  color: var(--fg);
}

.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  padding-inline: 10px;
}
.btn-quiet:hover {
  color: var(--fg);
  background: #ffffff0a;
}

.link-arrow {
  color: var(--fg);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.16s var(--ease), gap 0.16s var(--ease);
}
.link-arrow:hover {
  border-color: var(--muted);
  gap: 9px;
}

/* ---------- header ---------- */

.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr[data-stuck="true"] {
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--border-translucent-strong);
}
.hdr-progress {
  display: none;
}
.hdr-in {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 538;
  font-size: 0.9375rem;
  letter-spacing: -0.012em;
  margin-right: auto;
}
.brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.brand span b {
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.nav a:hover {
  color: var(--fg);
  background: #ffffff0a;
}
.nav a[aria-current="true"] {
  color: var(--fg);
  background: #ffffff0f;
}
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border-translucent-strong);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger:hover {
  background: #ffffff0a;
}
.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--fg);
  box-shadow: 0 -5px 0 var(--fg), 0 5px 0 var(--fg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border-translucent-strong);
  background: rgba(8, 9, 10, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.mobile-nav[data-open="true"] {
  display: block;
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 14px 32px 22px;
  display: grid;
  gap: 2px;
}
.mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-size: 1rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav a:hover {
  color: var(--fg);
}

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

.hero {
  position: relative;
  padding: 176px 0 72px;
  text-align: center;
}
.hero .shell {
  display: grid;
  justify-items: center;
}
.hero h1 {
  margin-top: 22px;
  max-width: 16ch;
}
.hero .lede {
  max-width: 58ch;
  text-wrap: pretty;
}
.hero-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.platforms {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}

/* ---------- product frame ---------- */

.frame {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff05 0%, #ffffff00 42%), var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--border-translucent), inset 0 1px 0 #ffffff0a,
    0 0 0 1px #00000059, 0 24px 64px -28px #000000, 0 8px 24px -14px #000000;
  padding: 8px;
  overflow: hidden;
}
.frame img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--border-soft);
}
.hero-frame {
  margin-top: 60px;
  width: 100%;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 8px 14px;
}
.frame-bar i {
  display: none;
}
.frame-bar em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}

/* ---------- stats ---------- */

.stats {
  margin-top: 112px;
  position: relative;
}
.stats::before,
.stats::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hairline);
}
.stats::before {
  top: 0;
}
.stats::after {
  bottom: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  padding: 44px 32px;
  border-left: 1px solid var(--border-soft);
}
.stat:first-child {
  border-left: 0;
  padding-left: 0;
}
.stat-n {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 538;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-l {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- sections ---------- */

.sec {
  padding: clamp(96px, 11vw, 152px) 0;
}
.sec-tight {
  padding: clamp(80px, 9vw, 120px) 0;
}

/* Linear's marketing header block: centred label + title + muted line. */
.sec-head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
  max-width: 720px;
  margin-inline: auto;
}
.sec-head h2 {
  max-width: 22ch;
}
.sec-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.sec-meta span + span::before {
  content: "·";
  margin-right: 10px;
  color: var(--border);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: center;
}
.split-rev .split-copy {
  order: 2;
}

.check {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.check li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.9375rem;
  color: var(--fg-2);
}
.check svg {
  margin-top: 3px;
  color: var(--muted);
}

/* ---------- setup steps ---------- */

.steps {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-soft);
  box-shadow: inset 0 0 0 1px var(--border-translucent);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.step {
  background: var(--bg);
  padding: 34px 30px 38px;
}
.step-n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}
.step h3 {
  margin-top: 18px;
}
.step p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  text-wrap: pretty;
}
code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--border-translucent);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--fg);
}

/* ---------- chat demo ---------- */

.chat-panel {
  border-radius: var(--radius-lg);
  background: var(--sheen), var(--surface);
  box-shadow: var(--card-shadow);
  padding: 22px;
}
.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--border-translucent-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.bubble {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border-translucent);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 0.9375rem;
}
.reply {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--border-translucent);
}
.reply-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.reply-hd b {
  color: var(--fg);
  font-weight: 500;
}
.reply-tag {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--border-translucent-strong);
  background: #ffffff0a;
  border-radius: 999px;
  padding: 2px 8px;
}
.reply-cap {
  margin: 4px 0 0;
  color: var(--muted-2);
  font-size: 0.75rem;
  text-wrap: pretty;
}
.reply-bd {
  padding: 16px;
  display: grid;
  gap: 12px;
}
.mini {
  display: grid;
  gap: 10px;
}
.mini-row {
  display: grid;
  grid-template-columns: 96px 1fr 52px;
  gap: 12px;
  align-items: center;
  font-size: 0.8125rem;
}
.mini-row span:first-child {
  font-family: var(--font-mono);
  color: var(--muted);
}
.mini-row span:last-child {
  text-align: right;
  font-family: var(--font-mono);
  color: var(--muted-2);
}
.bar {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
  position: relative;
}
.bar i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 3px;
  background: #ffffff38;
}
.mini-row span.up {
  color: var(--up);
}
.mini-row span.dn {
  color: var(--muted-2);
}

.demo-fact {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--fg-2);
  text-wrap: pretty;
}
.demo-fact svg {
  margin-top: 3px;
  color: var(--muted);
}
.demo-fact b {
  color: var(--fg);
  font-weight: 538;
}

.prompts {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prompt {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 0.8125rem;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
    background 0.16s var(--ease);
}
.prompt:hover {
  color: var(--fg);
  border-color: #33373d;
  background: #ffffff0a;
}
.prompt[aria-pressed="true"] {
  color: var(--fg);
  border-color: #3a3f46;
  background: #ffffff14;
}
.prompt[aria-pressed="true"]:hover {
  border-color: #4a5058;
  background: #ffffff1c;
}
.prompt-note {
  margin: 20px 0 0;
  color: var(--muted-2);
  font-size: 0.8125rem;
}

/* ---------- gallery ---------- */

.gallery {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.shot {
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: var(--card-shadow);
  padding: 8px;
  cursor: zoom-in;
  text-align: left;
  transition: box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
  display: grid;
  gap: 12px;
}
.shot:hover {
  box-shadow: inset 0 0 0 1px var(--border-translucent-strong), inset 0 1px 0 #ffffff0a,
    0 0 0 1px #00000059, 0 10px 20px -6px #00000040;
  transform: translateY(-2px);
}
.shot img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--border-soft);
}
.shot .shot-cap {
  padding: 0 6px 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 32px;
  background: rgba(8, 9, 10, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox[data-open="true"] {
  display: grid;
}
.lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--border-translucent-strong), 0 24px 64px -24px #000;
}
.lightbox-cap {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}
.lb-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-translucent-strong);
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lb-close:hover {
  background: var(--surface-2);
  border-color: #3a3f46;
}

.lb-stage {
  display: grid;
  justify-items: center;
}
.lb-count {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.lb-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-translucent-strong);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.lb-nav:hover {
  background: var(--surface-2);
  border-color: #3a3f46;
}
.lb-prev {
  left: 22px;
}
.lb-next {
  right: 22px;
}

/* ---------- feature tiles ---------- */

.bento {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-soft);
  box-shadow: inset 0 0 0 1px var(--border-translucent);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tile {
  padding: 32px 30px 36px;
  background: var(--bg);
}
.tile-wide {
  grid-column: span 2;
}
.tile-full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: center;
}
.tile h3 {
  margin-top: 16px;
}
.tile p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  text-wrap: pretty;
}
.chips {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border-translucent);
  border-radius: 999px;
  padding: 5px 11px;
}
.tile-full .chips {
  margin-top: 0;
  justify-content: flex-end;
}
.tile-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border-translucent-strong);
  display: grid;
  place-items: center;
  color: var(--fg);
}

/* ---------- feature list tabs ---------- */

.tabs-shell {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  align-items: start;
}
.tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-right: 1px solid var(--border-soft);
  background: var(--bg-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 9px 13px;
  text-align: left;
  font-size: 0.8125rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.tab:hover {
  color: var(--fg);
  background: #ffffff0a;
}
.tab[aria-selected="true"] {
  color: var(--fg);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--border-translucent);
}
.tab b {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--muted-2);
  margin-left: 7px;
}
.tab[aria-selected="true"] b {
  color: var(--muted);
}

.panel {
  display: none;
  padding: 30px 28px 34px;
}
.panel[data-active="true"] {
  display: block;
}
.panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
}
.panel li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.9063rem;
  color: var(--fg-2);
}
.panel li svg {
  margin-top: 4px;
  color: var(--muted-2);
}

/* ---------- read-only ---------- */

.readonly {
  border-radius: var(--radius-lg);
  padding: 56px 52px;
  background: var(--sheen), var(--surface);
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.readonly h2 {
  margin-top: 18px;
}
.readonly ul {
  margin: 0;
}

.disclaimer {
  margin-top: 36px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--border-translucent);
  color: var(--muted-2);
  font-size: 0.8125rem;
  line-height: 1.65;
  text-wrap: pretty;
}

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

.faq {
  margin-top: 48px;
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--border-soft);
}
.qa {
  border-bottom: 1px solid var(--border-soft);
}
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 44px 24px 0;
  position: relative;
  font-size: 1.0625rem;
  font-weight: 538;
  letter-spacing: -0.012em;
  transition: color 0.16s var(--ease);
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary:hover {
  color: var(--fg);
}
.qa summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s var(--ease), border-color 0.16s var(--ease);
}
.qa[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
  border-color: var(--fg);
}
.qa p {
  margin: 0;
  padding: 0 60px 26px 0;
  color: var(--muted);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

/* ---------- download ---------- */

.dl-card {
  border-radius: var(--radius-lg);
  background: var(--sheen), var(--surface);
  box-shadow: var(--card-shadow);
  padding: 46px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: center;
}
.dl-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dl-head img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--border-translucent-strong);
}
.dl-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.dl-req {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.dl-actions {
  display: grid;
  gap: 10px;
}
.dl-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--border-translucent-strong);
  border-radius: 10px;
  background: #ffffff05;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.dl-btn:hover {
  background: #ffffff0d;
  border-color: #ffffff26;
}
.dl-btn span {
  display: grid;
  gap: 2px;
  text-align: left;
}
.dl-btn small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.03em;
}
.dl-btn strong {
  font-weight: 538;
  font-size: 0.9375rem;
}
.dl-note {
  margin: 24px 0 0;
  color: var(--muted-2);
  font-size: 0.8125rem;
}

/* ---------- prefooter ---------- */

.prefooter {
  position: relative;
  text-align: center;
  padding: clamp(104px, 12vw, 152px) 0;
  overflow: hidden;
}
.prefooter::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--hairline);
}
.prefooter .eyebrow {
  justify-content: center;
}
.prefooter h2 {
  max-width: 20ch;
  margin-inline: auto;
}
.prefooter .lede {
  margin-inline: auto;
  max-width: 46ch;
}
.prefooter .hero-cta {
  margin-top: 30px;
}

/* ---------- footer ---------- */

.ftr {
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 56px;
  background: var(--bg);
}
.ftr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.ftr-grid h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 400;
}
.ftr-grid ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ftr-grid a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.16s var(--ease);
}
.ftr-grid a:hover {
  color: var(--fg);
}
.ftr-brand img {
  width: 44px;
  height: auto;
}
.ftr-brand p {
  margin: 18px 0 0;
  max-width: 34ch;
  color: var(--muted-2);
  font-size: 0.8125rem;
  line-height: 1.65;
}
.ftr-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 0.8125rem;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hdr-in {
    height: 60px;
  }
  .nav,
  .hdr-actions .btn-ghost {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .hdr-actions {
    margin-left: auto;
  }
  .split,
  .readonly,
  .dl-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split-rev .split-copy {
    order: 0;
  }
  .steps,
  .bento,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .tile-wide,
  .tile-full {
    grid-column: auto;
  }
  .tile-full {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .tile-full .chips {
    justify-content: flex-start;
  }
  .stat {
    border-left: 0;
    border-top: 1px solid var(--border-soft);
    padding: 28px 0;
  }
  .stat:first-child {
    border-top: 0;
  }
  .hero {
    padding-top: 136px;
  }
  .ftr-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  main::before {
    display: none;
  }
  .shell {
    padding-inline: 22px;
  }
  .tabs-shell {
    grid-template-columns: 1fr;
  }
  .tabs {
    flex-direction: row;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .tab {
    width: auto;
    white-space: nowrap;
  }
  .gallery,
  .panel ul {
    grid-template-columns: 1fr;
  }
  .readonly {
    padding: 36px 26px;
  }
  .dl-card {
    padding: 32px 24px;
  }
  .steps {
    margin-top: 40px;
  }
  .hero-frame {
    margin-top: 44px;
  }
  .ftr-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .qa p {
    padding-right: 12px;
  }
  .lede {
    font-size: 1rem;
  }
  .lightbox {
    padding: 68px 16px 76px;
  }
  .lightbox img {
    max-height: 62vh;
  }
  .lb-nav {
    width: 42px;
    height: 42px;
    top: auto;
    bottom: 16px;
    translate: 0 0;
  }
  .lb-prev {
    left: calc(50% - 48px);
  }
  .lb-next {
    right: calc(50% - 48px);
  }
  .lb-close {
    top: 12px;
    right: 12px;
  }
  .mini-row {
    grid-template-columns: 72px 1fr 46px;
  }
}
