/* Tsoro marketing site */
:root {
  --bg: #140a07;
  --bg-2: #1a0d0a;
  --card: #2a1511;
  --line: #3a2216;
  --line-gold: #6b4a24;
  --gold: #e6bf55;
  --gold-hi: #f5d77a;
  --gold-edge: #d9b24a;
  --ink: #f3e6c8;
  --ink-2: #d9cba8;
  --ink-3: #b9a585;
  --felt: #1f5039;
  --dark-ink: #2a1206;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Montserrat, sans-serif; overflow-x: hidden; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
h1, h2 { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: clamp(16px, 4vw, 32px); padding-right: clamp(16px, 4vw, 32px); }
.section { border-top: 1px solid var(--line); }
.section-pad { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .22em; color: var(--gold); }
.h2 { font-family: Cinzel, serif; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.15; color: var(--ink); text-wrap: balance; }
.lede { margin: 0; font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--ink-2); text-wrap: pretty; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 72px); align-items: center; }
.stack { display: flex; flex-direction: column; }

/* Buttons */
.btn-gold { display: flex; align-items: center; border-radius: 12px; background: linear-gradient(180deg, #f0cf6a, #cfa23c); color: var(--dark-ink); font-weight: 700; box-shadow: 0 5px 0 #8a6420; }
.btn-gold:hover { color: var(--dark-ink); filter: brightness(1.05); }
.btn-gold.big { min-height: 56px; padding: 0 28px; font-family: Cinzel, serif; font-size: 17px; letter-spacing: .1em; }
.btn-gold.small { min-height: 44px; padding: 0 18px; border-radius: 10px; font-size: 14px; letter-spacing: .04em; box-shadow: 0 3px 0 #8a6420; }
.btn-ghost { min-height: 56px; display: flex; align-items: center; padding: 0 22px; border-radius: 12px; border: 1px solid var(--gold-edge); color: var(--gold); font-weight: 700; font-size: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(20, 10, 7, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 1; }
.brand img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold-edge); }
.brand span { font-family: Cinzel, serif; font-weight: 700; font-size: 19px; letter-spacing: .14em; color: var(--gold); }
.site-nav { display: none; gap: 28px; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.site-nav a { color: var(--ink-2); }
.site-nav a:hover { color: var(--gold-hi); }
@media (min-width: 760px) { .site-nav { display: flex; } }

/* Hero */
.hero { position: relative; background: radial-gradient(900px 520px at 70% 30%, #3a1c14 0%, transparent 70%), radial-gradient(700px 500px at 0% 100%, #132a1f 0%, transparent 70%); }
.hero .split { padding-top: clamp(40px, 8vw, 96px); padding-bottom: clamp(40px, 8vw, 96px); }
.hero-copy { gap: 24px; }
.hero h1 { font-family: Cinzel, serif; font-weight: 700; font-size: clamp(38px, 7vw, 68px); line-height: 1.05; color: var(--ink); text-wrap: balance; }
.hero .lede { max-width: 30ch; font-size: clamp(20px, 2.6vw, 25px); line-height: 1.4; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 13px; color: var(--ink-3); }
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual > div { position: relative; }
.hero-glow { position: absolute; width: min(420px, 90vw); aspect-ratio: 1; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .22; filter: blur(1px); }

/* Phone frame */
.phone { position: relative; width: 281px; height: 604px; border-radius: 44px; background: #0c0605; padding: 10px; box-shadow: 0 0 0 2px var(--line-gold), 0 0 0 4px #1a0d0a, 0 0 0 5px var(--gold-edge), 0 40px 80px rgba(0, 0, 0, .6); }
.phone-screen { width: 261px; height: 584px; border-radius: 34px; overflow: hidden; position: relative; }

/* Live match */
/* Screen = system bar, match header, the table (players + board) centred in the free space, status, home indicator. */
.match { background: linear-gradient(180deg, #2e160f 0%, #1e0f0a 60%, #132a1f 100%); display: flex; flex-direction: column; gap: 10px; padding: 0 10px 8px; }
.sysbar { flex: none; height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 18px; font-size: 11px; font-weight: 700; color: var(--ink); }
.island { width: 78px; height: 22px; border-radius: 12px; background: #000; }
.sys-icons { display: flex; align-items: flex-end; gap: 2px; width: 28px; justify-content: flex-end; }
.sys-icons i { display: block; width: 3px; background: var(--ink); border-radius: 1px; }
.sys-icons i:nth-child(1) { height: 4px; } .sys-icons i:nth-child(2) { height: 6px; } .sys-icons i:nth-child(3) { height: 8px; }
.match-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 4px 8px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--ink-3); }
.match-bar .back { font-size: 18px; line-height: 1; color: var(--gold); }
.match-bar .match-title { flex: 1; }
.match-bar .match-title b { color: var(--ink); }
.match-bar .pot { font-weight: 700; color: var(--gold); border: 1px solid var(--line-gold); border-radius: 999px; padding: 3px 8px; }
.table { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.home-bar { flex: none; align-self: center; width: 96px; height: 4px; border-radius: 2px; background: rgba(243, 230, 200, .55); }
.player { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--gold-edge); display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--gold); }
.player-name { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.player-name b { font-size: 12px; font-weight: 700; }
.player-name span { font-size: 10px; color: var(--ink-3); }
.clock { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line-gold); color: var(--ink-2); background: transparent; transition: background .2s, color .2s, border-color .2s; }
.clock.on { border-color: var(--gold); color: var(--dark-ink); background: var(--gold); }
.taken { display: flex; justify-content: center; gap: 3px; min-height: 12px; padding: 0 4px; }
.taken span { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--gold); }
.board-frame { padding: 5px; border-radius: 6px; background: #3b1a10; border: 2px solid var(--gold-edge); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.board { position: relative; width: 100%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.sq { background: #d9c49a; }
.sq.dark { background: var(--felt); }
.sq.dark.hit { background: #3d7a52; box-shadow: inset 0 0 0 2px rgba(245, 215, 122, .7); }
.sq.hit:not(.dark) { box-shadow: inset 0 0 0 2px rgba(245, 215, 122, .7); }
.piece { position: absolute; width: 12.5%; height: 12.5%; display: grid; place-items: center; z-index: 1; transition: left .45s cubic-bezier(.4, .1, .3, 1), top .45s cubic-bezier(.4, .1, .3, 1), opacity .35s, transform .35s; }
.piece.moved { z-index: 3; }
.piece.dead { opacity: 0; transform: scale(.3); }
.piece > span { width: 80%; height: 80%; border-radius: 50%; border: 1.5px solid var(--gold); box-shadow: 0 2px 0 rgba(0, 0, 0, .45); display: grid; place-items: center; }
.piece > span > span { width: 58%; height: 58%; border-radius: 50%; border: 1px solid; }
.red-disc { background: radial-gradient(circle at 50% 30%, #ff6a4e, #d0281f 55%, #8e1410); }
.black-disc { background: radial-gradient(circle at 50% 30%, #5a5a5a, #1d1d1d 55%, #050505); }
.piece .red-disc > span { border-color: rgba(255, 214, 170, .7); }
.piece .black-disc > span { border-color: rgba(230, 191, 85, .6); }
.status { min-height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line-gold); font-size: 12px; font-weight: 700; color: var(--ink-2); text-align: center; padding: 0 10px; }
.status.jump { color: var(--gold-hi); background: rgba(230, 191, 85, .14); }
.status.done { color: var(--dark-ink); background: var(--gold); }

/* How it plays */
.plays { background: linear-gradient(180deg, #1a0d0a, #140a07); }
.plays .wrap, .compete .wrap { gap: 40px; }
.head { gap: 12px; max-width: 620px; }
.ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 560px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .ways { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.way { background: linear-gradient(180deg, #1f5039, #163a2a); border: 1px solid #2f6a4e; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
/* Gold medallion: a light sweep crosses it on a loop, staggered card to card, with a soft glow pulse. */
.way-icon { position: relative; overflow: hidden; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1b8 0%, #f0cf6a 30%, #e6bf55 55%, #b8892e 100%); box-shadow: inset 0 0 0 1.5px rgba(255, 241, 184, .55), inset 0 -3px 6px rgba(122, 82, 20, .45), 0 0 0 rgba(245, 215, 122, 0); color: var(--dark-ink); display: grid; place-items: center; font-size: 22px; animation: medal-glow 3.2s ease-in-out infinite; }
.way-icon::after { content: ""; position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .85) 48%, rgba(255, 248, 220, .4) 54%, transparent 64%); transform: translateX(-120%); animation: medal-shine 3.2s ease-in-out infinite; pointer-events: none; }
.way:nth-child(2) .way-icon, .way:nth-child(2) .way-icon::after { animation-delay: .4s; }
.way:nth-child(3) .way-icon, .way:nth-child(3) .way-icon::after { animation-delay: .8s; }
.way:nth-child(4) .way-icon, .way:nth-child(4) .way-icon::after { animation-delay: 1.2s; }
@keyframes medal-shine { 0%, 15% { transform: translateX(-120%); } 50%, 100% { transform: translateX(120%); } }
@keyframes medal-glow { 0%, 100% { box-shadow: inset 0 0 0 1.5px rgba(255, 241, 184, .55), inset 0 -3px 6px rgba(122, 82, 20, .45), 0 0 0 rgba(245, 215, 122, 0); } 35% { box-shadow: inset 0 0 0 1.5px rgba(255, 241, 184, .8), inset 0 -3px 6px rgba(122, 82, 20, .45), 0 0 18px rgba(245, 215, 122, .55); } }
.way-title { font-family: Cinzel, serif; font-weight: 700; font-size: 20px; color: var(--ink); }
.way-body { font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.clocks { display: flex; flex-wrap: wrap; gap: 10px; }
.clocks span { display: flex; gap: 10px; align-items: baseline; border: 1px solid var(--line-gold); border-radius: 999px; padding: 10px 16px; font-size: 14px; color: var(--ink-3); }
.clocks b { color: var(--gold); }

/* Parlor */
.parlor { background: radial-gradient(800px 500px at 20% 50%, #3a1c14 0%, transparent 70%), var(--bg-2); }
.parlor-phone { display: flex; justify-content: center; }
/* The Parlor screen is drawn at real phone size (390×872) and scaled down into the mockup. */
.parlor-phone .parlor-app { width: 390px; height: 872px; overflow: hidden; transform: scale(.67); transform-origin: 0 0; }
.parlor-phone .parlor-app .page, .parlor-phone .parlor-app .col { min-height: 0; height: 100%; }
/* The mockup screen never scrolls, so header and tab bar sit in normal flow (Safari misplaces sticky inside a scaled box). */
.parlor-phone .parlor-app header, .parlor-phone .parlor-app .tabbar { position: relative; flex: none; }
.parlor-phone .parlor-app main { min-height: 0; overflow: hidden; }
.parlor-copy { gap: 22px; }
.parlor-copy .lede { font-size: 21px; line-height: 1.45; max-width: 34ch; }
.numbered > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.numbered .num { font-family: Cinzel, serif; font-weight: 700; font-size: 22px; color: var(--gold); }
.numbered b { font-size: 16px; color: var(--ink); }
.numbered .stack { gap: 4px; }
.numbered .stack span { font-size: 14px; line-height: 1.5; color: var(--ink-3); }

/* Compete */
.compete { background: var(--bg); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line-gold); border-radius: 16px; padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.card-title { font-family: Cinzel, serif; font-weight: 700; font-size: 22px; color: var(--gold); }
.card-body { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ladder { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.ladder > div { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 48px; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .2); font-size: 14px; }
.ladder .rank { font-family: Cinzel, serif; font-weight: 700; }
.ladder .name { font-weight: 600; }
.ladder .elo { font-weight: 700; }
.brackets { gap: 10px; }
.brackets > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: rgba(0, 0, 0, .2); }
.brackets b { font-size: 14px; }
.brackets .meta { font-size: 12px; color: var(--ink-3); }
.brackets .stack { gap: 2px; }
.tag { font-size: 10px; font-weight: 700; letter-spacing: .1em; padding: 5px 9px; border-radius: 999px; border: 1px solid currentColor; }

/* Fair play */
.fair { background: var(--felt); }
.fair .wrap { padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
.fair .stack { gap: 6px; }
.fair b { font-family: Cinzel, serif; font-size: 18px; color: var(--gold-hi); }
.fair span { font-size: 14px; line-height: 1.5; color: #e8dcc0; }

/* Membership */
.membership .wrap { padding-top: clamp(56px, 8vw, 88px); padding-bottom: clamp(56px, 8vw, 88px); }
.member-card { border: 2px solid var(--gold-edge); border-radius: 18px; padding: clamp(24px, 5vw, 44px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; align-items: center; background: linear-gradient(135deg, #2a1511, #1a0d0a); }
.member-card > .stack:first-child { gap: 12px; }
.price { font-family: Cinzel, serif; font-weight: 700; font-size: clamp(34px, 5vw, 48px); color: var(--ink); }
.price small { font-size: 18px; color: var(--ink-3); }
.perks { gap: 10px; }
.perks div { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--ink); }
.perks div::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }

/* Final CTA */
.final { background: radial-gradient(700px 400px at 50% 100%, #3a1c14 0%, transparent 70%), var(--bg); }
.final .wrap { max-width: 720px; padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(64px, 10vw, 120px); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.final img { width: clamp(96px, 16vw, 140px); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 3px var(--gold-edge), 0 0 60px 12px rgba(217, 178, 74, .25); }
.final .h2 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; }
.final .btn-gold.big { padding: 0 32px; }

/* Footer */
.site-footer .wrap { padding-top: 24px; padding-bottom: 24px; display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.site-footer .wrap { align-items: center; row-gap: 4px; }
.site-footer a { min-height: 44px; display: flex; align-items: center; }
.site-footer .note { margin-left: auto; }
.socials { display: flex; gap: 8px; }
.socials a { min-width: 44px; justify-content: center; border: 1px solid var(--line-gold); border-radius: 50%; width: 44px; height: 44px; color: var(--gold); transition: color .2s, border-color .2s, background .2s; }
.socials a:hover { color: var(--dark-ink); background: var(--gold); border-color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .piece, .clock { transition: none; }
  .way-icon, .way-icon::after { animation: none; }
}
