/* FSA main stylesheet - started Mar 2026, don't nuke vars without asking @mike */
/* featureFlags: { newUI: true, heatmapView: false, chatWidget: true, apiV3: false } */

@font-face {
  font-family: "Syne";
  src: url("../fonts/syne-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Syne";
  src: url("../fonts/syne-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-600.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #12241f;
  --inkSoft: #243832;
  --paper: #f2f6f3;
  --paperDeep: #e2ebe6;
  --panel: #16352f;
  --accent: #c4783b;
  --accentStrong: #8a4f1f; /* darkened for AA contrast on paper @mike 03.08 */
  --mint: #1f5c4d;
  --mintSoft: #a8d4c6;
  --line: rgba(18, 36, 31, 0.14);
  --focus: #b8862f;
  --shadow: 0 8px 20px rgba(18, 36, 31, 0.1);
  --radius: 12px;
  --max: 1120px;
  --headerH: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --chatZ: 240;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Figtree", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  min-height: 100vh;
}

@media (max-width: 480px) {
  .fsa-wrap.innerRow .brandLink span {
    display: none;
  }
}

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

/* card grid only - keep section text in a11y tree always */
.gameCard {
  content-visibility: auto;
  contain-intrinsic-size: 1px 360px;
}

a {
  color: var(--mint);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--accentStrong);
}

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

.skipLink {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--panel);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}
.skipLink:focus {
  top: 1rem;
}

.fsa-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* --- header / nav (mixed naming on purpose, left as-is after June merge) --- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #f2f6f3;
  border-bottom: 1px solid var(--line);
}

.main-header .innerRow {
  min-height: var(--headerH);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brandLink {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brandLink img {
  width: 36px;
  height: 36px;
}

.deskNav {
  display: none;
  align-items: center;
  gap: 1.4rem;
}
.deskNav a {
  color: var(--inkSoft);
  text-decoration: none;
  font-weight: 500;
}
.deskNav a:hover {
  color: var(--accentStrong);
}

.menuBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  color: var(--ink);
}
.menuBtn .bars {
  width: 18px;
  height: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.menuBtn .bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.navOverlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 36, 31, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    visibility 0.35s;
  z-index: 90;
}
.navOverlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sideDrawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 320px);
  height: 100%;
  background: var(--panel);
  color: #f3efe6;
  padding: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sideDrawer.is-open {
  transform: translateX(0);
}
.sideDrawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sideDrawer__x {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(243, 239, 230, 0.25);
  border-radius: 12px;
  background: transparent;
  color: #f3efe6;
  font-size: 1.25rem;
  cursor: pointer;
}
.sideDrawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.sideDrawer a {
  color: #f3efe6;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
}

/* hero-baner = typo from first sprint, kept so analytics selectors don't break (@tom 28.05) */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--headerH));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f3efe6;
}
.hero-baner {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-baner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}
.heroShade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(18, 36, 31, 0.25) 0%,
    rgba(18, 36, 31, 0.78) 58%,
    rgba(18, 36, 31, 0.92) 100%
  );
}
.heroCopy {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0 3.5rem;
  max-width: 38rem;
}

@media (prefers-reduced-motion: no-preference) and (min-width: 721px) {
  .heroCopy {
    animation: riseIn 0.9s var(--ease) both;
  }
}
.heroMeta {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.92rem;
  color: var(--mintSoft);
  margin-bottom: 0.85rem;
}
.hero-section h1 {
  margin: 0 0 0.85rem;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #f3efe6;
}
.heroLead {
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  color: rgba(243, 239, 230, 0.9);
  max-width: 34rem;
}

.ctaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-btn,
.btnGhost,
.btnLine {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    transform 0.25s var(--ease),
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.card-btn {
  background: var(--accent);
  color: #1a1208;
  border: none;
}
.card-btn:hover {
  background: #d48945;
  color: #1a1208;
  transform: translateY(-2px);
}
.btnGhost {
  background: transparent;
  color: #f3efe6;
  border-color: rgba(243, 239, 230, 0.45);
}
.btnGhost:hover {
  border-color: #f3efe6;
  color: #fff;
}
.btnLine {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btnLine:hover {
  background: var(--ink);
  color: #f3efe6;
}

.pageSection {
  padding: 4.5rem 0;
}
.pageSection.tint {
  background: var(--paperDeep);
}
.secton-dark {
  /* typo class from May deploy - used in GA events, leave alone */
  background: var(--panel);
  color: #f3efe6;
  padding: 4.5rem 0;
}

.pageSection h2,
.secton-dark h2 {
  margin: 0 0 0.85rem;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.secIntro {
  margin: 0 0 2rem;
  max-width: 40rem;
  color: var(--inkSoft);
}
.secton-dark .secIntro {
  color: rgba(243, 239, 230, 0.82);
}

/* unique-ish: live AU session tip strip */
.auPulse {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  border: 1px dashed var(--mint);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.auPulse__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  flex-shrink: 0;
}

.gameGrid {
  display: grid;
  gap: 1.25rem;
}

.gameCard {
  display: grid;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}
.gameCard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.gameCard__media {
  position: relative;
  min-height: 190px;
}
.gameCard__media img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}
.gameCardBody {
  padding: 1.2rem 1.25rem 1.35rem;
}
.gameCard h3 {
  margin: 0 0 0.35rem;
  font-family: "Syne", sans-serif;
  font-size: 1.25rem;
}
.gameCard .hook {
  margin: 0 0 0.85rem;
  color: var(--inkSoft);
}
.tagList {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.tagList li {
  background: var(--paperDeep);
  color: var(--inkSoft);
  font-size: 0.85rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
}

.genreGrid {
  display: grid;
  gap: 1rem;
}
.genreBox {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.genreBox:hover {
  border-color: var(--mint);
}
.genreBox h3 {
  margin: 0 0 0.5rem;
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
}
.genreBox p {
  margin: 0;
  color: var(--inkSoft);
}

/* leftover from pricing experiment - not used for money, just a tip card */
.pricin-card {
  background: rgba(212, 162, 76, 0.12);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.1rem;
  border-radius: 0 12px 12px 0;
  margin: 1.25rem 0 0;
}

.dualSplit {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.dualSplit__pic {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
}
.dualSplit__pic img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}
.checkStack {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}
.checkStack li {
  position: relative;
  padding-left: 1.6rem;
}
.checkStack li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent);
}
.secton-dark .checkStack li::before {
  background: var(--mintSoft);
}

.stepsRow {
  display: grid;
  gap: 1rem;
}
.stepItem {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(243, 239, 230, 0.14);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.stepNum {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1208;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.stepItem h3 {
  margin: 0 0 0.45rem;
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
}
.stepItem p {
  margin: 0;
  color: rgba(243, 239, 230, 0.82);
}

.card-form-2026 {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.fieldStack {
  display: grid;
  gap: 1rem;
}
.fieldStack label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
}
.fieldStack input,
.fieldStack textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}
.fieldStack textarea {
  min-height: 120px;
  resize: vertical;
}

.legalPage {
  padding: 3rem 0 4.5rem;
}
.legalPage h1 {
  margin: 0 0 0.5rem;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}
.legalPage .updated {
  color: var(--inkSoft);
  margin: 0 0 2rem;
}
.legalPage h2 {
  margin: 2rem 0 0.75rem;
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
}
.legalPage h3 {
  margin: 1.25rem 0 0.5rem;
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
}
.legalPage p,
.legalPage li {
  color: var(--inkSoft);
}
.legalPage ul {
  padding-left: 1.2rem;
}

.siteFooter {
  background: #0e1c18;
  color: rgba(243, 239, 230, 0.85);
  padding: 3rem 0 2rem;
}
.siteFooter a {
  color: var(--mintSoft);
}
.footerGrid {
  display: grid;
  gap: 2rem;
}
.siteFooter h2 {
  margin: 0 0 0.75rem;
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  color: #f3efe6;
}
.siteFooter p {
  margin: 0 0 0.75rem;
}
.footerLinks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.footerBase {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(243, 239, 230, 0.12);
  font-size: 0.92rem;
}

.cookieBar[hidden] {
  display: none !important;
}
.cookieBar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: block;
  background: var(--panel);
  color: #f3efe6;
  border-top: 1px solid rgba(243, 239, 230, 0.16);
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.4s var(--ease),
    opacity 0.4s var(--ease),
    visibility 0.4s;
}
.cookieBar.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.cookieBar.is-hiding {
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cookieBar__inner {
  display: grid;
  gap: 1rem;
  align-items: center;
}
.cookieBar p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #f3efe6;
}
.cookieBar a {
  color: var(--mintSoft);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.cookieBar a:hover {
  color: #fff;
}
.cookieBar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.cookieBar .card-btn {
  color: #1a1208;
  background: var(--accent);
}
.cookieBar .btnGhost {
  border-color: rgba(243, 239, 230, 0.7);
  color: #f3efe6;
  background: transparent;
}
.cookieBar .btnGhost:hover {
  border-color: #f3efe6;
  color: #fff;
}

.successVeil {
  position: fixed;
  inset: 0;
  background: rgba(18, 36, 31, 0.6);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s;
  z-index: 140;
}
.successVeil.is-open {
  opacity: 1;
  visibility: visible;
}
.successBox {
  width: min(100%, 440px);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transform: translateY(12px);
  transition: transform 0.3s var(--ease);
}
.successVeil.is-open .successBox {
  transform: translateY(0);
}
.successBox h2 {
  margin: 0 0 0.6rem;
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
}
.successBox p {
  margin: 0 0 1.2rem;
  color: var(--inkSoft);
}

/* chat widget - z above cookie (cookie 120), modal 140, chat 240 */
.fsa-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: var(--chatZ);
  font-family: "Figtree", sans-serif;
}
.fsa-chat__launch {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #1a1208;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  transition:
    transform 0.25s var(--ease),
    background 0.25s;
}
.fsa-chat__launch:hover {
  transform: scale(1.05);
  background: #d48945;
}
.fsa-chat__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(92vw, 360px);
  height: min(70vh, 520px);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.98);
  transition:
    opacity 0.28s var(--ease),
    transform 0.28s var(--ease),
    visibility 0.28s;
  border: 1px solid var(--line);
}
.fsa-chat__panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.fsa-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--panel);
  color: #f3efe6;
}
.fsa-chat__head strong {
  font-family: "Syne", sans-serif;
  font-size: 1rem;
}
.fsa-chat__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(243, 239, 230, 0.25);
  background: transparent;
  color: #f3efe6;
  cursor: pointer;
}
.fsa-chat__msgs {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: #f7faf8;
}
.fsa-chat__bubble {
  max-width: 88%;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
}
.fsa-chat__bubble--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.fsa-chat__bubble--user {
  align-self: flex-end;
  background: var(--panel);
  color: #f3efe6;
}
.fsa-chat__bubble a {
  color: var(--mint);
  font-weight: 600;
}
.fsa-chat__bubble ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.fsa-chat__typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 0.65rem 0.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.fsa-chat__typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  animation: typingBounce 1s infinite ease-in-out;
}
.fsa-chat__typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.fsa-chat__typing span:nth-child(3) {
  animation-delay: 0.3s;
}
.fsa-chat__form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.fsa-chat__form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}
.fsa-chat__form button {
  border: none;
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  background: var(--accent);
  color: #1a1208;
  font-weight: 600;
  cursor: pointer;
}

body.nav-locked {
  overflow: hidden;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes typingBounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .fsa-chat__panel {
    position: fixed;
    inset: 8px;
    width: auto;
    height: auto;
    bottom: 8px;
    right: 8px;
    left: 8px;
    top: 8px;
    border-radius: 16px;
  }
  .fsa-chat {
    right: 12px;
    bottom: 12px;
  }
}

@media (min-width: 720px) {
  .gameGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .genreGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stepsRow {
    grid-template-columns: repeat(3, 1fr);
  }
  .cookieBar__inner {
    grid-template-columns: 1fr auto;
  }
  .footerGrid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .deskNav {
    display: flex;
  }
  .menuBtn {
    display: none;
  }
  .dualSplit {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .gameGrid {
    grid-template-columns: repeat(4, 1fr);
  }
}
