/* 1st Golf GPS – shared styles for every page */

:root {
  --black: #000000;
  --green: #78E63D;
  --green-deep: #1F8C1A;
  --white: #ffffff;
  --surface: #0b0d0a;
  --card: #121610;
  --line: rgba(255, 255, 255, 0.09);
  --muted: #b4bcb0;
  --light-bg: #f3f6f0;
  --light-text: #141a12;
  --light-muted: #4b5547;
  --radius: 18px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); }
a:hover { text-decoration: none; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.eyebrow {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.green { color: var(--green); }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--green); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
@media (max-width: 720px) {
  .nav { gap: 16px; }
  .nav .nav-wide { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border-radius: 999px;
  font-weight: 800; font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--green);
  background: var(--green); color: #000;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(120, 230, 61, 0.3); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); box-shadow: none; }
/* "Coming soon" state of the App Store button (switched off automatically in site.js) */
.btn.is-soon { cursor: default; }
.btn.is-soon:hover { transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.small-note { color: var(--muted); font-size: 0.88rem; margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -40% 30%; height: 80%;
  background: radial-gradient(closest-side, rgba(120, 230, 61, 0.18), transparent);
  pointer-events: none;
}
.hero .wrap { display: grid; gap: 40px; align-items: center; position: relative; }
.hero-logo { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 22px; box-shadow: 0 0 0 1px var(--line); }
.hero h1 span { display: block; color: var(--green); }
.hero .lead { margin-bottom: 28px; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 0.93rem; }
.hero-points li::before { content: "✓ "; color: var(--green); font-weight: 800; }
@media (min-width: 880px) {
  .hero { padding: 88px 0 72px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
}

/* ---------- Phone mock-up ---------- */
.phone {
  width: min(300px, 78vw);
  margin: 0 auto;
  aspect-ratio: 390 / 844;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(145deg, #2a2d29, #0c0d0c);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 30px 80px rgba(0,0,0,0.7), 0 0 120px rgba(120,230,61,0.12);
  position: relative;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: #111; }
.phone::after {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 24px; background: #000; border-radius: 20px;
}

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.card h3 { margin-bottom: 6px; }

.benefit { padding: 28px; }
.benefit .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(120, 230, 61, 0.12); color: var(--green);
  display: grid; place-items: center; margin-bottom: 18px;
}
.benefit .icon svg { width: 28px; height: 28px; }
.benefit h3 { font-size: 1.3rem; }

/* ---------- Features ---------- */
.feature-group { margin-top: 56px; }
.feature-group > h3 {
  font-size: 1.35rem; display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.feature-group > h3::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--green); }
.feature h4 { margin: 0 0 4px; font-size: 1.02rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green); border: 1px solid rgba(120, 230, 61, 0.45); border-radius: 999px; padding: 2px 8px;
}
.tag--soon { color: var(--muted); border-color: var(--line); }

/* ---------- Spotlight ---------- */
.spotlight { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spotlight .wrap { display: grid; gap: 44px; align-items: center; }
@media (min-width: 880px) { .spotlight .wrap { grid-template-columns: 0.8fr 1.2fr; } }
.steps { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.steps li::before {
  content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--green); color: #000; font-weight: 800; display: grid; place-items: center; font-size: 0.95rem;
}
.steps strong { color: var(--white); }

/* ---------- Light sections (pricing) ---------- */
.light { background: var(--light-bg); color: var(--light-text); }
.light .eyebrow, .light a { color: var(--green-deep); }
.light .lead { color: var(--light-muted); }
.light .card { background: #fff; border-color: #dfe5da; }
.light .card p, .light li { color: var(--light-muted); }

.planned {
  display: inline-block; background: #fff4cf; color: #6b5200; border: 1px solid #f0dc8f;
  font-weight: 700; font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.price-grid { display: grid; gap: 18px; margin-top: 36px; }
@media (min-width: 860px) { .price-grid { grid-template-columns: 1fr 1.25fr; } }
.plan { padding: 30px; }
.plan h3 { font-size: 1.5rem; color: var(--light-text); }
.plan .price { font-size: 2.4rem; font-weight: 800; color: var(--light-text); line-height: 1; margin: 10px 0 6px; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--light-muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 9px; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.light .plan--premium { border: 2px solid var(--green-deep); position: relative; }
.price-options { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 520px) { .price-options { grid-template-columns: repeat(3, 1fr); } }
.price-option { border: 1px solid #dfe5da; border-radius: 14px; padding: 14px; background: var(--light-bg); }
.price-option strong { display: block; font-size: 1.45rem; color: var(--light-text); }
.price-option span { font-size: 0.88rem; color: var(--light-muted); }
.price-option em { display: block; font-style: normal; font-weight: 700; color: var(--green-deep); font-size: 0.85rem; margin-top: 4px; }
.price-footnote { margin-top: 22px; font-size: 0.92rem; color: var(--light-muted); }

/* ---------- Privacy promise ---------- */
.promise { text-align: center; }
.promise .shield {
  width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 24px;
  background: rgba(120, 230, 61, 0.12); color: var(--green); display: grid; place-items: center;
}
.promise .shield svg { width: 44px; height: 44px; }
.promise-list { list-style: none; padding: 0; margin: 30px auto 0; display: grid; gap: 12px; max-width: 820px; }
@media (min-width: 720px) { .promise-list { grid-template-columns: repeat(3, 1fr); } }
.promise-list li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-weight: 700; }

/* ---------- Coming soon strip ---------- */
.soon-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.soon-row span { border: 1px dashed rgba(255,255,255,0.25); border-radius: 999px; padding: 8px 16px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 32px auto 0; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq details[open] { border-color: rgba(120, 230, 61, 0.4); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 34px 20px 0; font-weight: 700; font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--green); font-size: 1.6rem; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { color: var(--muted); padding-bottom: 20px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band img { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 20px; }
.cta-band .btn-row { justify-content: center; margin-top: 24px; }

/* ---------- Simple text pages (support, privacy) ---------- */
.page-head { padding: 64px 0 24px; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); }
.prose { max-width: 760px; padding-top: 40px; padding-bottom: 72px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: #d7ddd4; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--white); }
.summary-box {
  background: var(--card); border: 1px solid rgba(120, 230, 61, 0.4); border-radius: var(--radius); padding: 24px; margin-bottom: 36px;
}
.summary-box ul { margin: 0; }
.service { border-left: 3px solid var(--green); padding: 2px 0 2px 16px; margin: 0 0 18px; }
.service p { margin: 0; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 8px 0 40px;
}
.contact-card .email { font-size: 1.3rem; font-weight: 800; word-break: break-all; }
.prose .faq { margin: 18px 0 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: grid; gap: 26px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h4 { color: var(--white); margin: 0 0 10px; font-size: 0.95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--green); }
.credits { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }

/* ---------- How-to guide ---------- */
.guide-contents { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.guide-contents a {
  text-decoration: none; color: var(--white); font-weight: 700; font-size: 0.93rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
}
.guide-contents a span { color: var(--green); margin-right: 6px; }
.guide-contents a:hover { border-color: var(--green); }
.guide-note {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px;
  color: var(--muted); font-size: 0.93rem; margin-top: 22px;
}
.guide-section { padding: 56px 0 8px; scroll-margin-top: 70px; }
.guide-section > .wrap > h2 { display: flex; align-items: center; gap: 14px; }
.guide-section > .wrap > h2 .num {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--green); color: #000;
  display: grid; place-items: center; font-size: 1.2rem;
}
.guide-steps { display: grid; gap: 18px; margin-top: 26px; }
@media (min-width: 900px) { .guide-steps { grid-template-columns: repeat(2, 1fr); } }
.step {
  display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
@media (min-width: 560px) { .step { grid-template-columns: 160px 1fr; gap: 22px; } }
.step img { width: 100%; border-radius: 16px; border: 1px solid var(--line); background: #0d110b; }
.step h3 { margin: 4px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.step .step-num { color: var(--green); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.step p { color: var(--muted); margin: 0 0 10px; font-size: 0.97rem; }
.step p b { color: var(--white); }
.step .tip { font-size: 0.9rem; border-left: 3px solid var(--green); padding-left: 10px; color: #d7ddd4; }
.back-top { display: inline-block; margin-top: 18px; font-size: 0.9rem; }
.step--text { grid-template-columns: 1fr; }
.guide-note b { color: var(--white); }
.step--wide { grid-template-columns: 1fr; }
.step--wide img { max-width: 460px; }

/* ---------- Guide: click a step to enlarge it ---------- */
.step[data-expand] { cursor: zoom-in; scroll-margin-top: 80px; transition: border-color 0.2s ease, background 0.2s ease; }
.step[data-expand]:hover { border-color: rgba(120, 230, 61, 0.45); }
.step[data-expand]:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.img-wrap { position: relative; }
.zoom-hint {
  position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.7); color: var(--white); display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.zoom-hint svg { width: 17px; height: 17px; }
.step.is-open { grid-column: 1 / -1; cursor: zoom-out; border-color: rgba(120, 230, 61, 0.65); background: #151b12; }
.step.is-open .zh-v { display: none; }
.step.is-open h3 { font-size: 1.35rem; }
.step.is-open p { font-size: 1.05rem; }
@media (min-width: 700px) {
  .step.is-open { grid-template-columns: minmax(280px, 380px) 1fr; gap: 36px; padding: 28px; align-items: center; }
}
@media (max-width: 699px) {
  .step.is-open { grid-template-columns: 1fr; }
  .step.is-open .img-wrap { max-width: 340px; width: 100%; margin: 0 auto; }
}
.step--wide.is-open { grid-template-columns: 1fr; align-items: start; }
.step--wide.is-open img { max-width: 640px; }
