.dta-brand-mark {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
  flex: 0 0 auto;
}

footer .dta-brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  box-shadow: none;
}

.dta-language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.875rem;
  font-weight: 750;
  line-height: 1;
  padding: 0.62rem 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dta-scenario-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: #ccfbf1;
  color: #115e59;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.62rem 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dta-scenario-link:hover {
  border-color: #2dd4bf;
  background: #99f6e4;
  transform: translateY(-1px);
}

.dta-scenario-link:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  outline-offset: 2px;
}

.dta-language-link:hover {
  border-color: #60a5fa;
  background: #dbeafe;
  transform: translateY(-1px);
}

.dta-language-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 2px;
}

.dta-hk-hero-language {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  min-height: 3rem;
  padding-inline: 1.4rem;
}

.dta-hk-hero-language:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.18);
}

.dta-home-loop,
.dta-hk-plan {
  padding: 4.5rem 1rem;
}

.dta-home-loop {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.dta-section-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.dta-kicker {
  color: #047857;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dta-section-title {
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
  line-height: 1.05;
  margin: 0.75rem 0 1rem;
}

.dta-section-copy {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 44rem;
  margin: 0;
}

.dta-loop-grid,
.dta-hk-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

.dta-loop-step,
.dta-hk-step,
.dta-fact {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.dta-loop-step {
  min-height: 12rem;
}

.dta-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.dta-loop-step:nth-child(2) .dta-step-index,
.dta-hk-step:nth-child(2) .dta-step-index {
  background: #fffbeb;
  color: #b45309;
}

.dta-loop-step:nth-child(3) .dta-step-index,
.dta-hk-step:nth-child(3) .dta-step-index {
  background: #eff6ff;
  color: #1d4ed8;
}

.dta-loop-step:nth-child(4) .dta-step-index,
.dta-hk-step:nth-child(4) .dta-step-index {
  background: #fef2f2;
  color: #b91c1c;
}

.dta-loop-step h3,
.dta-hk-step h3,
.dta-fact h3 {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.55rem;
}

.dta-loop-step p,
.dta-hk-step p,
.dta-fact p {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.dta-hk-plan {
  background: #ffffff;
}

.dta-hk-plan-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.dta-fact-stack {
  display: grid;
  gap: 0.75rem;
}

.dta-fact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 1rem;
}

.dta-fact strong {
  color: #0f172a;
  font-size: 1.75rem;
  line-height: 1;
}

.dta-fact span {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.35;
}

.dta-hk-step {
  min-height: 12.5rem;
}

.dta-hk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.dta-action-primary,
.dta-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  min-height: 2.9rem;
  padding: 0.8rem 1rem;
  text-decoration: none;
}

.dta-action-primary {
  background: #0f766e;
  color: #ffffff;
}

.dta-action-primary:hover {
  background: #115e59;
}

.dta-action-secondary {
  border: 1px solid #cbd5e1;
  color: #334155;
  background: #ffffff;
}

.dta-action-secondary:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.dta-official-note {
  margin-top: 2rem;
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
  color: #78350f;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.dta-official-note a {
  color: #92400e;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .dta-loop-grid,
  .dta-hk-plan-grid,
  .dta-hk-plan-header {
    grid-template-columns: 1fr;
  }

  .dta-home-loop,
  .dta-hk-plan {
    padding-block: 3.5rem;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }

  main > section:first-of-type {
    overflow: hidden;
  }

  main > section:first-of-type h1 {
    max-width: 19rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 2.15rem !important;
    line-height: 1.12 !important;
    letter-spacing: 0;
    overflow-wrap: normal;
  }

  main > section:first-of-type p {
    max-width: 18.5rem !important;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }

  .dta-section-title {
    font-size: 2rem;
  }

  .dta-loop-step,
  .dta-hk-step {
    min-height: 0;
  }

  .dta-hk-actions a,
  .dta-hk-hero-language {
    width: 100%;
  }

  nav .dta-language-link {
    display: none;
  }

  nav .dta-scenario-link {
    display: none;
  }
}

@media (max-width: 420px) {
  main > section:first-of-type h1 {
    font-size: 2rem !important;
  }
}

@media (max-width: 360px) {
  main > section:first-of-type h1 {
    font-size: 1.8rem !important;
  }
}
