/* Worldwide Golf – shared site styles. No build step, no external requests.
   Fonts: system stacks only (no Google Fonts). Loading a font from Google's CDN would send
   visitors' IP addresses to Google, and a German court ruled that unlawful without consent
   (LG München I, 3 O 17493/20). If you want a webfont, self-host it in site/fonts/. */

:root {
  --green: #1E4D35;
  --green-deep: #143825;
  --green-soft: #2E6B4C;
  --paper: #F7F3EA;
  --sand: #E8DCC3;
  --sand-deep: #D9C8A4;
  --gold: #E3B23C;
  --ink: #1B2420;
  --ink-soft: #46524C;   /* 7.4:1 on paper */
  --white: #FFFFFF;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 56, 37, .08), 0 8px 28px rgba(20, 56, 37, .10);
  --max: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
}
img, video, svg { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); color: var(--green-deep); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 38em; }
.eyebrow { font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--green-soft); margin: 0 0 .9rem; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--green); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 10; }
.skip:focus { left: .5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(247, 243, 234, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(30, 77, 53, .12); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; min-height: 64px; padding-block: .35rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--green-deep); font: 700 1.15rem/1 var(--serif); }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.brand { white-space: nowrap; }
.nav { display: flex; gap: .25rem; flex-wrap: nowrap; justify-content: flex-end; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: .5rem .7rem; border-radius: 999px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sand); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .nav a { padding: .5rem .55rem; font-size: .9rem; } }
@media (max-width: 360px) { .brand { font-size: 1rem; } .brand img { width: 30px; height: 30px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.3rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--sand); }

/* App Store badge placeholder (replace with Apple's official badge artwork) */
.store-badge { display: inline-flex; align-items: center; gap: .7rem; min-height: 54px; padding: .55rem 1.15rem .55rem .95rem; background: #000; color: #fff; border-radius: 12px; text-decoration: none; line-height: 1.1; border: 1px solid #A6A6A6; }
.store-badge svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.store-badge small { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .02em; }
.store-badge strong { display: block; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.store-badge:hover { background: #1a1a1a; }
.store-note { font-size: .9rem; color: var(--ink-soft); margin-top: .6rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 3.5rem 0 4rem; background:
  radial-gradient(1200px 500px at 85% -10%, rgba(227, 178, 60, .22), transparent 60%),
  linear-gradient(180deg, var(--paper) 0%, var(--paper) 55%, var(--sand) 100%); }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } .hero { padding: 5rem 0 5.5rem; } }
.hero h1 span { color: var(--green-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.6rem; }
.hero-art { position: relative; justify-self: center; }
.hero-art::before { content: ""; position: absolute; inset: 8% -18% -6% -18%; background: radial-gradient(closest-side, rgba(30, 77, 53, .18), transparent); z-index: 0; }

/* Phone frame + placeholders */
.phone { position: relative; z-index: 1; width: min(300px, 74vw); aspect-ratio: 1320 / 2868; border-radius: 44px; padding: 10px; background: #0F1A14; box-shadow: 0 30px 60px rgba(20, 56, 37, .28), inset 0 0 0 2px #2A3A31; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: linear-gradient(170deg, #8CC3DF 0%, #CFE6EE 38%, #6FA35B 39%, #3F7B45 70%, #2D5E37 100%); }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.placeholder-label { position: absolute; inset: auto 0 1rem 0; text-align: center; font: 600 .78rem/1.3 var(--sans); color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.4); padding: 0 1rem; }

/* Trust strip */
.trust { background: var(--green); color: var(--paper); }
.trust ul { list-style: none; margin: 0; padding: 1.1rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.8rem; font-weight: 600; font-size: .98rem; }
.trust li { display: inline-flex; align-items: center; gap: .5rem; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* Sections */
section { padding: 4.5rem 0; }
.section-sand { background: var(--sand); }
.section-green { background: var(--green); color: var(--paper); }
.section-green h2, .section-green h3 { color: var(--white); }
.section-green .lead, .section-green p { color: #E9E3D3; }
.section-green .eyebrow { color: var(--gold); }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.section-green .card { background: var(--green-deep); box-shadow: none; border: 1px solid rgba(255,255,255,.12); }
.tag { display: inline-block; font: 700 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: .35rem .55rem; border-radius: 6px; background: var(--gold); color: var(--ink); vertical-align: middle; margin-left: .35rem; }

/* Course cards with CSS landscapes */
.course { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.course .scene { height: 150px; position: relative; }
.course .scene svg { position: absolute; inset: auto 0 0 0; width: 100%; height: 70%; }
.course .body { padding: 1.25rem 1.35rem 1.4rem; }
.course h3 { margin-bottom: .3rem; }
.course .meta { font-size: .85rem; font-weight: 700; color: var(--green-soft); letter-spacing: .04em; text-transform: uppercase; margin-bottom: .6rem; }
.scene-parkland { background: linear-gradient(180deg, #A9D3E6, #E4F0EA); }
.scene-links { background: linear-gradient(180deg, #B9D3DE, #EEF1EA); }
.scene-desert { background: linear-gradient(180deg, #F2C98B, #F7E6C9); }
.scene-alpine { background: linear-gradient(180deg, #8DB8DA, #E6F0F6); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.stat { border-left: 4px solid var(--gold); padding: .3rem 0 .3rem 1rem; }
.stat strong { display: block; font: 700 2rem/1.1 var(--serif); color: var(--white); }
.stat span { color: #E9E3D3; font-size: .95rem; }

/* Difficulty */
.level { position: relative; }
.level .dots { display: flex; gap: 6px; margin-bottom: .9rem; }
.level .dots i { width: 22px; height: 8px; border-radius: 4px; background: var(--sand-deep); }
.level .dots i.on { background: var(--green); }

/* Weather chips */
.chips { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { background: var(--white); border: 1px solid var(--sand-deep); padding: .5rem .9rem; border-radius: 999px; font-weight: 600; font-size: .95rem; }

/* Screenshot gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(240px, 62vw); gap: 1.25rem; overflow-x: auto; padding: .5rem .25rem 1.25rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery .shot { position: relative; aspect-ratio: 1320 / 2868; border-radius: 26px; overflow: hidden; background: linear-gradient(170deg, #CFE3D6, #9DC39F 55%, #5E8F62); box-shadow: var(--shadow); border: 6px solid #0F1A14; }
.gallery .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { font-size: .92rem; color: var(--ink-soft); margin-top: .7rem; text-align: center; }

/* Trailer */
.trailer { position: relative; max-width: 320px; margin: 0 auto; border-radius: 28px; overflow: hidden; background: #0F1A14; box-shadow: var(--shadow); aspect-ratio: 886 / 1920; }
.trailer video { width: 100%; height: 100%; object-fit: cover; }
.trailer .placeholder-label { bottom: 45%; }

/* Languages */
.langs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.langs li { background: var(--white); border-radius: var(--radius-sm); padding: .65rem 1rem; font-weight: 600; box-shadow: var(--shadow); }
.langs li span { display: block; font-weight: 400; font-size: .82rem; color: var(--ink-soft); }

/* CTA */
.cta { text-align: center; }
.cta .store-badge { margin-top: .6rem; }

/* Prose pages (privacy, terms, support) */
.page-head { background: var(--sand); padding: 3rem 0 2.2rem; }
.page-head p { color: var(--ink-soft); margin: 0; }
.prose { padding: 2.5rem 0 4rem; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.page-head h1, .prose h2 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.prose .wrap { max-width: 46rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .6rem .7rem; border-bottom: 1px solid var(--sand-deep); }
.prose th { background: var(--sand); }
.summary { background: var(--white); border-left: 5px solid var(--gold); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; box-shadow: var(--shadow); margin: 0 0 2rem; }
.summary ul { margin: .4rem 0 0; }
.toc { background: var(--white); border-radius: var(--radius-sm); padding: 1rem 1.4rem; margin-bottom: 2rem; box-shadow: var(--shadow); }
.toc ol { margin: .4rem 0 0; }
.todo { background: #FFF1C2; outline: 1px dashed #B8862B; padding: 0 .2em; border-radius: 3px; }

/* FAQ */
.faq details { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); margin-bottom: .8rem; }
.faq summary { cursor: pointer; padding: 1.05rem 1.3rem; font-weight: 700; color: var(--green-deep); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--sans); color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 1.3rem 1.2rem; }
.faq h2 { margin-top: 2.2rem; }

/* Footer */
.site-footer { background: var(--green-deep); color: #DDD6C4; padding: 3rem 0 2rem; font-size: .95rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font: 700 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer .brand { color: var(--white); margin-bottom: .8rem; }
.fineprint { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.2rem; padding-top: 1.4rem; font-size: .82rem; color: #C9C1AC; }
