@font-face {
  font-family: "LiveCaptions Sans";
  src: url("/assets/fonts/livecaptions-sans-v1.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* LiveCaptions 实时字幕 — shared page chrome: tokens, base, backdrop, container, navigation, footer.
   Linked BEFORE site.css / account.css on every page: the moved rules must stay behind the
   per-app sheets, which is why .nav and .footer re-scope --muted instead of trusting :root. */

:root {
  --taro: #b7a6cc;
  --sakura: #efcfe1;
  --peach: #f5e3e7;
  --cream: #fcfaff;
  --ink: #251831;
  --chrome-muted: #857794;
  --muted: var(--chrome-muted);
  --deep: #725386;
  --rose: #b6558c;
  --brand-fill: radial-gradient(ellipse at 22% 0%, rgba(239, 153, 199, .16), transparent 68%), linear-gradient(178deg, #d66aa4, #c55e98);
  --brand-fill-hover: radial-gradient(ellipse at 22% 0%, rgba(239, 153, 199, .15), transparent 68%), linear-gradient(178deg, #ce619e, #b9538d);
  --brand-fill-hero: radial-gradient(ellipse at 17% 0%, rgba(234, 145, 192, .28), transparent 70%), linear-gradient(105deg, #cb6ca1, #b76599);
  --surface-soft: #f7f1fa;
  --edge-field: #9a87a7;
  --grad: linear-gradient(120deg, var(--taro), var(--sakura));
  --grad-strong: linear-gradient(168deg, #ce88b5, #c46ba3 48%, #ba5b97);
  --glass: rgba(255, 255, 255, 0.68);
  --glass-soft: rgba(255, 255, 255, 0.52);
  --surface-grain: url("/assets/brand/lilac-grain.svg");
  --line: rgba(218, 199, 236, 0.38);
  --inner: inset 0 1px 0 rgba(255, 255, 255, 0.98), inset 0 -1px 0 rgba(233, 220, 246, .13);
  --shadow: 0 6px 24px rgba(124, 91, 155, 0.055);
  --shadow-soft: 0 8px 24px rgba(84, 52, 110, 0.045);
  --radius: 24px;
  --font: "LiveCaptions Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --shell: 1100px;
  --gutter: 20px;
  --gutter-sm: 18px;
}

* { box-sizing: border-box; }

html { overflow-x: clip; scrollbar-width: thin; scrollbar-color: #c9b6d4 transparent; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--taro), var(--sakura));
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

::selection { background: rgba(248, 200, 220, 0.65); }

body {
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: radial-gradient(ellipse 680px 540px at 48% 25%, rgba(255,255,255,.96), transparent 90%), linear-gradient(145deg, #fbf9fe, #fdfaff 58%, #fdfbfe);
  background-attachment: fixed;
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
}

/* ---- static, low-contrast lilac ribbons ---- */

.aura {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: url("/assets/brand/lilac-ribbons.svg?v=20261017-lilac-3") center top / cover no-repeat;
}

.aura i {
  display: none;
}

/* ---- container: every page section sits in one .wrap column ---- */

.wrap { max-width: var(--shell); margin: auto; padding: 0 var(--gutter); }

/* ---- header ---- */

.nav {
  --muted: var(--chrome-muted);
  position: sticky;
  top: 10px;
  z-index: 20;
  max-width: 1080px;
  margin-top: 10px;
  padding: 4px 48px 4px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.brand::before {
  content: "";
  flex: none;
  width: 38px;
  height: 38px;
  background: url("/logo-108.png") center / contain no-repeat;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand:hover::before {
  transform: rotate(-8deg) scale(1.06);
}

.brand:hover { color: var(--rose); }

/* Child selectors, not descendants: the account dropdown is also a <nav> inside the header, and a
   bare `.nav nav` would lay its items in a row on desktop and hide it outright under 760px. */
.nav > nav { display: flex; gap: 29px; font-size: 13px; margin-left: auto; }

.nav > nav a {
  position: relative;
  text-decoration: none;
  color: #30213e;
  font-weight: 450;
  transition: color 0.4s ease;
}

.nav > nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--taro), var(--sakura));
  transition: right 0.35s ease;
}

.nav > nav a:hover { color: var(--rose); }

.nav > nav a:hover::after { right: 0; }

/* sits after :hover on purpose: same specificity, so source order has to break the tie */
.nav > nav a[aria-current="page"] { color: var(--rose); font-weight: 650; }
.nav > nav a[aria-current="page"]::after { right: 0; }

/* ---- signed-in account entry: nav-account.js renders into this shared right slot ---- */

.nav-account-mount { position: relative; flex: none; margin-left: 16px; }

.nav-account-mount:empty { display: none; }

.nav-account summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  min-height: 38px;
  padding: 5px 14px;
  border: 1px solid rgba(154, 130, 175, 0.3);
  border-radius: 999px;
  background: var(--glass-soft);
  color: var(--deep);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.4s ease, border-color 0.4s ease;
}

.nav-account summary::-webkit-details-marker { display: none; }
.nav-account summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: auto;
  background: currentColor;
  -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;
  transition: transform .2s ease;
}
.nav-account[open] > summary::after { transform: rotate(180deg); }

.nav-account summary:hover,
.nav-account[open] > summary { color: var(--rose); border-color: rgba(199, 115, 154, 0.45); }

.nav-account nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 9;
  min-width: 170px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fdfbff;
  box-shadow: var(--shadow-soft);
}

.nav-account nav a,
.nav-account nav button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--deep);
  cursor: pointer;
  font: 700 14px/1.4 var(--font);
  text-align: left;
  text-decoration: none;
  transition: background 0.35s ease;
}

.nav-account nav a:hover,
.nav-account nav button:hover { background: rgba(248, 200, 220, 0.35); }

/* ---- collapsible navigation (mobile) ---- */

.mobile-nav { display: none; }

.mobile-nav summary {
  list-style: none;
  min-height: 38px;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass-soft);
  color: var(--deep);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.mobile-nav summary::-webkit-details-marker { display: none; }

.mobile-nav nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 8;
  min-width: 170px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fdfbff;
  box-shadow: var(--shadow-soft);
}

.mobile-nav nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--deep);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.mobile-nav nav a:hover { background: rgba(248, 200, 220, 0.35); }

/* ---- footer ---- */

.footer {
  /* Keep shared footer text independent of page-specific palette overrides. */
  --muted: var(--chrome-muted);
  padding: 44px 0 56px;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, transparent, rgba(184, 169, 201, 0.55) 22%, rgba(199, 115, 154, 0.6) 50%, rgba(184, 169, 201, 0.55) 78%, transparent) 1;
  font-size: 14px;
  color: var(--muted);
}

.footer nav { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: center; }

.footer nav a { position: relative; }

.footer nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: var(--grad);
  transition: right 0.35s ease;
}

.footer nav a:hover::after { right: 0; }

.footer .filing { margin: 16px 0 0; text-align: center; font-size: 13px; }

.footer a { text-decoration: none; font-weight: 700; transition: color 0.4s ease; }

.footer a:hover { color: var(--rose); }

/* Declared after .nav so this fallback can take effect; it was unreachable in site.css
   because .nav followed it. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(255, 255, 255, 0.94); }
}

@media (prefers-reduced-motion: reduce) {
  .aura i { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1020px) {
  .nav > nav { display: none; }
  .mobile-nav { display: block; position: relative; margin-left: auto; }
  .mobile-nav nav { display: block; }
}

@media (max-width: 760px) {
  /* Specificity has to beat the padding shorthands in the sheets that follow
     (.hero, .page, .facts, .footer); .nav and .install-panel carry their own inset. */
  .wrap:not(.nav):not(.install-panel) { padding-inline: var(--gutter-sm); }
  .nav { padding: 9px 12px; margin-inline: var(--gutter-sm); gap: 10px; border-radius: 20px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand::before { width: 24px; height: 24px; }
  .nav > nav { display: none; }
  .mobile-nav { display: block; position: relative; margin-left: auto; }
  .mobile-nav nav { display: block; }
  .nav-account-mount { margin-left: 0; }
}

/* Brand (226px) + menu (55px) + account pill (99px) and their gaps stop fitting in the nav's
   content box below a 500px viewport, and a wrapping flex row then splits the menu from the pill.
   With an account pill present, give the brand its own row so the two controls stay together. */
@media (max-width: 500px) {
  .nav:has(.nav-account-mount:not(:empty)) .brand { flex: 0 0 100%; }
}

@media (max-width: 400px) {
  .brand { font-size: 13.5px; }
}

@media (forced-colors: active) {
  .aura { display: none; }
  .nav, .mobile-nav nav, .nav-account nav { border-color: CanvasText; background: Canvas; }
  .nav > nav a[aria-current="page"]::after { background: LinkText; }
  .nav-account summary::after { forced-color-adjust: none; background: CanvasText; }
}

@media (min-width: 1400px) {
  .nav:has(.nav-account-mount:not(:empty)) { max-width: var(--shell); padding-right: 116px; background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav:has(.nav-account-mount:not(:empty))::before { content: ""; position: absolute; inset: 0 88px 0 0; border-radius: 20px; background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); pointer-events: none; }
  .nav:has(.nav-account-mount:not(:empty)) > a, .nav:has(.nav-account-mount:not(:empty)) > nav { position: relative; }
  .nav:has(.nav-account-mount:not(:empty)) .nav-account-mount { position: absolute; right: -110px; width: 176px; margin-left: 0; }
  .nav-account summary { min-height: 48px; padding: 11px 18px; font-size: 14px; }
}
.nav-account summary::before { content: ""; display: block; flex: none; width: 18px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 22'%3E%3Ccircle cx='10' cy='5.5' r='5' fill='%239674aa'/%3E%3Cpath d='M1 21v-3a9 7 0 0 1 18 0v3Z' fill='%239674aa'/%3E%3C/svg%3E") center / contain no-repeat; }
.account-main + .footer { padding-top: 20px; }
