:root {
  --navy: #0b1f4b;
  --ink: #1a2540;
  --muted: #4a5a80;
  --bg: #ffffff;
  --soft: #eef1f8;
  --line: #d5dceb;
  --brand: #1a3f8c;
  --brand-dark: #0b1f4b;
  --gold: #c8961e;
  --gold-light: #e2b64f;
  --gold-deep: #8a6310;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
}

a { color: var(--brand); }
a:hover { color: var(--gold-deep); }
a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo:hover { color: var(--navy); }

.logo-mark {
  width: 42px;
  height: 42px;
  flex: none;
  display: block;
}

nav a {
  margin-left: 20px;
  padding-bottom: 4px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.hero {
  position: relative;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding: 72px 0 64px;
}

.hero .wrap { position: relative; }

.hero h1 {
  color: #ffffff;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 600px;
}

.hero p {
  font-size: 1.15rem;
  color: #c9d3ec;
  max-width: 560px;
  margin: 0 0 28px;
}

.hero-crest {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 230px;
  height: 230px;
  transform: translateY(-50%);
}

.button {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--gold);
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.button:hover { background: #1a3470; color: #fff; }
.hero .button { background: #17306b; }
.hero .button:hover { background: #22408a; }

.button.secondary {
  background: #17306b;
  color: #ffffff;
  border: 2px solid var(--gold);
  padding: 10px 22px;
  margin-left: 8px;
}

.button.secondary:hover {
  background: #22408a;
  color: #ffffff;
}

section { padding: 56px 0; }

section h2 { margin-top: 0; font-size: 1.7rem; }

section h2::after,
.page h1::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--gold);
  margin-top: 10px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  background: var(--bg);
}

.card h3 { margin-top: 0; font-size: 1.3rem; }

.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--navy);
  color: #fff;
  border: 1.5px solid var(--gold);
  padding: 2px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

dl.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0;
}

dl.facts dt { font-weight: 600; color: var(--navy); }
dl.facts dd { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .hero-crest { display: none; }
}

@media (max-width: 520px) {
  dl.facts { grid-template-columns: 1fr; gap: 0; }
  dl.facts dd { margin-bottom: 12px; }
  .button.secondary { margin-left: 0; margin-top: 10px; }
  nav a:first-child { margin-left: 0; }
}

.page { padding: 56px 0 72px; }
.page h1 { margin-top: 0; font-size: 2.1rem; }
.page h2 { font-size: 1.3rem; margin-top: 36px; }
.page .updated { color: var(--muted); font-size: 0.95rem; }

footer.site {
  background: var(--navy);
  border-top: 3px solid var(--gold);
  padding: 30px 0;
  font-size: 0.92rem;
  color: #c9d3ec;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}

footer.site a { color: #c9d3ec; margin-right: 16px; }
footer.site a:hover { color: var(--gold-light); }

/* App pages (screenshots beside text) */
.page .lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }

.showcase {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 48px 0;
}
.showcase.reverse { flex-direction: row-reverse; }
.showcase figure { margin: 0; flex: none; }
.showcase img {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(11, 31, 75, 0.18);
}
.showcase-text h2 { margin-top: 0; }

ul.ticks { padding-left: 20px; }
ul.ticks li { margin-bottom: 6px; }

@media (max-width: 640px) {
  .showcase,
  .showcase.reverse { flex-direction: column; align-items: flex-start; gap: 20px; margin: 36px 0; }
  .showcase img { width: 220px; }
}

/* App pages: brighter navy (final) */
.page.app { color: #1f4590; }
.page.app h1,
.page.app h2,
.page.app h3,
.page.app strong { color: #14307a; }
.page.app .lead { color: #2a56a8; }

/* App pages: brighter navy (final) */
.page.app { color: #1f4590; }
.page.app h1,
.page.app h2,
.page.app h3,
.page.app strong { color: #14307a; }
.page.app .lead { color: #2a56a8; }

.play-badge { display: inline-block; line-height: 0; }
.play-badge img { height: 56px; width: auto; }

.feature-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.feature-list li { padding: 0.7rem 0; border-bottom: 1px solid #e3e7ef; }
.feature-list li:last-child { border-bottom: 0; }
.feature-list strong { display: block; color: var(--navy); }
.feature-list span { display: block; }

.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 1rem; }

.button.navy { background: var(--navy); color: #fff; }
.button.navy:hover { background: #1a3470; color: #fff; }

.store-row .tag { background: var(--navy); color: #fff; font-size: 1rem; font-weight: 700; padding: 10px 22px; border-radius: 8px; margin-bottom: 0; }

.button.navy, .store-row .tag { border: 2px solid var(--gold); }

.colour-key { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.colour-key li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.colour-key .dot { flex: 0 0 22px; height: 22px; border-radius: 50%; margin-top: 3px; }
.colour-key .red { background: #9b1c1c; }
.colour-key .orange { background: #e8820c; }
.colour-key .green { background: #2e7d32; }
