/* ==========================================================================
   悦音森林 Aranyalive — site stylesheet
   Two lights, one core: "day" is the free edition's light workspace,
   "night" is the PRO workspace. Every surface picks one of the two themes
   through semantic tokens, so a component looks native in either.
   ========================================================================== */

@font-face {
  font-family: "Aranya Display";
  src: url("/assets/fonts/display-sc-600-bd2cacb028.woff2") format("woff2"), url("/assets/fonts/display-sc-600-2d7cd7b3d0.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aranya Mono";
  src: url("/assets/fonts/mono-400-d9425ff07d.woff2") format("woff2"), url("/assets/fonts/mono-400-c0f6698bb9.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Aranya Mono";
  src: url("/assets/fonts/mono-700-29f50b3952.woff2") format("woff2"), url("/assets/fonts/mono-700-206877b0e8.woff") format("woff");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  /* Base palette — sampled from the product, not invented */
  --paper: #f2f5ef;          /* free edition chrome */
  --paper-raised: #fafbf8;
  --sage: #e5ede6;           /* free edition sidebar */
  --line: #d6dfd8;
  --line-strong: #b7c6bc;
  --ink: #13302a;            /* free edition transport panel */
  --ink-soft: #4a5e57;
  --ink-faint: #5d6f68;
  --lagoon: #177a6d;         /* free icon, text-safe */
  --lagoon-bright: #32c5b4;  /* free icon */
  --ember: #e8a475;          /* free waveform, played */
  --ember-deep: #a0582c;

  --night: #0f1512;          /* PRO workspace */
  --night-raised: #141c18;
  --night-line: #26312c;
  --night-line-strong: #3a4842;
  --moon: #e8eee9;
  --moon-soft: #a9b7b0;
  --moon-faint: #7f8f88;
  --brass: #c4a46b;          /* PRO icon */
  --brass-bright: #dcc290;
  --brass-deep: #7c6033;
  --signal: #4fd1a1;         /* PRO waveform, ready state */
  --pine: #0b4136;           /* PRO icon ground */

  --font-display: "Aranya Display", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-text: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-mono: "Aranya Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --measure: 34em;
  --masthead: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in-out: cubic-bezier(.65, 0, .25, 1);

  --t-hero: clamp(2.5rem, 1.15rem + 5.4vw, 5.5rem);
  --t-h1: clamp(2.25rem, 1.35rem + 3.6vw, 4.25rem);
  --t-h2: clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem);
  --t-h3: 1.25rem;
  --t-lead: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
}

/* Semantic tokens per theme -------------------------------------------- */
:root,
.day {
  --bg: var(--paper);
  --surface: var(--paper-raised);
  --surface-2: var(--sage);
  --fg: var(--ink);
  --fg-2: var(--ink-soft);
  --fg-3: var(--ink-faint);
  --rule: var(--line);
  --rule-2: var(--line-strong);
  --accent: var(--lagoon);
  --mark: var(--lagoon);
  --solid-bg: var(--ink);
  --solid-fg: var(--paper-raised);
  --solid-hover: #1d4239;
  --focus: var(--lagoon);
  --shadow: 19, 48, 42;
}
.night {
  --bg: var(--night);
  --surface: var(--night-raised);
  --surface-2: #19231e;
  --fg: var(--moon);
  --fg-2: var(--moon-soft);
  --fg-3: var(--moon-faint);
  --rule: var(--night-line);
  --rule-2: var(--night-line-strong);
  --accent: var(--brass);
  --mark: var(--brass);
  --solid-bg: var(--brass);
  --solid-fg: #14100a;
  --solid-hover: var(--brass-bright);
  --focus: var(--brass-bright);
  --shadow: 0, 0, 0;
  color-scheme: dark;
}

/* Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--masthead) + 24px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.8 var(--font-text);
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
p, ul, ol, dl, figure, h1, h2, h3, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
.skip { position: fixed; z-index: 100; left: 16px; top: -60px; padding: 10px 16px; background: var(--solid-bg); color: var(--solid-fg); border-radius: 10px; text-decoration: none; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }

h1, h2, h3, .serif { font-family: var(--font-display); font-weight: 600; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1.16; }
h2 { font-size: var(--t-h2); line-height: 1.24; }
h3 { font-size: var(--t-h3); line-height: 1.45; }
p { text-wrap: pretty; }
.lead { font-size: var(--t-lead); line-height: 1.85; color: var(--fg-2); max-width: var(--measure); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums slashed-zero; letter-spacing: 0; }
.muted { color: var(--fg-2); }
.nowrap { white-space: nowrap; }
.fine { font-size: .875rem; line-height: 1.75; color: var(--fg-3); }

/* Buttons -------------------------------------------------------------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px;
  border: 1px solid transparent; border-radius: 12px;
  font-size: 1rem; font-weight: 600; line-height: 1.2; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--solid { background: var(--solid-bg); color: var(--solid-fg); }
.btn--solid:hover { background: var(--solid-hover); }
.btn--line { border-color: var(--rule-2); color: var(--fg); background: transparent; }
.btn--line:hover { border-color: var(--fg-2); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.btn--sm { --h: 40px; padding: 0 16px; font-size: .9375rem; border-radius: 10px; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: baseline; gap: 6px; color: var(--fg); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: .35em; }
.text-link:hover { text-decoration-color: var(--accent); }

/* Masthead -------------------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  color: var(--fg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.masthead.is-scrolled { border-bottom-color: var(--rule); }
.masthead__inner { display: flex; align-items: center; gap: 32px; height: var(--masthead); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); flex: none; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: .04em; }
.brand__latin { font-size: .8125rem; color: var(--fg-3); letter-spacing: .02em; padding-left: 10px; border-left: 1px solid var(--rule); line-height: 1; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 8px 12px; border-radius: 8px; color: var(--fg-2); font-size: .9375rem; text-decoration: none; transition: color .15s var(--ease); }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.masthead__cta { flex: none; }
.menu { display: none; position: relative; margin-left: auto; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: 10px; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 16px; height: 16px; }
.menu[open] > summary { background: var(--surface); }
.menu__panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 2 * var(--gutter))); padding: 8px; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 24px 48px -24px rgba(var(--shadow), .45); }
.menu__panel a { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 10px; text-decoration: none; font-size: 1rem; }
.menu__panel a:hover, .menu__panel a[aria-current="page"] { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.menu__panel hr { border: 0; border-top: 1px solid var(--rule); margin: 6px 8px; }

@media (max-width: 960px) {
  .nav, .masthead__cta { display: none; }
  .menu { display: block; }
  .masthead__inner { gap: 16px; }
}
@media (max-width: 420px) {
  .masthead__inner { gap: 10px; }
  .masthead .brand { gap: 7px; }
  .masthead .brand__mark { width: 26px; height: 26px; }
  .masthead .brand__name { font-size: .9375rem; white-space: nowrap; }
  .masthead .brand__latin { font-size: .75rem; padding-left: 7px; }
  .menu > summary { gap: 6px; padding-inline: 10px; }
}

/* Footer ---------------------------------------------------------------- */
.footer { margin-top: clamp(80px, 12vw, 160px); border-top: 1px solid var(--rule); color: var(--fg-2); font-size: .9375rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; padding: 56px 0 48px; }
.footer__brand p { margin-top: 14px; max-width: 18em; }
.footer__h { font-family: var(--font-text); font-size: .8125rem; font-weight: 600; color: var(--fg-3); letter-spacing: .08em; margin-bottom: 14px; }
.footer ul { display: grid; gap: 8px; list-style: none; padding: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--fg); text-decoration: underline; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 20px 0 32px; border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--fg-3); }
.footer__filing { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__filing a { display: inline-flex; align-items: center; gap: 6px; }
.footer__filing img { width: 14px; height: auto; }
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Shared section rhythm ------------------------------------------------- */
.section { padding-block: clamp(72px, 10vw, 136px) 0; }
.section-head { display: grid; gap: 18px; max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
.section-head p { color: var(--fg-2); max-width: var(--measure); }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* Screenshot frames ----------------------------------------------------- */
.shot { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--rule), 0 40px 80px -48px rgba(var(--shadow), .55); text-decoration: none; }
.shot img { width: 100%; }
.shot__open { position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 8px; background: rgba(10, 16, 13, .78); color: #fff; font-size: .8125rem; opacity: 0; transform: translateY(4px); transition: opacity .2s var(--ease), transform .2s var(--ease); pointer-events: none; }
a.shot:hover .shot__open, a.shot:focus-visible .shot__open { opacity: 1; transform: none; }
.figcap { margin-top: 14px; font-size: .875rem; color: var(--fg-3); }

/* Edition identity ------------------------------------------------------ */
.edition { display: flex; align-items: center; gap: 14px; }
.edition__mark { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.edition__name { font-size: 1.75rem; line-height: 1.2; }
.edition__ver { margin-left: auto; font-family: var(--font-mono); font-size: .875rem; color: var(--fg-3); letter-spacing: .02em; }

.spec { display: grid; grid-template-columns: max-content 1fr; gap: 0; border-top: 1px solid var(--rule); }
.spec > div { display: contents; }
.spec dt, .spec dd { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: .9375rem; line-height: 1.6; }
.spec dt { color: var(--fg-3); padding-right: 28px; }
.spec dd { margin: 0; color: var(--fg); }
.spec del { color: var(--fg-3); margin-left: 6px; }

/* ==========================================================================
   Edition pages (free = day, PRO = night)
   ========================================================================== */
.hero { padding-top: clamp(40px, 6vw, 88px); }
.hero__text { display: grid; gap: 22px; max-width: 52rem; }
.hero__id { display: flex; align-items: center; gap: 12px; font-size: .9375rem; color: var(--fg-2); }
.hero__id img { width: 32px; height: 32px; border-radius: 8px; }
.hero__id .mono { color: var(--fg-3); }
.hero__title { font-size: var(--t-h1); line-height: 1.14; letter-spacing: -.015em; }
.hero__note { font-size: .875rem; color: var(--fg-3); }
.hero__note a { color: var(--fg-2); }
.hero__points { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--fg-2); font-size: .9375rem; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero__shot { margin-top: clamp(40px, 5vw, 64px); }
.hero__shot .shot { border-radius: 18px; }
.day .hero__shot .shot { view-transition-name: shot-free; }
.night .hero__shot .shot { view-transition-name: shot-pro; }

/* Free: core features */
.core { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 96px); }
.core__head { position: sticky; top: calc(var(--masthead) + 40px); align-self: start; display: grid; gap: 18px; }
.core__head p { color: var(--fg-2); }
.core__list { border-top: 1px solid var(--rule-2); }
.cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.cap h3 { font-size: 1.25rem; }
.cap p { grid-column: 1; color: var(--fg-2); font-size: .9375rem; line-height: 1.85; }
.cap__glyph { grid-column: 2; grid-row: 1 / span 2; width: 168px; align-self: center; }
@media (max-width: 960px) {
  .core { grid-template-columns: 1fr; }
  .core__head { position: static; }
}
@media (max-width: 560px) {
  .cap { grid-template-columns: 1fr; }
  .cap__glyph { grid-column: 1; grid-row: auto; margin-top: 10px; }
}

/* Small diagrams of real behaviour (not UI mock-ups) */
.glyph { display: block; padding: 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.glyph svg { width: 100%; height: auto; overflow: visible; }
.glyph text { font-family: var(--font-mono); font-size: 11px; fill: var(--fg-3); }
.glyph .g-ember { fill: var(--ember); }
.glyph .g-ink { fill: var(--ink); }
.glyph .g-line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.glyph .g-faint { fill: var(--line-strong); }
.glyph .g-guide { stroke: var(--rule-2); stroke-width: 1; stroke-dasharray: 2 3; }
.timer { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-variant-numeric: tabular-nums slashed-zero; color: var(--ink); }
.timer small { font-size: .8125rem; color: var(--fg-3); }
.timer strong { font-size: 1.375rem; font-weight: 500; letter-spacing: -.02em; }
.keycap-demo { display: flex; align-items: center; gap: 10px; justify-content: center; }

/* Free: workflow track (a real sequence) */
.track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; position: relative; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: linear-gradient(90deg, var(--ember) 0 25%, var(--line-strong) 25%); border-radius: 2px; }
.track__step { position: relative; display: grid; gap: 10px; align-content: start; }
.track__no { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line-strong); font: 500 .875rem/1 var(--font-mono); color: var(--fg-2); margin-bottom: 10px; }
.track__step:first-child .track__no { box-shadow: inset 0 0 0 2px var(--ember); color: var(--ember-deep); }
.track__step h3 { font-size: 1.1875rem; }
.track__step p { color: var(--fg-2); font-size: .9375rem; }
@media (max-width: 960px) {
  .track { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .track::before { display: none; }
}
@media (max-width: 560px) {
  .track { grid-template-columns: 1fr; row-gap: 32px; padding-left: 0; }
  .track__step { grid-template-columns: 40px 1fr; column-gap: 18px; }
  .track__no { grid-row: 1 / span 2; margin: 0; }
}

/* Free: keyboard */
.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); border-top: 1px solid var(--rule-2); }
.keyrow { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.keyrow p { color: var(--fg-2); font-size: .9375rem; line-height: 1.75; }
.keyrow__keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.keyrow__plus { color: var(--fg-3); font-size: .8125rem; }
kbd, .kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 9px;
  border-radius: 7px; background: var(--surface); border: 1px solid var(--rule-2); border-bottom-width: 3px;
  font: 500 .8125rem/1 var(--font-mono); color: var(--fg); white-space: nowrap;
}
.act { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 7px; background: var(--surface-2); font-size: .8125rem; font-weight: 600; color: var(--fg); white-space: nowrap; }
@media (max-width: 860px) { .keys { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .keyrow { grid-template-columns: 1fr; gap: 8px; } }

/* Free: engine */
.engine { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 96px); padding: clamp(36px, 5vw, 64px); border-radius: 24px; background: var(--surface-2); }
.engine__head { display: grid; gap: 18px; align-content: start; }
.engine__head p { color: var(--fg-2); }
.engine__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-content: start; }
.engine__list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-strong); font-size: 1rem; }
.engine__list li::before { content: ""; flex: none; width: 3px; height: 14px; border-radius: 2px; background: var(--lagoon); box-shadow: 5px 3px 0 -0px var(--lagoon); transform: translateX(-2px); }
@media (max-width: 860px) {
  .engine { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .engine__list { grid-template-columns: 1fr; } }

/* Download tiles (free + PRO) */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 6px; padding: 24px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.tile__os { font-size: .8125rem; color: var(--fg-3); }
.tile__name { font-size: 1.25rem; }
.tile__req { color: var(--fg-2); font-size: .875rem; line-height: 1.65; }
.tile__size { margin: 10px 0 14px; font-family: var(--font-mono); font-size: .8125rem; color: var(--fg-3); }
.tile .btn { width: 100%; }
.tile__tag { position: absolute; top: 20px; right: 20px; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.night .tile__tag { color: var(--brass-bright); }
.tile[data-recommended] { box-shadow: inset 0 0 0 2px var(--accent); }
.tile:not([data-recommended]) .btn--solid { background: transparent; color: var(--fg); border-color: var(--rule-2); }
.tile:not([data-recommended]) .btn--solid:hover { border-color: var(--fg-2); }
.tiles-note { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 48px; margin-top: 28px; }
.tiles-note p { font-size: .875rem; color: var(--fg-3); line-height: 1.8; }
.tiles-note a { color: var(--fg-2); }
@media (max-width: 1080px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tiles-note { grid-template-columns: 1fr; } }

/* Free: PRO bridge (a piece of night inside the day page) */
.bridge__text { display: grid; gap: 16px; }
.bridge__text p { color: var(--fg-2); }
.bridge__list { display: flex; flex-wrap: wrap; gap: 8px; }
.bridge__list a { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--night-line-strong); color: var(--moon-soft); font-size: .875rem; text-decoration: none; }
.bridge__list a:hover { color: var(--moon); border-color: var(--brass-deep); }
.bridge .btn-row { margin-top: 8px; }

/* Contact block (QR) */
.contact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px 40px; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--rule); background: var(--surface); }
.contact__qr { width: 152px; height: 152px; border-radius: 12px; background: #fff; padding: 8px; }
.contact__qr img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.contact__text { display: grid; gap: 12px; }
.contact__text p { color: var(--fg-2); max-width: 36em; }
@media (max-width: 560px) { .contact { grid-template-columns: 1fr; } }

/* PRO: release strip + feature index */
.strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; padding: 22px 28px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--rule); }
.strip__ver { font-family: var(--font-mono); color: var(--brass); font-size: .875rem; }
.strip h2 { font-size: 1.25rem; }
.strip p { color: var(--fg-2); font-size: .9375rem; }
@media (max-width: 860px) { .strip { grid-template-columns: 1fr; } }

.index { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--rule-2); }
.index a { display: grid; gap: 6px; align-content: start; padding: 22px 20px 26px 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: color .15s var(--ease); }
.index a:nth-child(5n+1) { padding-left: 0; }
.index__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; color: var(--fg); display: flex; align-items: center; gap: 8px; }
.index__tag { font-size: .875rem; color: var(--fg-2); line-height: 1.65; }
.index a:hover .index__name { color: var(--brass-bright); }
.badge-new { display: inline-block; padding: 0 7px; border: 1px solid var(--brass-deep); border-radius: 6px; color: var(--brass); font-family: var(--font-text); font-size: .6875rem; font-weight: 600; line-height: 1.7; }
@media (max-width: 1080px) { .index { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .index { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; } }

/* PRO: sticky feature navigation */
.subnav { position: sticky; top: var(--masthead); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--rule); margin-top: clamp(72px, 9vw, 120px); }
.subnav__list { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 8px 12px; border-radius: 8px; color: var(--fg-3); font-size: .875rem; text-decoration: none; transition: color .15s var(--ease), background-color .15s var(--ease); }
.subnav a:hover { color: var(--fg); }
.subnav a[aria-current="true"] { color: var(--solid-fg); background: var(--brass); }

/* PRO: feature chapters */
.feat { padding-top: clamp(72px, 9vw, 128px); }
.feat + .feat .feat__head { border-top: 1px solid var(--rule); padding-top: clamp(40px, 5vw, 64px); }
.feat__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.feat__title { display: grid; gap: 10px; }
.feat__title h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.feat__tag { font-size: 1.125rem; color: var(--brass-bright); }
.feat__desc { color: var(--fg-2); }
.feat__fig { margin: 0; }
.feat__fig--single { max-width: 1080px; }
.feat__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); align-items: start; }
.feat__pair .shot, .feat__dual .shot { border-radius: 12px; }
.feat__label { display: block; margin-top: 12px; font-size: .875rem; color: var(--fg-2); }
.feat__remote { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 2.6fr); gap: clamp(20px, 3vw, 40px); align-items: end; }
.phone { border-radius: 30px; padding: 8px; background: #050807; box-shadow: 0 0 0 1px var(--night-line-strong), 0 40px 80px -40px rgba(0, 0, 0, .8); }
.phone .shot { border-radius: 23px; box-shadow: none; }
.feat__dual { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: end; }
.feat__note { margin-top: 20px; padding: 16px 20px; border-left: 2px solid var(--brass-deep); color: var(--fg-2); font-size: .9375rem; max-width: 52rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 3vw, 48px); margin-top: clamp(28px, 3.5vw, 44px); }
.steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 14px; }
.steps__no { grid-row: 1 / span 2; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 2px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--brass-deep); color: var(--brass); font: 500 .8125rem/1 var(--font-mono); }
.steps h3 { font-size: 1.0625rem; }
.steps p { color: var(--fg-2); font-size: .9375rem; line-height: 1.75; }
@media (max-width: 860px) {
  .feat__head { grid-template-columns: 1fr; align-items: start; }
  .steps { grid-template-columns: 1fr; }
  .feat__pair, .feat__dual { grid-template-columns: 1fr; }
  .feat__remote { grid-template-columns: minmax(0, 1fr) 32%; }
}

/* PRO: pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
.pricing__copy { display: grid; gap: 18px; }
.pricing__copy p { color: var(--fg-2); max-width: 32em; }
.price { display: grid; gap: 18px; padding: clamp(28px, 3.5vw, 44px); border-radius: 24px; background: linear-gradient(160deg, #13201b, #0f1512 60%); box-shadow: inset 0 0 0 1px var(--brass-deep), 0 50px 90px -50px rgba(0, 0, 0, .9); }
.price__name { display: flex; align-items: center; gap: 12px; color: var(--fg-2); }
.price__name img { width: 32px; height: 32px; border-radius: 8px; }
.price__amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.price__amount strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(3.5rem, 2.5rem + 3vw, 5rem); line-height: 1; color: var(--moon); letter-spacing: -.02em; }
.price__amount strong small { font-size: .45em; margin-right: 4px; vertical-align: .55em; color: var(--brass); }
.price__amount del { color: var(--fg-3); font-size: 1.125rem; }
.price__amount span { padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--brass) 16%, transparent); color: var(--brass-bright); font-size: .8125rem; font-weight: 600; }
.offer-inline { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.offer-inline strong { font-weight: 600; white-space: nowrap; }
.offer-inline del { color: var(--fg-3); font-size: .85em; white-space: nowrap; text-decoration-thickness: 1px; }
.offer-inline > span { border: 1px solid color-mix(in srgb, var(--brass) 38%, transparent); border-radius: 5px; padding: 1px 6px; color: var(--brass); font-size: .75rem; line-height: 1.5; white-space: nowrap; }
.price__points { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.price__points li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.price__points li::before { content: ""; width: 14px; height: 8px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg) translate(1px, -2px); flex: none; }
.price .btn-row { display: grid; grid-template-columns: 1fr 1fr; }
.price .btn { width: 100%; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .price .btn-row { grid-template-columns: 1fr; } }

/* ==========================================================================
   Shared components: transport panel, monitor, gradient band
   ========================================================================== */

/* Transport panel — the player's own control strip, used as a page hero.
   tp--free uses the free edition's colours, tp--pro the PRO edition's. */
.tp {
  --p: .45;
  --tp-fg: #eef8f4;
  --tp-dim: rgba(238, 248, 244, .58);
  --tp-lead: rgba(238, 248, 244, .76);
  --tp-state: #86e3c9;
  --tp-played: var(--ember);
  --tp-rest: rgba(126, 156, 151, .5);
  --tp-well: #0e2521;
  --tp-remain: #f3e1bb;
  --tp-meter: #61d8b3;
  --tp-tag: var(--ember);
  --tp-tag-fg: #3a1d08;
  --tp-main: #6accb5;
  --tp-main-fg: #0e2521;
  /* tokens for buttons and text placed inside the panel */
  --fg: var(--tp-fg);
  --fg-2: var(--tp-lead);
  --fg-3: var(--tp-dim);
  --rule: rgba(238, 248, 244, .14);
  --rule-2: rgba(238, 248, 244, .3);
  --accent: var(--tp-state);
  --focus: var(--tp-state);
  position: relative;
  padding: clamp(20px, 2.4vw, 30px) clamp(20px, 3.4vw, 48px) clamp(20px, 2.8vw, 34px);
  border-radius: 28px;
  color: var(--tp-fg);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(78, 160, 140, .22), transparent 60%),
    linear-gradient(180deg, #1b3c37, #132f2a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 60px 100px -70px rgba(19, 48, 42, .9);
}
.tp--free { --solid-bg: var(--paper-raised); --solid-fg: var(--ink); --solid-hover: #fff; }
.tp--pro {
  --tp-state: var(--signal);
  --tp-played: var(--signal);
  --tp-rest: rgba(110, 128, 120, .42);
  --tp-well: #070b09;
  --tp-remain: var(--moon);
  --tp-meter: var(--signal);
  --tp-tag: var(--brass);
  --tp-tag-fg: #1d1608;
  --tp-main: var(--signal);
  --tp-main-fg: #06110c;
  --solid-bg: var(--brass); --solid-fg: #14100a; --solid-hover: var(--brass-bright);
  --accent: var(--brass);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(79, 209, 161, .09), transparent 60%),
    linear-gradient(180deg, #161f1b, #0c120f);
  box-shadow: inset 0 0 0 1px var(--night-line), inset 0 1px 0 rgba(255, 255, 255, .05), 0 60px 100px -60px rgba(0, 0, 0, .9);
}
.tp__top { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; font-size: .875rem; }
.tp__state { display: inline-flex; align-items: center; gap: 8px; color: var(--tp-state); font-weight: 600; }
.tp__state [data-player-label] { display: inline-flex; align-items: center; gap: 8px; }
.tp__state img { display: inline-block; width: 22px; height: 22px; border-radius: 6px; }
.tp__state .mono { font-weight: 400; color: var(--tp-dim); }
.tp__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.tp__bars i { width: 3px; height: 12px; border-radius: 1px; background: currentColor; transform-origin: bottom; }
.tp__bars i:nth-child(1) { transform: scaleY(.5); }
.tp__bars i:nth-child(3) { transform: scaleY(.75); }
.tp.is-playing .tp__bars i { animation: tp-eq .5s ease-in-out infinite alternate; }
.tp.is-playing .tp__bars i:nth-child(2) { animation-delay: -.2s; animation-duration: .42s; }
.tp.is-playing .tp__bars i:nth-child(3) { animation-delay: -.35s; animation-duration: .58s; }
@keyframes tp-eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.tp__meta { color: var(--tp-dim); }
.tp__meta span { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--rule); }
.tp__meter { margin-left: auto; display: grid; grid-template-columns: auto clamp(96px, 12vw, 168px); align-items: center; gap: 4px 10px; font: 500 .625rem/1 var(--font-mono); color: var(--tp-dim); }
.tp__meter i {
  --l: 0;
  height: 6px;
  background:
    repeating-linear-gradient(90deg, var(--tp-meter) 0 5px, transparent 5px 7px) 0 0 / calc(var(--l) * 100%) 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(238, 248, 244, .14) 0 5px, transparent 5px 7px);
}
.tp__main { margin-top: clamp(20px, 2.6vw, 34px); }
.tp__main--timed { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 48px; }
.tp__title { font-size: clamp(2.5rem, 1.2rem + 4.4vw, 5rem); line-height: 1.06; letter-spacing: -.025em; color: var(--tp-fg); }
.tp__title span { display: block; }
.tp__timers { display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 44px); padding-bottom: .4em; }
.tp__timers p { display: grid; justify-items: end; gap: 6px; }
.tp__timers span { font-size: clamp(1.625rem, 1rem + 1.8vw, 2.625rem); line-height: 1; color: var(--tp-fg); font-variant-numeric: tabular-nums slashed-zero; }
.tp__remain span { font-size: clamp(3rem, 1.4rem + 4vw, 5rem); font-weight: 700; letter-spacing: -.035em; color: var(--tp-remain); }
.tp__timers small { font-size: .75rem; color: var(--tp-dim); }
.tp__deck { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-top: 14px; }
.tp__lead { flex: 1 1 26em; max-width: 40em; font-size: var(--t-lead); line-height: 1.8; color: var(--tp-lead); text-wrap: pretty; }
.tp__controls { display: grid; justify-items: end; gap: 6px; }
.tp__buttons { display: flex; align-items: center; gap: 10px; }
.tp__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(238, 248, 244, .1); color: var(--tp-fg); transition: background-color .15s var(--ease), transform .15s var(--ease); }
.tp__btn:hover { background: rgba(238, 248, 244, .18); }
.tp__btn:active { transform: scale(.96); }
.tp__btn svg { width: 18px; height: 18px; }
.tp__btn--main { width: 58px; height: 58px; background: var(--tp-main); color: var(--tp-main-fg); box-shadow: 0 10px 24px -10px var(--tp-main); }
.tp__btn--main:hover { background: color-mix(in srgb, var(--tp-main) 86%, #fff); }
.tp__btn--main svg { width: 24px; height: 24px; }
.tp__btn--main svg + svg, .tp.is-playing .tp__btn--main svg:first-child { display: none; }
.tp.is-playing .tp__btn--main svg + svg { display: block; }
.tp.is-fading .tp__btn[data-player-stop] { background: var(--tp-remain); color: var(--tp-main-fg); }
.tp__hint { font-size: .8125rem; color: var(--tp-dim); white-space: nowrap; }
.tp__hint kbd { height: 22px; min-width: 22px; padding: 0 6px; border-radius: 5px; border-width: 1px 1px 2px; background: rgba(238, 248, 244, .08); border-color: rgba(238, 248, 244, .22); color: var(--tp-fg); font-size: .6875rem; vertical-align: 1px; }
.tp__credit { font-size: .75rem; color: var(--tp-dim); opacity: .8; }
.tp__actions { display: grid; justify-items: end; gap: 14px; }
.tp__actions .hero__points { color: var(--tp-lead); }
.tp__actions .hero__points li::before { background: var(--tp-state); }
.tp__actions .btn--line { color: var(--tp-fg); }

.tp__well {
  position: relative;
  margin-top: clamp(20px, 2.4vw, 28px);
  height: clamp(76px, 7.4vw, 100px);
  border-radius: 16px;
  background: var(--tp-well);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 10px 30px rgba(0, 0, 0, .25);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.tp__well--static { cursor: default; height: clamp(60px, 5.6vw, 76px); }
.tp__well:focus-visible { outline: 2px solid var(--tp-state); outline-offset: 4px; border-radius: 16px; }
.tp__wave { position: absolute; left: 3%; top: 12%; width: 94%; height: 76%; pointer-events: none; }
.tp__wave--rest path { fill: var(--tp-rest); }
.tp__wave--played { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.tp__wave--played path { fill: var(--tp-played); }
.tp__head { position: absolute; top: 8px; bottom: 8px; left: calc(3% + var(--p) * 94%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 14px rgba(255, 255, 255, .55); pointer-events: none; }
.tp__head::before { content: ""; position: absolute; top: -2px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; }
.tp__tag { position: absolute; bottom: 7px; padding: 1px 6px; border-radius: 4px; background: var(--tp-tag); color: var(--tp-tag-fg); font: 500 .625rem/1.5 var(--font-mono); letter-spacing: .06em; pointer-events: none; }
.tp__tag--in { left: 3%; }
.tp__tag--out { right: 3%; }
@media (max-width: 960px) {
  .tp__main--timed { grid-template-columns: 1fr; }
  .tp__timers { justify-content: flex-start; padding-bottom: 0; }
  .tp__timers p { justify-items: start; }
  .tp__controls, .tp__actions { justify-items: start; }
}
@media (max-width: 760px) {
  .tp__meter, .tp__meta span { display: none; }
  .tp { border-radius: 22px; }
}
@media (max-width: 480px) {
  .tp__actions, .tp__actions .btn-row { width: 100%; }
  .tp__actions .btn-row { display: grid; grid-template-columns: 1fr; }
  .tp__actions .btn { width: 100%; }
  .tp__hint { white-space: normal; }
}

/* Monitor — a real screenshot on a screen with a stand */
.mon { margin: 0; display: grid; justify-items: center; --glow: transparent; }
.mon__screen.shot {
  width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; border: 8px solid #040705; background: #040705;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 44px 90px -44px rgba(0, 0, 0, .85), 0 0 140px -30px var(--glow);
}
.mon__screen.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; border-radius: 6px; }
.mon__stand {
  position: relative; width: 24%; height: clamp(36px, 4vw, 54px);
  background: linear-gradient(90deg, #080c0a, #1d2722 50%, #080c0a);
  clip-path: polygon(40% 0, 60% 0, 64% 78%, 100% 84%, 100% 100%, 0 100%, 0 84%, 36% 78%);
}
.day .mon__stand { filter: drop-shadow(0 18px 14px rgba(19, 48, 42, .18)); }
.mon__label { margin-top: 14px; font-size: .875rem; color: var(--fg-2); text-align: center; }
.night .mon { --glow: rgba(79, 209, 161, .2); }
.hero__monitor { max-width: 1120px; margin: clamp(44px, 5.4vw, 72px) auto 0; }
.day .hero__monitor .mon__screen { view-transition-name: shot-free; }
.night .hero__monitor .mon__screen { view-transition-name: shot-pro; }
.hero__monitor .figcap { text-align: center; }

/* Gradient band — paper fades into a dark band through the forest greens, and back.
   Stops are an OKLab curve paper → forest → night, eased with smootherstep so
   neither end of a fade shows an edge. */
.fade-band {
  --fade-in: clamp(170px, 19vw, 300px);
  --fade-out: clamp(200px, 22vw, 340px);
  position: relative;
  isolation: isolate;
  padding: var(--fade-in) 0 var(--fade-out);
  color: var(--fg);
  background: #0f1512;
  background:
    linear-gradient(180deg,
      #f2f5ef 0,
      #f1f4ee calc(var(--fade-in) * 0.056),
      #edf1eb calc(var(--fade-in) * 0.111),
      #e2e8e2 calc(var(--fade-in) * 0.167),
      #d1dad3 calc(var(--fade-in) * 0.222),
      #b9c6bf calc(var(--fade-in) * 0.278),
      #9eaea7 calc(var(--fade-in) * 0.333),
      #81948d calc(var(--fade-in) * 0.389),
      #657a73 calc(var(--fade-in) * 0.444),
      #4c625c calc(var(--fade-in) * 0.500),
      #384d47 calc(var(--fade-in) * 0.556),
      #283c36 calc(var(--fade-in) * 0.611),
      #1e2e29 calc(var(--fade-in) * 0.667),
      #172420 calc(var(--fade-in) * 0.722),
      #131d19 calc(var(--fade-in) * 0.778),
      #111915 calc(var(--fade-in) * 0.833),
      #0f1613 calc(var(--fade-in) * 0.889),
      #0f1512 calc(var(--fade-in) * 0.944),
      #0f1512 var(--fade-in),
      #0b100d calc(100% - var(--fade-out)),
      #0b100d calc(100% - var(--fade-out) * 0.944),
      #0c110e calc(100% - var(--fade-out) * 0.889),
      #0d1410 calc(100% - var(--fade-out) * 0.833),
      #0f1815 calc(100% - var(--fade-out) * 0.778),
      #14201c calc(100% - var(--fade-out) * 0.722),
      #1b2a26 calc(100% - var(--fade-out) * 0.667),
      #263933 calc(100% - var(--fade-out) * 0.611),
      #364b45 calc(100% - var(--fade-out) * 0.556),
      #4b615a calc(100% - var(--fade-out) * 0.500),
      #647972 calc(100% - var(--fade-out) * 0.444),
      #80948c calc(100% - var(--fade-out) * 0.389),
      #9daea7 calc(100% - var(--fade-out) * 0.333),
      #b9c6bf calc(100% - var(--fade-out) * 0.278),
      #d1d9d3 calc(100% - var(--fade-out) * 0.222),
      #e2e8e2 calc(100% - var(--fade-out) * 0.167),
      #edf1eb calc(100% - var(--fade-out) * 0.111),
      #f1f4ee calc(100% - var(--fade-out) * 0.056),
      #f2f5ef 100%);
}

/* ==========================================================================
   Download dialog
   ========================================================================== */
.dl {
  width: min(640px, calc(100vw - 32px));
  max-height: min(88vh, 900px);
  padding: 0; border: 0; border-radius: 24px;
  background: var(--surface); color: var(--fg);
  box-shadow: 0 0 0 1px var(--rule), 0 60px 120px -40px rgba(0, 0, 0, .55);
  overflow: auto; overscroll-behavior: contain;
}
.dl.day { --surface: var(--paper-raised); }
.dl.night { --surface: #121a16; }
.dl::backdrop { background: rgba(9, 18, 15, .52); }
.dl[open] { animation: dl-in .32s var(--ease); }
.dl[open]::backdrop { animation: fade-in .32s var(--ease); }
@keyframes dl-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes fade-in { from { opacity: 0; } }
.dl__inner { display: grid; gap: 22px; padding: clamp(24px, 4vw, 36px); }
.dl__head { display: flex; align-items: center; gap: 14px; padding-right: 44px; }
.dl__head img { width: 44px; height: 44px; border-radius: 11px; }
.dl__head h2 { font-size: 1.5rem; line-height: 1.3; }
.dl__head p { font-size: .875rem; color: var(--fg-3); }
.dl__close { position: absolute; top: 18px; right: 18px; margin: 0; }
.dl__close button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--fg-2); }
.dl__close button:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); color: var(--fg); }
.dl__close svg { width: 18px; height: 18px; }
.dl__hint { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--fg); font-size: .9375rem; line-height: 1.7; }
.dl__hint button { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }
.dl__list { border-top: 1px solid var(--rule); }
.dl__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.dl__row strong { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; }
.dl__row span.req { display: block; color: var(--fg-3); font-size: .8125rem; line-height: 1.6; }
.dl__size { font-family: var(--font-mono); font-size: .8125rem; color: var(--fg-3); }
.dl__badge { padding: 1px 8px; border-radius: 999px; font-size: .6875rem; font-weight: 600; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.night .dl__badge { color: var(--brass-bright); }
.dl__row:not([data-recommended]) .btn--solid { background: transparent; color: var(--fg); border-color: var(--rule-2); }
.dl__row:not([data-recommended]) .btn--solid:hover { border-color: var(--fg-2); }
.dl__more { display: grid; gap: 10px; }
.dl__more p { font-size: .8125rem; line-height: 1.75; color: var(--fg-3); }
.dl__more a { color: var(--fg-2); }
.dl__sha summary { cursor: pointer; font-size: .8125rem; color: var(--fg-2); width: max-content; }
.dl__sha dl { display: grid; gap: 8px; margin-top: 10px; }
.dl__sha dt { font-size: .75rem; color: var(--fg-3); }
.dl__sha dd { margin: 0; font-family: var(--font-mono); font-size: .6875rem; line-height: 1.5; word-break: break-all; color: var(--fg-2); }
.dl__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: .9375rem; color: var(--fg-2); }
.dl__foot a { color: var(--fg); font-weight: 600; }
.dl__status { min-height: 0; font-size: .9375rem; color: var(--fg); }
.dl__status:empty { margin-top: -22px; }
.dl__status:not(:empty) { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--signal) 14%, transparent); }
@media (max-width: 560px) {
  .dl { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .dl[open] { animation: sheet-in .34s var(--ease); }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: .4; } }
  .dl__row { grid-template-columns: minmax(0, 1fr) auto; }
  .dl__size { grid-row: 2; grid-column: 1; }
  .dl__row .btn { grid-row: 1 / span 2; grid-column: 2; }
}

/* ==========================================================================
   Purchase page (night)
   ========================================================================== */
.buy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(40px, 6vw, 96px); padding-top: clamp(40px, 6vw, 88px); align-items: start; }
.buy__intro { display: grid; gap: 22px; position: sticky; top: calc(var(--masthead) + 40px); }
.buy__intro .lead { max-width: 24em; }
.buy__caps { display: flex; flex-wrap: wrap; gap: 8px; }
.buy__caps span { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--rule-2); color: var(--fg-2); font-size: .875rem; }
.buy__license { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 20px 0; border-block: 1px solid var(--rule); }
.buy__license .label { font-size: .875rem; color: var(--fg-3); }
.buy__license .amount { font-family: var(--font-display); font-size: 3rem; line-height: 1.1; }
.buy__license .amount small { font-size: .5em; color: var(--brass); margin-right: 2px; }
.buy__license .amount del { font-family: var(--font-text); font-size: 1rem; color: var(--fg-3); margin-left: 10px; }
.buy__license p { text-align: right; color: var(--fg-2); font-size: .9375rem; line-height: 1.7; }
.buy__free { color: var(--fg-2); font-size: .9375rem; }
.card { border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule), 0 50px 100px -60px rgba(0, 0, 0, .9); padding: clamp(22px, 3.4vw, 40px); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--rule); margin-bottom: 32px; }
.tabs button { height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--fg-2); font-weight: 600; transition: background-color .2s var(--ease), color .2s var(--ease); }
.tabs button[aria-selected="true"] { background: var(--brass); color: var(--solid-fg); }
.panel { display: grid; gap: 16px; }
.panel h2 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); }
.panel > p { color: var(--fg-2); }
.qr-card { display: grid; justify-items: center; gap: 10px; margin-top: 8px; padding: 28px 20px; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--rule); text-align: center; }
.qr-card .qr { width: 196px; height: 196px; padding: 10px; border-radius: 14px; background: #fff; }
.qr-card .qr img { width: 100%; height: 100%; object-fit: contain; }
.qr-card h3 { font-family: var(--font-text); font-size: 1.125rem; font-weight: 600; margin-top: 6px; }
.qr-card p { color: var(--fg-2); font-size: .9375rem; }
.micro { font-size: .8125rem; color: var(--fg-3); min-height: 1.2em; }
.quiet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 6px; color: var(--fg-2); font-size: .9375rem; }
.linklike { padding: 0; border: 0; background: none; color: var(--fg); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: .35em; }
.linklike:hover { text-decoration-color: var(--brass); }
.form { display: grid; gap: 8px; margin-top: 4px; }
.form label { font-size: .875rem; font-weight: 600; color: var(--fg); margin-top: 10px; }
.form input { width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--rule-2); background: var(--bg); color: var(--fg); font-size: 1rem; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.form input::placeholder { color: var(--fg-3); }
.form input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 25%, transparent); }
.form input[readonly] { color: var(--fg-2); background: var(--surface-2); }
.form .btn { margin-top: 14px; width: 100%; }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8125rem; color: var(--fg-3); line-height: 1.75; margin-top: 4px; }
.form-status { min-height: 1.5em; font-size: .9375rem; color: var(--fg-2); }
.form-status.error { color: #f0a58f; }
.claim { display: grid; justify-items: center; gap: 12px; padding: 28px 20px; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--brass-deep); text-align: center; }
.claim__mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: color-mix(in srgb, var(--signal) 18%, transparent); color: var(--signal); }
.claim__mark svg { width: 22px; height: 22px; }
.claim h3 { font-size: 1.375rem; }
.claim p { color: var(--fg-2); }
.claim output { display: block; width: 100%; padding: 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule-2); font-family: var(--font-mono); font-size: clamp(.875rem, .7rem + .8vw, 1.125rem); letter-spacing: .04em; word-break: break-all; user-select: all; color: var(--moon); }
.claim .btn { width: 100%; }
.trial-details { margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--rule); display: grid; gap: 8px; font-size: .875rem; color: var(--fg-3); line-height: 1.8; }
.trial-details strong { color: var(--fg-2); font-weight: 600; }
@media (max-width: 960px) {
  .buy { grid-template-columns: 1fr; }
  .buy__intro { position: static; }
}

/* ==========================================================================
   Documents: guide + release notes (day)
   ========================================================================== */
.doc { display: grid; grid-template-columns: 15rem minmax(0, 46rem); gap: 40px clamp(40px, 6vw, 96px); padding-top: clamp(40px, 6vw, 80px); }
.doc--single { grid-template-columns: minmax(0, 50rem); justify-content: center; }
.toc { position: sticky; top: calc(var(--masthead) + 32px); align-self: start; max-height: calc(100vh - var(--masthead) - 64px); overflow: auto; font-size: .875rem; }
.toc p { color: var(--fg-3); margin-bottom: 10px; }
.toc ol { display: grid; gap: 2px; border-left: 1px solid var(--rule); list-style: none; padding: 0; }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--fg-2); text-decoration: none; line-height: 1.5; }
.toc a:hover { color: var(--fg); border-left-color: var(--rule-2); }
.toc a[aria-current="true"] { color: var(--fg); border-left-color: var(--lagoon); }
.prose { min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h1 { font-size: var(--t-h1); margin-bottom: .2em; }
.prose h2 { font-size: 1.625rem; margin-top: 0; }
.prose h3 { font-size: 1.1875rem; }
.prose p, .prose li { color: var(--fg-2); }
.prose strong { color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--lagoon); }
.prose section { padding: 36px 0 4px; border-top: 1px solid var(--rule); margin-top: 36px; }
.prose section > * + * { margin-top: 1em; }
.prose img { border-radius: 14px; box-shadow: 0 0 0 1px var(--rule); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); }
.prose th { color: var(--fg-3); font-weight: 600; font-size: .8125rem; }
.prose .table-wrap { overflow-x: auto; }
.prose kbd { height: 24px; min-width: 24px; font-size: .75rem; padding: 0 6px; border-bottom-width: 2px; vertical-align: 1px; }
.prose .tag { font-family: var(--font-mono); color: var(--ember-deep); font-size: .875rem; }
.doc__kicker { font-family: var(--font-mono); color: var(--ember-deep); font-size: .875rem; }
@media (max-width: 960px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; padding: 16px 18px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
  .toc ol { grid-template-columns: 1fr 1fr; border: 0; gap: 0 16px; }
  .toc a { padding-left: 0; border: 0; }
}

/* Release notes (markup kept from the published pages) */
.release-shell { display: grid; gap: 0; }
.release-hero { display: grid; gap: 18px; padding-bottom: 36px; }
.release-hero h1 { font-size: var(--t-h1); line-height: 1.16; }
.release-hero p { font-size: var(--t-lead); color: var(--fg-2); max-width: 34em; }
.release-hero .eyebrow { font-family: var(--font-mono); font-size: .875rem; color: var(--ember-deep); letter-spacing: .02em; }
.release-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.release-chips span { padding: 4px 12px; border-radius: 8px; background: var(--surface-2); font-size: .875rem; color: var(--fg); }
.release-note { margin: 24px 0; padding: 18px 22px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); color: var(--fg-2); font-size: .9375rem; line-height: 1.85; }
.release-note strong { color: var(--fg); }
.release-edition { display: grid; gap: 10px; margin-top: 48px; padding: 28px 0 8px; border-top: 2px solid var(--fg); }
.release-edition#pro { border-top-color: var(--brass-deep); }
.release-edition .eyebrow { font-size: .875rem; color: var(--fg-3); }
.release-edition h2 { font-size: var(--t-h2); }
.release-edition p { color: var(--fg-2); }
.release-item { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.release-item > span { font-family: var(--font-mono); font-size: .875rem; color: var(--fg-3); padding-top: .3em; }
.release-item h2 { font-family: var(--font-text); font-size: 1.125rem; font-weight: 600; line-height: 1.6; letter-spacing: 0; }
.release-item p { margin-top: 6px; color: var(--fg-2); font-size: .9375rem; line-height: 1.9; }
.release-item ul { margin-top: 8px; padding-left: 1.2em; color: var(--fg-2); font-size: .9375rem; }
.release-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 40px; }
.release-actions .action { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid var(--rule-2); }
.release-actions .action.primary { background: var(--solid-bg); color: var(--solid-fg); border-color: transparent; }
.release-actions .text-link { font-weight: 400; font-size: .9375rem; }
.release-shell .site-shell { width: auto; }
.release-others { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9375rem; color: var(--fg-3); }

/* ==========================================================================
   Motion & navigation transitions
   ========================================================================== */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease); }
::view-transition-old(shot-free), ::view-transition-new(shot-free),
::view-transition-old(shot-pro), ::view-transition-new(shot-pro) { height: 100%; width: 100%; object-fit: cover; object-position: 0 0; }
::view-transition-old(root) { animation: .28s var(--ease) both vt-fade-out; }
::view-transition-new(root) { animation: .42s .08s var(--ease) both vt-fade-in; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }
/* Day ↔ night: the new light slides in from the side its edition sits on the landing stage */
html:active-view-transition-type(to-night)::view-transition-old(root) { animation: none; }
html:active-view-transition-type(to-night)::view-transition-new(root) { animation: .7s var(--ease-in-out) both vt-wipe-left; }
html:active-view-transition-type(to-day)::view-transition-old(root) { animation: none; }
html:active-view-transition-type(to-day)::view-transition-new(root) { animation: .7s var(--ease-in-out) both vt-wipe-right; }
@keyframes vt-wipe-left { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes vt-wipe-right { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ==========================================================================
   Install help
   ========================================================================== */
.install { padding-top: clamp(40px, 6vw, 80px); max-width: 1080px; }
.install__head { display: grid; gap: 18px; max-width: 46rem; }
.install__jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.install__jump a { padding: 6px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-2); text-decoration: none; font-size: .9375rem; }
.install__jump a:hover { background: var(--surface); }
.install__block { padding-top: clamp(56px, 7vw, 88px); }
.install__block > h2 { margin-bottom: 14px; }
.install__block > p { color: var(--fg-2); max-width: 44rem; }
.install__os { margin: 36px 0 18px; font-family: var(--font-text); font-size: 1.0625rem; font-weight: 600; color: var(--fg); padding-bottom: 10px; border-bottom: 1px solid var(--rule-2); }
.install__note { margin-top: 22px; padding: 14px 18px; border-left: 2px solid var(--ember); color: var(--fg-2); font-size: .9375rem; max-width: 52rem; }
.install__fine { margin-top: 28px; }
.cmds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 10px; }
.cmd { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 18px 20px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.cmd p { font-size: .875rem; color: var(--fg-2); }
.cmd pre { margin: 0; width: 100%; overflow-x: auto; padding: 12px 14px; border-radius: 10px; background: var(--ink); color: #e9f3ee; font: .8125rem/1.6 var(--font-mono); }
.isteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.isteps--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.isteps--one { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.istep { display: grid; gap: 14px; align-content: start; }
.istep__fig { margin: 0; padding: 10px; border-radius: 16px; background: var(--sage); }
.istep__text { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; }
.istep__no { grid-row: 1 / span 2; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ember); color: var(--ember-deep); font: 500 .8125rem/1 var(--font-mono); }
.istep h4 { margin: 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.5; }
.istep p { color: var(--fg-2); font-size: .9375rem; line-height: 1.8; }
/* schematic illustrations */
.il { width: 100%; height: auto; display: block; }
.il-win { fill: #fff; stroke: var(--line-strong); }
.il-side { fill: #eef2ee; }
.il-dot { fill: var(--line-strong); }
.il-bar { fill: #dfe6e1; }
.il-btn { fill: #fff; stroke: var(--line-strong); }
.il-hot { fill: var(--lagoon); }
.il-sel { fill: #dbeae4; }
.il-menu { fill: #fff; stroke: var(--line-strong); filter: drop-shadow(0 8px 12px rgba(19, 48, 42, .14)); }
.il-field { fill: #f5f7f4; stroke: var(--line-strong); }
.il-app { fill: var(--lagoon-bright); }
.il-folder { fill: #9cc7e4; }
.il-arrow { fill: none; stroke: var(--ember); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.il-cursor { fill: #111; stroke: #fff; stroke-width: 1.2; }
.il-blue { fill: #1f5fa8; }
.il-bar-w { fill: rgba(255, 255, 255, .35); }
.il-btn-w { fill: none; stroke: rgba(255, 255, 255, .8); }
.il-hot-w { fill: rgba(255, 255, 255, .22); stroke: #fff; stroke-width: 1.5; }
.il-t { font: 500 11px var(--font-text); fill: var(--ink-soft); }
.il-t--b { font-weight: 700; font-size: 12px; fill: var(--ink); }
.il-t--xs { font-size: 9.5px; }
.il-t--dim { fill: var(--ink-faint); }
.il-t--hot { fill: #fff; font-weight: 700; }
.il-t--w { fill: #fff; }
@media (max-width: 860px) {
  .isteps, .isteps--two { grid-template-columns: 1fr; max-width: 520px; }
  .cmds { grid-template-columns: 1fr; }
}

/* In-app browser notice (WeChat, QQ, DingTalk, Feishu, Weibo) */
.inapp { width: min(440px, calc(100vw - 32px)); }
.inapp__steps { display: grid; gap: 10px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.inapp__steps li { display: flex; align-items: center; gap: 12px; font-size: 1rem; counter-increment: s; }
.inapp__steps li::before { content: counter(s); display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sage); font: 500 .8125rem/1 var(--font-mono); color: var(--fg-2); }
.inapp__steps b { padding: 0 6px; border-radius: 6px; background: var(--sage); letter-spacing: .1em; }
.inapp .btn-row .btn { flex: 1 1 auto; }

/* Edition heroes: transport panel + monitor */
.hero:has(> .tp) { padding-top: clamp(16px, 2.6vw, 36px); }
.hero .tp__title { font-size: clamp(2.25rem, 1.1rem + 3.6vw, 4.25rem); line-height: 1.12; }
.hero .hero__note { font-size: .875rem; color: var(--tp-dim); text-align: right; max-width: 30em; }
.hero .hero__note a { color: var(--tp-fg); }
@media (max-width: 960px) { .hero .hero__note { text-align: left; } }

/* Free page: PRO bridge as a dark band with a PRO monitor */
.bridge-band { overflow: hidden; margin-top: clamp(32px, 5vw, 64px); }
.bridge-band + .section { padding-top: clamp(16px, 2.4vw, 36px); }
.bridge { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(32px, 5vw, 72px); align-items: center; padding: 0; border-radius: 0; background: none; }
.bridge__mon { max-width: 600px; justify-self: end; width: 100%; }
@media (max-width: 860px) { .bridge { grid-template-columns: 1fr; } .bridge__mon { justify-self: stretch; } }
