/* PubStudio website. The page is laid out like the app's File screen: the ink top bar, the File menu down the
   left, and linen pages of cards. Tokens are copied from app/renderer/editor.css so the two stay one look. */

@font-face {
  font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  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: 'JetBrains Mono Variable'; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format('woff2-variations');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono Variable'; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2-variations');
  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 {
  color-scheme: light;
  --accent: #9c2a5c;
  --accent-hover: #b03068;
  --accent-dark: #7d1f49;
  --accent-tint: #f6e5ec;
  --accent-soft: #f0cfde;
  --accent-line: #e0b3c7;
  --accent-ring: rgba(156, 42, 92, 0.16);
  --ink: #221c1f;
  --ink-raised: #312a2d;
  --ink-3: #3d3438;
  --ink-line: rgba(255, 244, 238, 0.12);
  --ink-text: #f3ece6;
  --ink-muted: #a3958f;
  --chrome: #f5f1eb;
  --card: #fffdfa;
  --well: #f3eee8;
  --line: #e5ddd3;
  --line-soft: #efe8e0;
  --line-strong: #d8cec2;
  --text: #2a2225;
  --body: #4a3f42;
  --muted: #857872;
  --faint: #ab9f97;
  --hover: #f3ede6;
  --hover-chrome: #ebe4dc;
  --desk: #e9e3db;
  --desk-dot: #d2c7ba;
  --ok: #4f8a4a;
  --warn: #d9a441;
  --ctx-drawing: #c0632b;
  --ctx-text: #2f8f86;
  --ctx-picture: #7b55b0;
  --ctx-table: #b17c12;
  --ctx-master: #4c8a3c;
  --r-sm: 6px;
  --r: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --shadow-card: 0 1px 1px rgba(70, 46, 34, 0.03), 0 1px 3px rgba(70, 46, 34, 0.04);
  --shadow-float: 0 6px 24px -10px rgba(60, 35, 25, 0.25);
  --popup-shadow: 0 2px 6px rgba(45, 28, 22, 0.07), 0 14px 36px rgba(45, 28, 22, 0.15);
  --font-ui: 'Inter Variable', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono Variable', 'JetBrains Mono', 'Cascadia Mono', Consolas, ui-monospace, monospace;
  --bar: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); }
body {
  margin: 0; background: var(--chrome); color: var(--text); font: 14px/1.55 var(--font-ui); font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.i { width: 16px; height: 16px; flex: none; }
.mono, code, kbd { font-family: var(--font-mono); font-size: .9em; font-feature-settings: 'zero'; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; padding: 8px 12px; background: var(--card); border-radius: var(--r); }
.skip:focus { left: 8px; }
.ph { padding: 0 5px; border: 1px dashed currentColor; border-radius: 4px; opacity: .8; font-weight: 500; }

/* ------------------------------------------------------------------ top bar */

.titlebar {
  position: sticky; top: 0; z-index: 50; height: var(--bar); display: flex; align-items: center; gap: 8px; padding: 0 10px;
  background: var(--ink); color: var(--ink-text); font-size: 13px;
}
.app-mark {
  flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.app-mark svg { width: 16px; height: 16px; }
.doc-title { display: flex; align-items: baseline; gap: 6px; min-width: 0; margin-left: 4px; white-space: nowrap; }
.doc-name { font-weight: 600; letter-spacing: -0.005em; }
.doc-state { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-size: 11.5px; color: var(--ink-muted); white-space: nowrap; }
.doc-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #7fae7a; }
.doc-state.dirty::before { background: var(--warn); }
.titlebar > .spacer { flex: 1 1 auto; }
.tb-menu { display: none; width: 32px; height: 30px; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--ink-text); cursor: pointer; }
.tb-menu:hover { background: var(--ink-raised); }

.tellme { position: relative; display: flex; align-items: center; width: 300px; height: 28px; }
.tellme > .i { position: absolute; left: 10px; width: 14px; height: 14px; color: var(--ink-muted); pointer-events: none; }
.tellme input {
  width: 100%; height: 100%; padding: 0 56px 0 32px; border: 0; border-radius: var(--r); font: inherit; font-size: 12.5px;
  background: var(--ink-raised); color: var(--ink-text); outline: none; box-shadow: inset 0 0 0 1px var(--ink-3);
}
.tellme input::-webkit-search-cancel-button { display: none; }
.tellme input::placeholder { color: var(--ink-muted); }
.tellme input:hover { background: #362e31; }
.tellme kbd {
  position: absolute; right: 6px; padding: 2px 6px; border-radius: 5px; background: var(--ink-3); color: var(--ink-muted); font-size: 10.5px;
  line-height: 14px; pointer-events: none;
}
.tellme:focus-within input { background: var(--ink-3); box-shadow: inset 0 0 0 1px rgba(224, 179, 199, 0.55), 0 0 0 3px rgba(224, 179, 199, 0.16); }
.tellme:focus-within > .i { color: var(--accent-line); }
.tellme:focus-within kbd { display: none; }
.q-results {
  position: absolute; top: 34px; right: 0; width: 380px; max-height: 60vh; overflow: auto; padding: 6px; background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--popup-shadow);
}
.q-results a { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: var(--r); }
.q-results a small { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.q-results a.on, .q-results a:hover { background: var(--accent-tint); }
.q-results .none { padding: 10px; color: var(--muted); font-size: 13px; }

.pro-chip {
  height: 22px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 11px; font: 600 10.5px/1 var(--font-mono); letter-spacing: .06em;
  color: var(--ink-text); box-shadow: inset 0 0 0 1px var(--ink-line);
}
.pro-chip:hover { background: var(--ink-raised); }
.tb-dl {
  height: 28px; padding: 0 11px 0 9px; display: inline-flex; align-items: center; gap: 6px; border-radius: 7px; background: var(--accent); color: #fff;
  font-weight: 500;
}
.tb-dl .i { width: 14px; height: 14px; }
.tb-dl:hover { background: var(--accent-hover); }

/* -------------------------------------------------------- File-screen frame */

.backstage { display: flex; align-items: flex-start; min-height: calc(100vh - var(--bar)); }
.bs-nav {
  position: sticky; top: var(--bar); flex: none; width: 232px; height: calc(100vh - var(--bar)); overflow-y: auto; display: flex; flex-direction: column;
  gap: 2px; padding: 14px 12px; border-right: 1px solid var(--line); background: var(--chrome);
}
.bs-back {
  height: 36px; margin: 0 0 10px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); color: var(--body); font-size: 12.5px; font-weight: 500;
}
.bs-back .i { width: 15px; height: 15px; color: var(--accent); }
.bs-back .mono { margin-left: auto; color: var(--faint); font-size: 10.5px; }
.bs-back:hover { border-color: var(--line-strong); color: var(--text); }
.bs-item {
  flex: none; height: 36px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 500;
  color: #4d4247;
}
.bs-item .i { color: #7d7176; }
.bs-item:hover { background: var(--hover-chrome); color: var(--text); }
.bs-item.cur { background: var(--accent); color: #fff; box-shadow: 0 6px 14px -8px rgba(156, 42, 92, 0.8); }
.bs-item.cur .i { color: #fff; }
.bs-item .soon {
  margin-left: auto; padding: 1px 6px; border-radius: 9px; font: 500 9.5px/15px var(--font-mono); letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); background: var(--well); box-shadow: inset 0 0 0 1px var(--line);
}
.bs-item.cur .soon { color: #fff; background: rgba(255, 255, 255, .16); box-shadow: none; }
.bs-sep { width: 100%; margin: 7px 0; border: 0; border-top: 1px solid var(--line); }
.bs-nav > .spacer { flex: 1 1 auto; min-height: 16px; }

.bs-main { flex: 1 1 auto; min-width: 0; }
.bs-page { padding: 26px 40px 32px; max-width: 1180px; }
.bs-page h1 { margin: 0 0 18px; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.bs-sub { margin: -14px 0 22px; font-size: 13px; color: var(--muted); }
.bs-sub .path { color: var(--faint); font-family: var(--font-mono); font-size: 11px; margin-left: 6px; }
.bs-page .label {
  margin: 34px 0 12px; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: #9a8d85;
}
.bs-page .label .mono { margin-left: auto; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--faint); }
.bs-page h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.bs-page h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.bs-page p { margin: 0 0 12px; color: var(--body); }
.muted { color: var(--muted) !important; }

/* ---------------------------------------------------------------- pieces */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.card.pad { padding: 20px 22px; }

.btn {
  height: 56px; display: inline-flex; align-items: center; gap: 13px; padding: 0 18px 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--card); color: var(--text); font-size: 13.5px; font-weight: 500; text-align: left; cursor: pointer; transition: background .12s, border-color .12s;
}
.btn .i { width: 22px; height: 22px; color: var(--accent); }
.btn small { display: block; font: 400 11px/1.3 var(--font-mono); color: var(--muted); }
.btn:hover { background: var(--hover); border-color: #c6b9ab; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 18px -10px rgba(156, 42, 92, .9); }
.btn.primary .i, .btn.primary small { color: rgba(255, 255, 255, .85); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.sm { height: 36px; padding: 0 13px; gap: 8px; font-size: 13px; }
.btn.sm .i { width: 16px; height: 16px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.link { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.link .i { width: 14px; height: 14px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.bs-page p a:not(.btn), .prose a, td a:not(.link):not(.btn) { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; overflow: hidden; }
.hero-text { padding: 34px 32px 30px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font: 500 11px/1 var(--font-mono); color: var(--accent); letter-spacing: .02em; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.hero h2 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -0.028em; margin: 0 0 14px; }
.hero h2 em { font-style: normal; color: var(--accent); }
.hero p.lede { font-size: 15.5px; line-height: 1.6; margin-bottom: 22px; max-width: 46ch; }
.hero .meta { margin-top: 16px; font: 11px/1.6 var(--font-mono); color: var(--faint); }
.hero-art {
  position: relative; min-height: 360px; overflow: hidden; border-left: 1px solid var(--line);
  background: var(--desk) radial-gradient(circle at 1px 1px, var(--desk-dot) 1px, transparent 1.2px) 0 0 / 14px 14px;
}
.hero-art .shot { position: absolute; left: -190px; top: 30px; width: 960px; max-width: none; }
.readout {
  position: absolute; display: inline-flex; gap: 10px; padding: 4px 9px; border-radius: 6px; background: var(--ink); color: var(--ink-text);
  font: 11px/16px var(--font-mono); box-shadow: var(--shadow-float); white-space: nowrap;
}
.readout i { font-style: normal; color: var(--ink-muted); margin-right: 3px; }

/* screenshots in a window frame */
.shot {
  border-radius: 10px; border: 1px solid rgba(34, 28, 31, .14); box-shadow: 0 1px 2px rgba(45, 28, 22, .06), 0 24px 60px -24px rgba(45, 28, 22, .38);
  background: var(--card);
}
figure { margin: 0; }
figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); }
figcaption .mono { color: var(--faint); }

/* feature tiles, styled like File > New's template cards */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } }
.tile { padding: 16px 16px 15px; display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.tile .ic { width: 34px; height: 34px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-tint); color: var(--accent); }
.tile .ic .i { width: 18px; height: 18px; }
.tile h3 { margin: 0; font-size: 13.5px; }
.tile p { margin: 0; font-size: 13px; line-height: 1.5; }
.tile small { margin-top: auto; padding-top: 6px; font: 11px var(--font-mono); color: var(--faint); }
a.tile:hover { border-color: var(--accent-line); background: #fffaf8; }

/* spec sheet: key/value in mono */
.spec { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec th { width: 34%; padding: 9px 14px 9px 0; text-align: left; vertical-align: top; font-weight: 500; color: var(--muted); }
.spec td { padding: 9px 0; color: var(--text); }
.spec tr + tr :is(th, td) { border-top: 1px solid var(--line-soft); }
.spec td.mono, .spec .mono { font-size: 12px; }
.hash { word-break: break-all; }

/* two-up layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.split.lr { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); align-items: start; }

/* the coloured-cells demonstration */
.cells-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cells-demo > div { display: flex; flex-direction: column; justify-content: center; padding: 14px; border-radius: var(--r-md); background: var(--well); border: 1px solid var(--line); }
.cells-demo .t { display: grid; grid-template-columns: 26px 1fr; width: 150px; margin: 10px auto 8px; border: 1.5px solid #3a3034; background: #fff; }
.cells-demo .t span { height: 17px; border-bottom: 1px solid #3a3034; }
.cells-demo .t span:nth-child(odd) { border-right: 1px solid #3a3034; }
.cells-demo .t span:nth-child(even) { font: 9.5px/16px var(--font-mono); padding-left: 6px; color: #3a3034; }
.cells-demo .t span:nth-last-child(-n+2) { border-bottom: 0; }
.cells-demo .k { display: flex; align-items: center; gap: 7px; font: 500 11px var(--font-mono); color: var(--muted); }
.cells-demo .k b { width: 7px; height: 7px; border-radius: 50%; }
.cells-demo .ours .k { color: var(--accent); }

/* ribbon-style tabs and groups (Features) */
.tabstrip {
  position: sticky; top: var(--bar); z-index: 10; display: flex; gap: 2px; margin: 0 -40px 18px; padding: 8px 40px; overflow-x: auto;
  background: color-mix(in srgb, var(--chrome) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); scrollbar-width: none;
}
.rtab { flex: none; height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: var(--r); font-size: 13px; font-weight: 500; color: #5d5257; }
.rtab:hover { background: var(--hover-chrome); color: var(--text); }
.rtab.cur { background: var(--accent-tint); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }
.rtab.ctx { gap: 7px; }
.rtab.ctx::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ctx); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ctx) 17%, transparent); }
.fsec { margin-bottom: 34px; }
.fsec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.fsec-head .mono { color: var(--faint); font-size: 11px; }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.rgroup { padding: 9px 14px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 1px 0 rgba(60, 40, 30, .03); }
.rgroup-label { margin-bottom: 8px; font-size: 9.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.rgroup ul { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--body); }
.rgroup li { position: relative; padding: 3px 0 3px 20px; line-height: 1.45; }
.rgroup li .i { position: absolute; left: 0; top: 5px; width: 14px; height: 14px; color: var(--accent); }
.fsec figure { margin-top: 14px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 22px 22px 20px; }
.plan.featured { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-ring), var(--shadow-card); }
.plan .badge {
  position: absolute; top: -10px; left: 20px; padding: 2px 9px; border-radius: 10px; background: var(--accent); color: #fff;
  font: 500 10.5px/16px var(--font-mono); letter-spacing: .03em;
}
.plan h3 { font-size: 15px; margin-bottom: 2px; }
.plan .for { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price b { font-size: 34px; font-weight: 650; letter-spacing: -0.03em; }
.price span { font: 12px var(--font-mono); color: var(--muted); }
.price-note { font: 11px/1.5 var(--font-mono); color: var(--faint); margin-bottom: 16px; min-height: 33px; }
.plan ul { margin: 0 0 20px; padding: 0; list-style: none; font-size: 13px; color: var(--body); flex: 1; }
.plan li { position: relative; padding: 4px 0 4px 22px; }
.plan li .i { position: absolute; left: 0; top: 7px; width: 14px; height: 14px; color: var(--accent); }
.plan li.no { color: var(--faint); }
.plan li.no .i { color: var(--faint); }
.plan .btn { width: 100%; justify-content: center; height: 42px; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.compare th, .compare td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.compare thead th { position: sticky; top: var(--bar); background: var(--card); font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 15%; }
.compare tr:last-child td { border-bottom: 0; }
.compare .i { width: 15px; height: 15px; color: var(--accent); vertical-align: -3px; }
.compare .dash { color: var(--faint); }
.compare .note { display: block; font: 10.5px var(--font-mono); color: var(--faint); }
.table-wrap { overflow-x: auto; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-weight: 500; font-size: 13.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; margin-left: auto; flex: none; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-1px); }
.faq details[open] { border-color: var(--line-strong); }
.faq .a { padding: 0 16px 14px; font-size: 13.5px; color: var(--body); }
.faq .a p:last-child { margin-bottom: 0; }

/* download, the Export page's two panes */
.choices { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); font-size: 13.5px; font-weight: 500; }
.choice .i { width: 22px; height: 22px; color: var(--accent); }
.choice small { display: block; font: 400 11px var(--font-mono); color: var(--muted); }
.choice:hover { background: var(--hover); }
.choice.cur { background: var(--accent-tint); color: var(--accent-dark); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 0 0 14px 38px; counter-increment: s; color: var(--body); font-size: 13.5px; }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 26px; height: 22px; display: grid; place-items: center;
  border-radius: 6px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); font: 500 10.5px var(--font-mono); color: var(--muted);
}
.steps li b { color: var(--text); font-weight: 600; }
.copy {
  margin-left: 6px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); color: var(--muted); font: 11px var(--font-mono);
  cursor: pointer; vertical-align: 1px;
}
.copy:hover { color: var(--accent); border-color: var(--accent-line); }
.older { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.older th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.older td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); }
.older tr:last-child td { border-bottom: 0; }

/* notice banners */
.note {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 18px; border-radius: var(--r-md); font-size: 13px; color: var(--body);
  background: #fbf3e2; border: 1px solid #ecd9ad;
}
.note .i { color: #a87a1c; margin-top: 2px; }
.note.info { background: var(--accent-tint); border-color: var(--accent-line); }
.note.info .i { color: var(--accent); }
.note p { margin: 0 !important; }

/* changelog */
.release { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.release:first-of-type { border-top: 0; padding-top: 4px; }
.release .ver { font: 600 15px var(--font-mono); color: var(--text); }
.release .date { font: 11px var(--font-mono); color: var(--faint); }
.release .tag { display: inline-block; margin-top: 6px; padding: 1px 7px; border-radius: 9px; font: 500 10px/15px var(--font-mono); background: var(--accent-tint); color: var(--accent); }
.prose { font-size: 13.5px; color: var(--body); max-width: 72ch; }
.prose h2 { margin: 26px 0 8px; font-size: 16px; color: var(--text); }
.prose h3 { margin: 18px 0 6px; font-size: 14px; color: var(--text); }
.prose ul { padding-left: 20px; margin: 0 0 12px; }
.prose li { margin: 3px 0; }
.prose li::marker { color: var(--accent); }

/* coming-soon pages */
.soon-art {
  height: 220px; margin-bottom: 18px; display: grid; place-items: center; border-radius: var(--r-lg); border: 1.5px dashed var(--line-strong);
  background: var(--chrome) radial-gradient(circle at 1px 1px, var(--desk-dot) 1px, transparent 1.2px) 0 0 / 12px 12px; color: var(--muted);
}
.soon-art .drop { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; }
.soon-art .i { width: 34px; height: 34px; color: var(--accent); }

/* footer */
.foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12.5px; color: var(--muted); }
.foot strong { color: var(--text); font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-left: auto; }
.foot-links a:hover { color: var(--accent); }
.foot .fine { flex-basis: 100%; margin: 4px 0 0; font-size: 11.5px; color: var(--faint); }

.anim { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .anim { animation: none; } * { transition: none !important; } }

/* --------------------------------------------------------------- narrow */

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; border-left: 0; border-top: 1px solid var(--line); overflow: hidden; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .price-note { min-height: 0; }
}
@media (max-width: 900px) {
  .tellme { width: 200px; }
  .hide-sm, .doc-state { display: none; }
  .tb-menu { display: grid; }
  .bs-nav {
    position: fixed; top: var(--bar); left: 0; bottom: 0; z-index: 40; height: auto; transform: translateX(-100%); transition: transform .2s;
    box-shadow: var(--popup-shadow);
  }
  body.nav-open .bs-nav { transform: none; }
  body.nav-open::after { content: ''; position: fixed; inset: var(--bar) 0 0 0; z-index: 30; background: rgba(34, 28, 31, .25); }
  .bs-page { padding: 20px 16px 28px; }
  .tabstrip { margin: 0 -16px 16px; padding: 8px 16px; }
  .split, .split.lr { grid-template-columns: 1fr; }
  .release { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 600px) {
  .tellme kbd { display: none; }
  .tellme { width: auto; flex: 1 1 auto; min-width: 0; }
  .titlebar > .spacer { display: none; }
  .tb-dl span { display: none; }
  .tb-dl { padding: 0 8px; }
  .q-results { position: fixed; top: calc(var(--bar) - 4px); left: 8px; right: 8px; width: auto; }
  .hero-text { padding: 24px 20px; }
  .hero-art { min-height: 220px; }
  .hero-art .shot { left: -250px; top: -110px; width: 720px; }
  .hero-art .readout { display: none; }
  .cells-demo { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .spec th { width: 40%; }
}

/* ------------------------------------------- "built in the editor" on scroll */
/* Each [data-build] element is drawn like a new object: a dashed marquee drags out, the content fills in
   (headings type), it sits selected with handles and an X/Y/W/H read-out, then deselects. Only with JS
   (html.build-on) and without reduced motion; otherwise everything simply shows. */

.build-on [data-build]:not(.built) { opacity: 0; transform: translate3d(0, 6px, 0) scale(.99); animation: failsafe calc(0s * var(--slow, 1)) calc(8s * var(--slow, 1)) forwards; }
.build-on [data-build].built { opacity: 1; transform: none; transition: opacity calc(.34s * var(--slow, 1)) ease-out, transform calc(.5s * var(--slow, 1)) cubic-bezier(.2, .8, .2, 1); }
.build-on [data-type]:not([data-build]):not(.typed) { visibility: hidden; }
@keyframes failsafe { to { opacity: 1; transform: none; } } /* if the script never runs, show it anyway */
.sel {
  position: absolute; left: 0; top: 0; z-index: 25; pointer-events: none; border: 1px dashed var(--accent); border-radius: 2px; opacity: 0;
  will-change: clip-path, transform;
}
.sel.live { opacity: 1; }
.sel.on { border-style: solid; }
.sel .h {
  position: absolute; width: 8px; height: 8px; margin: -4.5px 0 0 -4.5px; background: #fff; border: 1px solid var(--accent); border-radius: 2px;
  opacity: 0; transform: scale(.4); transition: opacity calc(.16s * var(--slow, 1)), transform calc(.22s * var(--slow, 1)) cubic-bezier(.3, 1.6, .5, 1);
}
.sel.on .h { opacity: 1; transform: none; }
.sel .h.rot { left: 50%; top: 0; width: 9px; height: 9px; margin-top: -24px; border-radius: 50%; background: var(--accent); }
.sel .h.rot::after { content: ''; position: absolute; left: 3px; top: 8px; width: 1px; height: 11px; background: var(--accent); }
.sel .ro, .drag-ro {
  display: flex; gap: 9px; padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--ink-text);
  font: 10.5px/16px var(--font-mono); white-space: nowrap; box-shadow: var(--shadow-float); font-variant-numeric: tabular-nums;
}
.sel .ro { position: absolute; right: 0; bottom: -31px; opacity: 0; transform: translate3d(0, -4px, 0); transition: opacity calc(.2s * var(--slow, 1)) calc(.05s * var(--slow, 1)), transform calc(.3s * var(--slow, 1)) calc(.05s * var(--slow, 1)) cubic-bezier(.2, .8, .2, 1); }
.sel.on .ro { opacity: 1; transform: none; }
.sel .ro i, .drag-ro i { font-style: normal; color: var(--ink-muted); margin-right: 3px; }
.drag-ro { position: absolute; left: 0; top: 0; z-index: 26; pointer-events: none; opacity: 0; will-change: transform; }
.drag-ro.on { opacity: 1; }
.caret { display: inline-block; width: 2px; height: .95em; margin-left: 2px; vertical-align: -0.1em; background: var(--accent); animation: blink calc(1s * var(--slow, 1)) steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* rulers along the top and left of the page, like the editor's; the selected object's extent is shaded */
.ruler { display: none; }
.build-on .ruler {
  display: block; position: fixed; z-index: 20; overflow: hidden; background: #fbf8f4; color: var(--faint); font: 9.5px/1 var(--font-mono);
  pointer-events: none;
}
.ruler.top { top: var(--bar); left: 232px; right: 0; height: 20px; border-bottom: 1px solid var(--line); }
.ruler.left { top: calc(var(--bar) + 20px); left: 232px; bottom: 0; width: 20px; border-right: 1px solid var(--line); }
.ruler .ticks { position: absolute; inset: 0; will-change: transform; }
.ruler.top .ticks { right: auto; width: 6000px; left: -2000px;
  background: linear-gradient(90deg, var(--line-strong) 1px, transparent 1px) 0 100% / 96px 9px repeat-x,
              linear-gradient(90deg, var(--line-strong) 1px, transparent 1px) 0 100% / 48px 6px repeat-x,
              linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 100% / 12px 3px repeat-x; }
.ruler.left .ticks { bottom: auto; height: 40000px; top: -2000px;
  background: linear-gradient(180deg, var(--line-strong) 1px, transparent 1px) 100% 0 / 9px 96px repeat-y,
              linear-gradient(180deg, var(--line-strong) 1px, transparent 1px) 100% 0 / 6px 48px repeat-y,
              linear-gradient(180deg, var(--line) 1px, transparent 1px) 100% 0 / 3px 12px repeat-y; }
.ruler .n { position: absolute; }
.ruler.top .n { top: 3px; margin-left: 3px; }
.ruler.left .n { left: 3px; margin-top: 3px; writing-mode: vertical-rl; transform: rotate(180deg); }
.ruler .band { position: absolute; left: 0; top: 0; background: var(--accent-tint); opacity: 0; transform-origin: 0 0; transition: opacity calc(.25s * var(--slow, 1)), transform calc(.46s * var(--slow, 1)) cubic-bezier(.22, .8, .24, 1); will-change: transform; }
.ruler.top .band { width: 1px; bottom: 0; }
.ruler.left .band { height: 1px; right: 0; }
.ruler .band.on { opacity: 1; }
.ruler .ticks, .ruler .n { z-index: 1; }
.build-on .bs-main { padding: 20px 0 0 20px; }

/* status pill, like the editor's page pill: which tool is "drawing" */
.status {
  display: none; position: fixed; left: calc(232px + 36px); bottom: 16px; z-index: 30; height: 32px; align-items: center; gap: 10px; padding: 0 12px;
  border-radius: 10px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-float); font-size: 12px; color: var(--body);
  transition: opacity calc(.3s * var(--slow, 1));
}
.build-on .status { display: inline-flex; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ctx, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ctx, var(--accent)) 17%, transparent); }
.status .mono { color: var(--muted); font-size: 11px; }
.status .sep { width: 1px; height: 14px; background: var(--line); }
.status { transition: opacity calc(.35s * var(--slow, 1)), transform calc(.35s * var(--slow, 1)) cubic-bezier(.2, .8, .2, 1); }
.status.idle { opacity: 0; transform: translate3d(0, 6px, 0); }

@media (max-width: 900px) {
  .build-on .ruler { display: none; }
  .build-on .bs-main { padding: 0; }
  .status { left: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .build-on [data-build]:not(.built) { opacity: 1; transform: none; }
  .build-on .ruler, .build-on .status { display: none; }
  .build-on .bs-main { padding: 0; }
}

/* plans as a table, built like Insert Table: the grid sweeps in cell by cell, text types into the cells,
   then the header and the Pro column take their shading */
.matrix-card { padding: 0; }
.matrix { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.matrix th, .matrix td { padding: 11px 16px; text-align: center; border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); }
.matrix tr > :last-child { border-right: 0; }
.matrix tbody th { text-align: left; font-weight: 500; color: var(--body); width: 40%; }
.matrix thead tr:first-child th { padding-top: 16px; font-size: 14px; font-weight: 600; color: var(--text); border-bottom-color: var(--line); }
.matrix thead tr:first-child th:first-child { text-align: left; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.matrix .price-row th { text-align: left; font-weight: 500; color: var(--muted); }
.matrix .price-row td { padding: 14px 16px; font: 12px var(--font-mono); color: var(--muted); }
.matrix .price-row b { font: 650 26px/1 var(--font-ui); letter-spacing: -0.03em; color: var(--text); margin-right: 3px; }
.matrix .pro { background: color-mix(in srgb, var(--accent-tint) 55%, transparent); }
.matrix thead .pro { background: var(--accent-tint); color: var(--accent-dark) !important; }
.matrix .y .i { width: 16px; height: 16px; color: var(--accent); }
.matrix .n { color: var(--faint); }
.matrix td .t { font: 12px var(--font-mono); color: var(--body); }
.matrix tfoot td, .matrix tfoot th { border-bottom: 0; padding: 14px 12px 16px; }
.matrix tfoot .btn { width: 100%; justify-content: center; }
.soon-tag { margin-left: 4px; padding: 0 6px; border-radius: 8px; font: 500 9.5px/15px var(--font-mono); text-transform: uppercase; color: var(--muted); background: var(--well); }

/* the build: .tb-grid shows cells in a diagonal sweep (--d set per cell), .tb-fill brings the shading */
.build-on .matrix-card:not(.drawn) .matrix :is(th, td) { transition: opacity calc(.3s * var(--slow, 1)) var(--d, 0ms), transform calc(.4s * var(--slow, 1)) cubic-bezier(.2, .8, .2, 1) var(--d, 0ms), background-color calc(.45s * var(--slow, 1)) var(--f, 0ms); }
.build-on .matrix-card:not(.tb-grid) .matrix :is(th, td) { opacity: 0; transform: scale(.94); }
.build-on .matrix-card:not(.tb-fill) .matrix .pro { background-color: transparent; }
.build-on .matrix-card:not(.tb-fill) .matrix .btn { opacity: 0; transform: translate3d(0, 4px, 0); }
.build-on .matrix-card .matrix .btn { transition: opacity calc(.35s * var(--slow, 1)) var(--f, 0ms), transform calc(.45s * var(--slow, 1)) cubic-bezier(.2, .8, .2, 1) var(--f, 0ms), background calc(.12s * var(--slow, 1)), border-color calc(.12s * var(--slow, 1)); }
.build-on .matrix-card:not(.tb-fill) .matrix .y .i { transform: scale(0); }
.build-on .matrix-card .matrix .y .i { transition: transform calc(.35s * var(--slow, 1)) cubic-bezier(.3, 1.6, .5, 1) var(--f, 0ms); }
.build-on .matrix-card:not(.tb-fill) .matrix .n { opacity: 0; }
.build-on .matrix-card .matrix .n { transition: opacity calc(.3s * var(--slow, 1)) var(--f, 0ms); }

.foot .credit { flex-basis: 100%; order: 2; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot .credit .vtg { width: 39px; height: 24px; flex: none; }

/* hero demo: the real editor (dist/demo/) in a frame, shown at its true 1280 x 800 layout and scaled to fit */
.hero.stack { grid-template-columns: minmax(0, 1fr); }
.hero.stack .hero-text { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 40px; align-items: end; padding: 28px 32px 24px; }
.hero.stack h2 { font-size: clamp(36px, 4vw, 54px); white-space: nowrap; }
.hero.stack .lede { font-size: 14.5px; }
.hero.stack .meta { margin-top: 12px; }
.hero.stack .hero-text h2 { margin-bottom: 12px; }
.hero.stack .lede { margin-bottom: 0; }
.hero.stack .btns { justify-content: flex-end; }
.hero.stack .meta { text-align: right; }
.hero.stack .hero-art { min-height: 0; aspect-ratio: 1280 / 800; border-left: 0; border-top: 1px solid var(--line); background: var(--ink); }
.app-demo { position: absolute; inset: 0; overflow: hidden; }
.app-demo .poster, .app-demo iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; max-width: none; border: 0; transform-origin: 0 0; transform: scale(var(--k, .75)); }
.app-demo iframe { pointer-events: none; opacity: 0; transition: opacity .5s; }
.app-demo.ready iframe { opacity: 1; }
@media (max-width: 900px) { .hero.stack .hero-text { grid-template-columns: minmax(0, 1fr); gap: 20px; } .hero.stack .btns { justify-content: flex-start; } .hero.stack .meta { text-align: left; } .hero.stack .hero-text h2 { margin-bottom: 14px; white-space: normal; } }

.tour { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-bottom: 34px; }
.tour figcaption { font-size: 13.5px; line-height: 1.55; color: var(--body); }
.tour figcaption b { color: var(--text); }
@media (max-width: 760px) { .tour { grid-template-columns: 1fr; } }
.lead-line { max-width: 70ch; font-size: 14.5px; line-height: 1.65; }
