/* TourRound marketing site - PRD section 10 visual system.
   Navy foundation, aqua actions, coral emphasis, sand surfaces.
   Green is not a brand color. */
:root {
  --navy-950: #071827;
  --navy-800: #123047;
  --navy-700: #1b4060;
  --aqua-700: #09736f;
  --aqua-600: #0a7f7c;
  --aqua-400: #35c7be;
  --aqua-100: #bfe6e4;
  --aqua-50: #f2fbfa;
  --coral-500: #ff6b5e;
  --coral-600: #c23f33;
  --sand-50: #faf8f2;
  --sand-100: #f3f0e7;
  --sand-200: #e9e3d5;
  --sand-300: #d9d2bf;
  --slate-900: #17212b;
  --slate-600: #5b6875;
  --score-green: #3dbb78;
  --score-orange: #f28c28;
  --radius: 12px;
  --font-display: "Manrope", "Noto Sans Thai", system-ui, sans-serif;
  --font-sans: "Inter", "Noto Sans Thai", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand-50);
  color: var(--slate-900);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
html[lang="th"] body { line-height: 1.7; }
html[lang="th"] .eyebrow, html[lang="th"] .tag { letter-spacing: 0.01em; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--aqua-400); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.chrome { position: relative; z-index: 2; }
.topbar { background: rgba(0,0,0,0.28); border-bottom: 1px solid rgba(255,255,255,0.08); }
.topbar .wrap { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 22px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #e3edf3; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar svg { color: var(--aqua-400); flex: none; }
.top { position: relative; }
.top .wrap { display: flex; align-items: center; gap: 12px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--aqua-400); box-shadow: 0 0 0 4px rgba(53, 199, 190, 0.25); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; color: #cfdde7; text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 10px 12px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.lang { margin-left: 8px; display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; padding: 2px; }
.lang button { font: inherit; font-size: 13px; font-weight: 700; color: #cfdde7; background: transparent; border: 0; border-radius: 999px; padding: 0 12px; min-height: 44px; min-width: 44px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--navy-950); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; padding: 0 0 96px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(900px 480px at 85% 10%, rgba(53, 199, 190, 0.16), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(255, 107, 94, 0.10), transparent 60%); }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.2; pointer-events: none; }
.hero-grid { padding-top: 64px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--aqua-400); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); line-height: 1.08; font-weight: 800; margin-top: 16px; }
.lead { font-size: 1.15rem; color: #b9cdd9; max-width: 33rem; margin: 22px 0 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--aqua-600); color: #fff; }
.btn-primary:hover { background: var(--aqua-700); }
/* Hero Play Now: a few small hops plus a soft glow ring, then a pause. Transform and box-shadow only, so no layout shift. */
@keyframes btn-attn-hop {
  0%, 24%, 100% { transform: translateY(0); animation-timing-function: ease-out; }
  4% { transform: translateY(-9px); animation-timing-function: ease-in; }
  8% { transform: translateY(0); animation-timing-function: ease-out; }
  12% { transform: translateY(-5px); animation-timing-function: ease-in; }
  16% { transform: translateY(0); animation-timing-function: ease-out; }
  20% { transform: translateY(-2px); animation-timing-function: ease-in; }
}
@keyframes btn-attn-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(53, 199, 190, 0); }
  2% { box-shadow: 0 0 0 0 rgba(53, 199, 190, 0.55); }
  24% { box-shadow: 0 0 0 12px rgba(53, 199, 190, 0); }
}
.btn-attn { animation: btn-attn-hop 5s 1.5s infinite, btn-attn-ring 5s 1.5s infinite; }
.btn-attn:hover, .btn-attn:focus-visible { animation: none; }
@media (prefers-reduced-motion: reduce) { .btn-attn { animation: none; } }
/* Golf ball orbiting the hero Play Now button. Decorative: the ball rides a rounded-rectangle motion path just outside the button
   (offset-distance and scale only, so no layout shift) and is hidden where motion paths or shapes are unsupported. */
.play-wrap { position: relative; display: inline-flex; }
.play-ball { display: none; }
@supports (offset-path: inset(0 round 8px)) {
  @keyframes ball-orbit {
    from { offset-distance: 0%; }
    to { offset-distance: 100%; }
  }
  @keyframes ball-depth {
    0%, 100% { scale: 0.8; }
    50% { scale: 1.15; }
  }
  .play-ball {
    display: block; position: absolute; top: 0; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; pointer-events: none; z-index: 1;
    background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.95) 0 18%, transparent 19%),
      radial-gradient(circle, rgba(15, 35, 55, 0.22) 0 0.7px, transparent 0.9px) 0 0 / 4px 4px,
      radial-gradient(circle, rgba(15, 35, 55, 0.22) 0 0.7px, transparent 0.9px) 2px 2px / 4px 4px,
      radial-gradient(circle at 36% 32%, #fff, #e4ebf0 72%, #c3cfd8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.25);
    offset-path: inset(-12px round 24px); offset-rotate: 0deg; offset-distance: 0%;
    animation: ball-orbit 4.5s linear infinite, ball-depth 2.25s ease-in-out infinite;
  }
  .play-wrap:hover .play-ball, .play-wrap:has(.btn-attn:focus-visible) .play-ball { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .play-ball { display: none !important; } }
.btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Phone mock */
.stage { display: grid; place-items: start center; position: relative; min-height: 500px; padding-top: 8px; }
.phone { width: min(300px, 78vw); background: #fff; color: var(--slate-900); border-radius: 34px; padding: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12); transform: rotate(-3deg); }
.screen { background: var(--sand-50); border-radius: 24px; overflow: hidden; border: 1px solid var(--sand-200); }
.scr-head { background: var(--navy-950); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.scr-head strong { font-family: var(--font-display); font-size: 15px; }
.scr-head small { color: #9fb6c4; font-size: 11.5px; display: block; }
.queue { font-size: 11px; font-weight: 600; background: rgba(53, 199, 190, 0.18); color: var(--aqua-400); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.hole { padding: 16px; }
.hole h3 { font-size: 13px; color: var(--slate-600); font-weight: 600; letter-spacing: 0; }
.hole .big { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.hole .big b { font-family: var(--font-display); font-size: 38px; line-height: 1; }
.hole .big span { font-size: 13px; color: var(--slate-600); }
.pad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 14px; }
.pad span { display: grid; place-items: center; min-height: 40px; border-radius: 8px; border: 1px solid var(--sand-200); background: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.pad span.on { background: var(--aqua-600); border-color: var(--aqua-600); color: #fff; }
.card-row { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; padding: 0 16px 16px; }
.card-row i { font-style: normal; font-size: 12px; font-weight: 700; display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 0; line-height: 1; font-variant-numeric: tabular-nums; border: 1.5px solid transparent; background: #fff; border-radius: 4px; }
.card-row i.birdie { border-radius: 50%; border-color: var(--score-green); }
.card-row i.bogey { border-color: var(--score-orange); border-radius: 2px; }
.card-row i.eagle { border-radius: 50%; border-color: var(--score-green); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--score-green); }
.board { position: absolute; right: -4px; bottom: 30px; width: 232px; background: #fff; color: var(--slate-900); border: 1px solid var(--sand-200); border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); padding: 12px 14px; transform: rotate(2deg); }
.board h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-600); font-weight: 700; display: flex; justify-content: space-between; }
.board ol { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; }
.board li { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--sand-100); font-variant-numeric: tabular-nums; }
.board li:first-child { border-top: 0; }
.board .mv { font-size: 11px; font-weight: 700; color: var(--slate-600); }
.board .up { color: var(--aqua-700); }
.board .dn { color: var(--coral-600); }
.board .tot { font-weight: 800; }

/* Sections */
section { padding: 88px 0; }
.head { max-width: 40rem; }
.head .eyebrow { color: var(--aqua-700); }
.head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.15; font-weight: 800; margin-top: 12px; }
.head p { color: var(--slate-600); font-size: 1.05rem; margin: 14px 0 0; }
.grid { display: grid; gap: 16px; margin-top: 44px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature { background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius); padding: 26px; }
.feature .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--aqua-50); border: 1px solid var(--aqua-100); display: grid; place-items: center; margin-bottom: 18px; color: var(--aqua-600); }
.feature h3 { font-size: 1.05rem; font-weight: 700; }
.feature h3 .tag { margin-inline-start: 8px; white-space: nowrap; }
.feature p { margin: 8px 0 0; font-size: 0.95rem; color: var(--slate-600); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: s; position: relative; padding: 26px 26px 26px 26px; border-top: 3px solid var(--aqua-400); background: #fff; border-radius: 0 0 var(--radius) var(--radius); border-inline: 1px solid var(--sand-200); border-bottom: 1px solid var(--sand-200); }
.steps li::before { content: "0" counter(s); font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--coral-600); letter-spacing: 0.08em; }
.steps h3 { font-size: 1.1rem; margin-top: 8px; }
.steps p { margin: 8px 0 0; font-size: 0.95rem; color: var(--slate-600); }

.band { background: var(--sand-100); border-block: 1px solid var(--sand-200); }
.formats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; border: 1px solid var(--sand-300); font-weight: 600; font-size: 15px; }
.pill.soon { background: transparent; border-style: dashed; color: var(--slate-600); font-weight: 500; }
.tag { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--coral-600); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--slate-900); }
.checks svg { margin-top: 3px; color: var(--aqua-600); }
.checks span { color: var(--slate-600); display: block; font-size: 0.95rem; }
.checks b { font-weight: 600; }
.panel { background: var(--navy-950); color: #fff; border-radius: 16px; padding: 32px; position: relative; overflow: hidden; }
.panel .contours { opacity: 0.14; }
.panel h3 { font-size: 1.25rem; font-weight: 700; position: relative; }
.facts { margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; position: relative; }
.facts dt { font-size: 12px; color: #9fb6c4; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.facts dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }

.final { background: var(--navy-950); color: #fff; position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.final h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; line-height: 1.15; max-width: 32rem; margin: 0 auto; }
.final p { color: #b9cdd9; max-width: 32rem; margin: 16px auto 0; }
.final .cta { justify-content: center; }

footer { padding: 32px 0 40px; font-size: 13.5px; color: var(--slate-600); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer a { color: var(--aqua-600); font-weight: 600; text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 920px) {
  .hero { padding-bottom: 72px; }
  .hero-grid { padding-top: 40px; }
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .g3, .steps { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 520px; }
  section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .wrap { width: min(1120px, 100% - 32px); }
  .nav .hide-sm { display: none; }
  .board { right: 0; width: 236px; }
  .facts { grid-template-columns: 1fr; }
}
@media (min-width: 601px) and (max-width: 860px) {
  .nav a { padding: 10px 8px; }
  .nav .btn-sm:not(.btn-play) { display: none; }
}
@media (min-width: 601px) and (max-width: 680px) {
  .nav a { padding: 10px 5px; font-size: 13.5px; }
  .nav { gap: 2px; }
  .lang { margin-left: 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.btn-sm { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin-left: 4px; border-radius: 10px; background: #aa372d; color: #fff; font-size: 14.5px; font-weight: 700; text-decoration: none; }
.btn-sm:hover { background: #a8352b; }
.nav .btn-play { background: var(--aqua-600); color: #fff; white-space: nowrap; }
.nav .btn-play:hover { background: var(--aqua-700); color: #fff; }
.final .btn svg { margin-right: 10px; flex: none; }
.final .btn { text-align: left; }
.fcontact { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.fcontact a { color: var(--slate-900); }
@media (max-width: 600px) {
  .topbar .wrap { justify-content: center; gap: 0 18px; }
  .topbar a { font-size: 12.5px; }
  .btn-sm { padding: 0 12px; font-size: 13.5px; }
  .final .cta .btn { width: 100%; justify-content: center; }
}

footer a { display: inline-flex; align-items: center; min-height: 44px; }
.fcontact { gap: 0 22px; }
.top .wrap { padding-block: 10px; flex-wrap: wrap; }
@media (max-width: 480px) {
  .nav .btn-sm:not(.btn-play) { display: none; }
  .nav .lang { margin-left: 0; }
  .nav .btn-play { margin-left: 0; }
  .lang button { padding: 0 8px; }
  .brand { font-size: 18px; }
  /* Two-row phone header (docs/SITE-SCROLL-PLAN.md): brand and language toggle on row 1, a full-width Play Now on row 2.
     The nav box dissolves so its children wrap with the brand; no breakpoint hinges on how wide English or Thai happens to be. */
  .top .wrap { row-gap: 6px; }
  .nav { display: contents; }
  .brand { order: 1; flex: 1 1 auto; min-width: 0; }
  .nav .lang { order: 2; flex: none; }
  .nav .btn-play { order: 3; flex: 1 1 100%; justify-content: center; }
  .hero { padding-bottom: 64px; }
}
@media (max-width: 360px) {
  .topbar .wrap { justify-content: flex-start; }
  .hero { padding-bottom: 64px; }
  h1 { font-size: 2.05rem; }
  .btn { padding: 0 18px; }
  .cta .btn { width: 100%; justify-content: center; }
}

.board li span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
footer .wrap { gap: 0 24px; }
@media (max-width: 600px) { footer { padding: 24px 0 28px; } footer .wrap > span:first-child { margin-bottom: 4px; } }
@media (max-width: 920px) {
  .stage { width: 100%; max-width: 420px; margin-inline: auto; }
}
@media (min-width: 601px) and (max-width: 920px) {
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .steps li { padding: 20px 18px; }
}

/* Mobile hero: headline, Play Now, then scorecard. Lead copy is dropped. */
@media (max-width: 600px) {
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 32px; }
  .hero-grid > div:first-child { display: contents; }
  .hero .eyebrow { order: 1; }
  .hero h1 { order: 2; }
  .hero .lead { display: none; }
  .hero .cta { order: 3; margin-top: 28px; }
  .hero .cta .play-wrap { display: flex; width: 100%; }
  .hero .cta .btn { width: 100%; justify-content: center; }
  .hero .play-ball { offset-path: inset(-4px round 24px); }
  .hero .stage { order: 4; margin-top: 40px; min-height: 500px; }
  .board { bottom: 0; }
}

/* Inline links inside the closing copy, and the 404 page. */
.final p a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.final p a:hover { color: var(--aqua-400); }
.notfound .hero { padding-bottom: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.notfound-body { flex: 1; display: flex; align-items: center; padding-block: 64px 96px; }
.notfound-body h1 { margin-top: 16px; }
.notfound-body .lead { margin-top: 18px; }
.notfound .hero .lead { display: block; }
.notfound .hero .cta { margin-top: 32px; }
