/* Product and download details: improve reading without changing plugin previews. */
#products .product-points li, #products .product-points li a { font-size:16px; line-height:1.7; }
#products .product-index { font-size:14px; }
#products .product-index span { font-size:13px; }
#products .lite-credit small { font-size:13px; line-height:1.6; }
#products .lite-credit p, #products .lite-credit .support-actions a { font-size:16px; line-height:1.75; }
#products .text-link, #products .preview-zoom-button { font-size:15px; }
#products .eyebrow, #downloads .eyebrow { font-size:12px; }
#downloads .download-name small, #downloads .download-footnote { font-size:16px; line-height:1.7; }

/* Shared surfaces and controls for downloads and the guestbook. */
.product-picker button{color:var(--muted);min-height:64px}
.product-picker button:hover{background:#ffffff06;color:var(--text)}
.product-picker button[aria-selected=true]{color:var(--text)}
.product-picker strong,.product-picker small{font-size:14px;line-height:1.5}
.hero-product{aspect-ratio:1000 / 480;display:grid;place-items:center}
.hero-product img{width:100%;height:100%;min-height:0;object-fit:contain}
.download-list{gap:16px}
.download-list article,.gb.gb-home{border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:clamp(16px,3vw,30px)}
.download-list article>.button{min-height:48px;margin-top:12px}
#download-dialog,.gb-dialog{background:var(--surface);border-color:var(--line);border-radius:8px;color:var(--text);max-height:88dvh}
#download-dialog button:disabled{opacity:.48;cursor:wait}
#download-dialog .gb-inline input[type=text],#download-dialog .gb-inline textarea,.gb-dialog input[type=text],.gb-dialog textarea{border-radius:4px}
.gb-inline .gb-submit,.gb-dialog .gb-submit{min-height:44px;border-radius:4px;background:var(--ice);color:#132027}
.gb-inline .gb-wechat-guidance a.gb-submit,.gb-dialog .gb-wechat-guidance a.gb-submit{display:inline-flex;align-items:center}
.gb.gb-home .gb-text-button{min-height:44px}
@media(max-width:760px){
 .product-picker button{padding:12px 8px;gap:3px 6px;grid-template-columns:22px 1fr}
 .download-list article>.button{width:100%}
 .nav-wrap{backdrop-filter:none}
 .hero-product img{transform:none;filter:none}
}
@media(prefers-reduced-motion:reduce){
 .hero-product img,.button{transition:none}
 .hero-product img,.hero-product:hover img,.button.primary:hover{transform:none}
}
#download-dialog,.gb-dialog{width:min(94vw,38rem);padding:clamp(18px,4vw,32px)}
#download-dialog h2,.gb-dialog h2{font-size:clamp(20px,4vw,25px);line-height:1.35}
#download-dialog .dialog-close,.gb-dialog .gb-close{min-width:44px;min-height:44px;top:8px;right:8px}
.gb-compose .gb-avatar-options{grid-column:1/-1;color:var(--muted)}
.gb-avatar-options summary,.download-file-details summary{cursor:pointer;color:var(--muted);min-height:36px;padding-block:7px}
.gb-result:empty{display:none}
@media(max-width:760px){
 .hero{padding-top:44px;padding-bottom:34px;gap:28px}
 .hero-actions{margin-top:22px}
 .hero-stage{padding-top:8px}
 .stage-top{margin-bottom:14px}
 .hero-product{padding:12px 0}
 .product-picker{margin-top:16px}
}

/* The three studies share one fixed stage, including during a crossfade. */
.hero-product {
  aspect-ratio: 1000 / 480;
  padding: 0;
  isolation: isolate;
}
.hero-product .stage-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  transform: rotateY(-5deg) rotateX(3deg);
  transition: opacity 240ms ease, transform 480ms ease;
}
.hero-product .is-active { opacity: 1; }
.hero-product:hover .stage-view { transform: none; }
/* Keep the interactive panel in flow so its compact layout reserves space on every tab. */
.hero-product .stage-view[data-view="create"] {
  position: relative;
  height: auto;
  transform: none;
}
.hero-product [data-view="create"].is-active { pointer-events: auto; }
.stage-floor { pointer-events: none; }
.stage-top { align-items: baseline; gap: 1rem; font-size: 11px; }
#collection-position, .picker-number { font-variant-numeric: tabular-nums; }
.product-picker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
}
.product-picker button {
  grid-template-columns: minmax(0, 1fr);
  grid-row: span 3;
  grid-template-rows: subgrid;
  align-items: start;
  row-gap: 4px;
  padding: 14px 8px 8px 0;
  border-radius: 0;
}
.product-picker strong { font-size: 13px; letter-spacing: .055em; line-height: 1.35; text-wrap: balance; }
.product-picker small { font-size: 13px; color: var(--muted); }
.product-picker .picker-number { grid-row: auto; font: 12px/1.5 Consolas, monospace; letter-spacing: .12em; }
.product-picker button:hover { background: none; }
.product-picker button:hover strong { color: var(--text); }
.stage-caption { padding-left: 0; min-height: 3.3em; }
.hero-note .file-size { margin: 0; color: inherit; white-space: nowrap; }
#products .product-info > p:not(.product-index) { max-width: 32em; }
.product-links { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.product-links a, .hero-actions a { white-space: nowrap; }
.nature-note { border-top: 1px solid var(--line); }
.nature-note blockquote {
  font: inherit;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.85;
  color: var(--text);
  margin: 0 0 1.4em;
  text-wrap: pretty;
}
.nature-note .nature-status { border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; letter-spacing: .08em; }
.download-list { gap: clamp(24px, 5vw, 68px); }
.download-list article { min-width: 0; padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.download-list article > .button { margin: 0; }
.download-list .package-size { margin: 10px 0; font-variant-numeric: tabular-nums; }
.download-file-details { border-top: 1px solid var(--line); margin-top: 16px; }
.download-file-details summary { cursor: pointer; padding: 10px 0; }
.download-file-details code { color: var(--text); overflow-wrap: anywhere; user-select: all; }
.download-file-details p { margin: 4px 0 8px; }
.download-footnote:empty { display: none; }
#legal-dialog { width: min(92vw, 34rem); padding: clamp(24px, 4vw, 42px); }
#legal-dialog p { line-height: 1.8; }
#legal-dialog a { text-decoration: underline; text-underline-offset: 4px; }
.site-nav .nav-collab { color: var(--ice); font-weight: 600; }
#wechat-dialog p { line-height: 1.7; color: var(--muted); }
#wechat-dialog { width: min(94vw, 34rem); max-height: 90dvh; overflow-y: auto; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface); }
#wechat-dialog h2 { margin: 0; padding-right: 32px; font-size: clamp(21px, 3vw, 28px); }
#wechat-dialog p { font-size: 15px; margin: 12px 0; }
#wechat-dialog .dialog-close { top: 6px; right: 6px; width: 44px; height: 44px; }
.wechat-card { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-block: 16px; border-block: 1px solid var(--line); }
.wechat-card img { width: clamp(126px, 32vw, 178px); height: auto; border-radius: 4px; }
.wechat-card > div { display: grid; justify-items: start; gap: 10px; }
.wechat-card strong { font: 500 18px/1.4 Consolas, monospace; }
.wechat-card a, #wechat-copy { color: var(--ice); font: inherit; text-decoration: underline; text-underline-offset: 4px; }
#wechat-copy { border: 0; background: transparent; padding: 0; }
.claim-link { white-space: normal; }
#downloads .claim-link { display: table; margin-top: 10px; }

@media (max-width: 760px) {
  .hero-product .stage-view { transform: none; filter: none; }
  .product-picker strong { font-size: 12px; letter-spacing: .035em; }
  .product-picker button { padding-right: 4px; }
  .stage-top { font-size: 10px; }
  .native-preview-note { flex-wrap: wrap; }
  .native-preview-note .text-link { white-space: nowrap; }
  .download-list article > .button { width: auto; }
  .download-list .button { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-product .stage-view { transition: none; transform: none; }
}

/* Product status uses the same hairline divisions as the specification tables. */
.product-roadmap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-block: 24px; }
.product-roadmap section { border-top: 1px solid var(--line); }
.product-roadmap h4 { margin: 11px 0 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.product-roadmap ul { list-style: none; padding: 0; margin: 0; }
.product-roadmap li { padding-block: 7px; font-size: 14px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.product-roadmap li + li { border-top: 1px solid #293239; }
.product-roadmap a { color: var(--ice); text-decoration: underline; text-decoration-color: #53636d; text-underline-offset: 3px; }

.quota-pool { padding-block: clamp(30px, 4vw, 60px); border-block: 1px solid var(--line); }
.pool-mast { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.pool-heading .eyebrow { margin: 0 0 9px; }
.pool-heading h2 { margin: 0; font-size: clamp(30px, 3.5vw, 52px); font-weight: 500; letter-spacing: -.045em; line-height: 1.2; }
.pool-status, .pool-readout p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.pool-status { margin: 12px 0 0; }
.pool-readout { border-left: 1px solid var(--line); padding-left: clamp(18px, 3vw, 50px); }
.pool-readout p { margin: 0 0 5px; }
.pool-total { display: flex; gap: 10px; align-items: baseline; color: #d9e5e9; }
.pool-total strong { font: 400 clamp(46px, 6.4vw, 100px)/1 Consolas, monospace; letter-spacing: -.075em; font-variant-numeric: tabular-nums; }
.pool-total span { font-size: 15px; }
.pool-rules { display: grid; grid-template-columns: 1fr 1.3fr 1fr 1fr; margin: clamp(20px, 3vw, 40px) 0 0; border-block: 1px solid var(--line); background: rgb(16 21 25 / 76%); }
.pool-rules > div { padding: 18px clamp(14px, 1.7vw, 26px); min-width: 0; }
.pool-rules > div + div { border-left: 1px solid #33414b; }
.pool-rules dt { font-size: 14px; font-weight: 550; }
.pool-rules dd { margin: 8px 0 0; }
.pool-rules strong { font: 400 clamp(24px, 2.5vw, 40px)/1.15 Consolas, monospace; color: var(--ice); letter-spacing: -.04em; }
.pool-rules small { font-weight: 400; font-size: 13px; letter-spacing: 0; }
.pool-rules p, .pool-actions p { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.pool-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 18px; }
.pool-actions p { flex: 1 1 220px; margin: 0; }
.pool-actions .button { min-width: 0; }
@media (max-width: 900px) {
  .pool-rules { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pool-rules > div:nth-child(3) { border-left: 0; }
  .pool-rules > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .product-roadmap { gap: 16px; margin-block: 16px; }
  .pool-mast { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .pool-readout { border: 0; padding: 0; }
  .pool-total strong { font-size: clamp(42px, 12vw, 68px); }
  .pool-status { margin-top: 6px; }
  .pool-rules > div { padding: 12px 10px; }
  .pool-rules dt, .pool-rules p { font-size: 13px; }
  .pool-rules dd, .pool-rules p { margin-top: 5px; }
  .pool-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .pool-actions .button { min-height: 40px; padding-block: 9px; }
}

@media (max-width: 480px) {
  .hero { padding-block: 32px 22px; gap: 20px; }
  .hero-copy .hero-intro br { display: none; }
  .hero-note { margin-top: 14px; }
  .hero-stage .stage-caption { margin-top: 8px; }
}
