@font-face { font-family: 'Alfa Slab One'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/alfa-slab-one-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/barlow-500.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-700.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-700.woff2) format('woff2'); }
/* Pocket Golf website. Colors live in :root so the final game palette swaps in one place. */
:root {
  /* From the Pocket Golf brand kit (palette.json) */
  --evergreen: #123b2c;
  --evergreen-soft: #3d6656;
  --fairway: #2f9e55;
  --fairway-dark: #1f7a3f;
  --stripe: #3cb062;
  --flag: #ffc83a;
  --flag-dark: #c8901a;
  --hazard: #ff6a4d;
  --pond: #2f9fd8;
  --bunker: #f1d18e;
  --rail: #9a6440;
  --paper: #fffdf6;
  --sky: #dff2ee;
  --line: #cfe3da;
  --radius: 22px;
  --display: "Alfa Slab One", Georgia, serif;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --label: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  /* old names used below */
  --ink: var(--evergreen); --ink-soft: var(--evergreen-soft);
  --turf: var(--fairway); --turf-deep: var(--evergreen); --turf-light: var(--stripe);
  --sun: var(--flag);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 500 17px/1.6 var(--font); overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--turf-deep); text-underline-offset: 3px; }
a:hover { color: var(--flag); }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.3px; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand span { white-space: nowrap; }
.brand b { color: var(--fairway); font-weight: 400; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 650; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sky); color: var(--ink); }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #d8f3e2 0, transparent 60%), linear-gradient(180deg, var(--sky), var(--paper)); padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-family: var(--label); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--turf-deep); background: #d7f1e0; padding: 5px 12px; border-radius: 999px; }
h1, h2, .brand span { font-family: var(--display); font-weight: 400; }
h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.05; letter-spacing: -.5px; margin: 18px 0 16px; }
h1 em { font-style: normal; color: var(--turf); }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -.3px; margin: 12px 0; }
h3 { font-size: 20px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.2px; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { font-family: var(--font); display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 16px; font-weight: 800; text-decoration: none; font-size: 17px; transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: repeating-linear-gradient(115deg, var(--fairway) 0 22px, var(--stripe) 22px 44px); color: #fff; box-shadow: 0 5px 0 var(--fairway-dark); text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.btn.primary:hover { color: #fff; }
.btn.primary small { display: block; font-size: 11px; font-weight: 600; opacity: .75; line-height: 1; }
.btn.primary .stack { line-height: 1.15; }
.btn.soft { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.note { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }

/* Hero phones: screens from the game */
.phones { position: relative; display: flex; justify-content: center; gap: 0; min-height: 520px; }
.shot { width: 260px; filter: drop-shadow(0 30px 40px rgba(18, 59, 44, .3)); }
.shot img { width: 100%; height: auto; }
.phones .shot:first-child { transform: rotate(-5deg) translate(30px, 30px); z-index: 1; }
.phones .shot:last-child { transform: rotate(4deg) translate(-30px, -6px); z-index: 2; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gallery figure { margin: 0; text-align: center; }
.gallery figcaption { font: 700 14px var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Sections */
section { padding: 72px 0; }
.center { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.sub { color: var(--ink-soft); font-size: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--flag); border: 2px dashed var(--flag-dark); font: 700 20px var(--label); margin-bottom: 14px; }
.step p, .feature p { margin: 0; color: var(--ink-soft); }
.band { background: var(--evergreen); color: #fff; }
.band .sub, .band .feature p { color: #cdebd8; }
.band .eyebrow { background: rgba(255,255,255,.12); color: var(--turf-light); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 24px; }
.feature .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.1); margin-bottom: 14px; }
.feature .ic svg { width: 26px; height: 26px; fill: none; stroke: var(--flag); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.final { text-align: center; background: linear-gradient(160deg, #fff3cf, var(--sky)); border-radius: 32px; padding: 56px 24px; }
.final .badge { width: 88px; height: 88px; margin: 0 auto 8px; }

/* Text pages (privacy, terms, support) */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 6px; }
.doc .meta { color: var(--ink-soft); margin: 0 0 28px; }
.doc h2 { font-size: 24px; margin-top: 40px; letter-spacing: -.3px; }
.doc .summary { background: var(--sky); border-left: 5px solid var(--turf); border-radius: 14px; padding: 18px 20px; }
.doc li { margin: 8px 0; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--sky); font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; }
details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin: 12px 0; }
summary { cursor: pointer; font-weight: 750; padding: 14px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--turf); font-weight: 900; }
details[open] summary::after { content: "–"; }
details p { margin-top: 0; color: var(--ink-soft); }
.contact { margin-top: 36px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; text-align: center; }
.contact .btn { background: var(--sun); color: var(--ink); margin-top: 8px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--ink-soft); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--ink-soft); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .phones { min-height: 0; }
  .shot { width: min(210px, 46vw); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps, .features { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .nav a { padding: 8px 8px; font-size: 15px; }
  .nav a[href="/privacy_policy"] { display: none; }
  .brand { font-size: 18px; gap: 8px; }
  .brand svg { width: 30px; height: 30px; }
}

/* Guide links and guide pages */
a.guide { text-decoration: none; color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
a.guide:hover { transform: translateY(-3px); border-color: var(--fairway); color: var(--ink); }
.guides .step::before { content: "⛳"; counter-increment: none; background: var(--sky); border: 0; font-size: 18px; }
.crumbs { font: 600 15px var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.crumbs a { color: var(--ink-soft); }
.doc .lead { margin-top: 0; }
footer nav[aria-label="Guides"] { width: 100%; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.mark { border-radius: 24%; }
.brand .mark { width: 36px; height: 36px; flex-shrink: 0; }
.final .badge .mark { width: 88px; height: 88px; box-shadow: 0 10px 24px -8px rgba(18, 59, 44, .4); }

/* Course pages */
.holes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0; }
.holes figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px; text-align: center; }
.holes figcaption { font-size: 15px; color: var(--ink-soft); margin-top: 8px; line-height: 1.35; }
svg.hole { width: 100%; height: auto; max-height: 340px; border-radius: 12px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; font-weight: 700; }
.doc.wide .wrap { max-width: 1100px; }
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.course-card { display: block; text-decoration: none; color: var(--ink); background: linear-gradient(180deg, var(--sky), var(--sky2)); border-radius: 20px; padding: 12px 14px 16px; transition: transform .15s ease; }
.course-card:hover { transform: translateY(-3px); color: var(--ink); }
.course-card svg.hole { height: 150px; background: transparent; }
.course-card .num { display: inline-block; margin-top: 10px; font: 700 13px var(--label); letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.85); padding: 2px 8px; border-radius: 999px; }
.course-card h3 { margin: 6px 0 2px; font-family: var(--display); font-weight: 400; background: rgba(255,255,255,.85); display: inline-block; padding: 0 8px; border-radius: 8px; }
.course-card p { margin: 4px 0 0; font-size: 15px; background: rgba(255,255,255,.85); display: inline-block; padding: 0 8px; border-radius: 8px; }
@media (max-width: 860px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .holes { grid-template-columns: 1fr; }
  svg.hole { max-height: 300px; }
}
