/* --------------------------------------------------------------------------
   Zainstudio — simple, clear, one typeface
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f5ef;
  --bg-soft: #f0ece2;
  --surface: #fffdf9;
  --ink: #17151d;
  --muted: #615d6b;
  --line: #e3ded3;
  --line-strong: #cec7b8;
  --brand: #5b3df5;
  --brand-deep: #4325cf;
  --brand-soft: #eee9ff;
  --lime: #dff56f;
  --peach-soft: #ffeadf;
  --peach-ink: #a94a1b;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.75, 0.22, 1);
  --page: 1160px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked,
body.dialog-open {
  overflow: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--brand-deep);
  outline-offset: 3px;
}

.container {
  width: min(100% - clamp(36px, 6vw, 72px), var(--page));
  margin-inline: auto;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--solid {
  fill: currentColor;
  stroke: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.button .icon {
  width: 15px;
  height: 15px;
}

.button--primary {
  background: var(--ink);
  color: var(--surface);
}

.button--primary:hover {
  background: var(--brand-deep);
  box-shadow: 0 14px 24px -20px rgba(67, 37, 207, 0.8);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--ink);
  color: var(--bg);
  transition: transform 0.7s var(--ease);
}

.loader.is-leaving {
  transform: translateY(-101%);
}

.loader.is-gone {
  display: none;
}

.loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(320px, 100%);
  text-align: center;
}

.loader-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 15px;
  background: var(--lime);
  color: var(--ink);
}

.loader-mark .icon {
  width: 26px;
  height: 26px;
}

.loader-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.loader-note {
  margin-top: 2px;
  color: rgba(247, 245, 239, 0.55);
  font-size: 13px;
}

.loader-track {
  width: 100%;
  height: 3px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(247, 245, 239, 0.16);
}

.loader-bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
}

.loader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  color: rgba(247, 245, 239, 0.5);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.loader-skip {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid rgba(247, 245, 239, 0.3);
  background: none;
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.loader-skip:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.no-js .loader {
  display: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid transparent;
  background: rgba(247, 245, 239, 0.86);
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

@supports (backdrop-filter: blur(12px)) {
  .site-header {
    backdrop-filter: blur(14px);
  }
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(247, 245, 239, 0.96);
  box-shadow: 0 14px 30px -30px rgba(23, 21, 29, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--lime);
  transition: transform 0.35s var(--ease), background-color 0.25s;
}

.brand-mark .icon {
  width: 17px;
  height: 17px;
}

.brand:hover .brand-mark {
  transform: rotate(90deg);
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.primary-nav a {
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.primary-nav a:hover {
  color: var(--ink);
}

.header-tools {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-lines {
  display: grid;
  gap: 5px;
  width: 18px;
}

.menu-lines span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-lines span:first-child {
  transform: translateY(3.3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-lines span:last-child {
  transform: translateY(-3.3px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  top: calc(100% + 8px);
  right: max(18px, calc((100vw - var(--page)) / 2));
  left: max(18px, calc((100vw - var(--page)) / 2));
  z-index: 600;
  max-width: var(--page);
  margin-inline: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 30px 60px -30px rgba(23, 21, 29, 0.35);
}

.mobile-nav > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.mobile-nav > a span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: clamp(44px, 6vw, 84px) 0 clamp(52px, 7vw, 92px);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.15rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.accent {
  color: var(--brand);
}

.no-break {
  white-space: nowrap;
}

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

.hero-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 50px -42px rgba(23, 21, 29, 0.4);
}

.hero-product {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--bg);
  text-decoration: none;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.hero-product + .hero-product {
  margin-top: 10px;
}

.hero-product:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.product-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 13px;
}

.product-icon .icon {
  width: 26px;
  height: 26px;
}

.product-icon--pokez {
  background: var(--brand);
  color: var(--surface);
}

.product-icon--codez {
  background: var(--ink);
  color: var(--lime);
}

.product-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.product-text strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.product-arrow {
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.25s;
}

.hero-product:hover .product-arrow {
  color: var(--brand-deep);
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(46px, 6vw, 76px) 0;
}

.section--news {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

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

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

.section-label {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-note {
  max-width: 34ch;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

/* --------------------------------------------------------------------------
   News
   -------------------------------------------------------------------------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.news-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.news-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 16px;
}

.news-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.news-icon .icon {
  width: 21px;
  height: 21px;
}

.news-card--natal .news-icon {
  background: #f0f8d2;
  color: #52681a;
}

.news-card--redeem .news-icon {
  background: var(--peach-soft);
  color: var(--peach-ink);
}

.news-chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.news-card h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.news-card > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 14px 0 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.text-link .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

.code-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.code-chips code {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Policy
   -------------------------------------------------------------------------- */

.policy-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.policy-aside {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
}

.policy-updated {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 700;
}

.policy-updated span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
  list-style: none;
}

.policy-facts li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.fact-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--surface);
}

.fact-icon .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}

.policy-facts div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.policy-facts strong {
  font-size: 13.5px;
  font-weight: 700;
}

.policy-facts li span:not(.fact-icon) {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.policy-small {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.policy-list {
  border-top: 1px solid var(--line);
}

.policy-list details {
  border-bottom: 1px solid var(--line);
}

.policy-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 2px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.policy-list summary::-webkit-details-marker {
  display: none;
}

.policy-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 0.25s, border-color 0.25s;
}

.policy-icon::before,
.policy-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.policy-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

details[open] .policy-icon {
  border-color: var(--brand);
  background: var(--brand-soft);
}

details[open] .policy-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.policy-answer {
  max-width: 62ch;
  padding: 0 2px 22px;
}

.policy-answer p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.72;
}

.policy-answer code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.88em;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: clamp(44px, 5vw, 64px) 0 24px;
  background: var(--ink);
  color: var(--bg);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 36px;
  padding-bottom: 34px;
}

.brand--footer {
  color: var(--bg);
}

.brand--footer .brand-mark {
  background: var(--lime);
  color: var(--ink);
}

.footer-brand p {
  max-width: 44ch;
  margin-top: 16px;
  color: rgba(247, 245, 239, 0.55);
  font-size: 13.5px;
  line-height: 1.65;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-nav > p {
  margin-bottom: 2px;
  color: rgba(247, 245, 239, 0.42);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(247, 245, 239, 0.82);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--lime);
}

.footer-nav .icon {
  width: 12px;
  height: 12px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 245, 239, 0.14);
  color: rgba(247, 245, 239, 0.5);
  font-size: 12px;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(247, 245, 239, 0.8);
  font-weight: 600;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--lime);
}

.footer-bottom .icon {
  width: 12px;
  height: 12px;
}

/* --------------------------------------------------------------------------
   Article dialog
   -------------------------------------------------------------------------- */

.article-dialog {
  width: min(680px, calc(100% - 28px));
  max-width: none;
  max-height: min(86vh, 820px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 90px -40px rgba(23, 21, 29, 0.6);
}

.article-dialog::backdrop {
  background: rgba(23, 21, 29, 0.55);
}

.article-shell {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}

.article-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: none;
  padding: 12px 18px 12px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.article-brand {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.article-brand span {
  color: var(--muted);
  font-weight: 600;
}

.article-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.article-close .icon {
  width: 14px;
  height: 14px;
}

.article-close:hover {
  border-color: var(--ink);
  background: var(--bg);
}

.article-content {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.article-head {
  padding: 28px 30px 22px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(520px 240px at 100% 0%, rgba(238, 233, 255, 0.9), transparent 70%),
    var(--surface);
}

.article-meta {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.article-title {
  font-size: clamp(1.7rem, 3.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.article-dek {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.article-body {
  padding: 24px 30px 30px;
}

.article-body > p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.article-body h3 {
  margin: 24px 0 6px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.article-cta {
  margin-top: 26px;
}

.code-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.code-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.code-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.code-item code {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
}

.copy-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--ink);
  color: var(--surface);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.copy-button:hover {
  background: var(--brand-deep);
}

.copy-button.is-copied {
  background: var(--lime);
  color: var(--ink);
}

.copy-status {
  min-height: 18px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.article-steps {
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.article-steps li {
  padding-left: 4px;
  margin-top: 4px;
}

.article-steps li::marker {
  color: var(--brand);
  font-weight: 700;
}

.release-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
  list-style: none;
}

.release-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 2px solid var(--brand-soft);
}

.release-list strong {
  font-size: 14px;
  font-weight: 700;
}

.release-list span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1040px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 36px;
  }

  .policy-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 26px;
  }
}

@media (max-width: 960px) {
  .hero {
    padding-top: 46px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .hero-panel {
    max-width: 520px;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .policy-aside {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0 28px;
  }

  .policy-updated {
    grid-column: 1 / -1;
  }

  .policy-facts {
    grid-column: 2;
    grid-row: 2 / span 2;
  }

  .policy-small {
    grid-column: 1;
  }
}

@media (max-width: 920px) {
  .primary-nav {
    display: none;
  }

  .header-tools {
    margin-left: auto;
  }

  .menu-toggle {
    display: grid;
  }

  .header-inner {
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-note {
    max-width: none;
    padding: 0;
    text-align: left;
  }

  .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .policy-aside {
    display: block;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 22px;
    row-gap: 8px;
  }

  .footer-nav > p {
    flex-basis: 100%;
    margin-bottom: 2px;
  }

  .article-head {
    padding: 24px 22px 20px;
  }

  .article-body {
    padding: 20px 22px 26px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(2.35rem, 10.4vw, 3rem);
  }

  .hero-actions .button {
    flex: 1 1 auto;
  }

  .hero-panel {
    padding: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .article-dialog {
    width: calc(100% - 16px);
    max-height: 90vh;
  }

  .article-bar {
    padding: 10px 12px 10px 18px;
  }

  .code-item {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .copy-button {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .loader {
    transition: none;
  }
}
