:root {
  color-scheme: light;
  --accent: #6d28d9;
  --accent-hover: #5b21b6;
  --accent-light: #c4b5fd;
  --accent-tint: #f5f0ff;
  --accent-border: #d6c6fa;
  --ink: #0f172a;
  --muted: #475569;
  --paper: #f7f7f4;
  --line: #d6d9d8;
  --night: #10151d;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
h1, h2, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.wrap {
  width: min(75rem, 100% - clamp(2.5rem, 10vw, 9rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  background: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-layout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(.75rem, 2.5vw, 2.5rem);
  min-height: 4.75rem;
}
.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.brand img {
  flex: none;
  width: 2.5rem;
  height: auto;
}
.brand-text { display: grid; gap: .15rem; }
.brand-name { font-size: 1rem; font-weight: 800; line-height: 1.25; }
.brand-translation {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.3;
}
.language-nav {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
  color: var(--muted);
  font-size: .875rem;
}
.language-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: .25rem;
  text-decoration: none;
}
.language-nav a:hover, .language-nav [aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .25em;
}
.language-nav [aria-current="page"] { font-weight: 750; }
.nav, .footer-links { display: flex; align-items: center; gap: clamp(.85rem, 1.5vw, 1.65rem); }
.nav a, .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav-home {
  padding-inline-start: clamp(.8rem, 1.5vw, 1.5rem);
  border-inline-start: 1px solid var(--line);
  color: var(--accent);
}
.nav .account-link {
  padding-inline: .75rem;
  border-radius: .25rem;
  background: var(--accent);
  color: #fff;
}
.nav .account-link:hover { background: var(--accent-hover); text-decoration: none; }

.hero {
  background: var(--night);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5.5vw, 5.75rem);
  padding-block: clamp(3.25rem, 6vw, 5.75rem);
}
.hero-label {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .11em;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.15rem;
  color: var(--accent-light);
  font-size: .875rem;
  font-weight: 600;
}
.hero-label::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--accent);
}
h1 {
  font-size: clamp(2.4rem, 5.45vw, 5rem);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.055em;
}
.hero-description {
  max-width: 24em;
  margin-block: 1.25rem 1.8rem;
  color: #d4dae2;
  font-size: clamp(1rem, 1.55vw, 1.1875rem);
  line-height: 1.8;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: .25rem;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}
.button:hover { background: var(--accent-hover); }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-light); }
.hero-figure {
  position: relative;
  isolation: isolate;
  border: 1px solid #49505b;
  border-radius: .375rem;
  overflow: hidden;
  background: #191f28;
}
.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.section { padding-block: clamp(3.25rem, 6.6vw, 6.1rem); }
h2 {
  color: var(--ink);
  font-size: clamp(1.875rem, 3.2vw, 2.875rem);
  font-weight: 780;
  line-height: 1.27;
  letter-spacing: -.038em;
}
.section-intro p { max-width: 42em; margin-top: .9rem; color: var(--muted); }
.methods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.4rem;
  border-block: 1px solid var(--line);
}
.method { padding: 1.6rem 1.25rem 1.75rem; border-inline-start: 1px solid var(--line); }
.method:first-child { padding-inline-start: 0; border-inline-start: 0; }
.method dt, .check-item dt { font-weight: 750; }
.method dt { font-size: 1.2rem; }
.method dd { margin-top: .65rem; color: var(--muted); }

.preparation { background: #fff; border-block: 1px solid var(--line); }
.prep-layout, .questions {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 7.2vw, 7rem);
}
.download {
  gap: .75rem;
  margin-top: 1.5rem;
  border-color: var(--accent-border);
  background: var(--accent-tint);
  color: var(--accent-hover);
}
.download:hover { background: #ede4ff; }
.download span {
  padding-inline-start: .65rem;
  border-inline-start: 1px solid var(--accent-border);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .75rem;
  letter-spacing: .05em;
}
.checklist, .questions-list { border-top: 1px solid var(--line); }
.check-item, details { border-bottom: 1px solid var(--line); }
.check-item {
  display: grid;
  grid-template-columns: minmax(7.5rem, .51fr) minmax(0, 1.49fr);
  gap: .75rem 1.25rem;
  padding-block: 1rem;
}
.check-item dd, details p { color: var(--muted); }
.questions h2 { max-width: 10em; }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  flex: none;
  width: .55rem;
  height: .55rem;
  margin-inline-end: .2rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}
details[open] summary::after { transform: rotate(225deg); }
details p { padding: 0 1.5rem 1rem 0; }

.site-footer { background: var(--night); color: #d4dae2; }
.footer-layout { min-height: 5rem; padding-block: 1rem; font-size: .875rem; }
.footer-meta { display: grid; gap: .125rem; }
.site-footer .brand { margin-bottom: .35rem; }
.site-footer .brand-translation { color: #c7d0de; }
.footer-copyright, .footer-version { color: #a6b2c1; font-size: .75rem; }
.footer-links { gap: clamp(.9rem, 3vw, 2rem); }
.footer-links a { font-size: .875rem; }

@media (max-width: 58rem) {
  .hero-layout { gap: 2rem; }
  .methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .method:nth-child(n+3) { border-top: 1px solid var(--line); }
  .prep-layout, .questions { gap: 2rem; }
  .check-item { grid-template-columns: 1fr; gap: .25rem; }
}

@media (max-width: 43rem) {
  .nav-home { padding-inline-start: clamp(.75rem, 3.7vw, 1.25rem); }
  .hero-layout, .prep-layout, .questions { grid-template-columns: 1fr; }
  .hero-layout { padding-block: 2.6rem 1.65rem; gap: 1.75rem; }
  h1 { font-size: clamp(2.4rem, 9vw, 3.65rem); }
  .hero-description { margin-block: .9rem 1.2rem; }
  .prep-layout, .questions { gap: 1.5rem; }
  .questions h2 { max-width: none; }
}

@media (max-width: 28rem) {
  .methods { grid-template-columns: 1fr; margin-top: 1.5rem; }
  .method, .method:nth-child(n+2) { padding: 1rem 0; border-inline-start: 0; }
  .method:nth-child(n+2) { border-top: 1px solid var(--line); }
  .method dd { margin-top: .25rem; }
  .footer-layout { flex-wrap: wrap; gap: 0 .75rem; }
}

[lang="en"] h1 { font-size: clamp(2.65rem, 5.1vw, 4.7rem); }
[lang="en"] .method dt { font-size: 1.125rem; }

@media (max-width: 72rem) {
  .header-layout {
    grid-template-columns: 1fr auto;
    row-gap: .2rem;
    padding-block: .55rem;
  }
  .nav {
    grid-column: 1 / -1;
    justify-content: center;
    flex-wrap: wrap;
    gap: .2rem clamp(.65rem, 3vw, 2rem);
  }
}

@media (max-width: 43rem) {
  [lang="en"] h1 { font-size: clamp(2.6rem, 9.5vw, 3.85rem); }
}

@media (max-width: 25rem) {
  .brand img { width: 2rem; }
  .brand-name { font-size: .9rem; }
  .brand-translation { font-size: .7rem; }
  .nav { gap: .15rem .55rem; }
  .nav a { font-size: .875rem; }
  .nav-home { padding-inline-start: .55rem; }
}

@media (max-width: 23rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-layout { column-gap: .5rem; }
  .header-layout .brand { gap: .35rem; }
  .header-layout .brand img { width: 1.625rem; }
  .header-layout .brand-name { font-size: .875rem; }
  .language-nav { gap: .2rem; }
  .language-nav a { padding-inline: .125rem; }
}

html[lang] .brand img {
  width: clamp(40px, 5vw, 56px);
  height: clamp(40px, 5vw, 56px);
  flex: none;
}
html[lang=en] .brand .brand-name {
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 750;
  line-height: 1.15;
}

.service-options {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-top:2rem}
.service-option {display:flex;flex-direction:column;align-items:flex-start;padding:1.25rem;background:#fff;border:1px solid var(--line);border-radius:.5rem}
.service-option h3 {font-size:1.125rem;line-height:1.4;margin:0 0 .65rem}
.service-option p {color:var(--muted);margin-bottom:1rem}
.service-option .button {margin-top:auto}
@media(max-width:62rem){.service-options {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:35rem){.service-options {grid-template-columns:1fr}}
