@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --bg-2: #111113;
  --panel: #151517;
  --panel-2: #1c1c1f;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #ededef;
  --text-2: #a3a3ab;
  --text-3: #8b8b94;
  --accent: #f26a1b;
  --accent-2: #ff7d33;
  --ok: #3dbd7d;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --r: 12px;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: rgba(242, 106, 27, .35); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow > * { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #170a03; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
::-webkit-scrollbar { width: 12px; } ::-webkit-scrollbar-thumb { background: #2a2a2e; border-radius: 12px; border: 3px solid var(--bg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 9px; font-weight: 550; font-size: 15px; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn .ic { width: 17px; height: 17px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 20px; font-size: 16px; border-radius: 10px; }
.btn-primary { background: var(--accent); color: #170a03; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); }
.btn:active { transform: translateY(1px); }
.link { display: inline-flex; gap: 8px; align-items: center; color: var(--text-2); }
.link:hover { color: var(--text); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(11, 11, 12, .78); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 16px; letter-spacing: -.01em; }
.links { display: flex; gap: 4px; }
.links a { color: var(--text-2); font-size: 14px; padding: 6px 10px; border-radius: 7px; transition: color .15s, background .15s; }
.links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.links a[aria-current="page"] { color: var(--text); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; color: var(--text-2); font-size: 13px; font-weight: 550; cursor: pointer; border: 1px solid var(--line); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); border-color: var(--line-2); }
.lang summary .ic { width: 15px; height: 15px; }
.lang-menu { position: absolute; right: 0; top: 40px; min-width: 170px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 5px; box-shadow: 0 18px 40px rgba(0,0,0,.5); display: grid; }
.lang-menu a { padding: 7px 10px; border-radius: 6px; font-size: 14px; color: var(--text-2); }
.lang-menu a:hover { background: rgba(255,255,255,.06); color: var(--text); }
.lang-menu a[aria-current] { color: var(--text); }
.lang-menu a[aria-current]::after { content: "✓"; float: right; color: var(--accent); }

/* Hero */
.hero { padding: 96px 0 0; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 640px; background: linear-gradient(to bottom, rgba(255,255,255,.035), transparent); pointer-events: none; }
.hero-in { text-align: center; position: relative; }
.hero h1 { font-size: clamp(40px, 6.4vw, 80px); letter-spacing: -.04em; line-height: 1.02; max-width: 15ch; margin: 0 auto; font-weight: 620; }
.lead { color: var(--text-2); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 60ch; margin-top: 22px; }
.hero .lead { margin: 22px auto 0; }
.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.fine { color: var(--text-3); font-size: 14px; margin-top: 18px; }

/* Signature: live command demo */
.demo-wrap { margin-top: 56px; display: flex; justify-content: center; position: relative; z-index: 2; margin-bottom: -46px; }
.demo { width: min(640px, 100%); background: rgba(28, 28, 31, .92); backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 1px 0 rgba(255,255,255,.06) inset; overflow: hidden; text-align: left; }
.demo-field { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 18px; }
.demo-field .ic { color: var(--text-3); width: 20px; height: 20px; }
.demo-q:empty::before { content: attr(data-placeholder); color: var(--text-3); }
.caret { width: 2px; height: 22px; background: var(--accent); margin-left: -10px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-sug { padding: 6px; }
.demo-cmd { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; background: rgba(242, 106, 27, .16); font-size: 15px; }
.demo-cmd .ic { color: var(--accent); }
.demo-cmd em { color: var(--text-2); font-style: normal; }
.demo-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14px; transition: opacity .3s; }
.demo-file { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-res { font-family: var(--mono); font-size: 13px; color: var(--text); }
.demo-ok { display: flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 550; }
.demo-ok .ic { width: 15px; height: 15px; }
.demo .is-hidden { opacity: 0; }

/* App screenshots in a window frame */
.shot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #141415; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 8px 20px rgba(0,0,0,.35); }
.shot-bar { height: 30px; display: flex; gap: 7px; align-items: center; padding: 0 12px; background: #19191b; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3e; }
.hero-shot { max-width: 1080px; margin: 0 auto; }
.hero .wrap:last-child { position: relative; }
.hero .wrap:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

/* Sections */
.sec { padding: 120px 0 0; }
.sec.tight { padding-top: 56px; }
.sec-head { max-width: 680px; margin-bottom: 40px; }
.sec-head h2, .page-hero h1 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.035em; }
.sec-head p { color: var(--text-2); font-size: 18px; margin-top: 16px; line-height: 1.55; }
.page-hero { padding: 88px 0 24px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 64px); max-width: 18ch; }

/* Tabs */
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; margin-bottom: 28px; flex-wrap: wrap; }
.tabs button { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border: 0; background: none; color: var(--text-2); font: 550 15px var(--font); border-radius: 8px; cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--panel-2); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 0 0 1px var(--line); }
.tabs button[aria-selected="true"] .ic { color: var(--accent); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; animation: fade .25s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.tp-text h3 { font-size: 26px; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 22px; }
.tool-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.tool-list li { display: grid; gap: 2px; padding: 13px 0; border-top: 1px solid var(--line); }
.tool-list li:last-child { border-bottom: 1px solid var(--line); }
.tool-list b { font-weight: 600; }
.tool-list span { color: var(--text-2); font-size: 15px; }

/* Proof */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof > div { padding: 32px 28px 32px 0; }
.proof > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.big { display: block; font-family: var(--mono); font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; font-weight: 500; white-space: nowrap; }
.proof p { color: var(--text-2); margin-top: 10px; max-width: 32ch; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts > div { padding: 24px 24px 0 0; }
.facts dt { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.facts dt .ic { color: var(--ok); width: 17px; height: 17px; }
.facts dd { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }

.final { padding-bottom: 40px; }
.final-in { text-align: center; padding: 72px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); display: flex; flex-direction: column; align-items: center; }
.final-in img { margin-bottom: 22px; }
.final-in h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.035em; }
.final-in p { color: var(--text-2); margin-top: 12px; }
.final-in .cta { margin-top: 26px; }

/* Features page */
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.jump a { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 9px; color: var(--text-2); font-size: 15px; }
.jump a:hover { color: var(--text); border-color: rgba(255,255,255,.24); }
.fam { scroll-margin-top: 70px; }
.fam-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.fam-in.flip > div:first-child { order: 2; }
.fam h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(28px, 3vw, 40px); }
.fam h2 .ic { width: 28px; height: 28px; color: var(--accent); }
.fam .lead { margin: 14px 0 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cell h3 { font-size: 17px; letter-spacing: -.01em; }
.cell p { color: var(--text-2); margin-top: 8px; font-size: 15px; }

/* Download */
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dl-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
.dl-card.mine { border-color: rgba(242, 106, 27, .55); }
.dl-card h2 { display: flex; align-items: center; gap: 12px; font-size: 26px; }
.dl-card h2 .ic { width: 24px; height: 24px; }
.dl-card > p { color: var(--text-2); margin: 6px 0 22px; }
.two { display: flex; gap: 10px; flex-wrap: wrap; }
.steps { color: var(--text-2); margin: 24px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 18px; }
.narrow h2 { font-size: 24px; margin: 48px 0 12px; letter-spacing: -.02em; }
.narrow h2:first-child { margin-top: 0; }
.narrow > p, .prose { color: var(--text-2); font-size: 17px; line-height: 1.7; margin-top: 10px; }
.kv { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.kv th { text-align: left; font-weight: 550; color: var(--text); padding: 12px 20px 12px 0; border-top: 1px solid var(--line); width: 34%; vertical-align: top; }
.kv td { color: var(--text-2); padding: 12px 0; border-top: 1px solid var(--line); }
.kv code { font: 12.5px/1.6 var(--mono); color: var(--text-2); word-break: break-all; }

/* Changelog */
.release { display: grid; grid-template-columns: 150px 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.rel-meta { display: grid; gap: 4px; align-content: start; }
.ver { font-family: var(--mono); font-size: 15px; color: var(--accent); }
.rel-meta time { color: var(--text-3); font-size: 14px; }
.release h2 { font-size: 22px; margin: 0 0 12px; }
.release ul { color: var(--text-2); padding-left: 18px; margin: 0; display: grid; gap: 6px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: 19px; font-weight: 550; letter-spacing: -.01em; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3); transform: rotate(45deg); margin-top: 6px; transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq details p { color: var(--text-2); padding: 0 0 22px; max-width: 65ch; line-height: 1.7; }

/* About */
.about-in { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.mono-mark { width: 132px; height: 132px; border-radius: 30px; display: grid; place-items: center; font-family: var(--mono); font-size: 46px; font-weight: 500; letter-spacing: -.04em; background: var(--panel-2); border: 1px solid var(--line-2); }
.about-in .cta { justify-content: flex-start; margin-top: 24px; }

/* Support, privacy */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.panel h2 { font-size: 24px; }
.panel p { color: var(--text-2); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.callout { font-size: 19px; color: var(--text); padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 40px; line-height: 1.5; }
.nf { min-height: 50vh; }
.nf .btn { margin-top: 28px; }

/* Footer */
.foot { margin-top: 120px; border-top: 1px solid var(--line); padding: 56px 0 36px; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--text-3); margin-top: 12px; font-size: 14px; max-width: 30ch; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-h { font-size: 13px; color: var(--text); font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.foot-col a { color: var(--text-2); }
.foot-col a:hover { color: var(--text); }
.foot-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--text-3); font-size: 13px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .caret { animation: none; } .tab-panel { animation: none; } }

@media (max-width: 960px) {
  .links { display: none; }
  .tab-panel, .fam-in { grid-template-columns: 1fr; gap: 28px; }
  .fam-in.flip > div:first-child { order: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 56px; }
  .sec { padding-top: 80px; }
  .proof { grid-template-columns: 1fr; }
  .proof > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts, .grid3, .dl, .two-col { grid-template-columns: 1fr; }
  .release { grid-template-columns: 1fr; gap: 10px; }
  .about-in { grid-template-columns: 1fr; gap: 24px; }
  .mono-mark { width: 92px; height: 92px; border-radius: 22px; font-size: 32px; }
  .demo-field { font-size: 16px; }
  .demo-row { grid-template-columns: 1fr auto; }
  .demo-res { grid-column: 1 / -1; grid-row: 2; }
  .demo-cmd em { display: none; }
  .tabs { display: flex; width: 100%; }
  .tabs button { flex: 1; justify-content: center; padding: 0 8px; }
  .kv th { width: 40%; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .nav-in { gap: 12px; }
  .dl-card, .panel { padding: 22px; }
}
.tab-panel[hidden] { display: none; }

/* ================= Motion =================
   Focal moment: the hero, where the demo's size bar shrinks 149 MB → 9.1 MB.
   Everything else explains state (tabs, FAQ, menus) or continuity (page changes).
   Content is visible by default; motion only runs once JS adds .js. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* Page-to-page continuity: the header stays put, the page crossfades. */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: .18s ease-in both vt-out; }
::view-transition-new(root) { animation: .32s var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* Hero entrance, in reading order */
.js .hero-in > *, .js .page-hero .wrap > * { animation: rise .8s var(--ease-out) both; }
.js .hero-in > :nth-child(2), .js .page-hero .wrap > :nth-child(2) { animation-delay: .08s; }
.js .hero-in > :nth-child(3), .js .page-hero .wrap > :nth-child(3) { animation-delay: .16s; }
.js .hero-in > :nth-child(4), .js .page-hero .wrap > :nth-child(4) { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
.js .demo { animation: drop .7s .32s var(--ease-out) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-12px) scale(.97); } }

/* The signature: the size bar shrinks to the result */
.demo-row { position: relative; }
.demo-bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255,255,255,.06); overflow: hidden; }
.demo-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--to, 1)); transition: transform 1.1s var(--ease-out), background .4s; }
.demo-bar.shrunk i { background: var(--ok); }
.demo-res { transition: color .3s; }
.demo-ok { transition: opacity .3s, transform .4s var(--ease-out); }
.demo-row.is-hidden .demo-ok { opacity: 0; transform: translateX(-6px); }
.demo .is-hidden { opacity: 0; transform: translateY(-4px); }
.demo-cmd, .demo-row { transition: opacity .3s, transform .35s var(--ease-out); }

/* The product comes into focus as it scrolls in */
.js .hero-shot { animation: shot-in 1s .45s var(--ease-out) both; }
@keyframes shot-in { from { opacity: 0; transform: translateY(40px); } }
@supports (animation-timeline: view()) {
  .js .hero-shot img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; transform-origin: 50% 0; }
  @keyframes settle { from { transform: perspective(1600px) rotateX(9deg) scale(.95); filter: brightness(.7); } }
}

/* Section headings and lists arrive once, when they enter the view */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js .stagger.in > * { opacity: 1; transform: none; }

/* Tabs: a sliding indicator, panels crossfade */
.tabs { position: relative; }
.tab-ind { position: absolute; top: 3px; left: 0; height: 36px; border-radius: 8px; background: var(--panel-2); box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 0 0 1px var(--line); transition: transform .35s var(--ease-out), width .35s var(--ease-out); z-index: 0; }
.tabs.has-ind button { position: relative; z-index: 1; }
.tabs.has-ind button[aria-selected="true"] { background: none; box-shadow: none; }
.tab-panel { animation: panel-in .45s var(--ease-out); }
.tab-panel .shot { animation: shot-swap .55s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes shot-swap { from { opacity: 0; transform: scale(.98); filter: blur(4px); } }
.tool-list li { transition: background .2s; }

/* Counting numbers */
.big { font-variant-numeric: tabular-nums; }

/* FAQ answers open smoothly where the browser supports it */
@supports selector(::details-content) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease-out), content-visibility .35s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* Menus and controls */
.lang[open] .lang-menu { animation: pop .18s var(--ease-out); transform-origin: top right; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.btn .ic { transition: transform .25s var(--ease-out); }
.btn-ghost:hover .ic:last-child { transform: translateX(3px); }
.btn-primary:hover .ic:first-child { transform: translateY(2px); }
.jump a, .tabs button { transition: color .15s, border-color .15s, background .15s; }
.shot { transition: transform .5s var(--ease-out), box-shadow .5s; }
.fam .shot:hover { transform: translateY(-4px); box-shadow: 0 40px 90px rgba(0,0,0,.65), 0 8px 20px rgba(0,0,0,.35); }

@media (prefers-reduced-motion: reduce) {
  .js .hero-in > *, .js .page-hero .wrap > *, .js .demo, .js .hero-shot, .tab-panel, .tab-panel .shot { animation: fade-only .3s both; }
  @keyframes fade-only { from { opacity: 0; } }
  .js .hero-shot img { animation: none !important; }
  .js .reveal, .js .stagger > * { transform: none; transition: opacity .3s; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .01s; }
  .demo-bar i { transition: none; }
  .shot, .btn .ic { transition: none; }
}
.fine-link { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; margin-left: 4px; white-space: nowrap; }
.fine-link:hover { color: var(--text); }
@media (max-width: 680px) { .cta .btn-lg { width: 100%; } .fine-link { white-space: normal; } }

/* Guides */
.crumbs { display: flex; gap: 8px; color: var(--text-3); font-size: 14px; margin-bottom: 18px; }
.crumbs a { color: var(--text-2); } .crumbs a:hover { color: var(--text); }
.guide-hero h1 { font-size: clamp(32px, 4.4vw, 52px); max-width: 22ch; }
.answer { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--line-2); border-left: 0; border-radius: 12px; background: var(--panel); font-size: 18px; line-height: 1.6; color: var(--text); max-width: 760px; }
.cta-left { justify-content: flex-start; }
.howto { list-style: none; counter-reset: s; padding: 0; margin: 0 0 32px; display: grid; gap: 0; }
.howto li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.howto li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); font: 600 14px var(--mono); color: var(--accent); }
.howto b { font-weight: 600; } .howto span { color: var(--text-2); }
.guide-hero + .sec .shot { margin: 8px 0 24px; }
.guide-list { list-style: none; padding: 0; margin: 0; }
.guide-list li { border-top: 1px solid var(--line); }
.guide-list li:last-child { border-bottom: 1px solid var(--line); }
.guide-list a { display: grid; gap: 4px; padding: 18px 0; transition: padding .2s var(--ease-out); }
.guide-list a:hover { padding-left: 6px; }
.guide-list b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.guide-list span { color: var(--text-2); font-size: 15px; }
.tip .ic { color: var(--accent); width: 15px; height: 15px; }
@media (max-width: 680px) { .tip { padding: 0; width: 32px; } .tip span { display: none; } }

/* ================= Web tools ================= */
.webtool { border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); padding: 20px; display: grid; gap: 14px; margin: 8px 0 40px; }
.wt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wt-head b { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.wt-private { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); }
.wt-private .ic { width: 14px; height: 14px; }
.wt-drop { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 26px 16px; border: 1.5px dashed var(--line-2); border-radius: 12px; color: var(--text-2); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.wt-drop:hover, .wt-drop.over { border-color: var(--accent); background: rgba(242, 106, 27, .06); }
.wt-drop b { color: var(--text); font-weight: 600; }
.wt-drop .ic { color: var(--accent); width: 22px; height: 22px; }
.wt-files { display: grid; gap: 6px; }
.wt-files:empty { display: none; }
.wt-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; background: var(--panel-2); font-size: 14px; }
.wt-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-file em { font-style: normal; color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.wt-file button { width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--text-3); display: grid; place-items: center; cursor: pointer; }
.wt-file button:hover { background: rgba(255,255,255,.07); color: var(--text); }
.wt-file .ic { width: 15px; height: 15px; }
.wt-opts { display: grid; gap: 10px; }
.wt-opts:empty { display: none; }
.wt-opt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wt-opt > span { color: var(--text-2); font-size: 14px; min-width: 84px; }
.wt-opt.wt-col { flex-direction: column; align-items: stretch; }
.wt-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.wt-chips button { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: 500 14px var(--font); cursor: pointer; }
.wt-chips button:hover { color: var(--text); }
.wt-chips button.on { border-color: var(--accent); color: var(--text); background: rgba(242, 106, 27, .14); }
.wt-input { height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 15px var(--font); min-width: 160px; }
.wt-input:focus { outline: none; border-color: var(--accent); }
.wt-run { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wt-run .btn:disabled { opacity: .45; cursor: not-allowed; }
.wt-status { color: var(--text-2); font-size: 14px; }
.wt-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.wt-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.webtool:not(.busy) .wt-bar i[style*="100%"] { background: var(--ok); }
.wt-out { display: grid; gap: 6px; }
.wt-out:empty { display: none; }
.wt-result { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(61, 189, 125, .35); background: rgba(61, 189, 125, .08); font-size: 14px; animation: fade .3s var(--ease-out); }
.wt-result:hover { background: rgba(61, 189, 125, .14); }
.wt-result .ic { color: var(--ok); width: 16px; height: 16px; }
.wt-result span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.wt-result em { font-style: normal; color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.wt-result .saved { color: var(--ok); }
.wt-note { color: var(--text-2); font-size: 14px; }
.wt-app { color: var(--text-3); font-size: 13.5px; border-top: 1px solid var(--line); padding-top: 12px; }
.wt-app a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.wt-video { width: 100%; max-height: 300px; border-radius: 10px; background: #000; }
.wt-sign { display: grid; gap: 10px; }
.wt-sigtabs { display: flex; gap: 4px; }
.wt-sigtabs button { height: 30px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line-2); background: none; color: var(--text-2); font: 500 14px var(--font); cursor: pointer; }
.wt-sigtabs button.on { color: var(--text); border-color: var(--accent); }
.wt-pad { width: 100%; height: 140px; background: #fff; border-radius: 10px; touch-action: none; cursor: crosshair; }
.wt-typed { font: 34px "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive; height: 70px; background: #fff; color: #111; }
.wt-sigbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.wt-hint { color: var(--text-3); font-size: 13.5px; }
.wt-pages { display: grid; gap: 14px; justify-items: center; max-height: 640px; overflow: auto; padding: 4px; }
.wt-pages:empty { display: none; }
.wt-page { position: relative; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.4); max-width: 100%; }
.wt-page canvas { display: block; }
.wt-placed { position: absolute; cursor: move; touch-action: none; border: 1px dashed transparent; }
.wt-placed:hover { border-color: var(--accent); }
.wt-placed img { width: 100%; height: 100%; display: block; pointer-events: none; }
.wt-placed span { color: #111; font-family: Helvetica, Arial, sans-serif; white-space: nowrap; pointer-events: none; }
.wt-placed button { position: absolute; top: -10px; right: -10px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #111; color: #fff; cursor: pointer; display: none; line-height: 1; }
.wt-placed:hover button { display: block; }
.tools-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tools-nav a { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 9px; color: var(--text-2); font-size: 15px; }
.tools-nav a:hover { color: var(--text); }
.tool-sec { scroll-margin-top: 80px; }
.tool-sec h2 { font-size: 26px; margin: 40px 0 6px; }
.tool-sec > p { color: var(--text-2); margin-bottom: 16px; }
.try-h { font-size: 20px; margin: 4px 0 12px; }
@media (max-width: 680px) { .webtool { padding: 14px; } .wt-opt > span { min-width: 0; width: 100%; } }
