/* Parq Social Casino Club — marketing site.
   Tokens lifted straight from the app's theme layer (lib/theme/pq_colors.dart,
   pq_typography.dart) so the site and the app cannot drift apart. */

@font-face {
  font-family: 'Romie';
  src: url('../fonts/Romie-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'PP Neue Montreal';
  src: url('../fonts/PPNeueMontreal-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'PP Neue Montreal';
  src: url('../fonts/PPNeueMontreal-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

:root {
  --burgundy: #440706;
  --burgundy-deep: #350504;
  --plum: #622128;
  --plum-deep: #4d1a20;
  --signal-red: #931d1d;
  --tan: #b39175;
  --copper-light: #e09058;
  --copper: #b07048;
  --copper-deep: #885838;
  --white: #ffffff;
  --ink: #080808;
  --hairline: rgba(179, 145, 117, 0.35);
  --display: 'Romie', 'Times New Roman', serif;
  --body: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--burgundy);
  color: var(--white);
  font-family: var(--body);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The app has no rounded surfaces except its pill buttons — the site keeps
   that rule, which is most of why it reads as the same product. */
.sq { border-radius: 0; }

/* Tailwind's CDN build injects its preflight into the head at runtime,
   after this file, so a bare `h1` there beats a bare `h1` here. Scoping to
   `body` wins on specificity and keeps the display type. */
body h1, body h2, body h3, body h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

body h1 { font-size: clamp(2.1rem, 1.3rem + 4.2vw, 5rem); }
body h2 { font-size: clamp(1.7rem, 1.2rem + 2.6vw, 3.2rem); }
body h3 { font-size: clamp(1.15rem, 1rem + 0.9vw, 1.6rem); }

body p { margin: 0; }
body ul, body ol { margin: 0; }

a { color: inherit; }

/* ---- kickers: the app's caps micro-labels ------------------------------- */
.kicker {
  font-size: clamp(0.62rem, 0.58rem + 0.15vw, 0.72rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tan);
  font-weight: 500;
}

.tag {
  display: inline-block;
  background: var(--copper-light);
  color: var(--burgundy);
  padding: 0.34rem 0.7rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---- grounds ----------------------------------------------------------- */
.ground-burgundy { background: var(--burgundy); color: var(--white); }
.ground-plum { background: var(--plum); color: var(--white); }
.ground-white { background: var(--white); color: var(--ink); }
.ground-white .kicker { color: var(--copper-deep); }
.ground-white .muted { color: rgba(8, 8, 8, 0.66); }

.muted { color: rgba(255, 255, 255, 0.72); }

/* The art-deco pattern from the app's splash, held right back so it reads
   as texture rather than wallpaper. */
.deco {
  position: relative;
  isolation: isolate;
}
.deco::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../brand/deco-pattern.jpg');
  background-size: 620px;
  background-position: center top;
  opacity: 0.12;
  mix-blend-mode: screen;
  z-index: -1;
  pointer-events: none;
}

.hairline { border-top: 1px solid var(--hairline); }

/* ---- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(0.82rem, 0.78rem + 0.2vw, 0.95rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
  min-height: 48px;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--white); color: var(--burgundy); }
.btn-primary:hover { background: var(--tan); color: var(--burgundy); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--hairline);
}
.btn-ghost:hover { border-color: var(--copper-light); color: var(--copper-light); }

.ground-white .btn-ghost { color: var(--ink); border-color: rgba(8, 8, 8, 0.2); }
.ground-white .btn-ghost:hover { color: var(--copper-deep); border-color: var(--copper-deep); }

/* The store badge is not a link: the app is not on the App Store yet, and a
   button that goes nowhere is worse than one that says so. */
.btn-store {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--hairline);
  color: var(--white);
  cursor: default;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.4rem;
  text-align: left;
  gap: 0.8rem;
}
.btn-store:active { transform: none; }
.btn-store .fa-apple { font-size: 1.7rem; color: var(--copper-light); }
.btn-store .store-line { display: block; line-height: 1.15; }
.btn-store .store-small {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tan);
}
.btn-store .store-big {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0;
}

/* ---- layout ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 0.5rem + 2vw, 2.5rem);
}

section { padding: clamp(3rem, 2rem + 5vw, 7rem) 0; }

.grid { display: grid; gap: clamp(1rem, 0.8rem + 1.4vw, 2rem); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); }

/* ---- header ------------------------------------------------------------ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(53, 5, 4, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 68px;
}
.brand-link { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-link img { width: clamp(74px, 60px + 4vw, 104px); height: auto; display: block; }

.nav-desk { display: none; gap: clamp(0.6rem, 0.3rem + 1vw, 1.6rem); align-items: center; }
.nav-desk a {
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav-desk a:hover, .nav-desk a[aria-current='page'] {
  color: var(--white);
  border-bottom-color: var(--copper-light);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--white);
  cursor: pointer;
  flex: none;
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--hairline);
  padding: 0.5rem 0 1.1rem;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  text-decoration: none;
  padding: 0.75rem 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(179, 145, 117, 0.18);
}
.nav-mobile a[aria-current='page'] { color: var(--copper-light); }

@media (min-width: 900px) {
  .nav-desk { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---- hero -------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 2rem + 7vw, 8rem) 0 clamp(2.5rem, 2rem + 4vw, 5rem);
}
.hero-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: 0;
}
.hero-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(68, 7, 6, 0.55) 0%,
    rgba(68, 7, 6, 0.88) 62%,
    var(--burgundy) 100%
  );
  z-index: 1;
}
.hero .wrap { position: relative; z-index: 2; }

.lede {
  font-size: clamp(1rem, 0.94rem + 0.5vw, 1.28rem);
  line-height: 1.55;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.86);
}

/* ---- panels ------------------------------------------------------------ */
.panel {
  background: var(--plum);
  border: 1px solid var(--hairline);
  padding: clamp(1.1rem, 0.9rem + 1vw, 1.9rem);
  height: 100%;
}
.ground-white .panel {
  background: #fbf7f3;
  border-color: rgba(8, 8, 8, 0.12);
  color: var(--ink);
}
.panel i.fa-solid, .panel i.fa-regular, .panel i.fa-brands {
  color: var(--copper-light);
  font-size: 1.35rem;
}
.ground-white .panel i { color: var(--copper-deep); }

/* ---- phone frames ------------------------------------------------------ */
.phone {
  border: 1px solid var(--hairline);
  padding: 8px;
  background: linear-gradient(160deg, #58221f, #2c0403);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 240px);
  gap: clamp(0.75rem, 0.6rem + 1vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--copper-deep); }
.rail::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.06); }

/* ---- game tiles -------------------------------------------------------- */
.tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--hairline);
  display: block;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.tile:hover img { transform: scale(1.05); }
.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.9rem;
  /* Always light: a tile sits on its own art, whatever ground the section
     around it uses. */
  color: var(--white);
  background: linear-gradient(to top, rgba(24, 2, 2, 0.94), rgba(24, 2, 2, 0));
}
body .tile figcaption h3 {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  color: var(--white);
}
.tile figcaption .kicker { color: var(--copper-light); }

/* ---- stats ------------------------------------------------------------- */
.stat { border: 1px solid var(--hairline); padding: 1.1rem; background: rgba(255, 255, 255, 0.03); }
.stat .num {
  font-family: var(--display);
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.7rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---- prose (legal pages) ----------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 1.8rem; font-size: 1.1rem; }
.prose p, .prose li { color: rgba(255, 255, 255, 0.8); margin-top: 0.9rem; }
.prose ul { padding-left: 1.1rem; }
.prose a { color: var(--copper-light); }

/* ---- accordion (FAQ) --------------------------------------------------- */
details.qa {
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.03);
  padding: 0 1.1rem;
  margin-bottom: 0.7rem;
}
details.qa summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 0;
  font-family: var(--display);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary i { color: var(--copper-light); transition: transform 0.25s ease; flex: none; }
details.qa[open] summary i { transform: rotate(45deg); }
details.qa p { padding-bottom: 1.1rem; color: rgba(255, 255, 255, 0.78); }

/* ---- form -------------------------------------------------------------- */
label { display: block; }
.field {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--hairline);
  color: var(--white);
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;
}
.field::placeholder { color: var(--tan); }
.field:focus { outline: 2px solid var(--copper-light); outline-offset: 1px; }
textarea.field { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--tan); }
.form-status { display: none; padding: 1rem; border: 1px solid var(--copper-light); }
.form-status.show { display: block; }
.field-error { color: var(--copper-light); font-size: 0.78rem; margin-top: 0.35rem; display: none; }
.field-error.show { display: block; }

/* ---- footer ------------------------------------------------------------ */
.site-foot { background: var(--burgundy-deep); border-top: 1px solid var(--hairline); }
.site-foot a { text-decoration: none; color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; }
.site-foot a:hover { color: var(--copper-light); }
.foot-head {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
  color: var(--white);
}
.legal-line { font-size: 0.76rem; color: rgba(255, 255, 255, 0.55); line-height: 1.6; }

/* ---- utility ----------------------------------------------------------- */
.stack > * + * { margin-top: var(--gap, 1rem); }
.center { text-align: center; }
.max-60 { max-width: 60ch; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Down to 250px the page has to stay usable: one column, tighter type, and
   nothing that can push the body sideways. */
@media (max-width: 380px) {
  .rail { grid-auto-columns: minmax(150px, 78vw); }
  .btn { width: 100%; }
  .head-row { min-height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}
