/* Games Played Well — marketing site styles
   Plain CSS, no build step, no external dependencies. */

:root {
  --navy: #1a3c4a;
  --navy-dark: #10262f;
  --navy-tint: #e7eef0;
  --ink: #223138;
  --ink-light: #55676d;
  --cream: #faf7f2;
  --white: #ffffff;
  --line: #e3ddd2;

  --green: #3fa34d;
  --green-light: #6cbf62;
  --yellow: #f0b429;
  --orange: #f0853b;
  --red-orange: #e35b3f;
  --red: #d8433c;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(16, 38, 47, 0.08);
  --shadow-lg: 0 16px 48px rgba(16, 38, 47, 0.14);

  --font: -apple-system, ui-rounded, "Segoe UI", Roboto, "Helvetica Neue",
    Helvetica, Arial, sans-serif;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 16px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(63, 163, 77, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p {
  color: var(--ink-light);
  font-size: 1.05rem;
}

.section-head.left {
  margin: 0 0 48px;
  text-align: left;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  color: var(--navy);
}

.brand img {
  height: 34px;
  width: auto;
}

.brand-word {
  font-size: 1.05rem;
}

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

nav.primary-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

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

.header-cta {
  display: inline-block;
  background: var(--navy);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.header-cta:hover {
  background: var(--navy-dark);
}

/* Mobile nav uses <details>/<summary> — no JS required */
.nav-toggle {
  display: none;
}

.nav-toggle summary {
  list-style: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
}

.nav-toggle summary::-webkit-details-marker {
  display: none;
}

.hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--navy);
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

.nav-toggle[open] .mobile-menu {
  display: flex;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  right: 24px;
  top: 62px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 200px;
}

.mobile-menu a {
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.mobile-menu a:hover {
  background: var(--navy-tint);
}

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

.hero {
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-logo {
  width: min(420px, 100%);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 18px;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-light);
  max-width: 52ch;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 8px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  flex: none;
}

.status-dot.ios {
  background: var(--green);
}

.status-dot.android {
  background: var(--orange);
}

.hero-note {
  font-size: 0.9rem;
  color: var(--ink-light);
  margin-top: 18px;
}

/* Hero mock card */

.mock-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  border: 1px solid var(--line);
  max-width: 400px;
  margin: 0 auto;
}

.mock-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.mock-card-title {
  font-weight: 800;
  color: var(--navy);
  font-size: 1.1rem;
  margin: 0;
}

.mock-card-sub {
  font-size: 0.82rem;
  color: var(--ink-light);
  margin: 2px 0 0;
}

.grade-badge {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--green-light));
  box-shadow: 0 4px 10px rgba(63, 163, 77, 0.35);
}

.grade-chips {
  display: flex;
  gap: 6px;
  margin: 12px 0 16px;
  flex-wrap: wrap;
}

.chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--navy-tint);
  color: var(--navy);
}

.chip.band {
  background: var(--navy);
  color: var(--white);
}

.warning-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fdeceb;
  border: 1px solid #f3c3bd;
  color: #8f2b23;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.warning-banner .icon {
  flex: none;
}

.rubric-mini {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.rubric-mini-row {
  display: grid;
  grid-template-columns: 108px 1fr 26px;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--ink-light);
}

.bar-track {
  display: block;
  background: #edeae2;
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.rubric-mini-row .score {
  text-align: right;
  font-weight: 700;
  color: var(--navy);
}

.mock-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-light);
}

.mock-card-footer strong {
  color: var(--navy);
}

/* ---------- Problem section ---------- */

.problem {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.problem .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.compare {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compare-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.compare-item.old {
  opacity: 0.85;
}

.compare-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-light);
  margin-bottom: 6px;
}

.compare-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
}

.compare-value.rating {
  font-size: 1.6rem;
}

.compare-item.new {
  background: var(--navy-tint);
  border-color: #cfe0e3;
}

/* ---------- Rubric ---------- */

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

.rubric-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}

.rubric-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.rubric-card p {
  color: var(--ink-light);
  font-size: 0.95rem;
  margin: 0;
}

.rubric-card h3 {
  margin-bottom: 8px;
}

/* assign gradient colors per card via nth-child */
.rubric-card:nth-child(1) .num { background: var(--green); }
.rubric-card:nth-child(2) .num { background: var(--green-light); }
.rubric-card:nth-child(3) .num { background: var(--yellow); }
.rubric-card:nth-child(4) .num { background: var(--orange); }
.rubric-card:nth-child(5) .num { background: var(--red-orange); }
.rubric-card:nth-child(6) .num { background: var(--red); }

/* ---------- Grades / verdicts ---------- */

.grades {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grades .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.verdict-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.verdict-table th,
.verdict-table td {
  text-align: left;
  padding: 14px 18px;
  font-size: 0.95rem;
}

.verdict-table thead th {
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.verdict-table tbody tr + tr {
  border-top: 1px solid var(--line);
}

.verdict-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.callout {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  margin-top: 24px;
}

.callout h4 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.callout p {
  color: #cfe0e3;
  margin: 0;
  font-size: 0.95rem;
}

.grade-band-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.band-pill {
  background: var(--navy-tint);
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Content warnings ---------- */

.warnings-section {
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}

.warnings-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.warning-demo {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  max-width: 420px;
}

.warning-demo .full-banner {
  background: #fdeceb;
  border: 1.5px solid #e78d84;
  color: #7c231d;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
}

.warning-demo .full-banner span.icon {
  font-size: 1.1rem;
}

.warning-demo .demo-score {
  display: flex;
  align-items: center;
  gap: 14px;
}

.warning-demo .demo-score .grade-badge {
  background: linear-gradient(135deg, var(--green), var(--green-light));
}

.warning-demo .demo-score-text .big {
  font-weight: 800;
  color: var(--navy);
  font-size: 1.1rem;
}

.warning-demo .demo-score-text .small {
  color: var(--ink-light);
  font-size: 0.85rem;
}

.check-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  padding-left: 30px;
  position: relative;
  color: var(--ink-light);
  font-size: 0.97rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
}

.check-list li::after {
  content: "\2713";
  position: absolute;
  left: 4px;
  top: 3px;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 900;
}

/* ---------- Packs ---------- */

.packs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.pack-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}

.pack-card .glyph {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: var(--navy-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.1rem;
}

.pack-card h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.pack-card p {
  font-size: 0.82rem;
  color: var(--ink-light);
  margin: 0;
}

.pack-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 8px !important;
}

.pack-note {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-light);
}

.pack-note strong {
  color: var(--navy);
}

/* ---------- Privacy ---------- */

.privacy-section {
  background: var(--navy);
  color: var(--white);
}

.privacy-section .section-head p {
  color: #c7dade;
}

.privacy-section h2 {
  color: var(--white);
}

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

.privacy-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.privacy-card .glyph {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: block;
}

.privacy-card h3 {
  color: var(--white);
  margin-bottom: 8px;
}

.privacy-card p {
  color: #cfe0e3;
  font-size: 0.93rem;
  margin: 0;
}

/* ---------- Availability ---------- */

.availability {
  background: var(--cream);
}

.signup-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.platform-status {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 20px 0 28px;
  flex-wrap: wrap;
}

.platform-status .status-chip {
  background: var(--cream);
}

.download-cta {
  display: inline-block;
  background: var(--navy);
  color: var(--white) !important;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.download-cta:hover {
  background: var(--navy-dark);
}

.form-fineprint {
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-top: 18px;
  margin-bottom: 0;
}

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

footer.site-footer {
  background: var(--navy-dark);
  color: #b9ccd0;
  padding: 48px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.footer-brand img {
  height: 28px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #b9ccd0;
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

/* ---------- Privacy page ---------- */

.legal {
  background: var(--white);
  padding: 64px 0 96px;
}

.legal .container {
  max-width: 760px;
}

.legal h1 {
  margin-bottom: 6px;
}

.legal .updated {
  color: var(--ink-light);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 40px;
}

.legal p, .legal li {
  color: var(--ink);
  font-size: 1rem;
}

.legal ul {
  padding-left: 22px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink-light);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 28px;
}

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

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

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

  .nav-toggle {
    display: block;
    position: relative;
  }

  .hero .container,
  .problem .container,
  .grades .container,
  .warnings-wrap {
    grid-template-columns: 1fr;
  }

  .hero .container {
    gap: 40px;
  }

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

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

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

@media (max-width: 640px) {
  section {
    padding: 60px 0;
  }

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

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

  .verdict-table th,
  .verdict-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

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