/* ──────────────────────────────────────────────────────────
   Onlywins Tracker — Shared Stylesheet
   Fonts: Fraunces (display) + DM Sans (body)
   Theme: Dark navy editorial
   ────────────────────────────────────────────────────────── */

:root {
  /* Surfaces */
  --s0: #020e1f;
  --s1: #031329;
  --s2: #031938;
  --s3: #05224c;
  --s4: #10366b;
  --s5: #234f8c;

  /* Brand */
  --gold: #ffc12e;
  --gold-dark: #d4960a;
  --blue: #1d7ef0;
  --cyan: #4bb3ff;
  --orange: #ff6d00;

  /* Gradients */
  --grad-gold: linear-gradient(160deg, #ffbf00 0%, #e73d00 100%);
  --grad-blue: linear-gradient(160deg, #00aaff 0%, #0629df 100%);
  --grad-primary: linear-gradient(225deg, #ffc12e 36%, #ff4547 100%);

  /* Text */
  --text-primary: rgba(255,255,255,0.90);
  --text-secondary: rgba(255,255,255,0.60);
  --text-muted: rgba(255,255,255,0.35);
  --text-gold: #ffc12e;

  /* Category tones */
  --c-movement: #ff6d00;
  --c-mind: #4bb3ff;
  --c-craft: #ffc12e;
  --c-body: #ff4547;
  --c-money: #1d7ef0;
  --c-ritual: #6d28ff;
  --c-connect: #ff7a9c;
  --c-learning: #ff4547;
  --c-creativity: #ff7a9c;
  --c-nourish: #f6a623;
  --c-sleep: #6673ff;
  --c-recovery: #2ad1b8;
  --c-outdoors: #2fb36a;
  --c-career: #5ea5ff;
  --c-home: #c18a5a;
  --c-play: #d940cc;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-w: 1240px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--s1);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Typography ──────────────────────────────────────────── */

.display {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
}

a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

/* ── Layout ──────────────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
}

/* ── Navigation ──────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(3, 19, 41, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .3s;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-logo-text {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav-logo-text span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--grad-primary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s, transform .15s;
  flex-shrink: 0;
}

.nav-cta:hover { color: #fff; opacity: 0.9; transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all .25s;
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--s2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 20px 24px 28px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}

.nav-drawer.open { display: flex; }

.nav-drawer a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
  transition: color .2s;
}

.nav-drawer a:last-child { border-bottom: none; margin-top: 8px; }
.nav-drawer a:hover { color: var(--text-primary); }

.nav-drawer .drawer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--grad-primary);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: #fff;
  margin-top: 8px;
  border-bottom: none !important;
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 640px) {
  .nav-inner { padding: 0 16px; }
  .nav-drawer { padding: 20px 16px 28px; }
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s, opacity .2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  min-height: 48px;
}

.btn:hover { transform: translateY(-2px); opacity: 0.92; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
}

.btn-primary:hover { color: #fff; }

.btn-blue {
  background: var(--grad-blue);
  color: #fff;
}

.btn-blue:hover { color: #fff; }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-ghost:hover { background: rgba(255,255,255,0.10); color: var(--text-primary); }

/* ── Section spacing ────────────────────────────────────── */

.section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .section { padding: 52px 0; }
}

/* ── Section headings ───────────────────────────────────── */

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
}

/* ── Cards / Panels ─────────────────────────────────────── */

.panel {
  background: var(--s2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ── App Store badge button ──────────────────────────────── */

.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: #fff;
  border-radius: 12px;
  color: #000;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s;
  min-height: 54px;
}

.appstore-btn:hover {
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.appstore-btn-icon {
  font-size: 28px;
  line-height: 1;
  color: #000;
}

.appstore-btn-text { display: flex; flex-direction: column; line-height: 1; }
.appstore-btn-text small { font-size: 10px; font-weight: 400; letter-spacing: 0.04em; color: #333; }
.appstore-btn-text strong { font-size: 17px; font-weight: 700; color: #000; }

/* ── Phone mockup ───────────────────────────────────────── */

.phone-wrap {
  position: relative;
  display: inline-block;
}

.phone-frame {
  position: relative;
  width: 260px;
  border-radius: 38px;
  overflow: hidden;
  box-shadow:
    0 0 0 10px var(--s3),
    0 0 0 12px var(--s4),
    0 32px 80px rgba(0,0,0,0.6);
  flex-shrink: 0;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-frame-sm {
  width: 200px;
  border-radius: 30px;
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  background: var(--s0);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-brand { display: flex; flex-direction: column; gap: 12px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 4px;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.footer-logo-text {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-logo-text span { color: var(--gold); }

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 220px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}

.footer-legal a:hover { color: var(--text-secondary); }

/* ── Page header (inner pages) ───────────────────────────── */

.page-header {
  padding: calc(var(--nav-h) + 64px) 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header-title {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-header-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Legal content ───────────────────────────────────────── */

.legal-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
  padding: 20px 24px;
  background: var(--s2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-secondary);
}

.legal-meta strong { color: var(--text-primary); }

.legal-section { margin-bottom: 40px; }

.legal-section h2 {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.legal-section h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 8px;
}

.legal-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-section ul, .legal-section ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-section li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-section a { color: var(--cyan); }
.legal-section a:hover { color: var(--gold); }

.legal-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 48px 0;
}

/* ── Contact form ────────────────────────────────────────── */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  background: var(--s2);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: border-color .2s;
  width: 100%;
  min-height: 48px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255,255,255,0.30);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,126,240,0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* ── Misc utilities ─────────────────────────────────────── */

.gold { color: var(--gold); }
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-noise {
  position: relative;
}

.bg-noise::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Glow orbs (decorative) */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow-gold { background: radial-gradient(circle, rgba(255,193,46,0.18) 0%, transparent 70%); }
.glow-blue { background: radial-gradient(circle, rgba(29,126,240,0.18) 0%, transparent 70%); }
.glow-orange { background: radial-gradient(circle, rgba(255,109,0,0.14) 0%, transparent 70%); }

/* Category dots */
.cat-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.cat-dot::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Divider */
hr.divider {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 0;
}

/* Scroll margin for anchor links */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* AOS override — respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
