/* ----------------------------------------------------------------------
   BetBuddy marketing site
   Palette is locked to the mobile app's tailwind tokens so the brand
   reads as one product across native + web.
   ---------------------------------------------------------------------- */

:root {
  --bg: #1f2937; /* gray-800  */
  --bg-deep: #111827; /* gray-900  */
  --surface: #374151; /* gray-700  */
  --surface-2: #4b5563; /* gray-600  */
  --line: #2d3748;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --green: #22c55e; /* green-500 */
  --green-deep: #16a34a; /* green-600 */
  --green-soft: rgba(34, 197, 94, 0.12);
  --green-edge: rgba(34, 197, 94, 0.4);
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1120px;
  --shadow-glow: 0 0 80px -10px rgba(34, 197, 94, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-feature-settings: "cv11", "ss01";
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(31, 41, 55, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand img {
  width: 32px;
  height: 32px;
}

.brand .brand-mark {
  font-size: 17px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 120ms ease;
}

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

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

.nav-cta {
  background: var(--green);
  color: #0b1322 !important;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  transition:
    background 120ms ease,
    transform 120ms ease;
}

.nav-cta:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 64px;
  overflow: hidden;
}

.hero::before {
  /* soft green glow behind the headline */
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.18), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  /* faint diagonal racing-stripe pattern, very subtle */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -22deg,
    rgba(255, 255, 255, 0.018) 0 1px,
    transparent 1px 24px
  );
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero {
    padding: 56px 0 48px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-edge);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

h1.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 20px;
}

h1.hero-title .accent {
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 50%, #86efac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 36px;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #0b1322;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition:
    background 120ms ease,
    transform 120ms ease,
    box-shadow 120ms ease;
  box-shadow: 0 8px 24px -10px rgba(34, 197, 94, 0.6);
}

.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(34, 197, 94, 0.7);
  color: #0b1322;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 120ms ease,
    background 120ms ease;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero-meta {
  margin-top: 32px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 13px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Hero phone mock ---------- */

.phone-frame {
  position: relative;
  margin-left: auto;
  margin-right: 0;
  width: min(360px, 100%);
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  background: linear-gradient(160deg, #0f172a 0%, #1f2937 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.6),
    var(--shadow-glow);
  padding: 14px;
  overflow: hidden;
}

@media (max-width: 880px) {
  .phone-frame {
    margin: 0 auto;
  }
}

.phone-screen {
  background: var(--bg);
  height: 100%;
  border-radius: 32px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background: #0b1322;
  border-radius: 14px;
  z-index: 2;
}

.phone-logo {
  margin: 18px auto 4px;
  width: 112px;
  height: 96px;
  background-image: url("assets/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.phone-pill {
  align-self: center;
  background: var(--surface);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

/* Help button — top-left of the phone screen, mirrors the in-app
   help-circle-outline icon at app/(tabs)/index.tsx. */
.phone-help {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 26px;
  height: 26px;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--green);
  cursor: pointer;
  z-index: 3;
}

.phone-help svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Camera + Upload action row — mirrors the gray-700 pills with green
   icons that sit just below the strategy pill in the app. */
.phone-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 2px;
}

.phone-action {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--green);
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.phone-action svg {
  width: 18px;
  height: 18px;
}

.phone-card {
  background: white;
  border-radius: 14px;
  padding: 14px 16px;
  color: #1f2937;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.5);
}

.phone-card .pc-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}

.phone-card .pc-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #4b5563;
  font-variant-numeric: tabular-nums;
  padding: 3px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.phone-card .pc-row:last-child {
  border-bottom: 0;
}

.phone-card .pc-row .pc-h {
  color: #111827;
  font-weight: 600;
}

.phone-card .pc-row .pc-pct {
  background: #e7f8ee;
  color: var(--green-deep);
  font-weight: 700;
  font-size: 10px;
  padding: 2px 9px;
  border-radius: 999px;
}

/* Featured "Safest Play" callout — mirrors the green-accent card the app
   renders at the top of StructuredAnalysis on Predict/Handicap bets. */
.phone-card .pc-collapse {
  color: #9ca3af;
  font-weight: 700;
}

.phone-card .pc-safest {
  background: var(--green-soft);
  border: 1px solid var(--green-edge);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.phone-card .pc-safest-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.phone-card .pc-safest-label {
  color: var(--green-deep);
  font-weight: 700;
  font-size: 12px;
}

.phone-card .pc-safest-badge {
  background: #e7f8ee;
  color: var(--green-deep);
  font-weight: 700;
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 999px;
}

.phone-card .pc-safest-pick {
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 3px;
}

.phone-card .pc-safest-text {
  font-size: 10px;
  line-height: 1.45;
  color: #4b5563;
  margin: 0;
}

/* Single-card BetCard mock — title + section headers + plain rows.
   Mirrors the in-app BetCard, which wraps every bet in ONE white card
   and stacks the StructuredAnalysis sections inside it. */

.phone-card .pc-bet-title {
  font-weight: 700;
  font-size: 14px;
  color: #111827;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.phone-card .pc-section-h {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.phone-card .pc-row--plain {
  border-bottom: 0;
  padding: 2px 0;
  align-items: center;
}

.phone-card .pc-pos {
  display: inline-block;
  width: 18px;
  color: var(--green-deep);
  font-weight: 700;
}

.phone-card .pc-notes {
  font-size: 11px;
  line-height: 1.5;
  color: #4B5563;
  margin: 4px 0 0;
}

.phone-disclaimer {
  margin-top: auto;
  font-size: 9px;
  color: var(--text-dim);
  text-align: center;
  font-style: italic;
  padding: 0 8px 8px;
}

/* ---------- Section: How it works ---------- */

.section {
  padding: 96px 0;
  position: relative;
}

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

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head .label {
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 880px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.025) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition:
    border-color 200ms ease,
    transform 200ms ease;
}

.step:hover {
  border-color: var(--green-edge);
  transform: translateY(-3px);
}

.step .num {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Section: Strategies ---------- */

.strats {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.strat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 880px) {
  .strat-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .strat-grid {
    grid-template-columns: 1fr;
  }
}

.strat {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition:
    transform 200ms ease,
    background 200ms ease;
}

.strat:hover {
  background: #404a5b;
  transform: translateY(-2px);
}

.strat .icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.strat h4 {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.strat p {
  margin: 0;
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.55;
}

/* ---------- Section: Why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

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

.why-grid h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 700;
}

.why-grid p {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 14px;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}

.why-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--green);
}

.callout {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--green-soft), transparent 70%);
  pointer-events: none;
}

.callout h3 {
  font-size: 18px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  position: relative;
}

.callout p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  position: relative;
}

.callout .stamp {
  display: inline-block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 12px;
  position: relative;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  padding: 80px 0;
}

.cta-banner-inner {
  background: linear-gradient(135deg, #0b1322 0%, #1f2937 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(34, 197, 94, 0.18),
    transparent 60%
  );
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  position: relative;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 28px;
  position: relative;
}

.cta-banner .cta-row {
  justify-content: center;
  position: relative;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 48px 0 36px;
  background: var(--bg-deep);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 40px;
}

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

.foot-blurb {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 420px;
  margin-top: 16px;
}

.foot-col h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 4px 0 14px;
}

.foot-col a {
  display: block;
  color: var(--text);
  font-size: 14px;
  padding: 4px 0;
  transition: color 120ms ease;
}

.foot-col a:hover {
  color: var(--green);
}

.foot-bottom {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-dim);
}

.foot-bottom .responsible {
  color: var(--text-muted);
  max-width: 540px;
}

.foot-bottom .responsible a {
  color: var(--green);
  font-weight: 500;
}

/* ---------- Long-form pages (privacy / disclaimer) ---------- */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 96px;
}

@media (max-width: 720px) {
  .doc {
    padding: 56px 20px 72px;
  }
}

.doc .updated {
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}

.doc h1 {
  font-size: clamp(34px, 4.5vw, 48px);
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  font-weight: 800;
  line-height: 1.05;
}

.doc h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
  font-weight: 700;
  color: var(--text);
}

.doc p,
.doc li {
  font-size: 16px;
  line-height: 1.7;
  color: #e5e7eb;
}

.doc ul {
  padding-left: 22px;
}
.doc li {
  margin-bottom: 6px;
}

.doc strong {
  color: var(--text);
}

.doc .lead {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.doc-callout {
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.doc-callout p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.back-link:hover {
  color: var(--text);
}
