/* ==========================================================================
   WOXGOLF — app.css
   Tokens, base styles, utilities and core components.
   Rules: never hardcode hex values outside :root (see .clinerules §9).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Colors */
  --bg: #F7F6F1;
  --surface: #FFFFFF;
  --ink: #10241A;
  --ink-soft: #48584E;
  --ink-faint: #7C8A81;
  --line: #E4E1D4;

  --brand-900: #0B2E1F;
  --brand-800: #0F3D28;
  --brand-700: #14532D;
  --brand-500: #1E7A44;
  --brand-100: #E4F0E7;

  --gold: #C9A227;
  --gold-deep: #A8861B;
  --gold-soft: #F3EAD3;
  --gold-ink: #3B2F0A;

  /* Status (semantic, fixed) */
  --status-concept: #64748B;
  --status-development: #2563EB;
  --status-beta: #B45309;
  --status-available: #15803D;

  /* Typography */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing & shape */
  --container: 1140px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 36, 26, 0.06);
  --shadow: 0 12px 32px -12px rgba(11, 46, 31, 0.18);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }

a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-500); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}

ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 96px; }
.section--tint {
  background: linear-gradient(180deg, transparent, var(--brand-100) 18%, var(--brand-100) 82%, transparent);
}

.grid { display: grid; gap: 24px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .lead { margin-top: 12px; }
.section-cta { margin-top: 48px; text-align: center; }

/* ---------- Typography utilities ---------- */
.display-1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.display-1--page { margin-top: 12px; }

.display-2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.display-2--light { color: #fff; }

.lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.eyebrow--light { color: var(--gold); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand-700);
}
.link-arrow::after { content: "→"; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--back { margin-bottom: 24px; }
.link-arrow--back::after { content: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--gold); color: var(--gold-ink); }
.btn-primary:hover { background: #d4b136; color: var(--gold-ink); box-shadow: var(--shadow); }

.btn-ghost { border-color: var(--brand-700); color: var(--brand-700); background: transparent; }
.btn-ghost:hover { background: var(--brand-700); color: #fff; }

/* Light variant for dark sections (hero, CTA band) */
.btn-ghost--light { border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.btn-ghost--light:hover { background: #fff; color: var(--brand-900); }

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge--concept     { background: #EEF1F4; color: var(--status-concept); }
.badge--development { background: #E3ECFD; color: var(--status-development); }
.badge--beta        { background: #FCF0E1; color: var(--status-beta); }
.badge--available   { background: #E3F2E8; color: var(--status-available); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-chip {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.filter-chip:hover { border-color: var(--brand-500); color: var(--brand-700); }
.filter-chip.is-active { background: var(--brand-900); border-color: var(--brand-900); color: #fff; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(30, 122, 68, 0.15);
}
.field--error input, .field--error textarea { border-color: #C0392B; }

.flash {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 500;
}
.flash--success { background: var(--brand-100); color: var(--brand-700); border: 1px solid var(--brand-500); }
.flash--error { background: #FDEDEA; color: #A93226; border: 1px solid #E6B0AA; }

.honeypot {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-privacy { margin-top: 14px; font-size: 0.8125rem; color: var(--ink-faint); }

/* ---------- Visibility helpers ---------- */
.is-hidden { display: none !important; }

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--brand-900);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Reveal animation ----------
   Only hides content when JS is confirmed active (html.js), so no-JS users,
   crawlers and static renders always see the content. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}


