/* ==========================================================================
   Playka marketing site
   Tokens first, then base, layout, components, pages, language tweaks.
   ========================================================================== */

:root {
  /* Brand (sampled from the logo) */
  --navy: #141f31;
  --navy-2: #1c2a42;
  --navy-3: #2d3d5b;
  --gold: #c7a163;
  --gold-hi: #dcb97b;
  --gold-ink: #7a5a22;     /* gold for text on light backgrounds (AA contrast) */

  /* Neutrals: cool, so the gold carries all the warmth */
  --paper: #eef0f3;
  --white: #ffffff;
  --ink: #141f31;
  --muted: #4f596d;
  --line: #d6dbe3;
  --on-navy: #e9ecf2;
  --on-navy-muted: #aab3c5;

  /* Status */
  --ok: #1d7f4a;
  --info: #9a6a12;
  --no: #a93d3d;

  /* Type */
  --font-display: "Chakra Petch", "Barlow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-style: italic;

  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-lead: 1.1875rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  --fs-h1: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem);

  /* Layout */
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7rem);
  --header-h: 4.5rem;
  --slant: -12deg;          /* the logo's bolt angle, used for every slanted shape */
  --radius: 14px;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--navy); padding: .6rem 1rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Placeholder for open business decisions (turn off in site.json) */
.tbd {
  background: #ffe7a3; color: #3d2c05; padding: 0 .25em; border-radius: 3px;
  outline: 1px dashed #b07a1c; outline-offset: 0; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  font-style: normal;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 50rem; }

.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--after-live { padding-top: clamp(3rem, 6vw, 5rem); }
.section__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .5rem 2rem; margin-bottom: 2.5rem;
}
.section__head .h2 { margin-bottom: 0; }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--font-display); font-style: var(--display-style); font-weight: 700;
  font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.01em;
  margin-bottom: 1.25rem; max-width: 22ch; text-wrap: balance;
}
.h3 {
  font-family: var(--font-display); font-style: var(--display-style); font-weight: 600;
  font-size: var(--fs-h3); line-height: 1.25; margin-bottom: .5rem;
}
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 58ch; }
.note { font-size: var(--fs-small); color: var(--muted); max-width: 60ch; }

.link {
  color: var(--gold-ink); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--gold);
}
.link:hover { color: var(--ink); }
.link-light {
  color: var(--white); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--gold);
}
.link-light:hover { color: var(--gold-hi); }

/* ---------- Buttons: slanted like the logo's bolt ---------- */
.btn {
  --btn-bg: var(--gold); --btn-fg: var(--navy);
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.6rem;
  color: var(--btn-fg); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  border: 0; background: none; cursor: pointer; text-align: center;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-bg); border-radius: 4px; transform: skewX(var(--slant));
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover::before { background: var(--btn-hover, var(--gold-hi)); }
.btn:active::before { transform: skewX(var(--slant)) scale(.98); }
.btn:focus-visible { outline: none; }
.btn:focus-visible::before { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--gold); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy); --btn-hover: var(--gold-hi); }
.btn--navy { --btn-bg: var(--navy); --btn-fg: var(--white); --btn-hover: var(--navy-3); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--white); --btn-hover: rgba(255,255,255,.08); }
.btn--outline::before { box-shadow: inset 0 0 0 2px var(--gold); }
.btn--lg { min-height: 3.5rem; padding: .9rem 2rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn:not(.btn--block) { margin-inline: .375rem; } /* keeps the slanted corners inside the text column */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--navy); color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }

.brand { flex: none; display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--white); }
.brand__mark { width: 2.1rem; height: auto; }
.brand__p { fill: currentColor; }
.brand__bolt { fill: var(--gold); }
.brand__word {
  font-family: "Chakra Petch", var(--font-body); font-style: italic; font-weight: 700;
  font-size: 1.6rem; letter-spacing: -.01em; line-height: 1;
}

.site-nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.site-nav__list { display: flex; gap: 1.25rem; list-style: none; }
.site-nav__list a {
  white-space: nowrap; color: var(--on-navy); text-decoration: none; font-weight: 500; font-size: .98rem; padding-block: .4rem;
  border-bottom: 2px solid transparent;
}
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: var(--white); border-bottom-color: var(--gold); }
.site-nav__cta { min-height: 2.6rem; padding: .5rem 1.2rem; font-size: .95rem; white-space: nowrap; }

.site-nav__lang, .site-footer__lang { display: flex; gap: .15rem; }
.site-nav__lang a, .site-footer__lang a {
  color: var(--on-navy-muted); text-decoration: none; font-size: .9rem; font-weight: 600;
  padding: .3rem .5rem; border-radius: 4px;
}
.site-nav__lang a:hover, .site-footer__lang a:hover { color: var(--white); }
.site-nav__lang a[aria-current="true"], .site-footer__lang a[aria-current="true"] { color: var(--navy); background: var(--gold); }

.menu-toggle {
  display: none; margin-left: auto; width: 2.75rem; height: 2.75rem;
  background: none; border: 0; cursor: pointer; position: relative;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  position: absolute; left: 50%; width: 1.4rem; height: 2px; background: var(--white);
  transform: translateX(-50%); transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle__bars { top: 50%; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; left: 0; transform: none; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 80rem) {
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
    background: var(--navy); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a {
    display: block; padding: 1rem 0; font-size: 1.25rem; border-bottom: 1px solid var(--navy-3);
    font-family: var(--font-display); font-style: var(--display-style); font-weight: 600;
  }
  .site-nav__cta { order: 3; min-height: 3.25rem; }
  .site-nav__lang { order: 2; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; overflow: clip;
  background: var(--navy); color: var(--white);
  padding-top: clamp(3rem, 7vw, 5.5rem);
  /* bottom edge cut at the bolt angle */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5vw), 0 100%);
  padding-bottom: calc(5.5rem + 3.5vw);
}
.hero::before { /* the big gold slash behind the demo */
  content: ""; position: absolute; z-index: 0;
  top: -10%; bottom: -10%; right: 1%; width: clamp(6rem, 12vw, 10rem);
  background: linear-gradient(180deg, var(--gold) 0%, #a9854a 100%);
  transform: skewX(var(--slant)); opacity: .95;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero__title {
  font-family: var(--font-display); font-style: var(--display-style); font-weight: 700;
  font-size: var(--fs-h1); line-height: 1.0; letter-spacing: -.02em;
  margin-bottom: 1.5rem; max-width: 14ch; text-wrap: balance;
}
.hero__sub { font-size: var(--fs-lead); color: var(--on-navy); max-width: 44ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero__note { margin: 1.75rem 0 0; color: var(--on-navy-muted); font-size: var(--fs-small); }

/* Live slot picker demo */
.slotboard { margin: 0; justify-self: end; width: 100%; max-width: 24rem; }
.slotboard__card {
  background: var(--white); color: var(--ink); border-radius: 18px; padding: 1.25rem;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(20,31,49,.06);
}
.slotboard__head { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.slotboard__avatar {
  width: 2.75rem; height: 2.75rem; border-radius: 10px; background: var(--navy); color: var(--gold);
  display: grid; place-items: center; font-family: "Chakra Petch", sans-serif; font-style: italic; font-weight: 700;
}
.slotboard__name { margin: 0; font-weight: 700; line-height: 1.2; }
.slotboard__meta { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.3; }
.slotboard__price { margin: 0; font-weight: 700; text-align: right; line-height: 1.1; white-space: nowrap; }
.slotboard__price small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }

.slotboard__days { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; background: var(--paper); padding: .3rem; border-radius: 10px; margin-bottom: .9rem; }
.slotboard__days button {
  border: 0; background: none; padding: .5rem .25rem; border-radius: 7px; cursor: pointer;
  font-weight: 600; font-size: .9rem; color: var(--muted);
}
.slotboard__days button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(20,31,49,.12); }

.slotboard__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.slot {
  min-height: 2.75rem; border: 1.5px solid var(--line); background: var(--white); border-radius: 9px;
  font-weight: 600; font-size: .92rem; cursor: pointer; font-variant-numeric: tabular-nums;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.slot:hover:not(:disabled) { border-color: var(--navy); }
.slot:disabled { cursor: not-allowed; color: #a0a8b8; background: var(--paper); border-color: transparent; text-decoration: line-through; }
.slot[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: translateY(-1px); }
.slot.is-landing { animation: slot-land .5s cubic-bezier(.2,.9,.3,1.4); }
@keyframes slot-land { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: translateY(-1px); } }

.slotboard__hold { margin-top: 1rem; }
.slotboard__holdrow { display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.slotboard__timer { font-variant-numeric: tabular-nums; color: var(--gold-ink); }
.slotboard__bar { height: 5px; border-radius: 3px; background: var(--paper); overflow: hidden; margin-bottom: 1rem; }
.slotboard__bar span { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transition: transform 1s linear; }
.slotboard__empty { margin: 1rem 0 0; color: var(--muted); font-size: .92rem; text-align: center; }
.slotboard__caption { margin-top: 1rem; color: var(--on-navy); font-size: var(--fs-small); max-width: 30ch; }

/* Sport switcher inside the demo */
.slotboard__sports { display: flex; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.slotboard__sports button {
  border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; cursor: pointer;
  padding: .35rem .85rem; font-size: .85rem; font-weight: 600; color: var(--muted);
}
.slotboard__sports button:hover { border-color: var(--navy); color: var(--ink); }
.slotboard__sports button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Trust strip */
.trust-strip {
  position: relative; z-index: 1; list-style: none;
  display: flex; flex-wrap: wrap; gap: .75rem 2.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--navy-3);
  color: var(--on-navy); font-weight: 500; font-size: var(--fs-small);
}
.trust-strip li { display: flex; align-items: center; gap: .6rem; }
.trust-strip li::before { content: ""; width: .5rem; height: 1rem; background: var(--gold); transform: skewX(var(--slant)); flex: none; }

/* ---------- Live scoreboard ---------- */
.live { position: relative; z-index: 2; margin-top: calc(-3.5vw - 3rem); padding-bottom: 1rem; }
.live[hidden] { display: none; }
.live__board {
  background: var(--white); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(20,31,49,.45), 0 0 0 1px rgba(20,31,49,.06);
}
.live__head {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--line);
}
.live__title {
  display: flex; align-items: center; gap: .6rem; margin: 0;
  font-family: var(--font-display); font-style: var(--display-style); font-weight: 700; font-size: 1.15rem;
}
.live__dot { width: .7rem; height: .7rem; border-radius: 50%; background: #9aa3b3; flex: none; }
.live--on .live__dot { background: #22a55b; box-shadow: 0 0 0 0 rgba(34,165,91,.55); animation: live-pulse 2s ease-out infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 .6rem rgba(34,165,91,0); } 100% { box-shadow: 0 0 0 0 rgba(34,165,91,0); } }
.live__tag {
  margin: 0; font-size: .8rem; font-weight: 700; color: #1d7f4a; background: rgba(34,165,91,.1);
  padding: .15rem .6rem; border-radius: 999px;
}
.live__sample { margin: 0 0 0 auto; font-size: .85rem; }
.live__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); margin: 0; }
.live__stat { padding: 1.25rem 1.5rem 1.4rem; border-left: 1px solid var(--line); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .15rem; }
.live__stat:first-child { border-left: 0; }
.live__stat[hidden] { display: none; }
.live__stat dt { color: var(--muted); font-weight: 600; font-size: var(--fs-small); line-height: 1.3; }
.live__stat dd {
  margin: 0; font-family: "Chakra Petch", var(--font-body); font-style: italic; font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink);
}
.live__stat--lead { background: var(--navy); border-left: 0; }
.live__stat--lead dt { color: var(--on-navy); }
.live__stat--lead dd { color: var(--gold); }
.live--sample .live__stat dd { opacity: .55; }
@media (max-width: 44rem) {
  .live { margin-top: -2.5rem; }
  .live__stats { grid-template-columns: 1fr 1fr; }
  .live__stat { border-left: 0; border-top: 1px solid var(--line); padding: 1rem 1.1rem; }
  .live__stat:nth-child(even) { border-left: 1px solid var(--line); }
  .live__stat--lead { border-top: 0; }
  .live__sample { margin-left: 0; flex-basis: 100%; }
}

/* ---------- Old way vs Playka ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 2.5rem; }
.versus__side { padding: clamp(1.5rem, 3vw, 2.5rem); }
.versus__side--old { background: var(--white); border-radius: var(--radius) 0 0 var(--radius); }
.versus__side--new { background: var(--navy); color: var(--white); border-radius: 0 var(--radius) var(--radius) 0; position: relative; }
.versus__side--new::before { /* slanted seam between the two halves */
  content: ""; position: absolute; top: 0; bottom: 0; left: -1.25rem; width: 2.5rem;
  background: var(--navy); transform: skewX(var(--slant));
}
.versus__h { font-family: var(--font-display); font-style: var(--display-style); font-weight: 600; font-size: 1.15rem; margin-bottom: 1.25rem; position: relative; }
.versus__side--old .versus__h { color: var(--muted); }
.versus__side--new .versus__h { color: var(--gold); }
.versus__list { list-style: none; display: grid; gap: 1rem; position: relative; }
.versus__list li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .75rem; align-items: start; }
.versus__list li::before { content: ""; width: 1.25rem; height: 1.25rem; margin-top: .2rem; background-repeat: no-repeat; background-size: contain; }
.versus__side--old li { color: var(--muted); }
.versus__side--old li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a93d3d' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 5l10 10M15 5 5 15'/%3E%3C/svg%3E"); }
.versus__side--new li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23c7a163' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 10.5 4 4 8-9'/%3E%3C/svg%3E"); }

/* ---------- Steps (real sequence, so numbered) ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.steps__item { border-top: 3px solid var(--navy); padding-top: 1.25rem; }
.steps__n {
  display: block; font-family: "Chakra Petch", sans-serif; font-style: italic; font-weight: 700;
  font-size: 3.5rem; line-height: 1; color: var(--gold); margin-bottom: .75rem;
}
.steps__item p { color: var(--muted); margin: 0; }

/* ---------- Audience ---------- */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 2.5rem; }
.audience__col { display: flex; flex-direction: column; align-items: flex-start; padding-left: 1.5rem; border-left: 3px solid var(--gold); }
.audience__who { color: var(--gold-ink); font-weight: 700; margin-bottom: .35rem; }
.audience__col .h3 { font-size: 1.45rem; margin-bottom: 1rem; }
.audience__col .ticks { margin-bottom: 1.75rem; flex: 1; }

.ticks { list-style: none; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35rem; width: 1.1rem; height: 1.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231d7f4a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 10.5 4 4 8-9'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ticks--lg { font-size: var(--fs-lead); gap: .9rem; margin-bottom: 1.75rem; }

/* ---------- Trust ---------- */
.trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem clamp(2rem, 5vw, 4rem); margin: 2.5rem 0 0; }
.trust__grid--3 { grid-template-columns: repeat(3, 1fr); }
.trust__item { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-content: start; }
.trust__item .icon { grid-row: span 2; }
.trust__item dt { font-weight: 700; font-size: 1.1rem; }
.trust__item dd { margin: 0; color: var(--muted); }
.icon { width: 2.5rem; height: 2.5rem; padding: .5rem; border-radius: 10px; background: var(--navy); fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Founding partners ---------- */
.founding { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* ---------- Sports ---------- */
.sports { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: 2rem; }
.sports__tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  min-height: 8rem; padding: 1.1rem 1.25rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
}
.sports__name { overflow-wrap: anywhere; font-family: var(--font-display); font-style: var(--display-style); font-weight: 700; font-size: 1.35rem; color: var(--muted); }
.sports__vote { font-weight: 600; font-size: var(--fs-small); color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }
.sports__tile--live { background: var(--navy); border-color: var(--navy); position: relative; overflow: hidden; }
.sports__tile--live::after {
  content: ""; position: absolute; right: -1rem; top: -20%; bottom: -20%; width: 3rem;
  background: var(--gold); transform: skewX(var(--slant));
}
.sports__tile--live .sports__name { color: var(--white); font-size: 1.6rem; }
.sports__state { color: var(--gold); font-weight: 700; font-size: var(--fs-small); }

/* ---------- Bands ---------- */
.band { padding-block: clamp(3rem, 6vw, 4.5rem); }
.band--gold { background: var(--gold); color: var(--navy); }
.band--navy { background: var(--navy); color: var(--white); }
.band--navy p { color: var(--on-navy); }
.band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.band__inner > div { max-width: 44rem; }
.band .h2 { max-width: 26ch; margin-bottom: .75rem; }
.band p { margin: 0; font-size: var(--fs-lead); }
.band--gold .btn--navy:focus-visible::before { box-shadow: 0 0 0 3px var(--gold), 0 0 0 6px var(--navy); }

/* ---------- App band ---------- */
.appband { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem 4rem; align-items: center; }
.appband__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 1.5rem; }
.appband__stores { list-style: none; display: grid; gap: .75rem; }
.appband__stores li {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white);
}
.appband__stores span { font-weight: 700; }
.appband__stores small { color: var(--muted); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem 4rem; align-items: start; }
.faq__list { display: grid; }
.faq__list .link { margin-top: 1.5rem; justify-self: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .25rem; top: 50%; width: 1rem; height: 1rem; margin-top: -.5rem;
  background:
    linear-gradient(var(--gold-ink), var(--gold-ink)) center / 100% 2px no-repeat,
    linear-gradient(var(--gold-ink), var(--gold-ink)) center / 2px 100% no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 2.5rem; margin-bottom: 1.25rem; }

/* ---------- Finale ---------- */
.finale {
  position: relative; overflow: hidden; overflow: clip; background: var(--navy); color: var(--white);
  padding-block: clamp(4.5rem, 9vw, 7rem); text-align: center;
}
.finale::before, .finale::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; width: 5rem; background: var(--gold); transform: skewX(var(--slant));
}
.finale::before { left: -2rem; }
.finale::after { right: -2rem; opacity: .35; }
.finale__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.75rem; }
.finale__title {
  font-family: var(--font-display); font-style: var(--display-style); font-weight: 700;
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.75rem); line-height: 1.05; max-width: 18ch; text-wrap: balance;
}
.finale__or { margin: 0; color: var(--on-navy-muted); }
.finale__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0e1624; color: var(--on-navy-muted); padding: 4rem 0 calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: var(--fs-small); }
.site-footer__top { display: grid; grid-template-columns: 1fr 2.2fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--navy-2); }
.site-footer__tagline { margin-top: 1rem; max-width: 28ch; }
.site-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.site-footer__h { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: .9rem; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { color: var(--on-navy-muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__legal:empty { display: none; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; z-index: 40;
  right: calc(1rem + env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem .7rem .8rem;
  background: #1f8f4e; color: var(--white); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .95rem;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
}
.wa-float svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.wa-float:hover { background: #197a42; }
@media (max-width: 40rem) { .wa-float span { display: none; } .wa-float { padding: .8rem; } }

/* ---------- The Playka promise ---------- */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.25rem clamp(1.5rem, 4vw, 3rem); margin: 2.5rem 0 0; }
.promise__item { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; align-content: start; }
.promise__item .icon { grid-row: span 2; }
.promise__item dt { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.promise__item dd { margin: 0; color: var(--muted); }

/* ---------- Our story ---------- */
.story { padding-block: var(--section); background: var(--navy); color: var(--white); position: relative; overflow: hidden; overflow: clip; }
.story::before { /* a thin gold slash, echoing the logo */
  content: ""; position: absolute; right: 4%; top: -10%; bottom: -10%; width: clamp(3rem, 7vw, 6rem); background: var(--gold); opacity: .12; transform: skewX(var(--slant));
}
.story .wrap { position: relative; }
.story .btn:focus-visible::before { box-shadow: 0 0 0 3px var(--navy), 0 0 0 6px var(--gold); }
.story__grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.story__title {
  font-family: var(--font-display); font-style: var(--display-style); font-weight: 700;
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.9rem); line-height: 1.02; letter-spacing: -.015em;
  max-width: 13ch; margin-bottom: 1.75rem; text-wrap: balance;
}
.story__copy p { font-size: var(--fs-lead); max-width: 56ch; }
.story__copy p { color: var(--on-navy); }
.story__copy p:last-of-type { color: var(--gold-hi); font-weight: 600; margin-bottom: 1.75rem; }
.story__label { font-size: 1rem; font-weight: 700; color: var(--gold); margin-bottom: 1rem; }
.founders { list-style: none; display: grid; gap: .75rem; }
.founders li { display: flex; align-items: center; gap: 1rem; background: var(--navy-2); border: 1px solid var(--navy-3); padding: .9rem 1.1rem; border-radius: var(--radius); }
.founders__avatar {
  width: 3.25rem; height: 3.25rem; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--gold); color: var(--navy); font-family: "Chakra Petch", sans-serif; font-style: italic; font-weight: 700; font-size: 1.3rem;
}
.founders strong { display: block; line-height: 1.3; }
.founders small { display: block; color: var(--on-navy-muted); font-size: .9rem; }

/* ---------- Forms ---------- */
.formcard { background: var(--white); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 18px 40px -26px rgba(20,31,49,.4); }
.formcard--flat { background: none; padding: 0; box-shadow: none; }
.formcard--slim { margin-top: 1.5rem; padding: 1.25rem; max-width: 34rem; }
.form { display: grid; gap: 1rem; }
.form[hidden] { display: none; }
.form .h3 { margin-bottom: .25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field > span { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .7rem .9rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #c3cad6; border-radius: 10px; transition: border-color .15s ease;
}
.field textarea { min-height: 6rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(199,161,99,.45); }
.field [aria-invalid="true"] { border-color: var(--no); }
.field__error { color: var(--no); font-size: .88rem; font-weight: 600; }
.form__choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.form__choice legend { font-weight: 600; font-size: .95rem; margin-bottom: .4rem; width: 100%; }
.form__choice label { position: relative; cursor: pointer; }
.form__choice input { position: absolute; opacity: 0; }
.form__choice span { display: inline-block; padding: .55rem 1.1rem; border: 1.5px solid #c3cad6; border-radius: 999px; font-weight: 600; }
.form__choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.form__choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(199,161,99,.6); }
.form__inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; }
.form__inline .field { flex: 1 1 16rem; }
.form__inline .btn { min-height: 3rem; }
.form__consent { margin: 0; font-size: .88rem; color: var(--muted); }
.form__consent .link { font-weight: 600; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form .btn--lg { justify-self: start; }
.form__status { margin: 0; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--no); }
.form__done {
  display: flex; gap: .9rem; align-items: flex-start; padding: 1.25rem; border-radius: var(--radius);
  background: rgba(29,127,74,.08); color: #145c35; font-weight: 600; font-size: 1.05rem;
}
.form__done::before {
  content: ""; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10.5 3.2 3.2L15 6.8'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.form__done[hidden] { display: none; }
.form__done:focus { outline: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }

/* Tick-to-vote sport tiles */
.sports__tile--pick { padding: 0; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.sports__tile--pick label { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; height: 100%; padding: 1.1rem 1.25rem; cursor: pointer; position: relative; }
.sports__tile--pick input { position: absolute; top: 1rem; right: 1rem; width: 1.25rem; height: 1.25rem; accent-color: var(--navy); cursor: pointer; }
.sports__tick { font-weight: 600; font-size: var(--fs-small); color: var(--gold-ink); }
.sports__tile--pick:hover { border-color: var(--navy); }
.sports__tile--pick:has(input:checked) { background: var(--white); border: 2px solid var(--navy); }
.sports__tile--pick:has(input:checked) .sports__name { color: var(--ink); }
.sports__tile--pick:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(199,161,99,.6); }
.form .sports { margin: .5rem 0 .5rem; }

/* How it works: payment protection box */
.protect {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.5rem; margin-bottom: 2rem; background: var(--white); border-radius: var(--radius); border-left: 5px solid var(--gold);
}
.protect p { margin: 0; color: var(--muted); }

/* ==========================================================================
   How it works
   ========================================================================== */
.pagehero {
  background: var(--navy); color: var(--white);
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem);
  position: relative; overflow: hidden; overflow: clip;
}
.pagehero::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; right: 6%; width: clamp(4rem, 10vw, 8rem);
  background: var(--gold); transform: skewX(var(--slant)); opacity: .9; pointer-events: none;
}
.pagehero .wrap { position: relative; z-index: 1; }
.pagehero--tall { padding-block: clamp(5rem, 12vw, 9rem); }
.pagehero__title {
  font-family: var(--font-display); font-style: var(--display-style); font-weight: 700;
  font-size: clamp(2.25rem, 1.3rem + 4vw, 4rem); line-height: 1.02; max-width: 16ch; margin-bottom: 1.25rem; text-wrap: balance;
}
.pagehero__sub { font-size: var(--fs-lead); color: var(--on-navy); max-width: 50ch; margin-bottom: 2rem; }

.switch {
  display: inline-grid; grid-auto-flow: column; gap: .25rem; padding: .3rem;
  background: var(--navy-2); border-radius: 12px; border: 1px solid var(--navy-3); max-width: 100%;
}
.switch button {
  border: 0; background: none; color: var(--on-navy); cursor: pointer; font-weight: 700;
  padding: .75rem 1.25rem; border-radius: 9px; min-height: 2.9rem;
}
.switch button[aria-selected="true"] { background: var(--gold); color: var(--navy); }

/* Vertical timeline */
.timeline { list-style: none; counter-reset: step; margin: 2rem 0 2.5rem; }
.timeline > li { counter-increment: step; position: relative; padding: 0 0 2rem 4rem; }
.timeline > li::before {
  content: counter(step); position: absolute; left: 0; top: -.1rem;
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  font-family: "Chakra Petch", sans-serif; font-style: italic; font-weight: 700; font-size: 1.15rem;
  background: var(--navy); color: var(--gold); border-radius: 8px; z-index: 1;
}
.timeline > li::after {
  content: ""; position: absolute; left: 1.25rem; top: 2.6rem; bottom: 0; width: 2px; background: var(--line);
}
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li:last-child::after { display: none; }
.timeline p { color: var(--muted); margin: 0; }

.outcomes { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.outcomes li { font-size: .9rem; font-weight: 700; padding: .35rem .8rem; border-radius: 999px; border: 1.5px solid currentColor; }
.outcomes__ok { color: var(--ok); }
.outcomes__info { color: var(--info); }
.outcomes__no { color: var(--no); }

/* Payment flow */
.flow { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin: 2rem 0 1rem; }
.flow__step {
  position: relative; display: grid; gap: .25rem; padding: 1.1rem 1.25rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.flow__step strong { font-size: 1.05rem; }
.flow__step span { color: var(--muted); font-size: var(--fs-small); line-height: 1.4; }
.flow__step:not(:last-child)::after {
  content: ""; position: absolute; right: -1.35rem; top: 50%; width: .9rem; height: .9rem; margin-top: -.45rem;
  border-top: 3px solid var(--gold); border-right: 3px solid var(--gold); transform: rotate(45deg);
}
.flow__step--ok { background: var(--navy); border-color: var(--navy); color: var(--white); }
.flow__step--ok span { color: var(--on-navy); }
.flow__step--ok strong { color: var(--gold); }
.flow__branch {
  padding: .9rem 1.25rem; border-left: 3px solid var(--no); background: rgba(169,61,61,.06);
  border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 2rem;
}
.plain { list-style: none; display: grid; gap: 1rem; }
.plain li { padding-left: 1.25rem; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: .45rem; width: .4rem; height: .85rem; background: var(--gold); transform: skewX(var(--slant)); }

/* Cancellation rules */
.rules { margin: 2rem 0 1.5rem; display: grid; gap: .75rem; }
.rules__row { display: grid; grid-template-columns: 1fr 1.3fr; gap: .5rem 2rem; padding: 1.25rem 1.5rem; background: var(--paper); border-radius: var(--radius); }
.rules dt { font-weight: 700; }
.rules dd { margin: 0; color: var(--muted); }

/* Payout receipt */
.receipt {
  max-width: 26rem; margin: 2rem 0 1rem; padding: 1.5rem; background: var(--white);
  border-radius: var(--radius); border-top: 5px solid var(--gold); box-shadow: 0 12px 30px -18px rgba(20,31,49,.35);
  font-variant-numeric: tabular-nums;
}
.receipt__title { font-weight: 700; margin-bottom: 1rem; }
.receipt__row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.receipt__row--total { border-bottom: 0; font-weight: 700; font-size: 1.15rem; padding-top: 1rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 60rem) {
  .hero__grid, .founding, .appband, .faq, .story__grid { grid-template-columns: minmax(0, 1fr); }
  .promise { grid-template-columns: 1fr 1fr; }
  .slotboard { justify-self: start; }
  .hero::before { right: -2rem; top: 45%; }
  .steps, .audience { grid-template-columns: 1fr; }
  .trust__grid--3 { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 44rem) {
  .versus { grid-template-columns: 1fr; }
  .versus__side--old { border-radius: var(--radius) var(--radius) 0 0; }
  .versus__side--new { border-radius: 0 0 var(--radius) var(--radius); }
  .versus__side--new::before { display: none; }
  .trust__grid, .promise, .form__row { grid-template-columns: 1fr; }
  .sports { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: 1fr; gap: 1.5rem; }
  .flow__step:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -1.15rem; margin: 0 0 0 -.45rem; transform: rotate(135deg); }
  .rules__row { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
  .switch { grid-auto-flow: row; width: 100%; }
  .hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.5rem), 0 100%); padding-bottom: 4.5rem; }
}

/* ==========================================================================
   Sinhala and Tamil
   Chakra Petch has no Sinhala/Tamil glyphs; a slanted fake italic on these
   scripts reads badly, so display text goes upright in Noto Sans with more
   line height and slightly smaller sizes for the longer words.
   ========================================================================== */
.lang-si { --font-display: "Noto Sans Sinhala", "Barlow", sans-serif; --font-body: "Barlow", "Noto Sans Sinhala", sans-serif; }
.lang-ta { --font-display: "Noto Sans Tamil", "Barlow", sans-serif; --font-body: "Barlow", "Noto Sans Tamil", sans-serif; }
.lang-si, .lang-ta {
  --display-style: normal;
  --fs-h1: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  --fs-h2: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  --fs-h3: 1.15rem;
}
.lang-si body, .lang-ta body { line-height: 1.75; }
.lang-si :is(.hero__title, .h2, .h3, .pagehero__title, .finale__title, .versus__h, .sports__name, .story__title),
.lang-ta :is(.hero__title, .h2, .h3, .pagehero__title, .finale__title, .versus__h, .sports__name, .story__title) {
  line-height: 1.4; letter-spacing: 0; font-weight: 700; max-width: 26ch;
}
.lang-ta .hero__title, .lang-ta .pagehero__title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); }
.lang-ta .sports__name { font-size: 1.1rem; }
.lang-si .story__title, .lang-ta .story__title { font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.8rem); overflow-wrap: anywhere; }
.lang-si .slot, .lang-ta .slot { font-size: .8rem; white-space: nowrap; padding-inline: .2rem; }
.lang-si .slotboard__days button, .lang-ta .slotboard__days button { font-size: .8rem; }
.lang-si .site-nav__list, .lang-ta .site-nav__list { gap: .85rem; }
.lang-ta .site-nav { gap: .9rem; }
.lang-ta .site-nav__list a, .lang-si .site-nav__list a { font-size: .92rem; }

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
