/* LiveCaptions 实时字幕 — public pages.
   Shared page chrome (design tokens, base reset, .aura backdrop, .wrap container, .nav header,
   .mobile-nav, .footer) lives in chrome.css, which every page must link before this file. */

/* ---- shared card surface (solid, crisp; backdrop blur is reserved for floating chrome) ---- */

.glass,
.item,
.price,
.cloud-option,
.pricing-package-card,
.pricing-package-trial,
.sheet,
.install-panel,
.browser-card,
.faq details,
.steps li,
.download-help,
.facts,
.cloud-trial-callout,
.cloud-trial-guide {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

/* The focus ring itself is shared chrome; the rounding stays portal-only because applying it
   to the account centre would square the circular #logout button and the .tabs buttons. */
a:focus-visible,
button:focus-visible,
summary:focus-visible { border-radius: var(--r-md); }

/* ---- buttons: crisp solid surfaces, flat high-craft primary fill ---- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: var(--fw-medium);
  font-size: var(--fs-md);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  background: var(--surface-soft);
  border-color: var(--deep);
  color: var(--ink);
}

.button.ghost {
  background: transparent;
  border-color: var(--line-strong);
  box-shadow: none;
}

.button.ghost:hover {
  background: var(--surface-soft);
}

.button:active { transform: scale(0.98); }

.button:focus-visible { border-radius: var(--r-pill); }

/* Primary actions stay visible without hover; arrow reflects link semantics (navigate ->, download v). */
.button.download-button {
  min-height: 52px;
  padding: 0 30px;
  border-color: transparent;
  background: var(--brand-fill);
  color: #fff;
  box-shadow: var(--brand-shadow);
}

.button.download-button::before {
  content: none;
}

.button.download-button::after {
  content: "→";
  margin-left: 9px;
  font-size: 1.15em;
  line-height: 1;
  transition: transform 0.25s ease;
}

.button.download-button[download]::after {
  content: "↓";
}

.button.download-button:hover {
  background: var(--brand-fill-hover);
  border-color: transparent;
  color: #fff;
}

.button.download-button:hover::after { transform: translateX(3px); }
.button.download-button[download]:hover::after { transform: translateY(2px); }

.button.primary {
  border-color: transparent;
  background: var(--brand-fill);
  color: #fff;
  box-shadow: var(--brand-shadow);
}
.button.primary:hover {
  background: var(--brand-fill-hover);
  border-color: transparent;
  color: #fff;
}

/* ---- typography ---- */

h1, h2, h3 { font-weight: var(--fw-bold); letter-spacing: -0.01em; }

h1, h2 { text-wrap: balance; }

.hero h1, .page-title { font-size: var(--fs-display); line-height: 1.16; margin: 0 0 18px; font-weight: var(--fw-bold); letter-spacing: -0.01em; }

h2 { font-size: var(--fs-3xl); line-height: 1.28; margin: 0 0 14px; }

.hero p, .lede { font-size: var(--fs-lg); color: var(--muted); max-width: 990px; text-wrap: pretty; }

.marker {
  padding: 0 0.06em;
  white-space: nowrap;
  background: var(--grad-strong);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- hero ---- */

.hero {
  padding: 96px 0 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

.stage { position: relative; min-width: 0; }

/* soft halo behind the demo card */
.stage::before {
  content: "";
  position: absolute;
  inset: -7% -9%;
  z-index: 0;
  background:
    radial-gradient(46% 46% at 62% 38%, rgba(199, 115, 154, 0.24), transparent 72%),
    radial-gradient(40% 40% at 30% 68%, rgba(184, 169, 201, 0.28), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.screen { position: relative; }

/* ---- fact trust bar ---- */

.facts {
  margin-top: var(--space-block);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-radius: var(--r-lg);
}

.facts > div {
  position: relative;
  padding: 0;
}

.facts > div + div {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.facts strong { display: block; font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--ink); margin-bottom: 6px; }

.facts span { font-size: var(--fs-sm); line-height: 1.65; color: var(--muted); }

/* ---- sections & feature grid ---- */

section { padding: var(--space-section) 0 0; }

section:last-of-type { padding-bottom: var(--space-section); }

/* keep anchored headings clear of the sticky nav */
section[id], .sheet[id] { scroll-margin-top: 110px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: var(--space-block); }

.item { border-radius: var(--r-lg); padding: 32px 28px; }

.item .icon { width: 64px; height: 64px; display: block; margin-bottom: 18px; }

.item h3 { margin: 0 0 8px; font-size: var(--fs-xl); }

.item p { margin: 0; color: var(--muted); }

.install-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 64px;
  text-align: center;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #ffffff, #f6eefb);
  box-shadow: var(--shadow-lg);
}

/* decorative corner glows inside the install panel */
.install-panel::before,
.install-panel::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(38px);
  pointer-events: none;
}

.install-panel::before {
  top: -150px;
  right: -90px;
  background: radial-gradient(circle, rgba(239, 207, 225, 0.55), transparent 70%);
}

.install-panel::after {
  bottom: -160px;
  left: -100px;
  background: radial-gradient(circle, rgba(183, 166, 204, 0.45), transparent 70%);
}

.install-panel > * { position: relative; }

.install-panel .lede { margin-left: auto; margin-right: auto; }

.install-panel .actions { justify-content: center; }

/* ---- download and installation guide ---- */

.page.download-page { max-width: var(--shell); padding: 36px var(--gutter) 64px; }
.download-hero { text-align: center; }
.download-hero .page-title { margin: 0 0 12px; font-size: var(--fs-display); line-height: 1.16; font-weight: var(--fw-bold); letter-spacing: -0.01em; }
.download-hero .lede { margin: 0 auto; color: var(--ink); font-size: var(--fs-lg); font-weight: var(--fw-regular); }
.download-release-meta { margin: 8px 0 0; font-size: var(--fs-xs); }
.download-page .download-choices { padding: 0; }
.download-page .download-options { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 28px; }
.download-page .download-option {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 310px; padding: 24px;
  border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
}
.download-option .download-icon { width: 48px; height: 48px; margin: 0; padding: 10px; border-radius: var(--r-md); color: var(--deep); background: var(--surface-soft); }
.download-page .download-option h2 { margin: 14px 0 8px; color: var(--ink); font-size: var(--fs-xl); font-weight: var(--fw-bold); line-height: 1.3; }
.download-option .download-description { margin: 0; font-size: var(--fs-sm); line-height: 1.6; }
.download-option .download-meta { min-height: 20px; margin: 6px 0 18px; font-size: var(--fs-xs); line-height: 1.5; overflow-wrap: anywhere; }
.download-option > .download-action, .download-action-slot { margin-top: auto; width: 100%; }
.download-option .store-actions { margin-top: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; width: 100%; }
.download-option .store-actions .download-action { width: 100%; padding-inline: 8px; }
@media (max-width: 400px) {
  .download-option .store-actions { grid-template-columns: minmax(0,1fr); }
}
.download-option .button { min-height: 52px; padding: 10px 16px; font-size: var(--fs-md); line-height: 1.4; font-weight: var(--fw-medium); }
.download-option .download-action { gap: 4px; color: #fff; border-color: transparent; background: var(--brand-fill); box-shadow: var(--brand-shadow); }
.download-option .download-action:hover { color: #fff; background: var(--brand-fill-hover); border-color: transparent; }
.download-option .download-action::after { margin-left: 4px; }
.download-option .download-pending:disabled { width: 100%; color: var(--muted); background: var(--surface-soft); border-color: var(--line); box-shadow: none; opacity: 1; cursor: default; }
.download-option .download-crx-note { margin: 14px 0 0; color: var(--muted); font-size: var(--fs-xs); line-height: 1.55; }
.download-option .download-alternates { display: grid; gap: 8px; width: 100%; margin-top: auto; }
.download-option .download-alternate { width: 100%; min-height: 44px; padding: 8px 16px; color: var(--deep); border-color: var(--line); background: var(--surface-soft); box-shadow: none; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.download-option .download-alternate:hover { color: var(--ink); border-color: var(--deep); }
.crx-install { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.crx-install h3 { margin: 0 0 10px; color: var(--ink); font-size: var(--fs-xl); font-weight: var(--fw-bold); }
.crx-install p { max-width: 760px; font-size: var(--fs-sm); line-height: 1.7; }
.crx-install-steps { display: grid; gap: 12px; margin: 18px 0 14px; padding: 0; list-style: none; counter-reset: crx-step; }
.crx-install-steps li { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 14px 48px; position: relative; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); counter-increment: crx-step; }
.crx-install-steps li::before { content: counter(crx-step); position: absolute; left: 16px; top: 14px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--deep); font-size: var(--fs-2xs); font-weight: var(--fw-bold); }
.crx-install-steps strong { color: var(--ink); font-size: var(--fs-md); }
.crx-install-steps span { color: var(--muted); font-size: var(--fs-sm); line-height: 1.65; }
.update-crx-title { margin-top: 40px; color: var(--ink); font-size: var(--fs-lg); }
.download-option [hidden] { display: none; }
.download-page .download-option[hidden] { display: none; }
#macos-download .button + .button { margin-top: 8px; }
.download-page .download-guide-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; }
.download-guide-links a { display: inline-flex; align-items: center; min-height: 40px; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--deep); text-decoration: none; }
.download-guide-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.download-update-hint { max-width: 800px; margin: 6px auto 0; text-align: center; font-size: var(--fs-xs); line-height: 1.7; }
.download-update-hint a { color: var(--deep); white-space: nowrap; }
.download-page .download-help-group { display: grid; gap: 12px; padding: 28px 0 0; }
.download-help { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.download-help summary { display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 18px 24px; list-style: none; color: var(--ink); font-size: var(--fs-lg); font-weight: var(--fw-bold); cursor: pointer; }
.download-help summary::-webkit-details-marker { display: none; }
.download-help summary small { margin-left: auto; color: var(--muted); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.download-help summary::after { content: ""; flex: none; width: 16px; height: 16px; background: var(--deep); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.download-help[open] > summary::after { transform: rotate(180deg); }
.download-help[open] > summary { border-bottom: 1px solid var(--line); }
.download-help > section { padding: 24px; }
.download-help > .cloud-trial-guide { margin: 0; border: 0; border-radius: 0; background: none; }
.download-help h2:first-child, .download-page .mobile-install-handoff h2 { margin-top: 0; }
.download-help h2 { font-size: var(--fs-2xl); }
.download-help .field-hint { overflow-wrap: anywhere; }
#cloud-trial, #desktop { scroll-margin-top: 100px; }
@media (min-width: 761px) and (max-width: 1020px) {
  .download-page .download-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .download-option:last-child:nth-child(odd), .download-option:nth-child(odd):has(+ .download-option[hidden]) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .page.download-page { padding-block: 28px 64px; }
  .download-hero .page-title { font-size: clamp(30px,7.5vw,40px); }
  .download-hero .lede { font-size: var(--fs-md); }
  .download-page .download-options { grid-template-columns: minmax(0,1fr); margin-top: 20px; gap: 16px; }
  .download-page .download-option { min-height: 0; padding: 22px; }
  .download-option .download-meta { margin-bottom: 16px; }
  .download-page .download-guide-links { gap: 4px 18px; }
  .download-help summary { flex-wrap: wrap; gap: 6px 12px; padding: 16px 18px; }
  .download-help summary span { flex: 1; }
  .download-help summary small { order: 3; flex-basis: 100%; margin-left: 0; font-size: var(--fs-xs); }
  .download-help summary::after { order: 2; }
  .download-help > section { padding: 20px 18px; }
}
@media (forced-colors: active) {
  .download-option, .download-help { color: CanvasText; border-color: CanvasText; background: Canvas; }
  .download-option .download-action { color: ButtonText; border: 1px solid ButtonText; background: ButtonFace; box-shadow: none; }
  .download-option .download-alternate, .crx-install-steps li { color: ButtonText; border: 1px solid ButtonText; background: Canvas; box-shadow: none; }
  .crx-install-steps li::before { color: ButtonFace; background: ButtonText; }
  .download-help summary::after { forced-color-adjust: none; background: CanvasText; }
}

.download-page .mobile-install-handoff { display: none; margin-top: 24px; padding: 20px; border-radius: var(--radius); gap: 14px; }

.download-page .mobile-install-handoff h2 { margin: 0; font-size: var(--fs-xl); }

.mobile-install-handoff p { margin: 0; color: var(--muted); }

.mobile-install-handoff .mobile-install-copy { width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; font-size: var(--fs-md); font-weight: var(--fw-bold); line-height: 1.5; white-space: normal; color: #fff; background: var(--brand-fill); }

.mobile-install-handoff .mobile-install-copy:disabled { opacity: 0.6; cursor: default; }

.mobile-install-handoff .mobile-install-copy:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }

.mobile-install-handoff a { min-width: 0; font-size: var(--fs-sm); overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }

.download-section { padding: 50px 0 0; }

.download-section:last-child { padding-bottom: 0; }

.browser-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 34px; }

.browser-card { border-radius: var(--radius); padding: 34px 32px; }

.browser-card svg { width: 68px; height: 68px; display: block; margin-bottom: 18px; }

.browser-card h3 { margin: 0 0 12px; font-size: var(--fs-xl); }

.browser-card ol { margin: 0 0 24px; padding-left: 1.35em; color: var(--muted); }

.browser-card li + li { margin-top: 8px; }

.browser-card .button { width: 100%; }

.install-intro { max-width: 680px; margin: 0; }

.install-guide { list-style: none; counter-reset: install-guide-step; display: grid; grid-template-columns: 1fr; gap: 24px; margin: 30px 0 0; padding: 0; }

.install-guide li { counter-increment: install-guide-step; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; overflow: hidden; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); box-shadow: var(--inner), var(--shadow); }

.install-guide figure { position: relative; overflow: hidden; margin: 0; background: #f7f1f8; }

.install-guide figure::before { content: counter(install-guide-step); position: absolute; z-index: 1; top: 18px; left: 18px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: var(--fw-bold); background: linear-gradient(135deg, var(--taro), var(--sakura)); box-shadow: 0 6px 14px rgba(199, 115, 154, 0.3); }

.install-guide img,
.install-guide .extract-zip-demo,
.install-guide .chrome-load-demo,
.install-guide .edge-load-demo,
.install-guide .first-use-demo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

.install-guide figcaption { position: absolute; right: 18px; bottom: 14px; padding: 3px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.82); color: var(--deep); font-size: var(--fs-2xs); font-weight: var(--fw-bold); }

.install-guide .extract-zip-confirmation { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }

.install-guide .extract-zip-confirmation::before { content: none; }

.install-guide .extract-zip-confirmation img,
.install-guide li:hover .extract-zip-confirmation img { aspect-ratio: auto; object-fit: contain; transform: none; transition: none; }

.install-guide .extract-zip-confirmation figcaption { position: static; padding: 8px 12px; border-radius: 0; }

.install-guide li > div { padding: 26px 28px 30px; }

.install-guide h3 { margin: 0 0 9px; font-size: var(--fs-xl); }

.install-guide p { margin: 0; color: var(--muted); }

.install-guide code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.88em; overflow-wrap: anywhere; }
.update-guide li { grid-template-columns: 1fr; }
.update-guide li > div { position: relative; padding-left: 82px; }
.update-guide li > div::before { content: counter(install-guide-step); position: absolute; top: 22px; left: 26px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: var(--fw-bold); background: linear-gradient(135deg, var(--taro), var(--sakura)); box-shadow: 0 6px 14px rgba(199, 115, 154, 0.3); }

.internal-url-control { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; vertical-align: middle; }

.copy-internal-url { appearance: none; border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 3px 10px; color: var(--deep); background: var(--surface-soft); font: inherit; font-size: 0.82em; font-weight: var(--fw-bold); line-height: 1.35; cursor: pointer; }

.copy-internal-url:hover, .copy-internal-url:focus-visible { border-color: var(--deep); color: var(--ink); background: #eee3f7; outline: none; }

.copy-toast { position: fixed; z-index: 10; left: 50%; bottom: 28px; max-width: min(420px, calc(100vw - 32px)); transform: translate(-50%, 16px); padding: 11px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); color: var(--ink); background: var(--surface); box-shadow: var(--shadow-lg); font-size: var(--fs-sm); font-weight: var(--fw-bold); line-height: 1.45; opacity: 0; pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }

.copy-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---- inner pages ---- */

.page { padding: 80px 0 110px; max-width: 820px; }

.page.wide { max-width: 1120px; }

.page > h2,
.page > section > h2,
.page > .sheet h2:not(:first-child) { margin-top: 48px; }

.item h2,
.item h3 { margin: 0 0 8px; font-size: var(--fs-xl); line-height: 1.35; }

.page p, .page li { color: var(--muted); }

.sheet { border-radius: var(--r-lg); }

.page .sheet { padding: 52px 60px; margin-top: 36px; }

.page .sheet.legal-sheet { padding: 36px 44px; margin-top: 24px; }
.legal-sheet .legal-facts + h2 { margin-top: 30px; }

.page .sheet h2:first-child { margin-top: 0; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.breadcrumbs a { color: var(--deep); font-weight: var(--fw-bold); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---- pricing ---- */

.price { border-radius: var(--r-lg); padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; }

.price h2, .price h3 { margin: 0; font-size: var(--fs-xl); }

.price strong {
  font-size: var(--fs-3xl);
  color: var(--deep);
}

.price p { margin: 0; color: var(--muted); }
.price .text-link { margin-top: auto; padding-top: 8px; align-self: flex-start; }

/* ---- pricing packages cards ---- */

.pricing-packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.pricing-package-trial {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 20px 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  box-shadow: var(--shadow-sm);
}
.pricing-package-trial h3 { margin: 0 0 4px; font-size: var(--fs-xl); color: var(--ink); }
.pricing-package-trial p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.pricing-package-trial .text-link { margin-top: 0; flex: none; }
.pricing-package-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.pricing-package-head { display: flex; align-items: center; gap: 12px; }
.pricing-package-head svg { flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 50%; color: var(--deep); background: var(--surface-soft); }
.pricing-package-head h3 { margin: 0; font-size: var(--fs-xl); font-weight: var(--fw-bold); color: var(--ink); }
.pricing-package-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.pricing-package-price del { color: var(--muted-subtle); font-size: var(--fs-sm); }
.pricing-package-price strong { color: var(--rose); font-size: var(--fs-4xl); font-weight: var(--fw-bold); line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pricing-package-discount { display: inline-flex; align-self: center; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: var(--fs-2xs); font-weight: var(--fw-bold); color: var(--deep); background: var(--surface-soft); }
.pricing-package-hint { margin: -4px 0 0; font-size: var(--fs-2xs); color: var(--muted-subtle); }
.pricing-package-usage { display: grid; gap: 6px; margin: 4px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.pricing-package-usage span { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--muted); }
.pricing-package-usage b { color: var(--ink); font-weight: var(--fw-medium); }
.pricing-package-card .button { width: 100%; margin-top: auto; min-height: 44px; color: #fff; border-color: transparent; background: var(--brand-fill); box-shadow: var(--brand-shadow); }
.pricing-package-card .button:hover { color: #fff; background: var(--brand-fill-hover); border-color: transparent; }
.pricing-package-card, .cloud-option, .path-grid .item, .home-client-card { transition: box-shadow 0.25s ease, border-color 0.25s ease; }
@media (max-width: 900px) { .pricing-packages { grid-template-columns: minmax(0, 1fr); } }

/* ---- faq accordion ---- */

.faq details { border-radius: var(--r-lg); padding: 2px 24px; margin: 0 0 16px; box-shadow: var(--shadow-sm); }

.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: var(--fw-bold);
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  margin-right: 4px;
  border-right: 2.5px solid var(--deep);
  border-bottom: 2.5px solid var(--deep);
  transform: rotate(45deg);
  transition: transform 0.35s ease;
}

.faq details[open] summary::after { transform: rotate(225deg); }

.faq details p { margin: 0 0 20px; color: var(--muted); }

/* ---- steps, chips, honesty list, text links ---- */

.steps { list-style: none; counter-reset: step; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }

.steps li {
  counter-increment: step;
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border-radius: var(--r-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

/* gradient thread connecting the step numbers */
.steps li::after {
  content: "";
  position: absolute;
  left: calc(26px + 19px - 1.5px);
  top: calc(24px + 38px + 4px);
  bottom: -22px;
  width: 3px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(114, 83, 134, 0.35), rgba(184, 169, 201, 0.12));
}

.steps li:last-child::after { display: none; }

.steps li::before {
  content: counter(step);
  flex: none;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  color: var(--deep);
  font-weight: var(--fw-bold);
}

.steps strong { display: block; margin-bottom: 4px; font-size: var(--fs-lg); }

.steps p { margin: 0; max-width: 46em; color: var(--muted); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 28px 0 4px; }

.chips li {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--deep);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
}

.chips li:nth-child(even) {
  background: #f9f2f7;
  border-color: rgba(212, 174, 198, 0.55);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: var(--fw-bold);
  color: var(--deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

.text-link:hover { color: var(--ink); }

.text-link::after { content: "\2192"; transition: transform 0.25s ease; }

.text-link:hover::after { transform: translateX(4px); }

/* ---- content extensions ---- */

.section-intro { max-width: 700px; }

.section-intro p { color: var(--muted); }

.notice {
  margin: 26px 0 0;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--deep);
}

.notice strong { color: var(--ink); }

.feedback-section { padding-top: var(--space-section); }

.feedback-sheet {
  display: grid;
  gap: 22px;
  margin-top: 30px;
  padding: 36px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.feedback-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.feedback-sheet label { display: grid; gap: 8px; color: var(--deep); font-size: var(--fs-sm); font-weight: var(--fw-bold); }

.feedback-sheet input,
.feedback-sheet select,
.feedback-sheet textarea {
  width: 100%;
  border: 1px solid var(--edge-field);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.66);
  padding: 11px 13px;
  color: var(--ink);
  font: inherit;
}

.feedback-sheet textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.feedback-sheet input:focus-visible,
.feedback-sheet select:focus-visible,
.feedback-sheet textarea:focus-visible { outline: 3px solid rgba(199, 115, 154, 0.38); outline-offset: 2px; border-color: var(--rose); }
.field-hint { color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-regular); }
.feedback-check { display: flex!important; grid-template-columns: none!important; align-items: flex-start; gap: 10px; padding: 13px 15px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.42); }
.feedback-check input { width: 18px!important; height: 18px; margin-top: 3px; padding: 0; accent-color: var(--rose); }
.feedback-check span { display: grid; gap: 4px; }
.feedback-check small { color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-regular); line-height: 1.5; }
.feedback-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.feedback-actions .button {
  border: 1px solid transparent;
  background: var(--brand-fill);
  color: #fff;
  box-shadow: var(--brand-shadow);
}
.feedback-actions .button:hover {
  background: var(--brand-fill-hover);
  border-color: transparent;
  color: #fff;
}
.feedback-status { min-height: 22px; margin: 0; color: var(--deep); font-size: var(--fs-sm); font-weight: var(--fw-bold); }

.release-note {
  margin: 24px 0 0;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: var(--fs-sm);
}

.release-note strong { color: var(--deep); }

.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: var(--space-block); }

.path-grid .item { min-height: 100%; }

@media (min-width: 761px) {
  .path-grid.guides-grid .item:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 32px;
    padding: 28px 32px;
  }
  .path-grid.guides-grid .item:first-child h3 { grid-column: 1; grid-row: 1; margin: 0; }
  .path-grid.guides-grid .item:first-child p { grid-column: 1; grid-row: 2; }
  .path-grid.guides-grid .item:first-child .text-link { grid-column: 2; grid-row: 1 / 3; margin-top: 0; align-self: center; }
}

.path-label { margin: 0 0 10px; color: var(--deep); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: 0.02em; }

.compare-wrap { overflow-x: auto; margin-top: 30px; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

.compare-table,
.data-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  background: var(--surface);
  color: var(--muted);
}

.compare-table th,
.compare-table td,
.data-table th,
.data-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(184, 169, 201, 0.2);
  text-align: left;
  vertical-align: top;
}

.compare-table th,
.data-table th {
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.28);
}

.compare-table tr:last-child td,
.data-table tr:last-child td { border-bottom: 0; }

.compare-table td:first-child,
.compare-table:has([data-tier-comparison]) td:nth-child(2),
.compare-table:has([data-tier-comparison]) td:nth-child(4),
.compare-table:has([data-catalog-products]) td:nth-child(-n+3) { white-space: nowrap; }

.compare-table td:first-child,
.data-table td:first-child { color: var(--ink); font-weight: var(--fw-bold); }

.table-wrap { overflow-x: auto; margin: 24px 0 0; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

.table-note { margin: 12px 0 0; color: var(--muted); font-size: var(--fs-sm); }

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 28px 0 0;
}

.legal-nav a { color: var(--deep); font-weight: var(--fw-bold); text-decoration: none; }

.legal-nav a:hover { color: var(--ink); text-decoration: underline; }

.business-license-badge {
  display: inline-block;
  margin-top: 8px;
  border-radius: 50%;
  line-height: 0;
}

.business-license-badge img {
  display: block;
  width: 96px;
  height: 96px;
  max-width: 100%;
  object-fit: contain;
}

.business-license-badge:hover img { transform: scale(1.04); }

.business-license-badge img { transition: transform 0.2s ease; }

/* legal.html — labelled fact rows; the licence badge rides on the heading row. */
.legal-contact-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.legal-contact-head h2 { margin: 0; }

.legal-contact-head .business-license-badge { margin-top: 0; }

.legal-facts { margin: 18px 0 0; }

.legal-facts > div {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.legal-facts > div:last-child { border-bottom: 1px solid var(--line); }

.legal-facts dt {
  color: var(--deep);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
}

.legal-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: var(--fs-md);
  line-height: 1.5;
}

.legal-facts dd a {
  color: var(--deep);
  font-weight: var(--fw-bold);
  text-underline-offset: 3px;
}

.legal-facts dd a:hover { color: var(--ink); }

.button[aria-disabled="true"] {
  cursor: default;
  opacity: 0.78;
}

.button[aria-disabled="true"]:hover {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
  transform: none;
}

/* ---- footer: shared rules are in chrome.css, the licence disclosure is not ---- */

.footer .business-license { margin: 10px 0 0; text-align: center; font-size: var(--fs-xs); }

.footer .business-license img { width: auto; max-width: 160px; max-height: 48px; vertical-align: middle; }

/* ---- polish: restrained border and elevation feedback without misleading container lift ---- */

.price,
.browser-card,
.faq details {
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.chips li { transition: border-color 0.2s ease, background 0.2s ease; }

.install-guide img { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }

@media (hover: hover) {
  .path-grid .item:has(a):hover,
  .home-client-card:hover,
  .cloud-option:hover,
  .price:has(a):hover,
  .browser-card:hover,
  .pricing-package-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-lg);
  }

  .faq details:hover { border-color: var(--line-strong); }

  .chips li:hover { border-color: var(--line-strong); }

  .install-guide li:hover img { transform: scale(1.02); }

  .compare-table tr:hover td,
  .data-table tr:hover td { background: var(--surface-soft); }
}

/* section headings get a short gradient underline */
.section-intro h2 { position: relative; padding-bottom: 4px; }

.section-intro h2::after {
content: none;
}

/* text links underline on hover */
.text-link { position: relative; }

.text-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 2px;
  border-radius: var(--r-pill);
  background: currentColor;
  opacity: 0.55;
  transition: right 0.35s ease;
}

.text-link:hover::before { right: 0; }

/* ---- floating page chrome ---- */

.contact-button,
.back-to-top { position: fixed; z-index: 30; right: max(24px, env(safe-area-inset-right)); bottom: calc(max(24px, env(safe-area-inset-bottom)) + 60px); width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink); background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--inner), var(--shadow-soft); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms, background 0.4s ease, color 0.4s ease; }

.contact-button { bottom: max(24px, env(safe-area-inset-bottom)); opacity: 1; visibility: visible; transform: none; font: var(--fw-bold) var(--fs-sm)/1 var(--font); }

.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.contact-button svg,
.back-to-top svg { width: 22px; height: 22px; }

.contact-button:hover,
.back-to-top:hover {
color: var(--rose); background: var(--surface-soft);
}

.back-to-top:focus-visible { border-radius: var(--r-pill); }

.contact-dialog { width: min(660px, calc(100% - 36px)); max-height: calc(100dvh - 36px); margin: auto; padding: 26px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--cream); color: var(--ink); box-shadow: var(--shadow); }
.contact-dialog::backdrop { background: rgba(51, 38, 60, 0.42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
body:has(.contact-dialog[open]) { overflow: hidden; }
.contact-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.contact-heading h2 { margin: 0; font-size: var(--fs-2xl); }
.contact-close { flex: none; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--glass); color: var(--deep); font: var(--fw-bold) var(--fs-sm)/1 var(--font); cursor: pointer; }
.contact-intro { margin: 14px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.contact-intro a { color: var(--deep); }
.contact-dialog .feedback-sheet { margin-top: 20px; padding: 22px; gap: 16px; }
.contact-dialog .feedback-sheet label { min-width: 0; }
.contact-dialog .feedback-sheet textarea { min-height: 120px; }
.contact-dialog .feedback-sheet .notice { margin: 0; }
.contact-dialog .feedback-actions { gap: 10px; }
.contact-dialog .feedback-status { overflow-wrap: anywhere; }

@media (forced-colors: active) {
  .contact-button, .back-to-top, .contact-dialog, .contact-close { border-color: CanvasText; background: Canvas; color: CanvasText; }
}

/* smooth anchor scrolling and dialog motion; above-the-fold hero renders immediately */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .contact-dialog[open] {
    animation: dialog-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* ---- responsive: reduced motion and the mobile gutter live in chrome.css ---- */

@media (max-width: 760px) {
  .download-page .mobile-install-handoff { display: grid; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 56px 40px; }
  .hero h1, .page-title { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  .facts { grid-template-columns: 1fr; gap: 16px; padding: 24px 20px; }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 16px; }
  section { padding-top: 64px; }
  .wrap.install-panel { margin-inline: 18px; }
  .install-panel { padding: 40px 26px; }
  .page { padding-block: 56px 80px; }
  .page .sheet, .page .sheet.legal-sheet { padding: 30px 22px; }
  .legal-facts { margin-top: 16px; }
  .legal-facts > div { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }
  .legal-facts dd { font-size: var(--fs-md); }
  .browser-grid { grid-template-columns: 1fr; }
  .install-guide li { grid-template-columns: 1fr; }
  .direct-download-panel { align-items: flex-start; flex-direction: column; }
  .direct-download-panel .button { width: 100%; }
  .direct-install-grid { grid-template-columns: 1fr; }
  .download-section { padding-top: 56px; }
  .feedback-grid { grid-template-columns: 1fr; }
  .feedback-sheet { padding: 26px 20px; }
  .video { height: auto; min-height: 230px; }
  .path-grid { grid-template-columns: 1fr; }
  .compare-table,
  .data-table { min-width: 600px; }
  .contact-button, .back-to-top { right: max(12px, env(safe-area-inset-right)); }
  .back-to-top { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 60px); }
  .contact-button { bottom: max(14px, env(safe-area-inset-bottom)); }
  .page.download-page { padding-bottom: 96px; }
  .contact-dialog { padding: 18px; }
  .contact-dialog .feedback-sheet { padding: 16px; }
  body:has(.copy-toast.is-visible) .contact-button { bottom: max(96px, env(safe-area-inset-bottom)); }
  body:has(.copy-toast.is-visible) .back-to-top { bottom: calc(max(96px, env(safe-area-inset-bottom)) + 60px); }
}

/* Crisp showcase frame around unobstructed 16:9 demo player. */
.screen.home-demo {
  position: relative;
  margin: 0;
  padding: 12px 12px 10px;
  transform: none;
  animation: none;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.home-demo .demo-viewport {
  position: relative; z-index: 1; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md); background: #21182b;
  box-shadow: 0 4px 16px rgba(37, 24, 49, 0.12);
}
.demo-viewport video, .demo-viewport img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-demo [hidden] { display: none; }
.home-demo figcaption {
  position: relative; z-index: 1; padding: 10px 12px 4px; text-align: left;
}
.demo-caption-title { font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.demo-toggle {
  min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); color: var(--deep); background: var(--surface-soft); font: inherit; cursor: pointer;
}
.demo-toggle:hover { background: #f0e6f8; }
.demo-toggle:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.home-demo figcaption p { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-2xs); line-height: 1.7; }
.home-demo [data-demo-status] { color: #684252; }
@media (max-width: 760px) {
  .screen.home-demo { padding: 8px 8px 6px; border-radius: var(--r-lg); }
  .home-demo .demo-viewport { border-radius: var(--r-md); }
}

/* Mist-lilac homepage: centered introduction and an undistorted recorded demo. */
.home-hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding-block: 28px 16px;
  text-align: center;
}

.home-hero > div { min-width: 0; }
.home-hero h1 {
  margin: 0 0 10px; font-size: 76px; font-weight: var(--fw-black); line-height: 1.12; letter-spacing: -0.01em;
}
.home-hero .lede {
  max-width: 1040px; margin: 0 auto; font-size: var(--fs-2xl); font-weight: var(--fw-regular); line-height: 1.3; color: var(--ink);
}
.home-hero .hero-note {
  margin: 4px auto 0; font-size: var(--fs-xl); line-height: 1.4; color: var(--muted);
}
.home-hero .actions {
  justify-content: center; align-items: center; gap: 18px; margin-top: 27px;
}
.home-hero .actions .button {
  width: 284px; min-height: 60px; gap: 12px; padding-inline: 24px; font-size: var(--fs-lg); font-weight: var(--fw-medium); white-space: nowrap;
  border-color: transparent;
  background: var(--brand-fill);
  box-shadow: var(--brand-shadow);
}
.home-hero .actions .button::after { content: "→"; margin-left: 0; font-size: var(--fs-xl); line-height: 1; font-weight: var(--fw-regular); }
.home-hero .actions .button:hover { background: var(--brand-fill-hover); border-color: transparent; box-shadow: var(--brand-shadow); }
.home-hero .stage {
  width: min(100%, 680px); justify-self: center;
}
.home-highlights {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 auto; padding: 12px 34px 26px;
}
.home-highlights li { position: relative; display: flex; justify-content: flex-start; align-items: center; gap: 20px; }
.home-highlights li + li::before { content: ""; position: absolute; left: -20px; height: 32px; border-left: 1px solid var(--line); }
.home-highlights svg {
  flex: none; width: 56px; height: 56px; padding: 13px; border-radius: 50%; color: var(--deep); background: var(--surface-soft); border: 1px solid var(--line);
}
.home-highlights strong {
  display: block; font-size: var(--fs-lg); font-weight: var(--fw-bold);
}
.home-highlights span {
  display: block; margin-top: 3px; font-size: var(--fs-sm); color: var(--muted);
}
.home-clients { padding-block: 24px 48px; }
.home-clients .section-intro { max-width: none; margin: 0 auto 24px; text-align: center; }
.home-clients h2 { margin: 0; font-size: var(--fs-3xl); font-weight: var(--fw-bold); line-height: 1.3; }
.home-clients .section-intro p { margin: 10px 0 0; }
.home-client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home-client-card { display: flex; flex-direction: column; min-width: 0; }
.home-client-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.home-client-heading > svg { flex: none; width: 48px; height: 48px; padding: 8px; border-radius: var(--r-md); color: var(--deep); background: var(--surface-soft); }
.home-client-heading h3 { margin: 0 0 3px; font-size: var(--fs-xl); }
.home-client-heading span { color: var(--muted); font-size: var(--fs-xs); }
.home-client-sources { display: grid; gap: 12px; list-style: none; padding: 20px 0; margin: 0; }
.home-client-sources li { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 10px; font-size: var(--fs-sm); }
.home-client-sources strong { font-weight: var(--fw-bold); }
.home-client-sources span { color: var(--muted); }
.home-client-card > .text-link { align-self: flex-start; margin-top: auto; }
.home-install .home-client-actions .button { width: 284px; min-height: 56px; font-weight: var(--fw-medium); white-space: nowrap; }
.home-install .home-client-actions .button::after { content: "→"; font-size: var(--fs-xl); }
.home-install .home-data-link { margin: 20px 0 0; font-size: var(--fs-sm); }
.cloud-trial-section .section-intro {
  margin: 0 auto 20px; max-width: none; text-align: center;
}
.cloud-trial-section .cloud-option { position: relative; border-radius: var(--r-lg); padding: 28px; }
.cloud-trial-section .cloud-option.recommended { border-color: var(--line-strong); }

@media (max-width: 760px) {
  .home-hero {
    gap: 26px;
    padding-block: 36px 20px;
  }
  .home-hero h1 { font-size: clamp(36px, 7.8vw, 52px); }
  .home-hero .lede { font-size: var(--fs-lg); }
  .home-hero .hero-note { font-size: var(--fs-sm); }
  .home-hero .actions { gap: 10px; }
  .home-hero .actions .button { width: min(100%, 320px); padding-inline: 20px; }
  .home-highlights { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 12px 24px; }
  .home-highlights li { justify-content: flex-start; max-width: 330px; width: 100%; margin: auto; }
  .home-highlights li + li::before { content: none; }
  .home-clients { padding-block: 20px 32px; }
  .home-clients h2 { font-size: var(--fs-2xl); }
  .home-client-grid { grid-template-columns: minmax(0, 1fr); }
  .home-client-card { padding: 24px; }
  .home-client-heading { gap: 12px; }
  .home-client-heading h3 { font-size: var(--fs-xl); }
  .home-client-sources li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .home-install .home-client-actions .button { width: min(100%, 320px); }
  .cloud-trial-section .cloud-option { padding: 24px; }
}
/* Desktop downloads stay unavailable until the signed public manifest is loaded. */
#desktop-download-link[hidden] { display: none; }

/* Cloud experience entry: shared by the existing public pages. */
.trial-credit-note { color: var(--muted, #75657f); font-size: var(--fs-sm); line-height: 1.7; }
.home-hero .trial-credit-note {
  max-width: 880px; margin: 8px auto 0; font-size: var(--fs-2xs); line-height: 18px;
}
.cloud-trial-section {
  position: relative; z-index: 0; padding-block: 24px 48px;
}
/* Keep all three highlights and the next section visible in shorter desktop windows. */
@media (min-width: 1101px) and (max-height: 1000px) {
  .home-hero { padding-block: 14px 14px; gap: 16px; }
  .home-hero .actions { margin-top: 18px; }
  .home-hero .trial-credit-note { margin-top: 6px; }
  .home-hero .stage { width: min(100%, 596px); }
  .home-highlights { padding-block: 8px 14px; }
  .home-clients { padding-top: 14px; }
  .cloud-trial-section { padding-top: 20px; }
}
.cloud-options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cloud-option { display: flex; flex-direction: column; align-items: flex-start; }
.cloud-option .button { margin-top: auto; }
.cloud-option.recommended { border-color: #a8457a; }
a.button[href="download.html#cloud-trial"]:not(.ghost) { color: #fff; border-color: transparent; background: var(--brand-fill); box-shadow: var(--brand-shadow); }
a.button[href="download.html#cloud-trial"]:not(.ghost):hover { background: var(--brand-fill-hover); border-color: transparent; }
.home-hero a.button[href="download.html#cloud-trial"] { background: var(--brand-fill); }
.cloud-trial-callout, .cloud-trial-guide { margin-block: 24px; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface-soft); box-shadow: var(--shadow-sm); }
.cloud-trial-callout h2, .cloud-trial-guide h2 { margin-top: 0; }
.cloud-trial-callout .actions { margin-top: 18px; }
.cloud-trial-steps { display: grid; gap: 16px; padding-left: 24px; }
.cloud-trial-steps li { padding-left: 6px; }
.cloud-trial-steps strong, .cloud-trial-steps span { display: block; }
.cloud-trial-steps span { margin-top: 5px; line-height: 1.7; }
.cloud-pro-guide { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(111, 91, 134, .2); }
#cloud-trial, #cloud-trial-pro, #cloud-trial-plus, #extension-install { scroll-margin-top: 100px; }
@media (max-width: 640px) { .cloud-options-grid { grid-template-columns: minmax(0, 1fr); } .cloud-trial-callout, .cloud-trial-guide { padding: 18px; } .cloud-trial-callout .actions { align-items: stretch; } }
@media (forced-colors: active) { .cloud-trial-callout, .cloud-trial-guide, .cloud-option.recommended { border-color: CanvasText; background: Canvas; } }

.home-demo[data-controls-ready] video { object-fit: contain; }
.home-demo[data-controls-ready] figcaption { position: relative; padding: 8px 0 2px; text-align: center; }
.home-demo[data-controls-ready] .demo-controls-bar {
  display: flex; align-items: center; gap: 14px; height: 46px; padding: 4px 16px; border-radius: var(--r-md); color: #fff;
  background: linear-gradient(135deg, rgba(46, 30, 68, 0.78), rgba(24, 15, 38, 0.86));
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  backdrop-filter: blur(18px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 20px rgba(30, 18, 46, 0.14);
}
.home-demo .demo-caption-title { flex: none; font-size: var(--fs-sm); font-weight: var(--fw-bold); letter-spacing: 0.01em; white-space: nowrap; }
.home-demo[data-controls-ready] #home-demo-description { margin: 6px 8px 0; color: var(--muted); font-size: var(--fs-2xs); line-height: 1.5; text-align: center; }
.home-demo[data-controls-ready] .demo-toggle {
  flex: none; width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 50%; color: #fff;
  background: rgba(221, 209, 236, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
  font-size: 0; cursor: pointer;
}
.home-demo[data-controls-ready] .demo-toggle:hover { background: rgba(221,209,236,.36); }
.home-demo[data-controls-ready] .demo-toggle::before { content: "▶"; font-size: var(--fs-md); }
.home-demo[data-controls-ready][data-playing="true"] .demo-toggle::before { content: "Ⅱ"; font-size: var(--fs-xl); }
.demo-progress, [data-demo-time], .demo-icon-button { display: none; }
.home-demo[data-controls-ready] .demo-progress { display: block; flex: 1; min-width: 40px; height: 20px; margin: 0 6px; -webkit-appearance: none; appearance: none; border: 0; background: transparent; accent-color: #fff; cursor: pointer; }
.demo-progress::-webkit-slider-runnable-track { height: 4px; border-radius: var(--r-pill); background: linear-gradient(to right,#fff 0 var(--played,0%),rgba(211,195,227,.3) var(--played,0%) 100%); }
.demo-progress::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; margin-top: -4px; border: 0; border-radius: 50%; background: #fff; }
.demo-progress::-moz-range-track { height: 4px; border-radius: var(--r-pill); background: rgba(211,195,227,.3); }
.demo-progress::-moz-range-progress { height: 4px; border-radius: var(--r-pill); background: #fff; }
.demo-progress::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.home-demo[data-controls-ready] [data-demo-time] { display: block; flex: none; min-width: 80px; margin: 0; text-align: center; color: #dfd4eb; font: var(--fw-regular) var(--fs-xs) var(--font); font-variant-numeric: tabular-nums; }
.home-demo[data-controls-ready] .demo-icon-button { display: inline-grid; place-items: center; flex: none; width: 32px; height: 38px; padding: 0; border: 0; border-radius: var(--r-sm); color: #fff; background: transparent; cursor: pointer; }
.demo-icon-button svg { width: 22px; height: 22px; }
.home-demo[data-controls-ready] .demo-icon-button:hover { background: rgba(255,255,255,.12); }
.home-demo:fullscreen { width: 100vw; height: 100vh; padding: 0; border: 0; border-radius: 0; background: #000; }
.home-demo:fullscreen .demo-viewport { height: 100%; aspect-ratio: auto; border-radius: 0; }
.home-demo[data-controls-ready]:fullscreen video { object-fit: contain; }
.home-demo[data-controls-ready]:fullscreen figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 20px; background: linear-gradient(0deg, rgba(14,9,27,.9), transparent); transition: opacity .2s ease; }
.home-demo[data-controls-ready]:fullscreen #home-demo-description { color: #d5c7e3; }
.home-demo[data-controls-ready][data-playing="true"]:fullscreen:not(:hover):not(:focus-within) figcaption { opacity: 0; }
.home-demo [data-demo-status]:not([hidden]) { position: absolute; top: 10px; left: 10px; right: 10px; padding: 10px; background: #fff; color: var(--ink); border-radius: var(--r-sm); }
.cloud-trial-section::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cloud-trial-section .cloud-option {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.cloud-trial-section h2 { margin: 0; padding: 0; font-size: var(--fs-3xl); font-weight: var(--fw-bold); line-height: 1.3; }
.cloud-section-note { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: var(--fs-sm); }
.cloud-option-heading { display: flex; width: 100%; align-items: center; gap: 12px; margin-bottom: 14px; }
.cloud-option-heading svg { flex: none; width: 28px; height: 28px; color: var(--deep); }
.cloud-option-heading h3 { margin: 0; font-size: var(--fs-xl); font-weight: var(--fw-bold); }
.cloud-rate { margin-left: auto; padding: 4px 12px; border-radius: var(--r-pill); color: var(--deep); background: var(--surface-soft); border: 1px solid var(--line-strong); font-size: var(--fs-xs); font-weight: var(--fw-bold); white-space: nowrap; }
.cloud-rate del { color: var(--muted-subtle); font-size: 0.85em; }
.cloud-option-desc { margin: 0 0 14px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.cloud-lang-row { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; }
.cloud-lang-row li { padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface-soft); color: var(--deep); font-size: var(--fs-2xs); font-weight: var(--fw-medium); }
.cloud-lang-row li.cloud-lang-target { background: var(--rose-soft); color: var(--rose); }
.cloud-option > .text-link { margin-top: auto; }
.cloud-option h4 { margin: 0 0 10px; font-size: var(--fs-lg); }
@media (max-width: 760px) {
  .home-hero .actions .button { min-height: 50px; padding-inline: 20px; font-size: var(--fs-md); }
  .home-hero .actions .button { min-width: 0; gap: 8px; }
  .home-highlights { grid-template-columns: minmax(0,1fr); }
  .home-highlights svg { width: 44px; height: 44px; padding: 10px; }
  .home-highlights strong { font-size: var(--fs-md); }
  .home-highlights span { font-size: var(--fs-xs); }
  .home-demo[data-controls-ready] video { object-fit: contain; }
  .home-demo[data-controls-ready] .demo-controls-bar { gap: 6px; padding-inline: 8px; height: 44px; border-radius: var(--r-sm); }
  .home-demo[data-controls-ready] .demo-caption-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .home-demo[data-controls-ready] #home-demo-description { font-size: var(--fs-2xs); margin-inline: 2px; }
  .home-demo[data-controls-ready] [data-demo-time] { font-size: var(--fs-2xs); min-width: 68px; }
  .home-demo[data-controls-ready] .demo-icon-button { width: 28px; }
  .cloud-trial-section h2 { font-size: var(--fs-2xl); }
  .cloud-option-heading { flex-wrap: wrap; }
  .cloud-option-heading h3 { font-size: var(--fs-xl); }
}
@media (forced-colors: active) {
  .marker { background: none; color: CanvasText; }
  .home-hero .actions .button:not(.ghost), .cloud-trial-section .cloud-option, .facts { background: Canvas; border-color: CanvasText; color: CanvasText; box-shadow: none; }
}
.tier-credit-rate { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .45em; }
.tier-credit-rate del { color: var(--muted); font-size: .85em; font-weight: var(--fw-regular); text-decoration: line-through; text-decoration-thickness: 1px; }
.lang-overview { display: grid; gap: 18px; padding: 26px 30px; }
.lang-overview .lang-chips { margin: 0; justify-content: center; }
.lang-tier-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.lang-tier-col { min-width: 0; }
.lang-tier-col + .lang-tier-col { padding-left: 24px; border-left: 1px solid var(--line); }
.lang-tier-col h3 { margin: 0 0 6px; font-size: var(--fs-lg); line-height: 1.4; color: var(--ink); }
.lang-tier-col p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.lang-footnote { margin: 0; padding-top: 14px; border-top: 1px solid rgba(111, 91, 134, 0.14); color: var(--muted); font-size: var(--fs-xs); line-height: 1.6; text-align: center; }
@media (max-width: 760px) {
  .lang-overview { padding: 20px 18px; }
  .lang-tier-rows { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lang-tier-col + .lang-tier-col { padding-left: 0; padding-top: 14px; border-left: 0; border-top: 1px solid var(--line); }
  .lang-footnote { text-align: left; }
}
