:root {
  --navy-950: #06131f;
  --navy-900: #071b2b;
  --navy-850: #0b2235;
  --navy-800: #102c43;
  --navy-700: #183e59;
  --gold-500: #f5bd3a;
  --gold-400: #ffd266;
  --teal-500: #16b8a6;
  --teal-100: #dff8f4;
  --ink: #142333;
  --muted: #5c6c7b;
  --line: #dbe3ea;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --warning: #fff4d6;
  --danger: #c84b4b;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px rgba(8, 26, 41, .12);
  --shadow-sm: 0 10px 28px rgba(8, 26, 41, .08);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.75rem);
  margin-bottom: 1.15rem;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: .65rem;
}

p {
  margin-bottom: 1.1rem;
}

code {
  padding: .12rem .38rem;
  background: #eaf0f5;
  border-radius: 5px;
  font-size: .9em;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.content-narrow,
.narrow-intro,
.legal-copy {
  width: min(100%, 840px);
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: .7rem 1rem;
  background: var(--paper);
  color: var(--navy-900);
  transform: translateY(-160%);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.agebar {
  color: #dbe8f2;
  background: var(--navy-950);
  font-size: .78rem;
}

.agebar-inner {
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.agebar strong {
  color: var(--gold-400);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #8D153A;
  border-bottom: 1px solid rgba(219, 227, 234, .85);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 168px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: .7rem .78rem;
  color: #fec600;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 700;
  border-radius: 9px;

}

.nav-link:hover,
.nav-link.is-active {
  color: var(--navy-900);
  background: #edf3f7;
}

.nav-cta {
  margin-left: 4px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  background: #edf3f7;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.nav-toggle-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-close {
  display: inline-flex;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.15;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg,
.mobile-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-small {
  min-height: 40px;
  padding: .55rem .85rem;
  font-size: .86rem;
}

.btn-primary {
  color: #fff;
  background: var(--navy-900);
  box-shadow: 0 10px 24px rgba(7, 27, 43, .18);
}

.btn-accent {
  color: #102031;
  background: var(--gold-500);
  box-shadow: 0 12px 28px rgba(245, 189, 58, .22);
}

.btn-light {
  color: var(--navy-900);
  background: #fff;
}

.btn-outline {
  color: #fff;
  border-color: #cbd7df;
  background: transparent;
}

.btn-outline-dark {
  color: var(--navy-900);
  border-color: var(--navy-900);
  background: transparent;
}

.btn-block {
  width: 100%;
}

.hero,
.page-hero {
  color: #eaf3f8;
  background: radial-gradient(circle at 85% 5%, rgba(22, 184, 166, .25), transparent 32%), radial-gradient(circle at 12% 95%, rgba(245, 189, 58, .16), transparent 36%), linear-gradient(135deg, var(--navy-950), var(--navy-800));
  overflow: hidden;
}

.hero {
  padding: 34px 0 72px;
}

.page-hero {
  padding: 30px 0 64px;
}

.page-hero-compact {
  padding-bottom: 56px;
}

.page-hero-min {
  padding-bottom: 58px;
}

.hero h1,
.page-hero h1,
.hero h2,
.page-hero h2,
.section-dark h2,
.section-dark h3,
.section-dark p {
  color: #fff;
}

.hero-grid,
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
}

.page-hero-grid {
  min-height: 430px;
}

.page-hero-min .container {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy {
  padding-top: 12px;
}

.hero-lead {
  max-width: 760px;
  color: #d3e1e9;
  font-size: clamp(1.05rem, 1.7vw, 1.27rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.7rem 0;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 0;
  margin: 1.3rem 0 0;
  list-style: none;
  color: #c9dce7;
  font-size: .92rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-points svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--teal-500);
  stroke-width: 2.5;
}

.eyebrow {
  margin-bottom: .65rem;
  color: var(--teal-500);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.section-dark .eyebrow {
  color: var(--gold-400);
}

.app-hero-card,
.login-panel,
.register-card {
  position: relative;
  padding: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}

.app-hero-card::before {
  position: absolute;
  inset: -12px 26px auto;
  height: 24px;
  background: rgba(255, 255, 255, .12);
  border-radius: 18px 18px 0 0;
  content: "";
  z-index: -1;
}

.app-hero-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.app-hero-top img {
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.app-hero-top h2 {
  margin: .1rem 0;
  font-size: 2rem;
}

.app-hero-top p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.app-label {
  color: var(--teal-500);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-device-image {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.app-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.app-meta-grid div {
  min-width: 0;
  padding: 10px;
  background: var(--soft);
  border-radius: 10px;
}

.app-meta-grid span,
.spec-card span,
.editorial-card span {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.app-meta-grid strong {
  display: block;
  overflow: hidden;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumbs {
  margin-bottom: 30px;
  color: #c7d9e4;
  font-size: .82rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 6px;
  color: #7892a5;
  content: "/";
}

.breadcrumbs a {
  color: #e9f4f8;
  text-decoration: none;
}

.topic-nav {
  position: sticky;
  top: 78px;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(8, 26, 41, .04);
}

.topic-nav-inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.topic-nav-inner::-webkit-scrollbar {
  display: none;
}

.topic-nav a {
  flex: 0 0 auto;
  padding: .9rem .75rem;
  color: #516777;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}

.topic-nav a:hover {
  color: var(--navy-900);
}

.section {
  padding: 88px 0;
}

.section-tight {
  padding-top: 22px;
  padding-bottom: 88px;
}

.section-alt {
  background: var(--soft);
}

.section-dark {
  color: #d7e4ec;
  background: radial-gradient(circle at 15% 20%, rgba(22, 184, 166, .13), transparent 30%), linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

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

.section-head>div {
  max-width: 760px;
}

.section-head>p {
  max-width: 420px;
  margin-bottom: 7px;
  color: var(--muted);
}

.section-head-light>p {
  color: #c4d5df;
}

.section-lead {
  color: #30485b;
  font-size: 1.17rem;
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.security-panel,
.contact-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.feature-card p,
.security-panel p {
  color: var(--muted);
}

.icon-box {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--navy-900);
  background: var(--teal-100);
  border-radius: 14px;
  font-weight: 900;
}

.icon-box svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--navy-900);
  font-weight: 900;
  text-decoration: none;
}

.text-link span {
  transition: transform .18s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link-light {
  color: var(--gold-400);
}

.media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(38px, 6vw, 76px);
  align-items: center;
}

.media-split-reverse> :first-child {
  order: 2;
}

.media-split-reverse> :last-child {
  order: 1;
}

.media-frame {
  overflow: hidden;
  background: #e9f0f4;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  object-fit: cover;
}

.media-frame-dark {
  border-color: rgba(255, 255, 255, .15);
}

.mini-card-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.mini-card-list>div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  background: var(--soft);
  border-radius: 12px;
}

.mini-card-list svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--teal-500);
  stroke-width: 1.8;
}

.mini-card-list span {
  color: var(--muted);
  font-size: .9rem;
}

.mini-card-list strong {
  display: block;
  color: var(--navy-900);
}

.mini-card-list-dark>div {
  background: rgba(255, 255, 255, .07);
}

.mini-card-list-dark strong {
  color: #fff;
}

.mini-card-list-dark span {
  color: #cbdbe4;
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dark-card {
  min-height: 220px;
  padding: 28px;
  background: rgba(255, 255, 255, .065);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
}

.dark-card p {
  color: #cbdbe4;
}

.number-tag {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--gold-400);
  font-weight: 900;
}

.section-actions {
  margin-top: 30px;
  text-align: center;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 28px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 29px;
}

.check-list li::before {
  position: absolute;
  top: .2em;
  left: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal-500);
  border-radius: 50%;
  content: "✓";
  font-size: .7rem;
  font-weight: 900;
}

.check-list-light {
  color: #d8e5ec;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

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

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
  font-weight: 850;
}

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

.faq-list summary span {
  color: var(--teal-500);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform .2s ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 38px 20px 4px;
  color: var(--muted);
}

.author-box {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 24px;
  padding: 30px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.author-mark {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  color: var(--gold-500);
  background: var(--navy-900);
  border-radius: 22px;
  font-size: 1.3rem;
  font-weight: 950;
}

.author-box h2 {
  font-size: 1.45rem;
}

.author-box p {
  color: var(--muted);
}

.meta-line {
  color: #6e7f8d !important;
  font-size: .83rem;
}

.hero-image-panel {
  max-height: 500px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.hero-image-panel img {
  width: min(330px, 100%);
  border: 8px solid rgba(255, 255, 255, .18);
  border-radius: 34px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, .28);
}

.hero-image-wide {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .25);
}

.hero-image-wide img {
  width: 100%;
}

.spec-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.spec-card div {
  min-height: 112px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec-card strong {
  display: block;
  margin-top: .45rem;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  margin: 28px 0 0;
  border-radius: 14px;
}

.notice svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.notice p {
  margin: .3rem 0 0;
}

.notice-info {
  color: #174d5b;
  background: #e5f8f6;
  border: 1px solid #bae9e3;
}

.notice-warning {
  color: #604a14;
  background: var(--warning);
  border: 1px solid #efd78f;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.screenshot-grid figure {
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.screenshot-grid img {
  width: 100%;
  border-radius: 15px;
}

.screenshot-grid figcaption {
  padding: 11px 6px 5px;
  color: var(--navy-900);
  font-size: .86rem;
  font-weight: 800;
  text-align: center;
}

.steps {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: flex-start;
}

.step>span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy-900);
  border-radius: 13px;
  font-weight: 900;
}

.step h3 {
  margin-top: .2rem;
}

.step p {
  color: var(--muted);
}

.steps-horizontal {
  grid-template-columns: repeat(4, 1fr);
}

.steps-horizontal .step {
  grid-template-columns: 1fr;
}

.numbered-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.dark-two-col {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 54px;
  align-items: center;
}

.callout-card {
  padding: 28px;
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.callout-card h3 {
  color: var(--navy-900);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--navy-900);
  background: #edf3f7;
  font-size: .82rem;
  letter-spacing: .02em;
}

td {
  color: #405566;
  font-size: .91rem;
}

.login-panel,
.register-card {
  max-width: 450px;
  margin-left: auto;
}

.login-panel-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}

.login-panel-head span {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
}

.login-panel-head strong {
  font-size: 1.35rem;
}

.fake-field {
  margin: 10px 0;
  padding: 14px 15px;
  color: #7d8c98;
  background: #f4f7fa;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.fake-button {
  margin: 14px 0;
  padding: 14px;
  color: var(--navy-900);
  background: var(--gold-500);
  border-radius: 10px;
  font-weight: 900;
  text-align: center;
}

.login-panel small,
.register-card small {
  display: block;
  color: #758795;
  line-height: 1.45;
}

.register-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 24px;
}

.register-progress span {
  height: 6px;
  background: #e2e9ee;
  border-radius: 4px;
}

.register-progress .active {
  background: var(--teal-500);
}

.market-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.market-list>div {
  padding: 15px 17px;
  background: var(--soft);
  border-left: 4px solid var(--teal-500);
  border-radius: 8px;
}

.market-list strong {
  display: block;
  color: var(--navy-900);
}

.market-list span {
  color: var(--muted);
  font-size: .9rem;
}

.icon-box-dark {
  color: var(--gold-400);
  background: rgba(255, 255, 255, .08);
}

.editorial-list {
  display: grid;
  gap: 14px;
  padding-left: 1.2rem;
}

.editorial-list li {
  padding-left: .4rem;
}

.editorial-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.editorial-card>p {
  padding: 22px 24px 0;
}

.editorial-card>div {
  padding: 19px 24px;
  border-top: 1px solid var(--line);
}

.editorial-card strong {
  display: block;
  margin-top: 3px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
}

.responsible-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 32px 0 42px;
}

.responsible-grid>div {
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.responsible-grid span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: #fff;
  background: var(--navy-900);
  border-radius: 10px;
  font-weight: 900;
}

.legal-copy h2 {
  margin-top: 2.2rem;
  font-size: 1.45rem;
}

.legal-copy p {
  color: #405566;
}

.error-page {
  min-height: 620px;
  display: grid;
  place-items: center;
  text-align: center;
}

.error-code {
  display: block;
  color: var(--gold-500);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 950;
  line-height: 1;
}

.site-footer {
  color: #bdced9;
  background: var(--navy-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 44px;
  padding: 68px 0 50px;
}

.footer-grid>div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid a {
  color: #d6e2ea;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--gold-400);
}

.footer-grid p {
  color: #aebfca;
  font-size: .9rem;
}

.footer-brand .brand {
  margin-bottom: 18px;
}

.footer-title {
  margin-bottom: 12px;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0;
}

.footer-note {
  padding: 12px 14px;
  color: #b9cad5;
  background: rgba(255, 255, 255, .05);
  border-radius: 10px;
  font-size: .78rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-bottom p {
  margin: 0;
  color: #8fa4b2;
  font-size: .78rem;
}

.mobile-actions {
  display: none;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 2000;
  max-width: 360px;
  padding: 13px 16px;
  color: #fff;
  background: var(--navy-900);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript {
  padding: 12px 18px;
  color: #604a14;
  background: var(--warning);
  text-align: center;
}

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .primary-nav {
    gap: 2px;
  }

  .nav-link {
    padding-inline: .55rem;
    font-size: .86rem;
  }

  .nav-cta {
    display: none;
  }

  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .footer-grid {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }

  .footer-grid>div:last-child {
    grid-column: 2 / 4;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 88px;
  }

  body {
    padding-bottom: 68px;
  }

  .agebar-inner {
    min-height: 30px;
    justify-content: center;
  }

  .agebar-inner span:last-child {
    display: none;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand img {
    width: 148px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    inset: 98px 0 auto;
    max-height: calc(100vh - 98px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    overflow-y: auto;
    padding: 18px 20px 30px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(8, 26, 41, .16);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: .9rem 1rem;
    font-size: 1rem;
    color: #000;
  }

  .nav-cta {
    display: inline-flex;
    margin: 5px 0 0;
    color: #000;
  }

  .hero,
  .page-hero {
    padding-top: 22px;
  }

  .hero-grid,
  .page-hero-grid,
  .media-split,
  .dark-two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-grid {
    min-height: auto;
  }

  .hero-visual,
  .hero-image-panel,
  .hero-image-wide,
  .login-panel,
  .register-card {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .media-split-reverse> :first-child,
  .media-split-reverse> :last-child {
    order: initial;
  }

  .topic-nav {
    top: 68px;
  }

  .section {
    padding: 68px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .card-grid-3,
  .live-grid {
    grid-template-columns: 1fr;
  }

  .steps-horizontal {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-grid>div:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .mobile-actions {
    position: fixed;
    inset: auto 0 0;
    z-index: 1500;
    height: 68px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 7px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 28px rgba(8, 26, 41, .14);
  }

  .mobile-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 900;
    border-radius: 10px;
  }

  .mobile-action-primary {
    color: var(--navy-900);
    background: var(--gold-500);
  }

  .mobile-action-secondary {
    color: #fff;
    background: var(--navy-900);
  }

  .toast {
    right: 12px;
    bottom: 82px;
    left: 12px;
    max-width: none;
  }
}

@media (max-width: 580px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  h1 {
    font-size: clamp(2.1rem, 10vw, 3.1rem);
  }

  h2 {
    font-size: clamp(1.65rem, 8vw, 2.3rem);
  }

  .hero {
    padding-bottom: 54px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .app-hero-card {
    padding: 15px;
    border-radius: 21px;
  }

  .app-meta-grid {
    grid-template-columns: 1fr;
  }

  .app-meta-grid div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }

  .app-meta-grid strong {
    white-space: normal;
    text-align: right;
  }

  .section {
    padding: 58px 0;
  }

  .card-grid-4,
  .security-grid,
  .screenshot-grid,
  .spec-card,
  .numbered-grid,
  .responsible-grid,
  .steps-horizontal {
    grid-template-columns: 1fr;
  }

  .spec-card div {
    min-height: 88px;
  }

  .author-box {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid>div:last-child {
    grid-column: auto;
  }

  .breadcrumbs {
    margin-bottom: 22px;
  }

  .topic-nav a {
    padding-inline: .62rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {

  .agebar,
  .site-header,
  .topic-nav,
  .mobile-actions,
  .site-footer,
  .hero-actions {
    display: none !important;
  }

  .hero,
  .page-hero,
  .section-dark {
    color: #000;
    background: #fff;
  }

  .hero h1,
  .page-hero h1,
  .section-dark h2,
  .section-dark h3,
  .section-dark p {
    color: #000;
  }

  .section {
    padding: 30px 0;
  }
}

/* Component colour and wrapping safeguards inside dark hero sections. */
.app-hero-card h2,
.login-panel h2,
.register-card h2,
.callout-card h2 {
  color: var(--navy-900);
}

.app-meta-grid strong {
  overflow: visible;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
}

@media (max-width: 820px) {
  .primary-nav {
    position: absolute;
    inset: 100% 0 auto;
    min-height: calc(100vh - 68px);
    max-height: calc(100vh - 68px);
    padding-bottom: 96px;
  }

  body.nav-open .mobile-actions {
    display: none;
  }
}


/* Free social-play additions */
.trust-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 28px;
  padding: 22px;
  color: #174d5b;
  background: #e5f8f6;
  border: 1px solid #bae9e3;
  border-radius: 16px;
}

.trust-banner>span {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal-500);
  border-radius: 14px;
}

.trust-banner svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.trust-banner p {
  margin: .25rem 0 0;
}

.demo-auth-form {
  display: grid;
  gap: 10px;
}

.demo-auth-form label:not(.check-field) {
  color: var(--navy-900);
  font-size: .83rem;
  font-weight: 850;
}

.demo-auth-form input[type="text"],
.demo-auth-form input[type="password"] {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd8e2;
  border-radius: 11px;
  outline: none;
}

.demo-auth-form input:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(22, 184, 166, .14);
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: .82rem;
}

.check-field input {
  margin-top: 4px;
}

.auth-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-message {
  min-height: 1.45em;
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 750;
}

.form-message.is-success {
  color: #127565;
}

.form-message.is-error {
  color: #a33d3d;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 800;
}

.text-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.comparison-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.install-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.install-panel>div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.install-panel svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  fill: none;
  stroke: var(--teal-500);
  stroke-width: 2;
}

.install-panel p {
  margin: .25rem 0 0;
  color: var(--muted);
}

.game-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.game-filter button {
  padding: 9px 15px;
  color: var(--navy-900);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
}

.game-filter button.is-active {
  color: #fff;
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.fixture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.fixture-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.fixture-card[hidden] {
  display: none;
}

.status-chip {
  display: inline-block;
  margin-bottom: 13px;
  padding: 5px 9px;
  color: #127565;
  background: var(--teal-100);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.privacy-actions .btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.contact-card {
  width: min(100%, 800px);
  margin: 36px auto 0;
  padding: 30px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  text-align: center;
}

.contact-card h2 {
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .fixture-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .install-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 580px) {
  .fixture-grid {
    grid-template-columns: 1fr;
  }

  .trust-banner {
    flex-direction: column;
  }
}