:root {
  --navy: #17145f;
  --navy-2: #23207b;
  --magenta: #d61b72;
  --magenta-2: #f03a93;
  --ink: #12152b;
  --muted: #626b83;
  --line: #e5e8f0;
  --soft: #f7f9fc;
  --white: #ffffff;
  --shadow: 0 18px 46px rgba(23, 20, 95, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  left: 0;
  padding: 14px 18px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.logo {
  display: inline-flex;
  line-height: 0;
  width: 158px;
}

.logo img {
  display: block;
  height: auto;
  width: 100%;
}

.desktop-nav {
  display: none;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: var(--navy);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.button,
.language-switcher {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
}

.button {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(23, 20, 95, 0.18);
}

.button:hover {
  background: var(--navy-2);
}

.button-primary {
  background: var(--magenta);
  color: var(--white);
}

.button-primary:hover {
  background: var(--magenta-2);
}

.button-small {
  display: none;
}

.language-switcher {
  background: #f0f2f8;
  color: var(--navy);
  min-width: 42px;
  padding: 0 12px;
}

.mobile-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 18px;
  position: sticky;
  top: 72px;
  z-index: 19;
}

.mobile-nav a {
  background: #f4f6fb;
  border-radius: 999px;
  flex: 0 0 auto;
  padding: 8px 12px;
}

.breadcrumbs {
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  gap: 10px;
  margin: 22px auto 0;
  max-width: 1120px;
  padding: 0 18px;
}

.breadcrumbs a {
  color: var(--navy);
  font-weight: 800;
}

.hero,
.page-hero,
.section,
.content-stack,
.calculator,
.cta-section,
.section-pad {
  margin: 0 auto;
  max-width: 1120px;
  padding: 46px 18px;
}

.hero {
  display: grid;
  gap: 28px;
  min-height: calc(100vh - 128px);
  place-items: center;
}

.hero-copy,
.page-hero {
  width: 100%;
}

.eyebrow {
  color: var(--magenta);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  color: var(--navy);
  font-size: clamp(2.35rem, 10vw, 5.4rem);
  line-height: 0.98;
  margin-bottom: 20px;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 8vw, 4.7rem);
}

h2 {
  color: var(--navy);
  font-size: clamp(1.55rem, 5vw, 2.4rem);
  line-height: 1.15;
}

.hero p,
.page-hero > p,
.cta-section p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 680px;
}

.hero-panel {
  background:
    radial-gradient(circle at top right, rgba(214, 27, 114, 0.14), transparent 36%),
    linear-gradient(145deg, #ffffff, #eef2fb);
  border: 1px solid rgba(23, 20, 95, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
  width: 100%;
}

.brand-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(23, 20, 95, 0.08);
  padding: 22px;
  text-align: center;
}

.brand-card img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 420px;
  width: 100%;
}

.mini-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 14px;
}

.mini-grid span {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 20, 95, 0.08);
  border-radius: 8px;
  color: var(--navy);
  font-weight: 800;
  padding: 12px;
}

.section-head {
  margin-bottom: 18px;
}

.card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.category-card,
.content-card,
.feature-list article,
.step,
.result-grid article,
.faq-list details {
  background: var(--white);
  border: 1px solid rgba(23, 20, 95, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 20, 95, 0.08);
}

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 142px;
  padding: 20px;
}

.category-card span {
  color: var(--navy);
  font-size: 1.13rem;
  font-weight: 900;
}

.category-card small {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

.steps,
.feature-list,
.result-grid {
  display: grid;
  gap: 14px;
}

.step {
  align-items: center;
  display: flex;
  gap: 14px;
  padding: 18px;
}

.step span {
  align-items: center;
  background: var(--magenta);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  flex: 0 0 36px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
}

.step p,
.feature-list p,
.content-card p,
.result-grid p,
.faq-list p {
  color: var(--muted);
  margin-bottom: 0;
}

.feature-list article {
  padding: 20px;
}

.feature-list strong {
  color: var(--navy);
  display: block;
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-list a,
.text-link {
  background: var(--white);
  border: 1px solid rgba(214, 27, 114, 0.18);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 900;
  padding: 10px 14px;
}

.content-stack {
  display: grid;
  gap: 16px;
}

.content-card {
  padding: 22px;
}

.content-card h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.calculator {
  display: grid;
  gap: 18px;
  padding-top: 10px;
}

.calculator-fields {
  background: var(--white);
  border: 1px solid rgba(23, 20, 95, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.calculator-fields label {
  color: var(--navy);
  font-weight: 900;
}

.calculator-fields label span {
  display: block;
  margin-bottom: 7px;
}

.input-wrap {
  align-items: center;
  background: #f5f7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  overflow: hidden;
}

.input-wrap input {
  background: transparent;
  border: 0;
  color: var(--ink);
  min-width: 0;
  outline: none;
  padding: 13px;
  width: 100%;
}

.input-wrap em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
  padding-right: 13px;
}

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

.result-grid article {
  padding: 20px;
}

.result-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.result-grid strong {
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1.15;
}

.wide {
  grid-column: 1 / -1;
}

.faq-search {
  margin: 0 auto;
  max-width: 1120px;
  padding: 10px 18px 46px;
}

.faq-search.compact {
  padding: 0;
}

.faq-controls {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.faq-controls input,
.faq-controls select {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 48px;
  outline: none;
  padding: 0 14px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 16px;
}

.faq-list summary {
  align-items: flex-start;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
}

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

.faq-list summary span {
  font-weight: 900;
}

.faq-list summary small {
  background: #f4f6fb;
  border-radius: 999px;
  color: var(--magenta);
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 8px;
}

.faq-list details p {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.empty-state {
  color: var(--muted);
}

.article-insight,
.article-grid,
.article-support {
  display: grid;
  gap: 14px;
  margin: 0 auto 20px;
  max-width: 1120px;
  padding: 0 18px;
}

.insight-card,
.support-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.insight-card h2,
.support-card strong {
  color: var(--navy);
}

.support-card {
  display: grid;
  gap: 6px;
  text-decoration: none;
}

.support-card span {
  color: var(--magenta);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-card small {
  color: var(--muted);
  font-weight: 700;
}

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

.check-list li {
  color: var(--ink);
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  background: var(--magenta);
  border-radius: 999px;
  color: var(--white);
  content: "✓";
  font-size: 0.75rem;
  font-weight: 900;
  height: 18px;
  left: 0;
  line-height: 18px;
  position: absolute;
  text-align: center;
  top: 3px;
  width: 18px;
}

.mini-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.mini-table div {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.mini-table div + div {
  border-top: 1px solid var(--line);
}

.mini-table strong {
  color: var(--navy);
}

.mini-table span {
  color: var(--muted);
}

.article-faq {
  margin-top: 0;
}

.game-shell {
  display: grid;
  gap: 18px;
  margin: 0 auto 36px;
  max-width: 1120px;
  padding: 0 18px;
}

.game-board,
.game-tips {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.game-status {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.game-status article {
  background: #f6f8fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.game-status span,
.game-tips p,
.game-tips li {
  color: var(--muted);
}

.game-status strong {
  color: var(--navy);
  display: block;
  font-size: 1.45rem;
  margin: 5px 0 8px;
}

.meter {
  background: #e8edf6;
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.meter i {
  background: var(--magenta);
  display: block;
  height: 100%;
}

.meter i[data-inverse="true"] {
  background: var(--navy);
}

.game-card h2,
.game-tips h2 {
  color: var(--navy);
}

.game-choices {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.game-choices button {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 15px;
  text-align: left;
}

.game-choices button:hover {
  border-color: rgba(214, 27, 114, 0.45);
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.game-tips ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.cta-section {
  align-items: center;
  background:
    radial-gradient(circle at 88% 18%, rgba(214, 27, 114, 0.18), transparent 32%),
    var(--navy);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  gap: 18px;
  margin-bottom: 46px;
  padding: 28px 22px;
}

.cta-section h2,
.cta-section p {
  color: var(--white);
}

.cta-section .eyebrow {
  color: #ff9cca;
}

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 22px;
  padding: 30px 18px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 820px;
}

.footer-logo {
  margin-bottom: 14px;
  width: 210px;
}

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

@media (min-width: 680px) {
  .button-small {
    display: inline-flex;
  }

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

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

  .faq-controls,
  .calculator-fields {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

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

@media (min-width: 980px) {
  .site-header {
    padding: 16px 34px;
  }

  .desktop-nav {
    align-items: center;
    display: flex;
    gap: 20px;
  }

  .mobile-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 0.9fr;
    min-height: calc(100vh - 76px);
    padding-top: 60px;
  }

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

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

  .feature-list {
    grid-template-columns: repeat(5, 1fr);
  }

  .game-shell {
    grid-template-columns: 1.4fr 0.7fr;
  }

  .category-card:hover,
  .link-list a:hover,
  .text-link:hover {
    transform: translateY(-2px);
  }

  .category-card,
  .link-list a,
  .text-link {
    transition: transform 160ms ease, border-color 160ms ease;
  }
}
