/* Golf Line website — colors match the app (src/lib/theme.ts). */

:root {
  --bg: #F6F7F4;
  --surface: #FFFFFF;
  --border: rgba(15, 20, 15, 0.10);
  --text: #0E140F;
  --text-2: #5C6660;
  --accent: #3F8F25;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(63, 143, 37, 0.10);
  --phone-bg: #0B100D;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B100D;
    --surface: #161D18;
    --border: rgba(255, 255, 255, 0.08);
    --text: #F2F4EE;
    --text-2: #8A958E;
    --accent: #C8FF3D;
    --accent-ink: #0B100D;
    --accent-soft: rgba(200, 255, 61, 0.12);
    --phone-bg: #000000;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; }

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---- Header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--text); }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 72px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 16px 0 20px;
}
.hero .lead {
  font-size: 19px;
  color: var(--text-2);
  margin: 0 0 28px;
  max-width: 34em;
}
.app-icon { width: 88px; height: 88px; border-radius: 20px; display: block; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}
.fine { color: var(--text-2); font-size: 14px; margin-top: 12px; }

/* ---- Phone mock-up (decoration only) ---- */
.phone {
  justify-self: center;
  width: 260px;
  aspect-ratio: 9 / 19;
  border-radius: 40px;
  padding: 10px;
  background: var(--phone-bg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border);
}
.phone .screen {
  position: relative;
  height: 100%;
  border-radius: 31px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 30% at 50% 18%, #4f8f3a 0 60%, transparent 61%),
    radial-gradient(ellipse 45% 80% at 50% 60%, #3d7a2c 0 70%, transparent 71%),
    #24461d;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.phone svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone .pill {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 16, 13, 0.72);
  color: #F2F4EE;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.phone .card {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(11, 16, 13, 0.86);
  color: #F2F4EE;
}
.phone .row { display: flex; justify-content: space-between; align-items: baseline; }
.phone .label { font-size: 10px; letter-spacing: 0.08em; color: #8A958E; font-weight: 600; }
.phone .big { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.phone .big small { font-size: 14px; color: #8A958E; font-weight: 600; margin-left: 2px; }
.phone .btn {
  margin-top: 12px;
  padding: 11px;
  border-radius: 14px;
  background: #C8FF3D;
  color: #0B100D;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

/* ---- Sections ---- */
section { padding-top: 56px; padding-bottom: 56px; }
section h2 {
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.section-intro { color: var(--text-2); margin: 0 0 32px; max-width: 36em; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}
.feature .dot {
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 16px;
}
.feature h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
}
.panel p { color: var(--text-2); max-width: 38em; }
.panel.accent { background: var(--accent-soft); border-color: transparent; }

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  margin-top: 8px;
}
.button.secondary {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
  margin-left: 8px;
}

/* ---- Text pages (privacy, support) ---- */
.doc { max-width: 720px; padding-top: 32px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; line-height: 1.1; margin: 16px 0 8px; }
.doc h2 { font-size: 22px; margin: 40px 0 8px; letter-spacing: -0.01em; }
.doc .updated { color: var(--text-2); margin-top: 0; }
.doc li { margin-bottom: 6px; }
.doc .summary {
  background: var(--accent-soft);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 24px 0;
}

details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--text-2); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p, details ol, details ul { color: var(--text-2); margin: 10px 0 0; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  padding-bottom: 40px;
  color: var(--text-2);
  font-size: 14px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 12px; }
.site-footer nav a { color: var(--text); text-decoration: none; }
.site-footer p { margin: 4px 0; }

/* ---- Phones ---- */
@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 24px; padding-bottom: 40px; }
  .phone { width: 220px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 24px; }
  .site-header nav { gap: 14px; }
  .site-header nav .hide-sm { display: none; }
  .button.secondary { margin-left: 0; margin-top: 8px; }
  section { padding-top: 40px; padding-bottom: 40px; }
}

@media (min-width: 761px) and (max-width: 940px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
