/* Reach marketing site — gaming-platform redesign
   Tokens and components for Home, Mission, About, Download, Support, and policy pages.
   Primary blue is focus-only. Primary CTAs are CSS green pills (no PNG fills). */

:root {
  --bg: #f9f7f4;
  --surface: #ffffff;
  --focus: #2870ef;
  --success: #2dd36f;
  --success-press: #27bd63;
  --tertiary: #dc354b;
  --gold: #f5c542;
  --gold-shadow: #d4a82e;
  --gold-orange: #e8952a;
  --text: #000000;
  --button-text: #3d3d3d;
  --text-muted: #55504a;
  --hero-bg: #111216;
  --text-on-dark: #ffffff;
  --text-muted-on-dark: #d8d5cf;
  --border: #ded9d1;
  --panel-radius: 24px;
  --action-radius: 999px;
  --action-label: #111216;
  --content-max: 1600px;
  --prose-max: 760px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-space: clamp(40px, 6vw, 96px);
  --shadow-soft: 0 4px 16px rgba(17, 18, 22, 0.08), 0 1px 3px rgba(17, 18, 22, 0.06);
  --shadow-card: 0 8px 28px rgba(17, 18, 22, 0.1), 0 2px 6px rgba(17, 18, 22, 0.06);
  --action-shadow: 0 4px 0 rgba(17, 18, 22, 0.12), 0 10px 24px rgba(17, 18, 22, 0.14);
  --action-shadow-hover: 0 5px 0 rgba(17, 18, 22, 0.14), 0 14px 28px rgba(17, 18, 22, 0.18);
  --motion: 140ms ease;
  --font-body: "Roboto", system-ui, -apple-system, sans-serif;
  --font-display: "Roboto Condensed", "Roboto", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
}

/* Inline links stay underlined at rest (CTAs / nav opt out below). */
a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: none;
  color: inherit;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem); /* ~40–72px */
  margin: 0 0 0.4em;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem); /* ~28–44px */
  margin: 0 0 0.45em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.4em;
}

li:last-child {
  margin-bottom: 0;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

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

/* —— Skip link —— */

.skip-link {
  position: absolute;
  top: 0;
  left: var(--gutter);
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-120%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(12px);
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

/* —— Focus contract —— */

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn-action:focus-visible,
.brand:focus-visible,
.hero__secondary:focus-visible,
.closing__secondary:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

.btn-action:focus-visible {
  /* White separation so Primary blue stays distinct on green. */
  box-shadow: 0 0 0 3px #ffffff, var(--action-shadow);
}

/* Skip target: #main is focusable via tabindex=-1 (programmatic focus). */
#main:focus {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

/* —— Masthead (continuous dark home opening) —— */

.masthead {
  background: var(--hero-bg);
  color: var(--text-on-dark);
}

.masthead .site-header {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  padding-bottom: 0;
}

/* Home: masthead wraps header + hero as one continuous dark band. */
.masthead .site-header--dark {
  background: transparent;
}

.masthead .hero {
  background: transparent;
  padding-top: clamp(8px, 2vw, 16px);
}

/* —— Site header —— */

.site-header {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  padding: 24px var(--gutter) 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-header--dark {
  background: var(--hero-bg);
  color: var(--text-on-dark);
}

.site-header--light {
  background: var(--bg);
  color: var(--text);
}

.brand {
  display: block;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: auto;
  aspect-ratio: 542 / 204;
}

.brand-logo--masthead {
  /* Sized by .masthead / .site-header--dark rules above. */
  width: clamp(200px, 42vw, 360px);
}

.brand-logo--footer,
.site-footer .brand-logo--footer,
.site-footer .footer-logo {
  width: clamp(140px, 22vw, 180px);
}

.brand--footer,
.footer-brand {
  display: block;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}

/* Optional nav hooks — inherit color; never idle Primary. */
.nav-download,
.nav-support {
  color: inherit;
}

/* Light pages: colour wordmark, smaller. */
.site-header--light .brand-logo {
  width: clamp(200px, 28vw, 240px);
}

/* Dark / home: hero-scale white wordmark. */
.site-header--dark .brand-logo,
.masthead .brand-logo {
  width: clamp(200px, 42vw, 360px);
}

@media (min-width: 1100px) {
  .site-header--dark .brand-logo,
  .masthead .brand-logo,
  .brand-logo--masthead {
    width: clamp(300px, 22vw, 380px);
  }
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  /* Inherit masthead/header color — never idle Primary blue. */
  color: inherit;
  border-radius: 12px;
}

.site-nav a:link,
.site-nav a:visited {
  color: inherit;
}

.site-header--light .site-nav a {
  color: var(--button-text);
}

.site-header--dark .site-nav a,
.masthead .site-nav a {
  color: var(--text-on-dark);
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  /* Weight + underline only — never Primary blue fill. */
  background: transparent;
  color: inherit;
}

/* —— Actions —— */

.btn-action,
a.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--action-radius);
  background: var(--success);
  color: var(--action-label);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--action-shadow);
  transition:
    background var(--motion),
    box-shadow var(--motion);
}

a.btn-action:hover,
a.btn-action:focus,
a.btn-action:active {
  text-decoration: none;
}

.btn-action:hover {
  background: var(--success-press);
  box-shadow: var(--action-shadow-hover);
  text-decoration: none;
}

.btn-action:active {
  background: var(--success-press);
  box-shadow: 0 2px 0 rgba(17, 18, 22, 0.12), 0 6px 14px rgba(17, 18, 22, 0.12);
}

.btn-action--text {
  background: transparent;
  box-shadow: none;
  color: inherit;
  min-height: 48px;
  padding: 10px 8px;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 600;
}

.btn-action--text:hover,
.btn-action--text:active,
a.btn-action--text:hover,
a.btn-action--text:active {
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.btn-action--text:focus-visible {
  box-shadow: none;
}

.btn-action:disabled,
.btn-action[aria-disabled="true"],
a.btn-action[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  background: #9ad9b3;
  color: var(--action-label);
  box-shadow: none;
  pointer-events: none;
}

.btn-action--text:disabled,
.btn-action--text[aria-disabled="true"] {
  background: transparent;
  opacity: 0.5;
  text-decoration: none;
}

/* —— Sections —— */

.section {
  padding: var(--section-space) 0;
  overflow: visible;
}

.section--cream {
  background: var(--bg);
  color: var(--text);
}

.section--white {
  background: var(--surface);
  color: var(--text);
}

.section--dark {
  background: var(--hero-bg);
  color: var(--text-on-dark);
}

.section__inner {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
  overflow: visible;
}

.prose {
  max-width: min(65ch, var(--prose-max));
}

.prose > :first-child {
  margin-top: 0;
}

.section--dark .prose a,
.section--dark a:not(.btn-action):not(.brand):not(.site-nav a) {
  color: var(--text-on-dark);
}

.lede {
  margin: 0 0 1.25em;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 40em;
}

.section--dark .lede,
.hero .lede {
  color: var(--text-muted-on-dark);
}

.gold-rule {
  display: block;
  width: 72px;
  height: 4px;
  margin: 24px 0;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-orange) 100%);
  box-shadow: 0 1px 0 var(--gold-shadow);
}

/* —— Hero —— */

.hero {
  background: var(--hero-bg);
  color: var(--text-on-dark);
  padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px);
  overflow: visible;
}

.hero .section__inner,
.hero__layout {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
  overflow: visible;
}

.hero__layout {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}

/* Alias: HTML that puts copy + shot as direct .hero children (no .hero__layout). */
.hero:not(:has(.hero__layout)):has(> .hero__copy) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
  width: min(var(--content-max), 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  box-sizing: border-box;
}

.hero__shot,
.hero__media {
  min-width: 0;
  overflow: visible;
}

.hero__copy {
  max-width: 28em;
  overflow: visible;
}

.hero__copy h1 {
  color: var(--text-on-dark);
}

.hero__copy p {
  color: var(--text-muted-on-dark);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 28px 0 16px;
}

.hero__actions .btn-action {
  flex: 0 1 auto;
}

@media (max-width: 767px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn-action:not(.btn-action--text) {
    width: 100%;
  }

  .hero__actions .btn-action--text {
    align-self: flex-start;
  }
}

.hero__note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted-on-dark);
}

.hero__media {
  min-width: 0;
  overflow: visible;
}

@media (min-width: 1100px) {
  .hero__layout,
  .hero:not(:has(.hero__layout)):has(> .hero__copy) {
    grid-template-columns: minmax(0, 34%) minmax(0, 66%);
  }
}

/* Optional one-time settle on hero media only (plan §11). */
@keyframes hero-media-settle {
  from {
    opacity: 0.92;
  }

  to {
    opacity: 1;
  }
}

.hero__media .shot,
.hero__shot {
  animation: hero-media-settle 200ms ease-out both;
}

/* —— Screenshot stage —— */

.shot {
  margin: 0;
  overflow: visible;
}

.shot__frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--panel-radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: visible;
}

.shot__frame img,
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  vertical-align: middle;
}

.shot figcaption,
.shot__caption {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.section--dark .shot figcaption,
.section--dark .shot__caption,
.hero .shot figcaption,
.hero .shot__caption {
  color: var(--text-muted-on-dark);
}

@media (max-width: 767px) {
  :root {
    --panel-radius: 16px;
  }

  .hero__media,
  .hero__shot {
    margin-inline: calc(var(--gutter) * -1);
    width: calc(100% + (var(--gutter) * 2));
  }

  .hero__media .shot__frame,
  .hero__shot .shot__frame,
  .hero__shot.shot .shot__frame {
    border-radius: 0;
  }

  .hero__media .shot figcaption,
  .hero__media .shot__caption,
  .hero__shot figcaption,
  .hero__shot .shot__caption {
    padding: 0 var(--gutter);
  }
}

/* —— Feature rows —— */

.feature-row {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  overflow: visible;
}

.feature-row__text {
  min-width: 0;
}

.feature-row__media {
  min-width: 0;
  overflow: visible;
}

.feature-row__list {
  margin: 1em 0 0;
  padding-left: 1.2em;
  color: var(--button-text);
}

.feature-row__list li {
  margin-bottom: 0.55em;
}

@media (min-width: 900px) {
  .feature-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  }

  .feature-row--reverse {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }

  .feature-row--reverse .feature-row__text,
  .feature-row--reverse .feature-row__copy {
    order: 2;
  }

  .feature-row--reverse .feature-row__media,
  .feature-row--reverse > .shot {
    order: 1;
  }
}

.feature-stack {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

/* —— Profile strip —— */

.profile-strip {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

@media (min-width: 768px) {
  .profile-strip {
    grid-template-columns: 1fr 1fr;
  }
}

.profile-strip .shot__frame {
  background: var(--surface);
}

/* —— Download —— */

.download-grid {
  display: grid;
  gap: 24px;
  margin: 28px 0;
}

@media (min-width: 720px) {
  .download-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.download-card {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
}

.download-card h2,
.download-card h3 {
  margin: 0;
}

.download-card p {
  color: var(--button-text);
  margin: 0;
}

.download-card .btn-action {
  margin-top: 8px;
  align-self: flex-start;
}

.platform-advisory {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(245, 197, 66, 0.12);
  color: var(--button-text);
  font-size: 1rem;
  line-height: 1.5;
}

.status {
  margin: 20px 0 0;
  min-height: 1.5em;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.status.is-error {
  color: var(--tertiary);
  font-weight: 600;
}

.install-note {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(245, 197, 66, 0.12);
  border: 1px solid rgba(212, 168, 46, 0.35);
  color: var(--button-text);
  overflow: hidden;
}

.install-note-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-shadow);
}

.install-note p {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.install-note p:last-child {
  margin-bottom: 0;
}

.install-note-muted {
  color: var(--text-muted) !important;
  font-size: 0.88rem !important;
}

.install-steps {
  margin: 0 0 10px;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: var(--button-text);
}

.install-steps li {
  margin-bottom: 8px;
}

.install-cmd {
  display: block;
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--button-text);
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-x: auto;
  overflow-wrap: anywhere;
  white-space: pre;
  max-width: 100%;
}

.unsupported-message {
  margin: 8px 0 0;
  max-width: 36em;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--tertiary);
}

/* —— Support Reach —— */

.support-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.field-note {
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 40em;
}

/* Emphasis block for the "Reach is free" statement. Gold accent — never focus blue. */
.free-callout {
  margin: 20px 0 0;
  padding: 16px 20px;
  max-width: 44em;
  border-left: 6px solid var(--gold);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--button-text);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}

/* —— Closing CTA band helpers —— */

.cta-band {
  text-align: left;
}

.cta-band .hero__actions,
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 24px 0 0;
}

/* —— Page article shell (Mission / About / Support / policy prose) —— */

.page-intro {
  padding-top: clamp(24px, 4vw, 40px);
}

.page-intro h1 {
  max-width: 18em;
}

.content-block {
  margin: 0 0 28px;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block h2 {
  margin: 0 0 10px;
}

.content-block p {
  color: var(--button-text);
  max-width: 40em;
}

.media-breakout {
  margin: 32px 0;
  overflow: visible;
}

/* —— HTML class aliases (minimal markup churn) —— */

.hero__secondary,
.closing__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  background: transparent;
  border-radius: 12px;
}

.hero__secondary:hover,
.closing__secondary:hover {
  text-decoration-thickness: 2px;
}

.hero .hero__secondary,
.section--dark .closing__secondary,
.closing .closing__secondary {
  color: var(--text-on-dark);
}

.feature-row__copy {
  min-width: 0;
}

.feature-list,
.feature-row__list {
  margin: 1em 0 0;
  padding-left: 1.2em;
  color: var(--button-text);
}

.feature-list li,
.feature-row__list li {
  margin-bottom: 0.55em;
}

.feature-row > .shot,
.feature-row__media {
  min-width: 0;
  overflow: visible;
}

.section__intro {
  margin: 0 0 clamp(20px, 3vw, 32px);
  max-width: 42em;
}

.section__intro p {
  color: var(--button-text);
  font-size: clamp(1.05rem, 2vw, 1.15rem);
}

.section__inner--prose {
  max-width: min(65ch, var(--prose-max));
  margin-left: auto;
  margin-right: auto;
}

.section--editorial .section__inner--prose p {
  color: var(--button-text);
  font-size: clamp(1.05rem, 2vw, 1.15rem);
}

.shot--secondary {
  margin-top: clamp(20px, 3vw, 32px);
  max-width: min(960px, 100%);
}

.shot--secondary .shot__frame {
  box-shadow: var(--shadow-soft);
}

.closing {
  text-align: left;
}

.closing__actions,
.cta-band .hero__actions,
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 24px 0 0;
}

@media (max-width: 767px) {
  .closing__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .closing__actions .btn-action:not(.btn-action--text) {
    width: 100%;
  }

  .closing__actions .closing__secondary {
    align-self: flex-start;
  }
}

/* —— Page / panel shell (Mission, About, etc.) —— */

.page {
  padding-bottom: var(--section-space);
}

.page-title {
  margin: 0 0 0.4em;
}

.panel {
  width: min(var(--prose-max), calc(100% - (var(--gutter) * 2)));
  margin: clamp(24px, 4vw, 40px) auto 0;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.panel.prose {
  max-width: min(65ch, var(--prose-max));
}

.panel .lede {
  margin-bottom: 1.5em;
}

.media-breakout picture,
.media-breakout > img {
  display: block;
  width: 100%;
}

.media-breakout img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow-card);
}

.media-breakout figcaption {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.media-breakout.shot img,
.media-breakout .shot__frame img {
  box-shadow: none;
}

/* —— Footer —— */


.site-footer {
  background: var(--bg);
  color: var(--text-muted);
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
}

.site-footer .brand-logo {
  width: clamp(140px, 22vw, 180px);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 12px;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  color: var(--button-text);
  font-weight: 600;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.site-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 12px;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  color: var(--text-muted);
  font-weight: 600;
}

.site-footer__meta,
.site-footer__byline,
.footer-byline {
  width: 100%;
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.site-footer__free {
  font-weight: 600;
  color: var(--button-text);
}

.site-footer__byline,
.footer-byline {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 12px;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  color: var(--button-text);
  font-weight: 600;
}

.footer-logo {
  display: block;
  height: auto;
  width: clamp(140px, 22vw, 180px);
  aspect-ratio: 542 / 204;
}

/* When footer lacks .site-footer__inner, still lay out children. */
.site-footer:not(:has(.site-footer__inner)) {
  width: min(var(--content-max), 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
  box-sizing: border-box;
}

.site-footer__meta p {
  margin: 0 0 0.35em;
}

.site-footer__meta p:last-child {
  margin-bottom: 0;
}

/* —— Forced colors —— */

@media (forced-colors: active) {
  .btn-action {
    border: 2px solid ButtonText;
    background: ButtonFace;
    color: ButtonText;
    box-shadow: none;
    forced-color-adjust: none;
  }

  .btn-action:focus-visible,
  a:focus-visible,
  button:focus-visible,
  summary:focus-visible,
  .brand:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 3px;
  }

  .shot__frame,
  .download-card,
  .install-note,
  .platform-advisory {
    border: 1px solid CanvasText;
    box-shadow: none;
  }

  .gold-rule {
    background: CanvasText;
    box-shadow: none;
  }

  .site-header--dark,
  .masthead,
  .hero,
  .section--dark {
    background: Canvas;
    color: CanvasText;
  }
}

/* —— Reduced motion —— */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
