:root {
  color-scheme: light;
  --ink: #171a1f;
  --muted: #5b6470;
  --quiet: #f4f1ea;
  --paper: #fffdf8;
  --line: #ded8cc;
  --accent: #df6730;
  --accent-dark: #a6431e;
  --green: #2f7d61;
  --blue: #2e5f8f;
  --shadow: 0 24px 70px rgba(64, 53, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.72;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.9);
  border-bottom: 1px solid rgba(222, 216, 204, 0.86);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  color: #fffaf2;
  font-size: 18px;
  line-height: 1;
}

.navlinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 14px;
  font-weight: 700;
}

.navlinks a {
  color: var(--muted);
  text-decoration: none;
}

.navlinks a:hover,
.navlinks a:focus-visible {
  color: var(--accent-dark);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf2;
  color: var(--ink) !important;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 54px;
  padding: 70px 0 52px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(42px, 7vw, 76px);
}

h2 {
  font-size: clamp(26px, 4vw, 40px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 0;
}

.lead {
  max-width: 720px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fffaf2;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.visual {
  position: relative;
  min-height: 420px;
}

.phone {
  position: absolute;
  inset: 0 26px 0 auto;
  width: 280px;
  border: 11px solid #1c1f24;
  border-radius: 34px;
  background: #fffaf2;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 86px;
  height: 20px;
  border-radius: 99px;
  background: #1c1f24;
  transform: translateX(-50%);
  z-index: 2;
}

.screen {
  display: grid;
  gap: 10px;
  padding: 52px 18px 18px;
}

.tile {
  min-height: 76px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 52%),
    var(--quiet);
  border: 1px solid var(--line);
}

.tile:nth-child(2) {
  background-color: #e6eee9;
}

.tile:nth-child(3) {
  background-color: #f4dfd3;
}

.tile:nth-child(4) {
  background-color: #dfe8f0;
}

.badge {
  position: absolute;
  left: 0;
  bottom: 34px;
  width: 210px;
  padding: 18px;
  border-radius: 12px;
  background: #fbf7ef;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(64, 53, 42, 0.12);
}

.badge strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.badge span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.section {
  padding: 54px 0;
  border-top: 1px solid var(--line);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-header p {
  max-width: 520px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.card p,
.content p,
.content li {
  color: var(--muted);
}

.card h3 + p {
  margin-top: 10px;
}

.content {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.toc a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--accent-dark);
}

.article {
  display: grid;
  gap: 28px;
}

.article section {
  scroll-margin-top: 96px;
}

.article h2 {
  margin-bottom: 12px;
}

.article h3 {
  margin: 20px 0 8px;
}

.article ul,
.article ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.notice {
  padding: 18px;
  border-left: 4px solid var(--accent);
  background: #fff3e9;
  color: #63321e;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.pill {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 99px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.pill.required {
  background: var(--accent-dark);
}

.pill.optional {
  background: var(--blue);
}

.pill.done {
  background: var(--green);
}

.footer {
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .navlinks {
    justify-content: flex-start;
  }

  .hero,
  .content {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .visual {
    min-height: 360px;
  }

  .phone {
    right: 0;
    left: 42px;
    margin: 0 auto;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: grid;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 40px;
  }

  .phone {
    left: auto;
    width: 250px;
  }

  .badge {
    width: 190px;
    bottom: 10px;
  }
}
