/* Working demos of the app, drawn with the app's own colours. */
:root { --w-bg: #fff; --w-text: #17181c; --w-body: #1f2024; --w-muted: #6b6d74; --w-faint: #737579; --w-line: #f1f1ef; --w-border: #ebebe8; --w-track: #f3f3f1; --w-fill: #f6f6f4; --w-accent: #8a5223; --w-mark: #f4e27a; --w-add: rgba(46,139,87,.12); --w-del: rgba(200,69,59,.1); }
.demo-section { padding-top: clamp(72px, 10vw, 128px); }
.demo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(28px, 5vw, 64px); align-items: center; }
.demo-row.wide { grid-template-columns: 1fr; }
.demo-copy { max-width: 460px; }
.demo-row.wide .demo-copy { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.demo-copy h3 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -.028em; line-height: 1.12; }
.demo-copy p { margin-top: 14px; font-size: 17px; color: var(--body); }
.demo-copy .note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
kbd { font: 500 13px "Geist Mono", ui-monospace, monospace; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: #fff; }
.win { background: var(--w-bg); color: var(--w-body); border-radius: 12px; box-shadow: 0 0 0 1px rgba(20,20,30,.07), 0 24px 60px -24px rgba(20,20,30,.28); overflow: hidden; font-size: 15px; line-height: 1.6; text-align: left; min-width: 0; }
.win-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--w-line); font-size: 13px; }
.lights { display: flex; gap: 7px; margin-right: 6px; flex: none; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #e3e3e0; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--w-border); border-radius: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.pill small { font-weight: 400; color: var(--w-faint); font-size: 13px; }
.win-bar .gap { flex: 1; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--w-track); }
.seg button { border: 0; background: transparent; color: var(--w-muted); height: 26px; padding: 0 10px; border-radius: 6px; font: 500 12.5px Inter, system-ui, sans-serif; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--w-text); box-shadow: 0 1px 2px rgba(20,20,30,.1); }
.page { padding: 28px clamp(20px, 5vw, 56px); min-height: 280px; }
.page h1 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.15; letter-spacing: -.028em; font-weight: 700; color: #111214; margin: 0 0 .55em; }
.page h2 { font-size: 20px; letter-spacing: -.015em; font-weight: 600; margin: 1.2em 0 .35em; color: #111214; }
.page h3 { font-size: 16px; font-weight: 600; margin: 1em 0 .3em; }
.page p, .page ul, .page ol, .page blockquote, .page table, .page pre { margin: 0 0 .75em; }
.page ul, .page ol { padding-left: 1.3em; }
.page .task { list-style: none; margin-left: -1.3em; }
.page .task input { margin-right: 8px; accent-color: #17181c; }
.page code { font: 13px "Geist Mono", ui-monospace, monospace; background: var(--w-fill); padding: .1em .3em; border-radius: 4px; }
.page pre { background: var(--w-fill); padding: 12px 14px; border-radius: 4px; overflow: auto; }
.page pre code { background: none; padding: 0; }
.page blockquote { border-left: 2px solid var(--w-border); padding-left: 14px; color: var(--w-muted); }
.page table { border-collapse: collapse; width: 100%; font-size: 14px; }
.page th, .page td { text-align: left; border-bottom: 1px solid var(--w-border); padding: 3px 4px; }
.page mark { background: var(--w-mark); border-radius: 2px; }
.page a { color: var(--w-accent); text-decoration: none; }
.tcaret { display: inline-block; width: 1.5px; height: 1.15em; margin-left: 1px; vertical-align: text-bottom; background: var(--w-text); animation: blink 1.1s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-demo { max-width: 960px; margin: 56px auto 0; padding-inline: 24px; }
.hero-demo .page { min-height: 420px; }
/* Try it */
.tryit-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.tryit-body textarea { width: 100%; height: 100%; min-height: 420px; padding: 24px; border: 0; border-right: 1px solid var(--w-line); resize: none; outline: none; background: transparent; color: #2f3137; font: 13.5px/1.7 "Geist Mono", ui-monospace, monospace; }
.tryit-body[data-mode="pretty"] { grid-template-columns: 1fr; }
.tryit-body[data-mode="pretty"] textarea { display: none; }
.tryit-body[data-mode="code"] { grid-template-columns: 1fr; }
.tryit-body[data-mode="code"] .page { display: none; }
.tryit-body[data-mode="code"] textarea { border-right: 0; }
.tryit-body .page { min-height: 0; overflow: auto; max-height: 520px; }
@media (max-width: 640px) { .tryit-body { grid-template-columns: 1fr; } .tryit-body textarea { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--w-line); } }
/* Panels */
.search-field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-bottom: 1px solid var(--w-line); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: inherit; font: inherit; font-size: 17px; }
.hint { font: 500 11px "Geist Mono", ui-monospace, monospace; color: var(--w-muted); border: 1px solid var(--w-border); border-radius: 5px; padding: 1px 6px; flex: none; }
.rows { padding: 8px; min-height: 236px; }
.row-item { padding: 9px 12px; border-radius: 9px; }
.row-item:first-child { background: var(--w-track); }
.row-item b { display: block; font-weight: 600; font-size: 14px; color: var(--w-text); }
.row-item span { font-size: 13px; color: var(--w-muted); }
.row-item mark { background: #fbe9b7; color: inherit; border-radius: 2px; }
.empty { padding: 16px; color: var(--w-faint); font-size: 14px; }
.ask { padding: 20px; }
.ask-q { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 22px; background: #17181c; color: #fff; font-size: 14.5px; }
.ask-a { min-height: 96px; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--w-fill); font-size: 14.5px; }
.ask-a small { display: block; margin-top: 8px; color: var(--w-muted); font-size: 12px; }
.bars { display: inline-flex; gap: 2px; align-items: center; height: 16px; }
.bars i { width: 2px; height: 5px; background: #fff; border-radius: 1px; animation: talk .7s ease-in-out infinite alternate; }
.bars i:nth-child(2) { animation-delay: .15s; } .bars i:nth-child(3) { animation-delay: .3s; } .bars i:nth-child(4) { animation-delay: .45s; }
@keyframes talk { to { height: 15px; } }
/* Review */
.review { padding: 14px; display: grid; gap: 10px; min-height: 340px; align-content: start; }
.rv-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 2px 4px 6px; font-size: 13.5px; color: var(--w-muted); }
.card { border: 1px solid var(--w-border); border-radius: 10px; overflow: hidden; transition: opacity .25s, transform .25s; }
.card.out { opacity: 0; transform: scale(.98); }
.card-head { display: flex; align-items: center; gap: 6px; padding: 7px 10px; font-size: 12.5px; font-weight: 500; color: var(--w-muted); }
.card-head span { flex: 1; }
.mini { height: 26px; padding: 0 10px; border: 1px solid var(--w-border); border-radius: 7px; background: #fff; color: var(--w-text); font: 500 12px Inter, system-ui, sans-serif; cursor: pointer; }
.mini:hover { background: var(--w-fill); }
.mini.dark { background: #17181c; border-color: #17181c; color: #fff; }
.del, .add { display: flex; gap: 8px; padding: 6px 10px; font: 12.5px/1.55 "Geist Mono", ui-monospace, monospace; color: #2f3137; }
.del { background: var(--w-del); } .add { background: var(--w-add); }
.del::before { content: "−"; color: var(--w-muted); } .add::before { content: "+"; color: var(--w-muted); }
/* Live editing */
.collab { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.collab .page { min-height: 300px; padding: 22px; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; }
.browser-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--w-line); font-size: 12.5px; color: var(--w-muted); }
.browser-bar .url { flex: 1; min-width: 0; height: 26px; padding: 0 10px; border-radius: 7px; background: var(--w-fill); display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.who-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 10.5px; font-weight: 600; flex: none; }
.rc { position: relative; display: inline-block; width: 0; height: 1em; }
.rc::before { content: ""; position: absolute; left: -1px; top: -.1em; width: 2px; height: 1.35em; background: var(--c); }
.rc span { position: absolute; left: -1px; top: -1.5em; padding: 0 5px; border-radius: 3px; background: var(--c); color: #fff; font: 500 10px/1.55 Inter, system-ui, sans-serif; white-space: nowrap; }
.lock-line { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--muted); }
@media (max-width: 720px) { .collab { grid-template-columns: 1fr; } }
/* Git */
.git { padding: 18px; display: grid; gap: 12px; min-height: 340px; align-content: start; }
.step { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--w-faint); transition: color .3s; }
.step i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--w-border); display: grid; place-items: center; font-style: normal; font-size: 11px; color: #fff; flex: none; transition: background .3s, border-color .3s; }
.step.done { color: var(--w-text); }
.step.done i { background: #2e8b57; border-color: #2e8b57; }
.pr { border: 1px solid var(--w-border); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.pr.show { opacity: 1; transform: none; }
.pr b { display: block; font-size: 14px; }
.pr .meta { color: var(--w-muted); font-size: 12.5px; }
.pr .rc-note { margin-top: 8px; padding: 8px 10px; background: var(--w-fill); border-radius: 8px; }
.typed { min-height: 40px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--w-border); border-radius: 10px; font-size: 14px; }
/* PDF */
.pdf-stage { display: grid; place-items: center; padding: 22px; background: var(--w-fill); min-height: 400px; }
.sheet { width: min(100%, 300px); aspect-ratio: 1 / 1.414; background: #fff; box-shadow: 0 8px 28px -10px rgba(20,20,30,.3); padding: 9% 9% 7%; display: flex; flex-direction: column; font-size: 9.5px; line-height: 1.55; transition: all .3s var(--ease); overflow: hidden; }
.sheet .sheet-title { margin: 0 0 8px; font-size: 19px; letter-spacing: -.02em; font-weight: 700; color: #111214; }
.sheet .sheet-sub { margin: 10px 0 3px; font-size: 11px; font-weight: 600; }
.sheet p { margin: 0 0 6px; }
.sheet .lh { display: none; margin: -4% 0 12px; padding-bottom: 7px; border-bottom: 1px solid #111; justify-content: space-between; font-size: 8px; }
.sheet .num { margin-top: auto; text-align: center; color: var(--w-muted); font-size: 8px; }
.sheet.letterhead .lh { display: flex; }
/* As in the app: Clean's type, narrower margins, and the page number in the corner. */
.sheet.minimal { padding: 7% 7% 6%; }
.sheet.minimal .num { text-align: right; }
/* Small tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 72px 28px; margin-top: 52px; }
.tile { display: flex; flex-direction: column; min-width: 0; }
.tile .win { flex: 1; min-height: 216px; }
.tile h3 { margin-top: 18px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.tile p { margin-top: 4px; font-size: 14.5px; color: var(--body); }
.tile-body { padding: 16px; font-size: 13.5px; }
.focus-p { transition: opacity .35s; margin: 0 0 10px; }
.focus-on .focus-p:not(.cur) { opacity: .76; }
.focus-on .focus-p.cur { color: var(--w-text); }
.lock-body { position: relative; min-height: 150px; }
.lock-body > * { transition: opacity .4s; }
.cipher { position: absolute; inset: 0; font: 11.5px/1.5 "Geist Mono", ui-monospace, monospace; word-break: break-all; color: var(--w-muted); opacity: 0; }
.locked .cipher { opacity: 1; } .locked .plain { opacity: 0; }
.keyboard { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.keyboard button { min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid var(--w-border); border-bottom-width: 3px; border-radius: 7px; background: #fff; font: 500 12px Inter, system-ui, sans-serif; color: var(--w-text); cursor: pointer; }
.keyboard button:active { transform: translateY(2px); border-bottom-width: 1px; }
.vers input { width: 100%; accent-color: #17181c; }
.vers .vtext { min-height: 92px; margin-top: 8px; font: 12.5px/1.55 "Geist Mono", ui-monospace, monospace; white-space: pre-wrap; }
.vers .when { font-size: 12.5px; color: var(--w-muted); }
.clip-row { padding: 7px 10px; border-radius: 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-row:first-child { background: var(--w-track); }
.outline { display: flex; gap: 12px; }
.dashes { display: grid; gap: 7px; padding-top: 5px; flex: none; }
.dashes i { display: block; height: 2px; width: 18px; background: #cfd0cc; border-radius: 1px; transition: background .2s; }
.dashes i.sub { width: 11px; } .dashes i.cur { background: #17181c; }
.outline-list { flex: 1; min-width: 0; line-height: 1.75; }
.outline-list div { transition: color .2s; color: var(--w-faint); }
.outline-list div.cur { color: var(--w-text); font-weight: 500; }
.stack { position: relative; height: 180px; }
.stack .mini-win { position: absolute; width: 74%; height: 130px; background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px rgba(20,20,30,.08), 0 10px 26px -12px rgba(20,20,30,.3); padding: 10px 12px; font-size: 12px; transition: transform .4s var(--ease); }
.stack .mini-win b { display: block; font-size: 13px; margin-bottom: 2px; }
.stack .mini-win:nth-child(2) { left: 18%; top: 34px; }
.dockmenu { font-size: 13px; border: 1px solid var(--w-border); border-radius: 8px; padding: 5px; box-shadow: 0 8px 22px -12px rgba(20,20,30,.3); }
.dockmenu div { padding: 4px 9px; border-radius: 5px; }
.dockmenu div:first-child { background: var(--w-accent); color: #fff; }
.term { font: 12px/1.65 "Geist Mono", ui-monospace, monospace; color: #2f3137; }
.term .dim { color: var(--w-muted); }
.theme-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; height: 100%; min-height: 216px; }
.theme-pair > div { padding: 16px; font-size: 13px; }
.theme-pair b { display: block; font-size: 17px; letter-spacing: -.02em; margin-bottom: 5px; }
.theme-pair .dark { background: #1a1917; color: #e2e2de; }
.tmpl { display: flex; align-items: center; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; border: 0; background: transparent; width: 100%; color: inherit; text-align: left; cursor: pointer; font-family: inherit; }
.tmpl.cur, .tmpl:hover { background: var(--w-track); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.commented { background: rgba(181,72,122,.13); box-shadow: inset 0 -1.5px 0 #b5487a; cursor: pointer; }
.balloon { margin-top: 10px; padding: 10px 12px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(20,20,30,.07), 0 10px 24px -14px rgba(20,20,30,.35); font-size: 13px; transition: opacity .3s, transform .3s; }
.balloon b { font-size: 12.5px; }
.balloon.hide { opacity: 0; transform: translateY(4px); }
@media (prefers-reduced-motion: reduce) { .tcaret, .bars i { animation: none; } .card, .pr, .step, .sheet { transition: none; } }

#ana-dot { background: #2e8b70; }

.tryit-body textarea, .page code, .page pre, .del, .add, .term { font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; }
.tile .page { min-height: 0; padding: 12px 16px; font-size: 13.5px; }
.tile .page h1 { font-size: 18px; }
.tile .page h2 { font-size: 15px; margin-top: .7em; }

/* The app's small touches */
.tb-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: #5d5f66; flex: none; }
.win-bar { gap: 6px; }
.stain { color: #a9692f; flex: none; }
.pill { gap: 5px; }
.pill small { margin-left: -3px; }
.bar-extra { display: inline-flex; align-items: center; gap: 4px; }
.tb-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border: 1px solid var(--w-border); border-radius: 8px; font-weight: 500; font-size: 12.5px; color: var(--w-text); }
.seg button { display: inline-grid; place-items: center; min-width: 30px; padding: 0 6px; }
.seg.static { padding: 2px; margin: 0 2px; }
.seg.static i { display: inline-grid; place-items: center; width: 27px; height: 24px; border-radius: 6px; color: var(--w-muted); }
.seg.static i.on { background: #fff; color: var(--w-text); box-shadow: 0 1px 2px rgba(20,20,30,.1); }
@media (max-width: 860px) { .bar-extra { display: none; } }
.hero-demo .win { position: relative; }
.guide { position: absolute; left: 14px; top: 82px; display: grid; gap: 7px; }
.guide i { display: block; width: 18px; height: 2px; border-radius: 1px; background: #cfd0cc; }
.guide i.sub { width: 11px; }
.guide i.cur { background: #17181c; }
/* Checkboxes as the app draws them */
.page .task input { appearance: none; -webkit-appearance: none; position: relative; width: 16px; height: 16px; margin: 0 9px 0 0; vertical-align: -3px; border: 1.5px solid #c9cac6; border-radius: 4.5px; background: #fff; opacity: 1; }
.page .task input:checked { background: #17181c; border-color: #17181c; }
.page .task input:checked::after { content: ""; position: absolute; left: 4.2px; top: 1.2px; width: 4px; height: 7.5px; border: solid #fff; border-width: 0 1.7px 1.7px 0; transform: rotate(42deg); }
.page .task:has(input:checked) { color: var(--w-muted); }

/* A comment, as the app draws it */
.balloon { padding: 12px 14px; border-radius: 14px; }
.bl-entry + .bl-entry { margin-top: 12px; }
.bl-head { display: flex; align-items: center; gap: 8px; }
.bl-head b { font-size: 13px; font-weight: 600; color: var(--w-text); }
.bl-when { font-size: 12px; color: var(--w-faint); flex: 1; }
.bl-avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--who); color: #fff; font-size: 11px; font-weight: 600; box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px var(--who); margin: 3px; }
.page .bl-text { margin: 3px 0 0 38px; font-size: 13.5px; line-height: 1.5; color: var(--w-body); }
.bl-resolve { width: 18px; height: 18px; padding: 0; flex: none; border: 1.5px solid #c9cac6; border-radius: 50%; background: transparent; cursor: pointer; }
.bl-resolve:hover, .bl-resolve.on { border-color: #2e8b57; background: #2e8b57; }
.bl-reply { margin-top: 12px; }
.bl-reply input { width: 100%; height: 32px; padding: 0 10px; border: 1px solid var(--w-border); border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 13px; outline: none; }
.bl-reply input:focus { border-color: var(--w-faint); }

/* Opening */
.splash { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: #fff; transition: opacity .55s ease; }
.splash:not(.show) { display: none; }
.splash.done { opacity: 0; pointer-events: none; }
html.splashing { overflow: hidden; }
.splash-ring { color: #a9692f; overflow: visible; }
.splash-draw { stroke-dasharray: 389.6; stroke-dashoffset: 389.6; opacity: .8; animation: splash-draw .75s cubic-bezier(.32,.72,0,1) .1s forwards; transform-origin: 94px 104px; transform: rotate(-70deg); }
.splash-fill { opacity: 0; animation: splash-soak .9s ease .35s forwards; }
.splash-drip { opacity: 0; transform-origin: 166px 54px; transform: scale(.3); animation: splash-drip .35s cubic-bezier(.32,.72,0,1) .7s forwards; }
.splash-name { min-height: 34px; font: 600 26px/1.3 Inter, -apple-system, system-ui, sans-serif; letter-spacing: -.02em; color: #17181c; }
.splash-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.14em; background: #17181c; animation: blink 1s steps(2, jump-none) infinite; }
@keyframes splash-draw { to { stroke-dashoffset: 0; } }
@keyframes splash-soak { to { opacity: .07; } }
@keyframes splash-drip { to { opacity: .7; transform: scale(1); } }
@media (max-width: 720px) { .guide { display: none; } }

/* Demos hold their size. Nothing on the page moves while someone's reading it. */
#hero-page { height: 372px; min-height: 0; overflow: hidden; }
.tryit-body { height: 480px; }
.tryit-body textarea { height: 480px; min-height: 0; overflow: auto; }
.tryit-body .page { height: 480px; max-height: none; }
#review { height: 372px; overflow: auto; }
.collab .page { height: 330px; min-height: 0; overflow: hidden; }
#git { height: 340px; overflow: hidden; }
#search-rows { height: 300px; min-height: 0; overflow: hidden; }
.ask { height: 224px; overflow: hidden; }
.ask-a { height: 130px; overflow: hidden; }
.tile .win { flex: none; height: 300px; min-height: 0; overflow: hidden; }
.tile-body { height: 100%; }
.tile .win .search-field + .tile-body { height: calc(100% - 52px); overflow: auto; }
#tmpl-list + * { height: auto; }
.tile .win:has(#tmpl-list) .tile-body:first-child { height: auto; padding-bottom: 4px; }
.tile .win:has(#tmpl-list) #tmpl-out { height: 168px; overflow: hidden; }
#comment-thread { max-height: 132px; overflow: auto; }
.tile .win .page.tile-body { overflow: auto; }
@media (max-width: 640px) {
  #hero-page { height: 560px; }
  .tryit-body { height: auto; }
  .tryit-body textarea { height: 260px; }
  .tryit-body .page { height: 340px; }
  .collab .page { height: 300px; }
}

.paste { position: relative; }
.paste-from { position: absolute; left: 16px; top: 16px; margin: 0; font: 13px/1.8 "Geist Mono", ui-monospace, monospace; color: var(--w-muted); tab-size: 10; transition: opacity .35s; }
.paste-to { position: absolute; inset: 16px 16px auto; padding: 0; opacity: 0; transition: opacity .35s; }
.paste-from.gone { opacity: 0; }
.paste-to.here { opacity: 1; }
.sections { position: relative; }
.sec-row { position: absolute; left: 16px; right: 16px; top: 16px; height: 38px; display: flex; align-items: center; padding: 0 12px; border-radius: 9px; background: var(--w-fill); font-size: 14px; font-weight: 500; transition: transform .45s var(--ease), box-shadow .25s, background .25s; }
.sec-row.lift { background: #fff; box-shadow: 0 0 0 1px rgba(20,20,30,.08), 0 10px 24px -10px rgba(20,20,30,.35); z-index: 1; }
.doc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--w-line); }
.doc-msg { font-size: 13.5px; }
.doc-where { font-size: 12px; color: var(--w-faint); }
.capture-win { background: var(--w-fill); }
.capture-desk { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.capture { width: 100%; height: 46px; display: flex; align-items: center; padding: 0 14px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(20,20,30,.07), 0 14px 30px -14px rgba(20,20,30,.4); font-size: 15px; }
.capture-hint { font-size: 12.5px; color: var(--w-muted); }
.capture-line { font: 12px "Geist Mono", ui-monospace, monospace; color: var(--w-muted); }

/* Answers as you write */
.calc-kinds { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; font-size: 14.5px; }
.calc-kinds li { display: grid; gap: 1px; }
.calc-kinds b { font-weight: 600; color: var(--heading); }
.calc-kinds span { color: var(--muted); font-variant-ligatures: none; }
.calc-demo { position: relative; height: 600px; overflow: hidden; }
.calc-demo textarea, .calc-results { font-size: 16px; line-height: 34px; padding: 22px 28px; }
.calc-demo textarea { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; resize: none; outline: 0; background: transparent; color: var(--text); white-space: pre; overflow: auto; font-family: inherit; font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; caret-color: var(--accent); }
.calc-results { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.calc-results div { height: 34px; text-align: right; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-note { grid-column: 1 / -1; margin-top: 10px; text-align: right; font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) {
  .calc-demo { height: 440px; }
  .calc-demo textarea, .calc-results { font-size: 14px; padding: 16px; }
}

/* A Word document dropped on the window. */
.import-demo { position: relative; height: 340px; overflow: hidden; background: var(--w-bg); }
.import-file { position: absolute; left: 50%; top: 50%; width: 132px; margin: -82px 0 0 -66px; display: grid; justify-items: center; gap: 10px; font-size: 12.5px; color: var(--w-muted); transition: transform .55s cubic-bezier(.3, .7, .2, 1), opacity .4s .25s; }
.import-file b { font-weight: 500; white-space: nowrap; }
.import-sheet { width: 84px; height: 108px; padding: 16px 12px; display: grid; gap: 9px; align-content: start; border: 1px solid var(--w-line); border-radius: 6px; background: var(--w-bg); box-shadow: 0 6px 20px rgba(23, 24, 28, .1); }
.import-sheet i { height: 3px; border-radius: 2px; background: #1f5fbf; opacity: .75; }
.import-sheet i:nth-child(n+2) { background: var(--w-muted); opacity: .3; }
.import-sheet i:last-child { width: 62%; }
.import-file.gone { transform: scale(.7); opacity: 0; }
.import-note { position: absolute; inset: 22px 28px auto; padding: 0; opacity: 0; transition: opacity .4s .2s; }
.import-note.here { opacity: 1; }
.import-told { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 7px 14px; border: 1px solid var(--w-line); border-radius: 999px; background: var(--w-bg); box-shadow: 0 3px 8px rgba(0, 0, 0, .06); font-size: 12px; color: var(--w-body); white-space: nowrap; opacity: 0; transition: opacity .35s .5s; }
.import-told.here { opacity: 1; }
@media (max-width: 480px) { .import-told { font-size: 11px; padding: 6px 10px; white-space: normal; width: 86%; text-align: center; } }

/* Pictures of what the app draws: math and diagrams. */
.feature-pic { display: flex; align-items: center; justify-content: center; background: var(--w-bg); }
.feature-pic img { max-width: 100%; max-height: 100%; height: auto; object-fit: contain; }
.book-toc { display: flex; flex-direction: column; gap: 10px; }
.book-toc b { font-size: 16px; }
.book-toc .dim { color: var(--w-muted); }
.book-toc ol { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.book-toc li { padding: 6px 10px; border-radius: 7px; background: var(--w-fill); }

/* What's saved in the file next to what Coffee and a PDF show. */
.saved-vs-shown { grid-column: 1 / -1; margin-top: 56px; }
.saved-vs-shown h3 { font-size: 20px; letter-spacing: -.01em; }
.saved-vs-shown > p { max-width: 62ch; margin: 8px 0 22px; color: var(--body); }
.saved-vs-shown code { font: 500 .9em "Geist Mono", ui-monospace, monospace; }
.sv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sv-pane { margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; min-width: 0; }
.sv-pane figcaption { padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); background: var(--surface); }
.sv-pane ul { list-style: none; margin: 0; padding: 14px 16px 16px; font-size: 14px; line-height: 28px; }
.sv-pane li { display: flex; justify-content: space-between; gap: 12px; white-space: nowrap; min-height: 28px; }
.sv-pane li b { font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.sv-file ul { font: 400 13px/28px "Geist Mono", ui-monospace, monospace; color: var(--text); }
.sv-h { font-weight: 600; color: var(--heading); }
.sv-app .sv-h { font-size: 16px; }
.sv-pdf ul { font-size: 13px; color: var(--text); }
.sv-pdf li { display: block; white-space: normal; }
.sv-pdf li span { color: var(--accent); }
.sv-pdf .sv-h { font-size: 18px; letter-spacing: -.02em; }
@media (max-width: 860px) { .sv-grid { grid-template-columns: 1fr; } }

/* Feature tiles: links, callouts, Style Check, palette, pictures, Spotlight, Tidy. */
.lk { position: relative; }
.lk-link { color: var(--w-accent); border-bottom: 1px solid currentColor; }
.lk-tip { margin: 8px 0 14px 24px; padding: 10px 12px; border-radius: 9px; background: var(--w-bg); box-shadow: 0 0 0 1px rgba(20,20,30,.08), 0 10px 24px -10px rgba(20,20,30,.3); font-size: 13px; line-height: 1.5; color: var(--w-muted); }
.lk-tip b { display: block; color: var(--w-text); font-weight: 600; }
.lk-from { font-size: 13px; margin: 0; }
.co { border-left: 3px solid #2e8b57; background: rgba(46,139,87,.07); border-radius: 0 8px 8px 0; padding: 10px 14px; }
.co b { display: block; color: #2e7a4f; font-weight: 600; font-size: 13px; }
.co sup, .fn sup { color: var(--w-accent); font-size: .7em; }
.fn { font-size: 12.5px; color: var(--w-muted); margin-top: 16px; }
.sc { margin: 0; }
.sc-mark { text-decoration: underline dotted var(--w-accent) 2px; text-underline-offset: 4px; }
.cp-q { flex: 1; font-size: 17px; color: var(--w-text); }
.cp { padding: 8px; }
.cp-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 7px; font-size: 14px; }
.cp-row.on { background: var(--w-track); }
.cp-row kbd { font: 500 11px "Geist Mono", ui-monospace, monospace; color: var(--w-muted); }
.pic-hit { display: flex; gap: 14px; align-items: center; }
.pic-hit b { display: block; font-weight: 600; }
.pic-hit .dim { font-size: 13px; }
.pic-hit mark { background: var(--w-mark); border-radius: 2px; }
.pic-thumb { flex: none; width: 64px; height: 48px; border-radius: 6px; background: #eef0ee; box-shadow: inset 0 0 0 1px var(--w-border); display: grid; align-content: center; gap: 5px; padding: 0 10px; }
.pic-thumb i { display: block; height: 3px; border-radius: 2px; background: #3f6fb5; opacity: .55; }
.pic-thumb i:nth-child(2) { width: 70%; } .pic-thumb i:nth-child(3) { width: 45%; }
.sl-bar { padding: 10px 14px; border-radius: 10px; background: var(--w-fill); font-size: 17px; color: var(--w-text); margin-bottom: 8px; }
.sl-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 7px; font-size: 14px; }
.sl-row b { font-weight: 500; }
.sl-row.on { background: var(--w-track); }
.sl-row .dim { font-size: 12.5px; }
.tidy { display: grid; gap: 10px; }
.tidy pre { margin: 0; font: 12.5px/1.6 "Geist Mono", ui-monospace, monospace; padding: 8px 12px; border-radius: 6px; background: var(--w-fill); overflow: auto; }
.tidy-before { color: var(--w-muted); }
.tidy pre { font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; }
.tile .dim { color: var(--w-muted); }
.pic-hit .dim { display: block; }

/* The small things, done right. */
.details h2 { max-width: 20ch; }
.detail-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.detail-list li { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.detail-list b { font-weight: 600; color: var(--heading); font-size: 16px; }
.detail-list span { color: var(--body); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 860px) { .detail-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .detail-list { grid-template-columns: 1fr; gap: 20px; } }

/* Folders and replace tiles */
.fl { font-size: 13.5px; }
.fl-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; border-radius: 6px; }
.fl-sec { font-size: 11px; font-weight: 500; color: var(--w-muted); letter-spacing: .02em; margin-top: 6px; }
.fl-note b { font-weight: 500; }
.fl-dir { color: var(--w-body); }
.fl-sel { background: var(--w-track); font-weight: 500; }
.fl-in { padding-left: 22px; }
.fl .dim { font: 11px "Geist Mono", ui-monospace, monospace; }
.rp { display: grid; gap: 6px; font-size: 13.5px; }
.rp-note { display: flex; justify-content: space-between; margin-top: 4px; }
.rp-note b { font-weight: 600; }
.rp-note .dim { font: 11px "Geist Mono", ui-monospace, monospace; }
.rp-line { color: var(--w-muted); padding-left: 10px; }
.rp-line s { color: var(--w-faint); }
.rp-line em { font-style: normal; font-weight: 600; color: var(--w-accent); }
