:root {
  color-scheme: light;
  --ink: #333333;
  --dark: #1e293b;
  --muted: #6b7280;
  --line: #f0e4d8;
  --paper: #ffffff;
  --canvas: #fef6f0;
  --accent: #ff2442;
  --accent-dark: #e01e39;
  --accent-soft: #fff1f2;
  --pink: #ff6b81;
  --green: #16a34a;
  --green-soft: #ecfdf3;
  --red: #ff2442;
  --red-soft: #fff1f2;
  --shadow: 0 20px 60px rgba(255, 36, 66, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 9px;
  background: var(--ink);
  color: white;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(254, 246, 240, .88);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(1160px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--dark);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}
.brand-mark.small { width: 32px; height: 32px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.site-nav a:hover { color: var(--dark); }

main { overflow: hidden; }
#features, #guide, #faq-title, #notice-title { scroll-margin-top: 88px; }
.hero {
  position: relative;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 64px;
}
.hero-copy { max-width: 680px; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  left: -160px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 36, 66, .12), rgba(255, 36, 66, 0) 68%);
}
.eyebrow, .section-kicker {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
}
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
h1 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.14;
  letter-spacing: -.045em;
}
.hero-lead {
  max-width: 640px;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 18px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #ff2442, #e01e39);
  box-shadow: 0 12px 26px rgba(255, 36, 66, .28);
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(255, 36, 66, .34); }
.features-section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 72px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.feature-card h3 { margin: 0 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }
.browser-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 14px;
  font-weight: 650;
}
.browser-status.is-warning { color: #9a6710; }
.browser-status.is-error { color: var(--red); }
.status-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 12px;
}
.browser-status.is-warning .status-icon { background: #9a6710; }
.browser-status.is-error .status-icon { background: var(--red); }

.install-card {
  width: min(590px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}
.release-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 14px; }
.release-row > div { display: flex; flex-direction: column; gap: 2px; }
.release-label { color: var(--muted); font-size: 12px; }
.release-row strong { font-size: 16px; }
.release-size { color: var(--muted); font-size: 13px; white-space: nowrap; }
.primary-button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 15px;
  color: white;
  background: linear-gradient(135deg, #ff2442, #e01e39);
  box-shadow: 0 12px 26px rgba(255, 36, 66, .28);
  font-size: 17px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(255, 36, 66, .34); }
.primary-button:active:not(:disabled) { transform: translateY(0); }
.primary-button:disabled { cursor: not-allowed; opacity: .52; box-shadow: none; }
.primary-button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button-hint { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.progress-panel { margin-top: 18px; }
.progress-copy { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: var(--line); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--pink)); transition: width .2s ease; }
.result-panel { display: flex; gap: 12px; margin-top: 16px; padding: 14px; border-radius: 13px; }
.result-panel strong { display: block; margin-bottom: 2px; font-size: 14px; }
.result-panel p { margin: 0; font-size: 13px; }
.result-symbol { flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: white; font-weight: 800; }
.result-success { background: var(--green-soft); color: #17694f; }
.result-success .result-symbol { background: var(--green); }
.result-error { background: var(--red-soft); color: #b42318; }
.result-error .result-symbol { background: var(--red); }
.fallback-row { display: flex; justify-content: center; gap: 7px; margin-top: 15px; color: var(--muted); font-size: 13px; }
.fallback-row a { color: var(--accent-dark); font-weight: 700; text-underline-offset: 3px; cursor: pointer; }
.retry-button {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: white;
  font-weight: 700;
  cursor: pointer;
}
.env-notice {
  margin-bottom: 24px;
  padding: 20px 22px;
  border: 1px solid #eadcb5;
  border-radius: 18px;
  background: #fffaf0;
}
.env-kicker { margin: 0 0 6px; color: var(--accent-dark); font-size: 13px; font-weight: 750; }
.env-lead { margin: 0; color: #6d614b; font-size: 15px; }
.privacy-note { max-width: 590px; display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.privacy-note svg { flex: 0 0 17px; width: 17px; margin-top: 1px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.folder-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  background: white;
  box-shadow: 0 30px 100px rgba(30, 41, 59, .22);
}
.folder-dialog::backdrop { background: rgba(30, 41, 59, .48); backdrop-filter: blur(5px); }
.folder-dialog form { position: relative; padding: 30px; }
.dialog-close { position: absolute; right: 18px; top: 16px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--muted); background: var(--canvas); font-size: 23px; line-height: 1; cursor: pointer; }
.dialog-kicker { color: var(--accent-dark); font-size: 13px; font-weight: 750; }
.folder-dialog h2 { margin: 6px 42px 8px 0; font-size: 27px; line-height: 1.25; letter-spacing: -.025em; }
.dialog-lead { margin: 0; color: var(--muted); }
.dialog-steps { list-style: none; margin: 22px 0 18px; padding: 0; display: grid; gap: 12px; }
.dialog-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--canvas); }
.dialog-steps li > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--accent-dark); background: var(--accent-soft); font-weight: 800; }
.dialog-steps strong { font-size: 15px; }
.dialog-steps p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.folder-dialog kbd { padding: 1px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; color: var(--muted); background: white; font-family: inherit; font-size: 11px; }
.dialog-warning { margin-bottom: 18px; padding: 11px 13px; border-radius: 10px; color: #7b5612; background: #fff6df; font-size: 13px; }
.dialog-warning strong { margin-right: 4px; }
.dialog-primary { min-height: 52px; font-size: 15px; }
.dialog-cancel { width: 100%; margin-top: 8px; padding: 8px; border: 0; color: var(--muted); background: transparent; cursor: pointer; }

.guide-section {
  padding: 72px max(20px, calc((100% - 1040px) / 2)) 100px;
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-heading h2, .faq-section h2 { margin: 5px 0 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.18; letter-spacing: -.035em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps-shared { margin-bottom: 28px; }
.step-card { position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 26px 30px 26px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--canvas); }
.step-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--accent-dark); background: var(--accent-soft); font-weight: 800; }
.step-card.is-complete { border-color: #bfe6d5; background: var(--green-soft); }
.step-card.is-complete .step-number { color: white; background: var(--green); }
.step-install .install-card { margin-top: 18px; }
.step-content { min-width: 0; }
.step-content h3 { margin: 1px 0 5px; font-size: 19px; }
.step-content p { margin: 0; color: var(--muted); }
.guide-right { min-width: 0; padding: 26px 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--canvas); }
.guide-browser { margin: 0 0 20px; color: var(--muted); font-size: 14px; font-weight: 650; }
.guide-browser strong { color: var(--ink); }
.substeps { list-style: none; margin: 0; padding: 0; }
.substep { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 22px 0; }
.substep:first-child { padding-top: 0; }
.substep:last-child { padding-bottom: 0; }
.substep + .substep { border-top: 1px solid var(--line); }
.substep-final .step-number { color: white; background: var(--green); }
.address-copy { width: min(480px, 100%); margin-top: 14px; padding: 9px 10px 9px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.address-copy code { overflow: auto; font-family: "SFMono-Regular", Consolas, monospace; font-size: 14px; cursor: pointer; }
.step-content .copy-hint { margin: 8px 0 0; color: var(--green); font-size: 13px; font-weight: 650; }
.step-content .step-extra { margin-top: 14px; }
.copy-button { flex: 0 0 auto; padding: 7px 11px; border: 0; border-radius: 8px; color: white; background: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; }
.ui-demo { width: min(430px, 100%); margin-top: 15px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; justify-content: space-between; background: white; color: var(--ink); font-size: 14px; }
.ui-demo i { width: 38px; height: 22px; padding: 3px; display: flex; justify-content: flex-end; border-radius: 99px; background: #1769d2; }
.ui-demo i b { width: 16px; height: 16px; border-radius: 50%; background: white; }
.action-demo { width: fit-content; color: #145cb8; border-color: #9fc6f5; font-weight: 650; }
.complete-badge { display: inline-block; margin-top: 14px; padding: 5px 10px; border-radius: 99px; color: white; background: var(--green); font-size: 12px; font-weight: 750; }

.notice-section, .faq-section { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
.notice-section { padding: 72px 0 0; }
.notice-card { padding: 24px 28px; display: grid; grid-template-columns: 38px 1fr; gap: 16px; border: 1px solid #eadcb5; border-radius: 17px; background: #fffaf0; }
.notice-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: white; background: #b17a17; font-family: Georgia, serif; font-weight: 700; }
.notice-card h2 { margin: 1px 0 4px; font-size: 18px; }
.notice-card p { margin: 0; color: #6d614b; }
.faq-section { padding: 96px 0 112px; }
.faq-list { margin-top: 32px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 22px 44px 22px 2px; list-style: none; font-size: 17px; font-weight: 700; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 5px; top: 18px; color: var(--accent); font-size: 24px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -8px 40px 22px 2px; color: var(--muted); }
.faq-list code { padding: 2px 5px; border-radius: 4px; background: var(--accent-soft); }

.inapp-chrome-demo {
  margin: 18px 0 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
}
.inapp-chrome-bar {
  min-height: 56px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.inapp-chrome-title {
  flex: 1;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.inapp-chrome-globe {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--accent-dark);
  background: white;
  box-shadow: 0 0 0 5px rgba(255, 36, 66, .18);
  animation: inapp-pulse 1.6s ease-in-out infinite;
}
.inapp-chrome-globe svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.inapp-chrome-more {
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .02em;
}
.inapp-chrome-caption {
  margin: 0;
  padding: 8px 14px 10px;
  border-top: 1px solid var(--line);
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
}
.inapp-share-row { margin-top: 16px; }
.inapp-share-row code { word-break: break-all; }

@keyframes inapp-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(255, 36, 66, .16); }
  50% { box-shadow: 0 0 0 9px rgba(255, 36, 66, .28); }
}

footer { border-top: 1px solid var(--line); background: white; }
.footer-inner {
  width: min(1040px, calc(100% - 40px));
  min-height: 110px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  font-size: 13px;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-inner strong { color: var(--ink); font-size: 16px; }
.footer-links { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.footer-links a { color: var(--accent-dark); font-weight: 650; }
.filings { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.filings a { color: var(--muted); text-decoration: none; }
.filings a:hover { color: var(--accent-dark); }

[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(255, 107, 129, .55); outline-offset: 3px; }

@media (min-width: 901px) {
  .guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
  .guide-grid .steps-shared { margin-bottom: 0; height: 100%; }
  .guide-grid .steps-shared .step-card { height: 100%; }
}

@media (max-width: 900px) {
  .hero { padding-top: 58px; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-inner, .hero, .features-section, .notice-section, .faq-section, .footer-inner { width: min(100% - 28px, 1160px); }
  .header-inner { height: 64px; gap: 12px; }
  .site-nav { gap: 10px; }
  .site-nav a { font-size: 13px; }
  .hero { padding: 40px 0 48px; }
  h1 { font-size: 32px; }
  .hero-lead { font-size: 16px; }
  .hero-cta { width: 100%; }
  .features-section { padding-bottom: 48px; }
  .install-card { padding: 17px; border-radius: 18px; }
  .fallback-row { flex-wrap: wrap; }
  .guide-section { padding-top: 70px; padding-bottom: 76px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .step-card { grid-template-columns: 40px 1fr; gap: 12px; padding: 21px 17px; }
  .guide-right { padding: 21px 17px; }
  .substep { grid-template-columns: 40px 1fr; gap: 12px; }
  .step-number { width: 36px; height: 36px; border-radius: 11px; }
  .step-content h3 { font-size: 17px; }
  .step-content p { font-size: 14px; }
  .address-copy { align-items: stretch; flex-direction: column; }
  .copy-button { min-height: 38px; }
  .notice-section { padding-top: 50px; }
  .notice-card { grid-template-columns: 1fr; padding: 20px; }
  .faq-section { padding: 76px 0 88px; }
  .footer-inner { padding: 24px 0; align-items: flex-start; flex-direction: column; justify-content: center; }
  .filings { justify-content: flex-start; }
  .folder-dialog form { padding: 24px 18px 18px; }
  .folder-dialog h2 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
