/* ---------- Buttons & links (solid, simple) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--r-m);
  border: 2px solid transparent;
  font: 600 0.9375rem / 1 var(--f-body);
  white-space: nowrap;
  transition:
    background var(--t-fast),
    border-color var(--t-fast),
    color var(--t-fast);
}
.btn .arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--t-fast) var(--ease);
}
.btn:hover .arrow,
.link-arrow:hover .arrow {
  transform: translateX(4px);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: #a61f18;
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.on-light .btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.on-light .btn-ghost:hover {
  background: var(--ink);
  color: var(--light);
}
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover {
  background: var(--light-2);
}
.btn-sm {
  min-height: 44px;
  padding: 0 20px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--t-fast);
}
.link-arrow:hover {
  border-color: currentColor;
}
.link-arrow .arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--t-fast) var(--ease);
}
.on-light .link-arrow {
  color: var(--accent-on-light);
}
.text-link {
  color: inherit;
  border-bottom: 2px solid var(--line);
  padding-bottom: 2px;
  transition: border-color var(--t-fast);
}
.text-link:hover {
  border-color: currentColor;
}
.on-light .text-link {
  border-color: var(--line-light);
}

/* ---------- Header: compact, solid ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(var(--max), 100%);
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font: 700 1.3rem / 1 var(--f-display);
  letter-spacing: -0.02em;
}
.brand img {
  height: 28px;
  width: auto;
  display: none;
}
.brand.has-logo img {
  display: block;
}
.brand.has-logo .wordmark {
  display: none;
}
.wordmark b {
  color: var(--accent-text);
  font-weight: 700;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-item {
  position: relative;
}
.nav-link,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: none;
  border-radius: var(--r-s);
  font: 500 0.9375rem / 1 var(--f-body);
  color: var(--text-2);
  transition: color var(--t-fast);
}
.nav-link:hover,
.nav-trigger:hover,
.nav-link[aria-current="page"],
.nav-trigger[data-current="true"] {
  color: #fff;
}
.nav-link[aria-current="page"],
.nav-trigger[data-current="true"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}
.nav-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform var(--t-fast);
}
.nav-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 6px;
  border-radius: 0 0 var(--r-m) var(--r-m);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity var(--t-fast),
    transform var(--t-fast) var(--ease),
    visibility 0s var(--t-fast);
}
.nav-item.is-open .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.nav-sub a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-s);
  color: var(--text-2);
  font-size: 0.9375rem;
  transition:
    background var(--t-fast),
    color var(--t-fast);
}
.nav-sub a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.nav-cta {
  margin-left: 10px;
}
.menu-btn {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: transparent;
  align-items: center;
  justify-content: center;
}
.menu-btn i,
.menu-btn i::before,
.menu-btn i::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  transition:
    transform var(--t-card) var(--ease),
    background var(--t-fast);
}
.menu-btn i::before,
.menu-btn i::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn i::before {
  top: -6px;
}
.menu-btn i::after {
  top: 6px;
}
.menu-open .menu-btn i {
  background: transparent;
}
.menu-open .menu-btn i::before {
  transform: translateY(6px) rotate(45deg);
}
.menu-open .menu-btn i::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1000px) {
  .menu-btn {
    display: inline-flex;
  }
  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 32px;
    background: var(--bg);
    overflow-y: auto;
    display: none;
  }
  .menu-open .nav-menu {
    display: flex;
  }
  .menu-open {
    overflow: hidden;
  }
  .nav-item {
    border-bottom: 1px solid var(--line);
  }
  .nav-link,
  .nav-trigger {
    width: 100%;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 4px;
    font: 700 1.25rem / 1 var(--f-display);
    color: #fff;
    box-shadow: none !important;
  }
  .nav-trigger svg {
    display: none;
  }
  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    border: 0;
    padding: 0 0 12px 4px;
  }
  .nav-sub a {
    min-height: 44px;
    padding: 0 4px;
  }
  .nav-cta {
    margin: 20px 0 0;
  }
  .nav-cta .btn {
    width: 100%;
  }
}

/* ---------- Media with an intentional placeholder in the game's own palette ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--tone, #2a74c9) 40%, #0c0e13);
  border-radius: var(--r-s);
  isolation: isolate;
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--tone, #2a74c9) 90%, #fff 10%) 0%,
    color-mix(in srgb, var(--tone, #2a74c9) 55%, #000) 100%
  );
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
  transition: transform var(--t-card) var(--ease);
}
.media.contain img {
  object-fit: contain;
}
.media-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: -1;
  font: 500 var(--fs-small) / 1.3 var(--f-body);
  color: rgba(255, 255, 255, 0.78);
}
.media-label b {
  display: block;
  font: 700 1.1rem / 1.15 var(--f-display);
  color: #fff;
  margin-bottom: 3px;
}
.media.is-missing img,
.media img:not([src]) {
  display: none;
}

/* ---------- Page header (inner pages) ---------- */
.page-head {
  padding: clamp(32px, 4vw, 72px) 0 clamp(36px, 4vw, 64px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  margin: 16px 0 20px;
  max-width: 18ch;
}
.page-head .lede {
  max-width: 62ch;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--fs-small);
  color: var(--text-2);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}
.breadcrumb a {
  color: var(--text-2);
  border-bottom: 1px solid transparent;
  transition:
    color var(--t-fast),
    border-color var(--t-fast);
  min-height: 24px;
  display: inline-block;
}
.breadcrumb a:hover {
  color: #fff;
  border-color: currentColor;
}

.sec-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 56px);
  max-width: 780px;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}
.on-light .table-wrap {
  border-color: var(--line-light);
  background: #fff;
}
.cmp {
  min-width: 600px;
}
.cmp th,
.cmp td {
  text-align: left;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.9688rem;
}
.on-light .cmp th,
.on-light .cmp td {
  border-color: var(--line-light);
}
.cmp thead th {
  font: 700 0.9375rem / 1.3 var(--f-display);
  background: rgba(255, 255, 255, 0.05);
}
.on-light .cmp thead th {
  background: var(--light-2);
  color: var(--ink);
}
.cmp tbody th {
  color: var(--text-2);
  font-weight: 500;
  width: 24%;
}
.on-light .cmp tbody th {
  color: var(--ink-2);
}
.cmp tbody tr:last-child > * {
  border-bottom: 0;
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  min-height: 64px;
  padding: 14px 4px;
  cursor: pointer;
  font: 700 1.125rem / 1.35 var(--f-display);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font: 400 1.5rem / 1 var(--f-body);
  color: var(--accent-text);
  transition: transform var(--t-fast);
  flex: none;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 4px 22px;
  color: var(--text-2);
}
.on-light .faq,
.on-light .faq details {
  border-color: var(--line-light);
}
.on-light .faq summary::after {
  color: var(--accent-on-light);
}

/* ---------- Step list ---------- */
.step-list {
  counter-reset: s;
  display: grid;
}
.step-list li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 6px 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.step-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.step-list li::before {
  content: counter(s, decimal-leading-zero);
  grid-row: span 2;
  font: 700 0.9375rem / 1.6 var(--f-display);
  color: var(--accent-text);
}
.step-list h3 {
  font-size: 1.25rem;
}
.step-list p {
  color: var(--text-2);
}
.on-light .step-list li {
  border-color: var(--line-light);
}
.on-light .step-list li::before {
  color: var(--accent-on-light);
}

.checks li {
  position: relative;
  padding: 10px 0 10px 30px;
  color: var(--text-2);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 18px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg) translate(1px, -3px);
}
.on-light .checks li::before {
  border-color: var(--accent-on-light);
}

/* ---------- CTA: one solid band ---------- */
.cta {
  background: var(--accent);
  color: #fff;
}
.cta-in {
  padding-block: clamp(56px, 7vw, 112px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px clamp(24px, 5vw, 80px);
  align-items: end;
}
.cta h2 {
  max-width: 14ch;
}
.cta p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 24px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta .btn-primary {
  background: #fff;
  color: var(--ink);
}
.cta .btn-primary:hover {
  background: var(--light-2);
}
@media (max-width: 800px) {
  .cta-in {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #07080b;
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 5vw, 80px);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
.foot-brand p {
  color: var(--text-2);
  font-size: 0.9375rem;
  margin-top: 16px;
  max-width: 36ch;
}
.foot-col h2 {
  font: 600 0.9375rem / 1 var(--f-body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-2);
  margin-bottom: 16px;
}
.foot-col li + li {
  margin-top: 2px;
}
.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #fff;
  font-size: 0.9375rem;
  transition: color var(--t-fast);
}
.foot-col a:hover {
  color: var(--accent-text);
}
.foot-base {
  margin-top: clamp(36px, 5vw, 64px);
  padding: 22px 0 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  color: var(--text-2);
  font-size: var(--fs-small);
}
@media (max-width: 860px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Simple section reveal (only hidden once JS confirms it will reveal) ---------- */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--t-reveal) var(--ease),
    transform var(--t-reveal) var(--ease);
}
.js-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

html:not(.js) .nav-item:hover .nav-sub,
html:not(.js) .nav-item:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}
@media (max-width: 1000px) {
  html:not(.js) .menu-btn {
    display: none;
  }
  html:not(.js) .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    background: none;
  }
  html:not(.js) .nav {
    flex-wrap: wrap;
  }
}
