/* PocketCue website — the game's own look (docs/DESIGN.md): dark felt,
   gold and cream toys with an ink outline and a soft drop edge. */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-display: swap; src: url(fonts/inter-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 900; font-display: swap; src: url(fonts/inter-latin-900-normal.woff2) format('woff2'); }

:root {
  --felt-top: #1f4d41;
  --felt-bottom: #0e3529;
  --felt-deep: #0a2a21;
  --cream: #f5ebdd;
  --tile: #ebdfcf;
  --ink: #1d1c19;
  --ink-soft: #5d574e;
  --on-dark: #f5efe4;
  --on-dark-soft: rgba(245, 239, 228, 0.78);
  --gold: #f2b33a;
  --gold-dark: #d99a1f;
  --accent: #43876a;
  --accent-dark: #336b53;
  --mint: #5fc39a;
  --purple: #6b3fa0;
  --blue: #5bb7d5;
  --red: #e2604f;
  --carom: #3b5e7d;
  --russian: #7a4a3a;
  --snooker: #6b4e2a;
  --radius: 22px;
  --edge: 0 4px 0 rgba(29, 28, 25, 0.4);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', Inter, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--on-dark);
  background: radial-gradient(120% 70% at 50% 0%, var(--felt-top), var(--felt-bottom) 60%, var(--felt-deep));
  background-color: var(--felt-bottom);
  min-height: 100vh;
  line-height: 1.5;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); }
a:hover { color: #ffd27a; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ---------- scrollbars: the game's gold pill (style.css .scroll-thumb) on dark felt ----------
   Chrome and Safari draw it from the ::-webkit-scrollbar parts; setting
   scrollbar-width or scrollbar-color would make Chrome ignore them, so those
   are only for Firefox. Phones show their own overlay bar either way. */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: var(--felt-deep); }
::-webkit-scrollbar-thumb {
  background: var(--gold) padding-box;
  border: 4px solid transparent;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(29, 28, 25, 0.55);
}
::-webkit-scrollbar-thumb:hover { background-color: #ffd27a; }
::-webkit-scrollbar-thumb:active { background-color: var(--gold-dark); }
/* the screenshot strip: a thin pill on the page's own felt, no track */
.strip::-webkit-scrollbar { height: 10px; }
.strip::-webkit-scrollbar-track { background: transparent; }
.strip::-webkit-scrollbar-thumb { border-width: 2px; }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--gold) var(--felt-deep); }
  .strip { scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
}

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 53, 41, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: -0.3px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 2px var(--ink); }
.brand b { color: var(--gold); font-weight: 900; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--on-dark-soft); text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 12px; border-radius: 12px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--on-dark); background: rgba(255, 255, 255, 0.07); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

/* ---------- toy buttons ---------- */
.toy {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  border: 2px solid var(--ink); border-radius: var(--radius);
  font: 800 18px/1 var(--font); text-decoration: none;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14), var(--edge);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.toy:active { transform: translateY(2px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14), 0 2px 0 rgba(29, 28, 25, 0.4); }
.toy svg { width: 26px; height: 26px; }
.toy.gold { background: var(--gold); color: var(--ink); }
.toy.gold:hover { background: #f6c055; color: var(--ink); }
.toy.ghost {
  border: 0; background: rgba(0, 0, 0, 0.25); color: var(--on-dark);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16), 0 3px 0 rgba(0, 0, 0, 0.22);
}
.toy.ghost:hover { background: rgba(0, 0, 0, 0.35); color: var(--on-dark); }
.toy small { display: block; font-size: 12px; font-weight: 700; opacity: 0.8; letter-spacing: 0.2px; }
.toy .stack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.hero::before {
  content: ''; position: absolute; inset: -40% -20% auto; height: 140%;
  background: repeating-conic-gradient(from 0deg at 50% 38%, rgba(255, 255, 255, 0.045) 0deg 8deg, transparent 8deg 22deg);
  mask-image: radial-gradient(closest-side at 50% 38%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(closest-side at 50% 38%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-logo { width: min(420px, 100%); height: auto; margin: 0 0 6px -12px; font-family: var(--font); }
.hero h1 { margin: 0 0 12px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; font-weight: 900; letter-spacing: -1px; }
.hero p.lead { margin: 0 0 26px; font-size: 19px; color: var(--on-dark-soft); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { margin-top: 14px; font-size: 14px; color: var(--on-dark-soft); }
.phones { position: relative; height: 580px; }
/* A phone frame around a full-screen screenshot (440 × 956 points, taken at
   3×). The frame takes its height from the screenshot, so the bezel is the
   same thin width on every side — never extra room at the bottom. */
.phone {
  position: absolute; width: 270px;
  border-radius: 40px; padding: 9px; background: #111;
  box-shadow: 0 0 0 2px #2a2a2a, 0 30px 60px rgba(0, 0, 0, 0.45);
}
.phone img { width: 100%; height: auto; aspect-ratio: 440 / 956; border-radius: 32px; }
.phones .p1 { left: 4%; top: 30px; transform: rotate(-6deg); z-index: 1; }
.phones .p2 { right: 4%; top: 0; transform: rotate(5deg); z-index: 2; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { margin: 0 auto 6px; }
  .hero p.lead { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .phones { height: 470px; max-width: 480px; margin: 8px auto 0; width: 100%; }
  .phone { width: 216px; border-radius: 32px; padding: 7px; }
  .phone img { border-radius: 26px; }
}
@media (max-width: 420px) {
  .phones { height: 400px; }
  .phone { width: 180px; }
  .phones .p1 { left: 0; }
  .phones .p2 { right: 0; }
}

/* ---------- sections ---------- */
section { padding: 56px 0; }
.eyebrow { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--ink); background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
h2 { margin: 0 0 10px; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.12; font-weight: 900; letter-spacing: -0.8px; }
.sub { margin: 0 0 30px; color: var(--on-dark-soft); font-size: 18px; max-width: 40em; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

/* chapters */
.chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chapter {
  border-radius: 24px; overflow: hidden; background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column;
}
.chapter .shot { aspect-ratio: 4 / 5; overflow: hidden; }
.chapter .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.chapter .body { padding: 16px 18px 20px; }
.chapter h3 { margin: 0 0 2px; font-size: 22px; font-weight: 900; }
.chapter .count { font-size: 13px; font-weight: 800; color: var(--gold); letter-spacing: 0.4px; text-transform: uppercase; }
.chapter p { margin: 8px 0 0; color: var(--on-dark-soft); font-size: 15px; }
.chapter.carom { background: rgba(59, 94, 125, 0.35); }
.chapter.russian { background: rgba(122, 74, 58, 0.35); }
.chapter.snooker { background: rgba(107, 78, 42, 0.35); }
@media (max-width: 980px) { .chapters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .chapters { grid-template-columns: 1fr; } .chapter .shot { aspect-ratio: 16 / 11; } }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  padding: 22px; border-radius: 24px; background: var(--cream); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: var(--edge);
}
.feature .ic { width: 52px; height: 52px; margin-bottom: 10px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; font-weight: 900; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; font-weight: 500; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* screenshot strip */
.strip { display: flex; gap: 18px; overflow-x: auto; padding: 8px 16px 24px; scroll-snap-type: x mandatory; }
.strip .phone { position: relative; flex: 0 0 220px; width: 220px; border-radius: 32px; padding: 7px; scroll-snap-align: center; }
.strip .phone img { border-radius: 26px; }
@media (min-width: 1200px) { .strip { justify-content: center; } }

/* final call */
.final {
  margin: 0 auto; max-width: 760px; text-align: center; padding: 40px 24px;
  border-radius: 32px; background: rgba(0, 0, 0, 0.25); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.final img.icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 16px; box-shadow: 0 0 0 2px var(--ink), 0 6px 0 rgba(0, 0, 0, 0.3); }

/* ---------- document pages (privacy, support) ---------- */
.doc { padding: 40px 0 64px; }
.doc .card {
  max-width: 820px; margin: 0 auto; padding: clamp(22px, 5vw, 48px);
  background: var(--cream); color: var(--ink); border: 2px solid var(--ink);
  border-radius: 28px; box-shadow: 0 6px 0 rgba(29, 28, 25, 0.4);
}
.doc h1 { margin: 0 0 6px; font-size: clamp(30px, 4vw, 40px); font-weight: 900; letter-spacing: -0.8px; line-height: 1.1; }
.doc .meta { margin: 0 0 24px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.doc h2 { font-size: 22px; letter-spacing: -0.3px; margin: 32px 0 8px; }
.doc h3 { font-size: 17px; margin: 20px 0 6px; }
.doc p, .doc li { font-size: 16px; color: #3a3630; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--accent-dark); font-weight: 700; }
.doc a:hover { color: var(--accent); }
.doc .summary { margin: 0 0 8px; padding: 16px 18px; border-radius: 18px; background: var(--tile); border: 2px solid rgba(29, 28, 25, 0.12); }
.doc .summary p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid rgba(29, 28, 25, 0.14); }
.doc th { font-weight: 800; }
@media (max-width: 560px) { .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; } .doc thead { display: none; } .doc td { border: 0; padding: 4px 0; } .doc tr { padding: 10px 0; border-bottom: 1px solid rgba(29, 28, 25, 0.14); } .doc td:first-child { font-weight: 800; } }

.faq details { border-bottom: 1px solid rgba(29, 28, 25, 0.14); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 12px 36px 12px 0; position: relative; font-weight: 800; font-size: 17px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 8px; font-size: 24px; font-weight: 900; color: var(--accent); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 12px; }
.contact-box { margin-top: 28px; padding: 20px; border-radius: 20px; background: var(--tile); border: 2px solid rgba(29, 28, 25, 0.12); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.contact-box p { margin: 0; }
.toy.green { background: var(--accent); color: var(--on-dark); }
.toy.green:hover { background: #4b9676; color: var(--on-dark); }

/* ---------- footer ---------- */
footer { padding: 28px 0 40px; border-top: 1px solid rgba(255, 255, 255, 0.07); color: var(--on-dark-soft); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer a { color: var(--on-dark-soft); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--on-dark); }
