/* ============================================================
   GOAT XI — site styles · "Broadcast Premium" (dark + gold)
   Brand tokens per docs/design/tokens/brand-tokens.css.
   Self-contained: brand font Archivo is vendored locally (OFL),
   no external fetch. Landing is editorial; legal pages reuse the
   same theme in a calm, readable single column.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-VariableFont.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-Italic-VariableFont.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  --black: #0B0D0F;
  --charcoal: #11151A;
  --panel: #151A1E;         /* warm-biased graphite */
  --panel-2: #1B2126;
  --line: #29302C;          /* neutral biased toward gold */
  --line-soft: #20262A;
  --green: #063A2E;
  --green-line: #0D5F49;
  --gold: #D4AF37;
  --gold-lt: #F6D46B;
  --gold-dk: #9C7417;
  --ivory: #F8F6EF;
  --text: #F0EEE4;
  --muted: #9E9B8B;         /* warm grey */
  --live: #38E0A6;          /* semantic: live/correct — not the accent */

  --sys: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --wrap: 760px;
  --inner: 1080px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 640px at 50% -220px, rgba(212, 175, 55, 0.13), transparent 60%),
    radial-gradient(900px 700px at 92% 8%, rgba(6, 58, 46, 0.35), transparent 55%),
    var(--black);
  color: var(--text);
  font-family: var(--sys);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--gold); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

/* ---- bilingual (EN default, TH on toggle) ---- */
.i18n-th { display: none; }
html[data-lang="th"] .i18n-en { display: none; }
html[data-lang="th"] .i18n-th { display: revert; }

.lang-toggle {
  display: inline-flex; align-items: center; vertical-align: middle;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  margin-left: 4px;
}
.lang-toggle button {
  background: transparent; border: 0; color: var(--muted); cursor: pointer;
  font-family: var(--sys); font-size: 12px; font-weight: 800; letter-spacing: .4px;
  padding: 5px 12px; line-height: 1.6; transition: background .14s ease, color .14s ease;
}
.lang-toggle button:hover { color: var(--ivory); }
.lang-toggle button.active { background: var(--gold); color: #14100A; }
nav.site .lang-toggle { margin-left: 18px; }

/* ---- containers ---- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 30px 20px 84px; }
.inner { max-width: var(--inner); margin: 0 auto; padding: 0 22px; }

/* ============================================================
   Header / footer (shared by landing + legal)
   ============================================================ */
header.site {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 22px 0 20px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 8px;
}
.wrap > header.site { margin-bottom: 30px; }

header.site .mark {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--charcoal); border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.18);
  overflow: hidden; flex-shrink: 0;
}
header.site .mark img { width: 100%; height: 100%; object-fit: cover; }
header.site .brand { display: flex; flex-direction: column; line-height: 1.1; }
header.site .brand .name {
  font-weight: 800; font-style: italic; font-size: 19px;
  letter-spacing: 0.4px; color: var(--ivory);
}
header.site .brand .by {
  font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-top: 3px;
}
nav.site { margin-left: auto; font-size: 14px; }
nav.site a { margin-left: 18px; color: var(--muted); }
nav.site a:hover { color: var(--ivory); }

footer.site {
  margin-top: 64px; padding: 28px 0 40px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--muted); text-align: center; line-height: 1.75;
}
footer.site .brand-line {
  color: var(--ivory); font-weight: 800; font-style: italic; letter-spacing: 0.4px;
}
footer.site .legal { color: var(--muted); }
footer.site nav { margin-top: 10px; }
footer.site nav a { color: var(--muted); margin: 0 9px; }
footer.site nav a:hover { color: var(--ivory); }

/* ============================================================
   Legal / document typography (privacy, terms, support, delete)
   ============================================================ */
main h1 {
  font-size: clamp(28px, 6vw, 38px); font-weight: 900; font-style: italic;
  letter-spacing: -0.4px; margin: 6px 0 10px; color: var(--ivory);
  text-wrap: balance;
}
main .lede { color: var(--gold); font-size: 18px; font-weight: 600; margin: 0 0 28px; }
main h2 {
  font-size: 19px; font-weight: 800; margin: 38px 0 10px; color: var(--ivory);
  text-wrap: balance;
}
main h3 {
  font-size: 12.5px; font-weight: 800; margin: 22px 0 8px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
}
main p, main li { color: var(--text); }
main .meta { color: var(--muted); font-size: 14px; margin: -2px 0 26px; }
main ul { padding-left: 22px; margin: 10px 0 16px; }
main li { margin: 6px 0; }
main strong { color: var(--ivory); }
main code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--panel); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 4px; font-size: 14px;
}
main .card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin: 18px 0;
}
main .card p:last-child { margin-bottom: 0; }
main .card.stance {
  border-color: rgba(212, 175, 55, 0.42);
  background: linear-gradient(180deg, rgba(212,175,55,.08), rgba(212,175,55,.02)), var(--panel);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.12);
}
main .card.stance strong { color: var(--gold-lt); }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--gold-dk); margin: 0 0 14px;
}
.section-title {
  font-size: clamp(22px, 4.4vw, 30px); font-weight: 900; font-style: italic;
  letter-spacing: -0.4px; color: var(--ivory); margin: 0 0 6px; text-wrap: balance;
}
.section-sub { color: var(--muted); font-size: 16px; margin: 0 0 26px; max-width: 60ch; }

.band { padding: 56px 0; border-top: 1px solid var(--line-soft); }

/* ---- Hero ---- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 48px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11,13,15,.94) 30%, rgba(11,13,15,.55) 100%),
    linear-gradient(180deg, rgba(11,13,15,.55), rgba(11,13,15,.92)),
    url("assets/hero-stadium.jpg") center 22% / cover no-repeat;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; } }

.hero .kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted); background: var(--panel); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(40px, 8.5vw, 76px); font-weight: 900; font-style: italic;
  line-height: 0.98; letter-spacing: -1.4px; margin: 0 0 18px; color: var(--ivory);
  text-wrap: balance;
}
.hero h1 .goat {
  background: linear-gradient(160deg, var(--gold-lt) 8%, var(--gold) 48%, var(--gold-dk) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { font-size: clamp(16px, 2.4vw, 20px); color: var(--text); max-width: 44ch; margin: 0 0 26px; }
.hero .sub b { color: var(--gold); font-weight: 700; }

/* App icon shown prominently (single, large brand mark) */
.app-badge {
  width: 128px; height: 128px; border-radius: 30px; overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.6);
  box-shadow: 0 24px 56px rgba(0,0,0,.55), 0 0 46px rgba(212, 175, 55, 0.32);
  margin: 0 0 26px;
}
.app-badge img { width: 100%; height: 100%; display: block; }
@media (max-width: 640px) { .app-badge { width: 108px; height: 108px; border-radius: 26px; } }

/* CTA reassurance microcopy */
.cta-note { margin: 16px 0 0; font-size: 12.5px; letter-spacing: .5px; color: var(--muted); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sys); font-size: 15px; font-weight: 800; letter-spacing: 0.2px;
  padding: 13px 20px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn.primary {
  background: linear-gradient(180deg, var(--gold-lt), var(--gold));
  color: #14100A; box-shadow: 0 10px 30px rgba(212, 175, 55, 0.28);
}
.btn.primary small { display: block; font-size: 10.5px; font-weight: 700; opacity: .7; letter-spacing: 1px; }
.btn.primary span { font-size: 16px; }
.btn.ghost { background: var(--panel); border-color: var(--line); color: var(--ivory); }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn.primary:hover { box-shadow: 0 14px 38px rgba(212, 175, 55, 0.38); }

/* ---- Hero scorebug (the signature interaction) ---- */
.scorebug {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
  padding: 20px 20px 22px; position: relative; overflow: hidden;
}
.scorebug::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt), var(--gold-dk));
}
.scorebug .bug-top {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}
.lock-pill {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--live); font-weight: 700; letter-spacing: 1.4px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 10px var(--live);
}
.bug-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.crest {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-style: italic; font-size: 20px;
  color: var(--ivory); background: radial-gradient(circle at 30% 25%, #232b31, #10151a);
  border: 2px solid var(--gold); box-shadow: var(--gx-shadow, 0 0 18px rgba(212,175,55,.25));
}
.team.away .crest { border-color: var(--muted); box-shadow: none; }
.team .tname { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.score-ctrl { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.num {
  font-size: 54px; font-weight: 900; font-style: italic; line-height: 1; color: var(--ivory);
  font-variant-numeric: tabular-nums; min-width: 1.2ch; text-align: center;
}
.step {
  display: flex; gap: 8px;
}
.step button {
  width: 30px; height: 30px; border-radius: 9px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); color: var(--gold);
  font-size: 17px; font-weight: 800; line-height: 1; display: grid; place-items: center;
  transition: background .14s ease, transform .12s ease, border-color .14s ease;
}
.step button:hover { background: var(--gold); color: #14100A; border-color: var(--gold); transform: translateY(-1px); }
.step button:active { transform: translateY(0); }
.bug-mid { text-align: center; }
.bug-mid .dash { font-size: 30px; font-weight: 800; color: var(--muted); }
.bug-foot {
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.bug-foot .hint { font-size: 12.5px; color: var(--muted); }
.bug-foot .lock { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }

/* ---- Matchday flow ---- */
.flow { display: grid; gap: 16px; }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(3, 1fr); } }
.play {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 24px; transition: transform .18s ease, border-color .18s ease;
}
.play:hover { transform: translateY(-4px); border-color: rgba(212,175,55,.4); }
.play .no {
  font-size: 13px; font-weight: 900; font-style: italic; letter-spacing: 1px; color: var(--gold-dk);
}
.play .ic { margin: 12px 0 12px; color: var(--gold); }
.play h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--ivory); }
.play p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---- GOAT tiers rail ---- */
.tiers { display: flex; flex-wrap: wrap; gap: 10px; }
.tier {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px 9px 11px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--text);
}
.tier .medal {
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--gold-lt), var(--gold-dk));
  box-shadow: 0 0 10px rgba(212,175,55,.4);
}
.tier.peak { border-color: var(--gold); color: var(--ivory); box-shadow: 0 0 22px rgba(212,175,55,.18); }
.tier.peak .medal { background: radial-gradient(circle at 32% 28%, #fff, var(--gold)); }

/* ---- House rules (anti-gambling) ---- */
.rules {
  background: linear-gradient(180deg, rgba(212,175,55,.07), rgba(212,175,55,.02)), var(--panel);
  border: 1px solid rgba(212,175,55,.4); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: 0 0 34px rgba(212,175,55,.1);
}
.rules h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; font-style: italic; color: var(--gold-lt); }
.rules p { margin: 0 0 16px; color: var(--text); }
.rule-list { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; }
.rule-list li { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ivory); }
.rule-list li::before {
  content: ""; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314100A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat,
    var(--gold);
}

/* ---- Screenshots ---- */
.shots { display: grid; gap: 22px; justify-items: center; }
@media (min-width: 720px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.phone {
  width: 100%; max-width: 240px; border-radius: 26px; padding: 8px;
  background: linear-gradient(160deg, #20262b, #0d1114);
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.phone img { border-radius: 19px; width: 100%; }
.shot-cap { text-align: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.shot-cap b { display: block; color: var(--gold); font-style: italic; font-weight: 800; font-size: 14px; letter-spacing: .3px; }

/* ---- Story / manifesto ---- */
.story { max-width: 720px; margin: 0 auto; text-align: center; }
.story .quote-mark {
  display: block; font-family: Georgia, "Times New Roman", serif;
  font-size: 76px; line-height: .5; height: 38px; color: var(--gold); opacity: .5;
}
.story p { font-size: clamp(16.5px, 2.2vw, 20px); line-height: 1.75; color: var(--text); margin: 0 0 18px; text-wrap: pretty; }
.story p.dim { color: var(--muted); font-size: clamp(15.5px, 2vw, 18px); }
.story .punch {
  font-weight: 900; font-style: italic; letter-spacing: -0.4px;
  font-size: clamp(27px, 5.4vw, 48px); line-height: 1.06; margin: 30px 0 0; text-wrap: balance;
  background: linear-gradient(160deg, var(--gold-lt) 8%, var(--gold) 52%, var(--gold-dk) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- CTA card (with fans photo) ---- */
.cta-card {
  text-align: center; position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--line); border-radius: 24px; padding: 60px 24px;
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,13,15,.7), rgba(11,13,15,.9)),
    url("assets/fans-celebrate.jpg") center 30% / cover no-repeat;
}
.cta-card .section-sub { margin-left: auto; margin-right: auto; }
.cta-icon {
  width: 84px; height: 84px; border-radius: 20px; overflow: hidden;
  margin: 0 auto 20px; border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}
.cta-icon img { width: 100%; height: 100%; display: block; }

/* ---- motion ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .d1 { animation-delay: .05s; } .d2 { animation-delay: .14s; }
  .d3 { animation-delay: .23s; } .d4 { animation-delay: .32s; }
  .live-dot { animation: pulse 1.7s ease-in-out infinite; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
}
