/* Self-contained marketing site. No framework, third-party requests, or tracking. */
/* Inter is used only for Latin text; Apple devices use their system SF font.
   Chinese glyphs remain in the platform's default font. See assets/fonts/. */
@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --paper: #fff;
  --ink: #171717;
  --muted: rgb(0 0 0 / 64%);
  --subtle: rgb(0 0 0 / 56%);
  --blue: #3963ed;
  --line: rgb(0 0 0 / 12%);
  --line-strong: rgb(0 0 0 / 18%);
  --wash: rgb(0 0 0 / 3%);
  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  color-scheme: light;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  font-optical-sizing: auto;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
.icon { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.125em; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.wrap { width: min(1248px, calc(100% - 96px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -80px;
  padding: 12px;
  background: var(--paper);
  z-index: 10;
}
.skip-link:focus { top: 12px; }
.site-header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  letter-spacing: -0.04em;
  font-weight: 600;
  flex-shrink: 0;
  min-height: 44px;
}
.brand img { width: 28px; height: 28px; }
.brand-dot { display: none; }
.site-header nav { display: flex; gap: 28px; align-items: center; font-size: 13px; }
.site-header nav a, .header-github { display: inline-flex; align-items: center; min-height: 44px; padding-block: 12px; }
.site-header nav a { min-width: 44px; justify-content: center; }
.site-header a:hover, .site-footer a:hover, .faq-heading a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-header a:active, .site-footer a:active, .faq-heading a:active { color: var(--ink); opacity: 0.75; }
.header-github { font-size: 13px; }
.header-github .icon { margin-left: 5px; }
.hero-layout { padding-block: 40px 48px; }
.hero { padding-bottom: 32px; text-align: center; }
.hero h1 {
  font-size: clamp(44px, 4vw, 56px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.055em;
  margin: 0;
  text-wrap: balance;
}
.hero h1 br { display: none; }
.hero-intro { margin-top: 16px; }
.hero-description { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.hero-description kbd { padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 2px 0 var(--line); font: 500 14px/1.4 var(--font); color: var(--ink); white-space: nowrap; }
.experience { max-width: 1040px; margin-inline: auto; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 16px; }
.button {
  display: inline-flex;
  min-height: 48px;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color 120ms;
}
.button-primary { color: #fff; background: var(--ink); }
.button-primary:hover { background: #333; }
.button-primary:active { background: #000; }
.button .icon { width: 16px; height: 16px; }
.mobile-note { display: none; margin: 12px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.demo-canvas { padding: 16px 16px 0; border-radius: var(--radius); background: var(--wash); overflow: hidden; }
.demo-guide-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgb(20 24 34 / 56%);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 240ms ease;
  touch-action: none;
}
.demo-guide-backdrop.is-visible { opacity: 1; }
.demo-canvas.is-spotlight {
  position: relative;
  z-index: 11;
  transform: scale(var(--guide-scale, 1));
  transform-origin: center;
  scroll-margin-block: 24px;
  transition: transform 240ms ease;
  background: #f6f7fa;
  box-shadow: 0 18px 64px rgb(0 0 0 / 25%);
}
/* The browser is product media, not marketing chrome. Keep its own palette. */
.browser {
  --ink: #252722;
  --muted: #686b61;
  --line: #dddfd5;
  color: var(--ink);
  position: relative;
  width: min(1120px, 100%);
  margin-inline: auto;
  background: #fff;
  border: 1px solid #cdd0c5;
  border-radius: 9px;
  box-shadow: 0 12px 30px -15px #25272238;
  overflow: hidden;
}
.browser-bar {
  height: 33px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 4px;
  background: #e5e7e1;
}
.traffic-lights { display: flex; align-self: center; gap: 5px; padding-right: 10px; }
.traffic-lights i { width: 7px; height: 7px; border-radius: 50%; background: #e68a7e; }
.traffic-lights i:nth-child(2) { background: #dfbf71; }
.traffic-lights i:nth-child(3) { background: #91b88b; }
.browser-tab {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  gap: 7px;
  height: 100%;
  padding: 0 12px;
  font-size: 9px;
  border-radius: 6px 6px 0 0;
  color: #687063;
  min-width: 0;
}
.browser-tab > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-tab.is-active { background: #fff; color: var(--ink); }
.browser-bar .favicon { width: 12px; height: 12px; font-size: 8px; border-radius: 3px; }
.new-tab { font-size: 15px; margin: 0 6px; color: #6e7669; }
.browser-address {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 0 15px;
  font-size: 11px;
  color: #747b6e;
}
.browser-navigation { display: flex; align-items: center; gap: 12px; }
.address-field {
  height: 20px;
  background: #f0f2ec;
  border-radius: 20px;
  flex: 1;
  min-width: 0;
  padding: 3px 12px;
  font-size: 8px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.browser-viewport { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.demo-canvas:focus-within { outline: 3px solid var(--blue); outline-offset: -3px; }
.active-page, .tab-preview img { width: 100%; height: 100%; object-fit: contain; }
.demo-shade {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 12%);
}
.switcher {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 94%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(85px, 1fr);
  gap: 3px;
  padding: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-radius: 16px;
  background: rgb(246 246 248 / 78%);
  backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 12%), 0 14px 36px -5px rgb(0 0 0 / 25%), inset 0 0.5px 0 rgb(255 255 255 / 70%);
}
.tab-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 4px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
}
.tab-card:hover { background: rgb(0 0 0 / 4%); }
.tab-card.is-selected { background: rgb(10 124 255 / 12%); }
.tab-card:focus-visible { outline-offset: -2px; }
.tab-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: rgb(0 0 0 / 5%);
}
.tab-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 8%);
  pointer-events: none;
}
.tab-card.is-selected .tab-preview::after { box-shadow: inset 0 0 0 1.5px #0a7cff; }
.current-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgb(0 0 0 / 60%);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  line-height: 12px;
}
.tab-meta { display: flex; align-items: center; gap: 5px; padding: 0 1px 1px; }
.tab-meta > span:last-child { flex: 1; min-width: 0; }
.favicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
.favicon .icon { width: 75%; height: 75%; }
.f-notes { color: #333; background: #fff; border: 1px solid #d5d5d5; }
.f-design { color: #fff; background: #b85d44; }
.f-code { color: #fff; background: #242b36; }
.f-music { color: #fff; background: #39704f; }
.f-calendar { color: #fff; background: #526ab0; }
.f-guide { color: #fff; background: #966053; }
.tab-title, .tab-url { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.5; }
.tab-title { font-size: 10px; font-weight: 500; }
.tab-url { color: rgb(0 0 0 / 62%); font-size: 9px; }
.demo-success {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #fff;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 5px 20px #2527221a;
  font-size: 12px;
}
.demo-success .icon { color: var(--blue); margin-right: 7px; }
.demo-footer { min-height: 64px; display: flex; align-items: center; gap: 16px; padding-block: 8px; }
.shortcut-display { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.shortcut-display > span { color: var(--muted); font-size: 12px; }
.shortcut-display button {
  min-width: 29px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: 0 1px 0 var(--line-strong);
  background: var(--paper);
  font-family: var(--font);
  font-size: 11px;
  transition: transform 80ms ease-out, background-color 80ms ease-out;
}
.shortcut-display button:is(.is-pressed, :active) { transform: translateY(2px); background: #eaf0ff; color: var(--blue); box-shadow: none; }
.demo-canvas[data-guide-step="cycle"] [data-key="KeyQ"] {
  animation: demo-guide-pulse 1.15s ease-out 4;
}
@keyframes demo-guide-pulse {
  from { box-shadow: 0 0 0 0 rgb(57 99 237 / 50%); }
  to { box-shadow: 0 0 0 7px rgb(57 99 237 / 0%); }
}
.demo-instruction { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.demo-guide { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; }
.demo-guide p { margin: 0; font-size: 13px; line-height: 1.5; }
.demo-guide-skip { border: 0; background: none; padding: 8px 2px; font-size: 12px; color: var(--muted); text-decoration: underline; white-space: nowrap; }
.demo-footer:has(.demo-install:not([hidden])) { flex-wrap: wrap; }
.demo-install { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-inline-start: auto; }
.demo-install p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.5; }
.demo-install .button { min-height: 44px; gap: 8px; padding: 8px 12px; white-space: nowrap; }
.demo-install .icon { width: 14px; height: 14px; }
.touch-instruction { display: none; }
.demo-disclaimer, .no-script { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 28px 40px; border-top: 1px solid var(--line); }
.features article { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 4px 16px; align-content: start; }
.features article > .icon { grid-row: span 2; width: 20px; height: 20px; margin-top: 2px; }
.features h3 { font-size: 16px; font-weight: 500; line-height: 1.5; margin: 0; }
.features p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 320px; }
.how-section { padding-block: 72px; background: var(--wash); }
.how-section > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 64px; }
.section-heading h2, .faq h2 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.3; }
.steps { display: grid; border-bottom: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 36px 148px minmax(0, 1fr); gap: 20px; align-items: start; padding-block: 20px; border-top: 1px solid var(--line); }
.step-number { display: block; color: var(--ink); font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 16px; line-height: 1.6; font-weight: 500; margin: 0; }
.step p { font-size: 16px; line-height: 1.6; margin: 0; color: var(--muted); }
.tip { grid-column: 2; font-size: 13px; line-height: 1.6; color: var(--muted); margin: 32px 0 0; }
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; padding-block: 72px; }
.faq-heading > a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 12px; }
.faq-list { min-width: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-size: 15px;
  line-height: 1.7;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 16px; height: 16px; color: var(--muted); }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details > div { padding: 0 24px 20px 0; }
.faq-list p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.faq-list p:last-child { margin-bottom: 0; }
.faq-list code, .legal code { font-size: 0.9em; overflow-wrap: anywhere; }
.site-footer { min-height: 112px; padding-block: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }
.site-footer .brand { font-size: 16px; }
.site-footer .brand img { width: 23px; height: 23px; }
.site-footer > div { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; font-size: 12px; color: var(--muted); }
.site-footer > div a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.legal { max-width: 780px; padding-block: 55px 80px; }
.legal h1 { font-size: 36px; font-weight: 550; letter-spacing: -0.04em; margin: 0 0 20px; }
.legal-updated { color: var(--muted); }
.legal h2 { font-size: 21px; font-weight: 550; margin-top: 35px; }
.legal p, .legal li { font-size: 14px; line-height: 1.9; color: var(--muted); }
.legal ul { padding-left: 22px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .hero h1 { font-size: clamp(40px, 5.2vw, 52px); }
  .demo-canvas { padding: 25px 25px 0; }
  .features { gap: 32px; }
  .how-section > .wrap, .faq { column-gap: 32px; }
  .step { grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; }
  .step-number { grid-row: span 2; }
  .step p { grid-column: 2; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 48px); }
  .site-header { min-height: 72px; gap: 16px; }
  .site-header nav { gap: 16px; margin-left: auto; }
  .site-header nav a[href^="#"] { display: none; }
  .brand { font-size: 18px; }
  .brand img { width: 26px; height: 26px; }
  .header-github { font-size: 12px; }
  .hero-layout { padding-top: 32px; }
  .hero { padding-bottom: 28px; text-align: left; }
  .hero h1 { font-size: clamp(38px, 6.2vw, 48px); line-height: 1.12; }
  .hero h1 br { display: revert; }
  .hero-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; margin-top: 24px; }
  .hero-description { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; }
  .hero-description kbd { padding: 6px 8px; font-size: 13px; }
  .hero-actions { margin-top: 0; }
  .hero-actions .button { gap: 12px; padding-inline: 14px; font-size: 13px; }
  .mobile-note { grid-column: 1 / -1; margin: 0; }
  .demo-canvas { padding: 17px 17px 0; }
  .browser-bar { height: 29px; padding-inline: 9px; }
  .browser-tab { font-size: 8px; gap: 4px; padding-inline: 5px; }
  .browser-bar .favicon { width: 10px; height: 10px; }
  .traffic-lights { gap: 4px; padding-right: 4px; }
  .traffic-lights i { width: 6px; height: 6px; }
  .switcher { grid-auto-columns: minmax(108px, 1fr); }
  .demo-footer { min-height: 57px; gap: 10px; }
  .features { gap: 24px; padding-block: 40px 48px; }
  .features p { font-size: 14px; }
  .how-section { padding-block: 48px; }
  .how-section > .wrap { grid-template-columns: 1fr; row-gap: 32px; }
  .step { padding-block: 16px; }
  .tip { grid-column: 1; margin-top: 0; }
  .section-heading h2, .faq h2 { font-size: 26px; }
  .faq { grid-template-columns: 1fr; gap: 24px; padding-block: 48px; }
  .faq-heading > a { margin-top: 8px; }
  .site-footer { gap: 24px; }
  .site-footer > div { gap: 16px; }
  .legal { padding-block: 35px 60px; }
  .legal h1 { font-size: 30px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 64px; gap: 12px; }
  .site-header nav { font-size: 12px; }
  .legal-page .site-header { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; padding-block: 12px; }
  .legal-page .site-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; margin-left: 0; }
  .hero-layout { padding-top: 24px; }
  .hero { padding-block: 0 24px; }
  .hero-intro { margin-top: 20px; }
  .hero h1 { font-size: clamp(34px, 10.2vw, 44px); }
  .hero-actions { flex-wrap: wrap; margin-top: 0; }
  .mobile-note { margin-top: 0; }
  .demo-canvas { padding: 10px 10px 0; border-radius: 5px; }
  .browser { border-radius: 6px; }
  .browser-tab:not(.is-active) { flex: none; }
  .browser-tab:not(.is-active) > span:last-child { display: none; }
  .browser-address { display: none; }
  .switcher { width: 96%; }
  .demo-footer { min-height: 51px; gap: 10px; }
  .demo-install { width: 100%; justify-content: space-between; }
  .demo-instruction { font-size: 10px; }
  .shortcut-display { gap: 5px; }
  .shortcut-display button { min-width: 24px; height: 23px; padding-inline: 5px; font-size: 10px; gap: 5px; }
  .demo-disclaimer { font-size: 12px; margin-top: 12px; }
  .features { grid-template-columns: 1fr; gap: 24px; }
  .features h3 { margin-bottom: 0; }
  .features p { max-width: none; }
  .step h3, .step p { font-size: 15px; }
  .tip { font-size: 12px; }
  .faq-list summary { padding-block: 20px; font-size: 14px; gap: 12px; }
  .faq-list p { font-size: 13px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; min-height: 0; }
  .site-footer > div { gap: 16px; }
}
@media (hover: none) and (pointer: coarse) {
  .desktop-instruction { display: none; }
  .touch-instruction { display: inline; }
  .demo-footer { flex-direction: column; align-items: flex-start; }
  .demo-guide { align-self: stretch; }
  .demo-instruction { font-size: 12px; }
  .shortcut-display button { min-width: 44px; height: 44px; }
  .mobile-note { display: block; }
}
@media (max-width: 480px) and (max-height: 420px) {
  .demo-footer:has(.demo-install:not([hidden])) .demo-instruction,
  .demo-install p { display: none; }
  .demo-install { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
