:root {
  --brand: #2326c5;
  --brand-dark: #1716a4;
  --accent: #ffd21f;
  --ink: #151c45;
  --muted: #5c6387;
  --line: #dfe3f5;
  --soft: #f5f7ff;
  --white: #fff;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  line-height: 1.75;
}

a { color: inherit; }
img { max-width: 100%; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
}

.site-header .shell {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-size: 21px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand img { display: block; flex: 0 0 34px; width: 34px; height: 34px; }

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a { padding: 8px 0; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }

.page-head {
  padding: 52px 0 40px;
  background: linear-gradient(180deg, #f7f8ff, #fff);
}

.eyebrow {
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.25;
  text-wrap: balance;
}

.lede {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  text-wrap: pretty;
}

.official-domain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-weight: 800;
}

.domain-value {
  border: 1px solid #bfc6ff;
  border-radius: 6px;
  background: #fff;
  padding: 8px 12px;
  color: var(--brand);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-decoration: none;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 6px;
  padding: 10px 18px;
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.button.primary { background: var(--brand); color: #fff; }

.product-visual {
  margin: 0 auto 40px;
  text-align: center;
  line-height: 0;
}

.product-visual picture { display: block; max-width: 100%; }
.product-visual img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  margin: 0 auto;
  object-fit: contain;
}

.band { padding: 48px 0; border-top: 1px solid var(--line); }
.band.soft { background: var(--soft); }
.band h2 { margin-bottom: 20px; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.4; text-wrap: pretty; }

.prose { max-width: 820px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose > h2:not(:first-child) { margin-top: 32px; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.fact {
  min-width: 0;
  background: #fff;
  padding: 24px;
}

.fact h3 { margin-bottom: 8px; font-size: 18px; }
.fact p { margin-bottom: 0; color: var(--muted); }

.warning {
  border-left: 5px solid #e03636;
  background: #fff4f4;
  padding: 22px 24px;
}

.warning h2, .warning h3 { color: #9f2020; }
.warning p:last-child { margin-bottom: 0; }

.domain-list { display: grid; gap: 12px; margin-top: 24px; }

.domain-row {
  display: grid;
  grid-template-columns: minmax(180px, .6fr) 1.4fr;
  gap: 20px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px 20px;
}

.domain-row code { color: #9f2020; font-weight: 800; overflow-wrap: anywhere; }
.domain-row p { margin: 0; color: var(--muted); }

.steps { counter-reset: steps; display: grid; gap: 18px; padding: 0; list-style: none; }
.steps li { position: relative; padding-left: 54px; color: var(--muted); }
.steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  content: counter(steps);
  counter-increment: steps;
  font-weight: 900;
}

.faq { border-top: 1px solid var(--line); padding: 20px 0; }
.faq h3 { margin-bottom: 8px; font-size: 18px; }
.faq p { margin-bottom: 0; color: var(--muted); }

.breadcrumb { padding: 18px 0 12px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--brand); }

.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.82); padding: 32px 0; }
.site-footer .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.site-footer a { color: #fff; }

/* Content hubs: keep navigation and reading usable on small screens. */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #7c5cff; outline-offset: 4px; }
.content-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.content-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 26px; }
.card-cover { width: 100%; height: 168px; object-fit: cover; border-radius: 8px; margin-bottom: 16px; }
.content-card h2, .content-card h3 { font-size: 22px; line-height: 1.4; margin-bottom: 12px; }
.content-card h2 { min-height: 2.8em; text-wrap: pretty; }
.content-card h2 a { color: var(--ink); text-decoration: none; }
.content-card h2 a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.content-card p { color: var(--muted); }
.content-card > a:last-child { margin-top: auto; color: var(--brand); font-weight: 800; text-underline-offset: 4px; }
.content-meta { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.content-cards-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.doc-outline { columns: 2; padding-left: 24px; color: var(--muted); }
.doc-outline li { padding-bottom: 8px; break-inside: avoid; }
.reader-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.reader-toolbar h2 { margin: 0; }
.doc-frame { display: block; width: 100%; height: 78vh; min-height: 580px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.reader-help { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
main > article > .page-head > .shell { max-width: 800px; }
main > article > .page-head h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.35; }
.page-head .content-meta { margin: 18px 0 0; }
.article { max-width: 800px; margin: 0 auto; padding: 32px 0 56px; }
.article h2 { margin: 32px 0 14px; font-size: 27px; line-height: 1.45; text-wrap: pretty; }
.article h3 { margin: 26px 0 10px; }
.article p, .article li { color: var(--muted); }
.article strong { color: var(--ink); }
.article a { color: var(--brand); text-underline-offset: 3px; }
.article li { margin-bottom: 10px; }
.article-toc { padding: 22px 26px; border: 1px solid var(--line); background: var(--soft); border-radius: 8px; }
.article-toc ul { margin-bottom: 0; }
.anchor-section { scroll-margin-top: 120px; }
.table-scroll { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
table caption { padding: 12px 16px; color: var(--muted); font-size: 14px; text-align: left; }
.table-scroll table { min-width: 560px; }
th, td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); }
td { color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer .footer-bottom { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); font-size: 13px; }
.download { padding: 42px 0 56px; }
.download-head { margin-bottom: 28px; }
.download-head h2 { font-size: 28px; margin-bottom: 8px; }
.download-head p { color: var(--muted); }
.download-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.download-card { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.app-icon img { width: 58px; height: 58px; }
.product-kicker { margin-top: 12px; color: var(--brand); font-size: 13px; font-weight: 800; }
.download-card h3 { font-size: 24px; margin-bottom: 14px; }
.list { padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.check { color: var(--brand); margin-right: 8px; }
.download-options { display: grid; gap: 10px; margin-top: 24px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; border: 0; border-radius: 6px; padding: 10px 16px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; }
.btn-yellow, .btn-purple { background: var(--brand); color: #fff; }
.btn-light, .btn-pending { background: #eef1ff; color: var(--brand); }
.btn-pending { color: var(--muted); cursor: default; }
.btn-disabled { cursor: not-allowed; opacity: .48; }
.download-support { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 32px; }
.download-support p { color: var(--muted); }
.support-flow { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.support-step { display: grid; gap: 4px; font-size: 14px; }
.support-step > .check { display: none; }
.support-step span { color: var(--muted); }
.requirement-list { list-style: none; padding: 0; color: var(--muted); font-size: 14px; }
.requirement-platform h4 { margin-bottom: 6px; }
body.menu-open { overflow: hidden; }
.agreement-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(16,18,61,.62); }
.agreement-modal.is-open { display: flex; }
.agreement-dialog { display: grid; grid-template-rows: auto minmax(0,1fr) auto; width: min(100%,860px); max-height: 90dvh; border-radius: 14px; background: #fff; overflow: hidden; }
.agreement-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; border-bottom: 1px solid var(--line); padding: 22px; }
.agreement-head h3 { margin-bottom: 6px; color: var(--brand); font-size: 24px; }
.agreement-head p { margin: 0; color: var(--muted); font-size: 14px; }
.agreement-close { flex-shrink: 0; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--brand); background: var(--soft); font-size: 24px; cursor: pointer; }
.agreement-body { overflow-y: auto; overscroll-behavior: contain; padding: 22px; font-size: 14px; }
.agreement-body h4 { font-size: 16px; margin: 18px 0 8px; }
.agreement-foot { border-top: 1px solid var(--line); padding: 18px 22px; }
.agreement-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.agreement-check input { flex-shrink: 0; margin-top: 6px; }
.agreement-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 18px; }
@media (max-width: 900px) { .download-cards { grid-template-columns: 1fr; } .content-links { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  h1 { font-size: clamp(28px, 7vw, 34px); line-height: 1.35; }
  .site-header .shell { min-height: 64px; flex-wrap: wrap; gap: 4px; padding: 12px 0 6px; }
  .nav { display: flex; width: 100%; overflow-x: auto; gap: 18px; }
  .nav a { flex-shrink: 0; }
  .page-head { padding: 32px 0 28px; }
  .lede { font-size: 17px; }
  .band { padding: 32px 0; }
  .fact-grid { grid-template-columns: 1fr; }
  .domain-row { grid-template-columns: 1fr; gap: 6px; }
  .product-visual { margin-bottom: 28px; }
  .product-visual img { max-height: 340px; }
  .content-card { padding: 22px; }
  .content-card h2 { min-height: 0; }
  .content-cards-two, .download-support { grid-template-columns: 1fr; }
  .doc-outline { columns: 1; }
  .doc-frame { min-height: 520px; height: 75vh; }
  .article { padding-top: 24px; }
  .article h2 { font-size: 24px; }
  main > article > .page-head h1 { font-size: 30px; }
  .article-toc { padding: 18px 20px; }
  th, td { padding: 12px; }
  .site-footer .shell { flex-direction: column; align-items: flex-start; }
  .domain-value { overflow-wrap: anywhere; }
  .agreement-modal { padding: 10px; }
}
@media (max-width: 360px) { .nav { gap: 12px; font-size: 13px; } }
