.page-home {
  --home-gap: 18px;
  --home-ink-soft: rgba(232, 240, 245, 0.78);
  --home-ink-dim: rgba(232, 240, 245, 0.6);
  background: var(--c-space);
  color: var(--c-mist);
  font-family: var(--font-sans);
  overflow-x: clip;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.16;
  color: var(--c-mist);
  overflow-wrap: break-word;
}

.page-home h1 {
  font-size: clamp(2.1rem, 8vw, 3.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.page-home h2 {
  font-size: clamp(1.5rem, 4.6vw, 2.5rem);
}

.page-home h3 {
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  font-weight: 800;
}

.page-home p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--home-ink-soft);
  overflow-wrap: break-word;
}

.page-home .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.page-home .link-arrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 227, 210, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .link-arrow:hover,
.page-home .link-arrow:focus-visible {
  color: var(--c-amber);
  border-color: rgba(255, 160, 46, 0.6);
}

.page-home .eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-cyan);
}

.page-home .block-lead {
  margin-top: 14px;
  font-size: 1.02rem;
}

/* ---------- topline ---------- */
.page-home .home-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  padding-top: 24px;
  padding-bottom: 8px;
}

.page-home .home-topline p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--c-slate);
}

.page-home .topline-left {
  color: var(--c-mist);
}

.page-home .topline-left .mono {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--c-cyan);
  font-weight: 700;
}

.page-home .topline-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- hero ---------- */
.page-home .hero {
  padding-top: 14px;
}

.page-home .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  padding-bottom: 52px;
}

.page-home .hero-focus {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--c-ink) 0%, var(--c-space) 72%);
  overflow: hidden;
}

.page-home .hero-visual {
  position: relative;
  aspect-ratio: 16 / 11;
  min-height: 190px;
}

.page-home .hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 11, 20, 0.15) 0%, rgba(4, 11, 20, 0.5) 58%, var(--c-ink) 100%);
}

.page-home .hero-badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(4, 11, 20, 0.72);
  border: 1px solid var(--line);
  color: var(--c-cyan);
  font-size: 0.72rem;
}

.page-home .hero-copy {
  position: relative;
  z-index: 2;
  margin-top: -34px;
  padding: 0 22px 28px;
}

.page-home .hero-lead {
  margin-top: 16px;
  max-width: 60ch;
  font-size: 1rem;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .hero-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
}

.page-home .hero-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
}

.page-home .hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 22px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--c-ink);
  overflow: hidden;
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease);
}

.page-home .hero-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c-cyan);
  opacity: 0.8;
}

.page-home .hero-card--b::before {
  background: linear-gradient(180deg, var(--c-neon), var(--c-cyan));
}

.page-home .hero-card--c::before {
  background: var(--c-amber);
}

.page-home .hero-card:hover,
.page-home .hero-card:focus-within {
  border-color: rgba(63, 227, 210, 0.4);
  transform: translateY(-2px);
}

.page-home .hero-card-num {
  font-size: 0.74rem;
  color: var(--c-slate);
}

.page-home .hero-card p {
  font-size: 0.94rem;
  line-height: 1.78;
}

.page-home .hero-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ---------- chapter rail ---------- */
.page-home .chapter-rail {
  position: sticky;
  top: var(--header-h);
  z-index: 25;
  background: rgba(8, 20, 38, 0.94);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.page-home .rail-inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 9px;
  padding-bottom: 9px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page-home .rail-inner::-webkit-scrollbar {
  display: none;
}

.page-home .chapter-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  color: var(--c-slate);
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-home .chapter-link:hover {
  color: var(--c-mist);
  background: rgba(63, 227, 210, 0.09);
}

.page-home .chapter-link.is-active,
.page-home .chapter-link[aria-current="true"] {
  color: var(--c-space);
  background: var(--c-cyan);
  border-color: var(--c-cyan);
  font-weight: 700;
}

.page-home .chapter-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  opacity: 0.82;
}

/* ---------- block shell ---------- */
.page-home .home-block {
  padding-top: 58px;
  padding-bottom: 58px;
}

.page-home .home-block--ink {
  background: var(--c-ink);
}

.page-home .home-block--indigo {
  background: var(--c-indigo);
}

.page-home .home-block--teal {
  background: var(--c-teal);
}

.page-home .home-block--space {
  background: var(--c-space);
}

.page-home .home-block--begin {
  background:
    radial-gradient(120% 100% at 12% 0%, rgba(160, 107, 255, 0.22) 0%, rgba(8, 20, 38, 0) 58%),
    linear-gradient(140deg, var(--c-space) 0%, var(--c-teal) 100%);
}

.page-home .block-head {
  max-width: 760px;
  margin-bottom: 34px;
}

/* ---------- steps ---------- */
.page-home .step-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .step-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 24px 20px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(8, 20, 38, 0.62);
}

.page-home .step-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-cyan);
  line-height: 1;
}

.page-home .step-item p {
  flex: 1 1 auto;
  font-size: 0.95rem;
}

/* ---------- compare ---------- */
.page-home .compare-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  margin-bottom: 36px;
}

.page-home .compare-copy .btn {
  margin-top: 22px;
}

.page-home .compare-figure {
  margin: 0;
  min-width: 0;
}

.page-home .compare-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid rgba(160, 107, 255, 0.32);
}

.page-home .dim-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .dim-item {
  position: relative;
  min-width: 0;
  padding: 18px 18px 18px 54px;
  border: 1px solid rgba(160, 107, 255, 0.26);
  border-radius: var(--r-sm);
  background: rgba(4, 11, 20, 0.32);
}

.page-home .dim-idx {
  position: absolute;
  top: 18px;
  left: 16px;
  font-size: 0.78rem;
  color: var(--c-cyan);
}

.page-home .dim-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.page-home .dim-item p {
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--home-ink-dim);
}

/* ---------- checklist ---------- */
.page-home .checklist-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 26px;
}

.page-home .checklist-intro {
  min-width: 0;
}

.page-home .checklist-stamp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 20px;
}

.page-home .stamp-pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--c-amber);
  color: var(--c-amber-ink);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-home .stamp-text {
  font-size: 0.84rem;
  color: var(--home-ink-dim);
}

.page-home .checklist-figure {
  margin: 0;
  min-width: 0;
}

.page-home .checklist-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}

.page-home .check-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 16px;
}

.page-home .check-count {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(63, 227, 210, 0.45);
  color: var(--c-cyan);
  font-size: 0.76rem;
}

.page-home .check-count--opt {
  border-color: var(--line-soft);
  color: var(--c-slate);
}

.page-home .check-hint {
  font-size: 0.8rem;
  color: var(--home-ink-dim);
}

.page-home .check-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .check-item {
  min-width: 0;
}

.page-home .check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: rgba(4, 11, 20, 0.3);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-home .check-item--must .check-label {
  border-left-color: var(--c-cyan);
}

.page-home .check-item--opt .check-label {
  border-left-color: var(--c-slate);
}

.page-home .check-label:hover {
  background: rgba(63, 227, 210, 0.07);
}

.page-home .check-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.page-home .check-box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 1.5px solid var(--c-slate);
  border-radius: 5px;
  background: transparent;
  position: relative;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.page-home .check-input:checked + .check-box {
  background: var(--c-cyan);
  border-color: var(--c-cyan);
}

.page-home .check-input:checked + .check-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--c-space);
  border-bottom: 2px solid var(--c-space);
  transform: rotate(42deg);
}

.page-home .check-input:focus-visible + .check-box {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
}

.page-home .check-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--c-mist);
}

.page-home .check-input:checked ~ .check-text {
  color: var(--c-slate);
  text-decoration: line-through;
}

/* ---------- mobile ---------- */
.page-home .phone-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.page-home .phone-mock {
  min-width: 0;
  max-width: 360px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, var(--c-ink) 0%, rgba(6, 42, 46, 0.9) 100%);
  box-shadow: inset 0 0 0 6px rgba(4, 11, 20, 0.6);
}

.page-home .phone-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.74rem;
  color: var(--c-slate);
}

.page-home .phone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-cyan);
}

.page-home .phone-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .phone-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: rgba(8, 20, 38, 0.72);
  font-size: 0.9rem;
  color: var(--c-mist);
}

.page-home .phone-list li:first-child {
  background: var(--c-cyan);
  color: var(--c-space);
  font-weight: 700;
}

.page-home .phone-rank {
  font-size: 0.74rem;
  opacity: 0.75;
}

.page-home .phone-foot {
  margin-top: 12px;
  font-size: 0.76rem;
  color: var(--c-slate);
}

.page-home .phone-copy {
  min-width: 0;
}

.page-home .phone-copy p + p {
  margin-top: 14px;
}

.page-home .phone-copy .btn {
  margin-top: 22px;
}

.page-home .mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.page-home .mini-stats li {
  min-width: 0;
  padding: 14px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--c-ink);
  text-align: center;
}

.page-home .mini-num {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-cyan);
  line-height: 1.3;
}

.page-home .mini-label {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--c-slate);
}

/* ---------- local ---------- */
.page-home .local-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.page-home .local-copy {
  min-width: 0;
}

.page-home .local-copy p + p {
  margin-top: 14px;
}

.page-home .local-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 24px;
}

.page-home .local-figure {
  margin: 0;
  min-width: 0;
}

.page-home .local-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}

.page-home .local-figure figcaption {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--c-slate);
  line-height: 1.7;
}

/* ---------- begin ---------- */
.page-home .begin-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.page-home .begin-copy {
  min-width: 0;
}

.page-home .begin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .begin-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
}

.page-home .trust-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .trust-row li {
  min-width: 0;
  padding: 16px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: rgba(4, 11, 20, 0.42);
}

.page-home .trust-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-amber);
  line-height: 1.3;
}

.page-home .trust-label {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--c-slate);
}

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .page-home .check-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .dim-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .trust-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .home-block {
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .page-home .hero {
    padding-top: 18px;
  }

  .page-home .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: stretch;
    padding-bottom: 72px;
  }

  .page-home .hero-stack {
    grid-template-rows: auto auto 1fr;
  }

  .page-home .hero-visual {
    aspect-ratio: 16 / 9;
  }

  .page-home .hero-copy {
    margin-top: -52px;
    padding: 0 32px 34px;
  }

  .page-home .hero-lead {
    font-size: 1.05rem;
  }

  .page-home .hero-actions .btn {
    flex: 0 0 auto;
  }

  .page-home .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .page-home .compare-top {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 40px;
    margin-bottom: 46px;
  }

  .page-home .dim-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .checklist-top {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 40px;
    margin-bottom: 34px;
  }

  .page-home .check-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .phone-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 48px;
  }

  .page-home .local-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 52px;
  }

  .page-home .begin-inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: center;
    gap: 48px;
  }

  .page-home .trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .begin-actions .btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 1180px) {
  .page-home .chapter-rail {
    top: var(--header-h);
  }

  .page-home .trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-card,
  .page-home .chapter-link,
  .page-home .check-label,
  .page-home .check-box {
    transition: none;
  }

  .page-home .hero-card:hover {
    transform: none;
  }
}
