/* ============================================================
   Two Out Barrels — Design System
   Baseball analytics aesthetic: light, clean, sporty
   ============================================================ */

:root {
  /* Surfaces (names kept from the original theme; remapped light/Carolina).
     navy-900 = page bg, 800 = subtle panel, 700 = card, 600 = border. */
  --navy-900: #eef6fc;   /* page background (soft Carolina tint) */
  --navy-800: #dcebf7;   /* subtle panel background */
  --navy-700: #ffffff;   /* card background (white) */
  --navy-600: #c2dbef;   /* borders / dividers (blue-tinted) */

  --ink: #14283d;        /* primary text (deep navy) */
  --ink-muted: #3c5168;  /* secondary text */
  --ink-faint: #6e8198;  /* tertiary text */

  /* Brand accents — Carolina blue primary */
  --carolina: #4b9cd3;   /* Carolina blue */
  --carolina-dark: #2f7cb3;
  --carolina-deep: #13577f;
  --barrel: #d8362a;     /* baseball stitch red (secondary accent) */
  --barrel-dark: #b42c22;
  --heat: #ef6c2e;       /* warm accent */
  --cool: #2f7cb3;       /* link blue (readable) */
  --cool-dark: #1f5e8a;
  --good: #1f9d57;       /* positive metric green */

  --leather: #a9784a;    /* leather/stitch tan accent */

  /* Header / hero band — deep Carolina navy gradient base */
  --header-bg: #13314d;

  /* Layout */
  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
  --gap: 24px;

  --shadow: 0 12px 30px rgba(19, 49, 77, 0.12);
  --shadow-sm: 0 4px 14px rgba(19, 49, 77, 0.08);

  --font-head: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cool); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--cool-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.5px;
  margin: 0 0 0.5em;
  text-transform: uppercase;
  color: var(--ink);
}

p { margin: 0 0 1em; color: var(--ink-muted); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.center { text-align: center; }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--carolina-deep);
  margin-bottom: 10px;
}
.lead { font-size: 1.15rem; color: var(--ink-muted); max-width: 60ch; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 3px solid var(--carolina);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: transparent url("../assets/branding/2ob-icon.png?v=2") center / contain no-repeat;
  color: transparent;
  border-radius: 50%;
  font-size: 0;
  box-shadow: none;
  overflow: hidden;
}
.brand .accent { color: #ff7a52; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 0 0 auto; padding: 0;
}
/* First auth item starts the right-aligned group (desktop divider). */
.nav-links li.nav-auth-start { margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,0.18); }
/* Primary CTA (Account / Log in) rendered as a pill on desktop. */
.nav-links li.nav-cta a {
  background: var(--carolina);
  color: #fff;
  font-weight: 600;
}
.nav-links li.nav-cta a:hover { background: var(--carolina-deep, #2f6f9f); }
.nav-links a {
  display: block;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s ease, background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--carolina); color: #fff; border-color: var(--carolina); }
.btn-primary:hover { background: var(--carolina-dark); border-color: var(--carolina-dark); color: #fff; }

/* Ghost: readable on light surfaces (navy outline + navy text, fills on hover) */
.btn-ghost {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Secondary blue button for utility actions */
.btn-blue { background: var(--cool); color: #fff; border-color: var(--cool); }
.btn-blue:hover { background: var(--cool-dark); border-color: var(--cool-dark); color: #fff; }

/* Danger button for destructive actions (delete) */
.btn-danger { background: #fff; border-color: var(--barrel); color: var(--barrel); }
.btn-danger:hover { background: var(--barrel); color: #fff; }

/* Ghost buttons sitting on dark bands (hero, CTA) need light styling */
.on-dark .btn-ghost,
.hero .btn-ghost,
.cta-band .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.on-dark .btn-ghost:hover,
.hero .btn-ghost:hover,
.cta-band .btn-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 84px;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(75, 156, 211, 0.55), transparent 60%),
    linear-gradient(160deg, #2f7cb3 0%, #1c5a85 55%, #13314d 100%);
  color: #fff;
  border-bottom: 3px solid var(--barrel);
  overflow: hidden;
}
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero .lead { color: rgba(255, 255, 255, 0.9); }
.hero .eyebrow { color: #ade1ff; }
.hero::after {
  /* faint home-plate / diamond motif */
  content: "";
  position: absolute;
  right: -80px; top: 50%;
  width: 420px; height: 420px;
  transform: translateY(-50%) rotate(45deg);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  margin-bottom: 0.3em;
}
.hero h1 .hl { color: #ade1ff; }
.hero .lead { font-size: 1.25rem; margin-bottom: 1.6em; }
.hero .btn-row { margin-top: 8px; }

/* ---------- Cards ---------- */
.card {
  background: var(--navy-700);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s;
}
.card:hover { transform: translateY(-4px); border-color: var(--cool); box-shadow: var(--shadow); }
.card h3 { color: var(--ink); margin-bottom: 0.4em; }
.card .icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(75, 156, 211, 0.14);
  color: var(--carolina-dark);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card.feature .icon { background: rgba(75, 156, 211, 0.18); color: var(--carolina-deep); }

/* Stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  text-align: center;
}
.stat .num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  color: var(--carolina-deep);
  line-height: 1;
}
.stat .label {
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Section headers ---------- */
.section-head { margin-bottom: 40px; max-width: 70ch; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

/* ---------- Sample report gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.shot {
  background: var(--navy-700);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius);
  overflow: hidden;
}
.shot img { width: 100%; height: 220px; object-fit: cover; background: var(--navy-800); }
.shot .cap { padding: 16px 18px; }
.shot .cap h4 { color: var(--ink); margin-bottom: 4px; }
.shot .cap p { margin: 0; font-size: 0.9rem; }

/* ---------- Pricing / tiers ---------- */
.tier { display: flex; flex-direction: column; }
.tier .price {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--ink);
  margin: 8px 0 4px;
}
.tier .price span { font-size: 0.9rem; color: var(--ink-faint); }
.tier ul { list-style: none; padding: 0; margin: 18px 0; flex: 1; }
.tier li { padding: 8px 0; border-bottom: 1px solid var(--navy-600); color: var(--ink-muted); font-size: 0.95rem; }
.tier li::before { content: "▸"; color: var(--carolina); margin-right: 10px; }
.tier.featured { border-color: var(--carolina); box-shadow: 0 0 0 1px var(--carolina), var(--shadow); }
.badge {
  display: inline-block;
  background: var(--carolina);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* ---------- Article / publications ---------- */
.post-list { display: grid; gap: 18px; }
.post {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--navy-700);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color .15s;
}
.post:hover { border-color: var(--carolina); }
.post .date {
  font-family: var(--font-head);
  text-align: center;
  color: var(--carolina-deep);
  border-right: 1px solid var(--navy-600);
  padding-right: 16px;
}
.post .date .d { font-size: 2rem; line-height: 1; }
.post .date .m { font-size: 0.8rem; letter-spacing: 1px; color: var(--ink-faint); }
.post h3 { color: var(--ink); margin-bottom: 4px; font-size: 1.2rem; }
.post p { margin: 0; font-size: 0.92rem; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cool);
  background: rgba(61,165,255,0.12);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* ---------- Gear / affiliate ---------- */
.gear-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.gear-card { text-align: center; }
.gear-card .brand-name { color: var(--leather); font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; }
.disclosure {
  font-size: 0.85rem;
  color: var(--ink-faint);
  background: var(--navy-800);
  border: 1px dashed var(--navy-600);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--navy-700);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.contact-card .email {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--carolina-deep);
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 360px at 80% -20%, rgba(75, 156, 211, 0.6), transparent 60%),
    linear-gradient(160deg, #2f7cb3 0%, #1c5a85 60%, #13314d 100%);
  border: none;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: #fff; }
.cta-band .lead { color: rgba(255, 255, 255, 0.9); }
.cta-band .eyebrow { color: #ade1ff; }

/* ---------- Announcement banner ---------- */
.announce {
  padding: 40px 0;
}
.announce-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--navy-600);
  background:
    radial-gradient(700px 300px at 88% -30%, rgba(239, 108, 46, 0.28), transparent 60%),
    linear-gradient(160deg, #2f7cb3 0%, #1c5a85 62%, #13314d 100%);
  color: #fff;
  padding: 40px;
  box-shadow: var(--shadow);
}
.announce-card .eyebrow { color: #ffd6b0; }
.announce-card h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-bottom: 0.15em; }
.announce-price {
  display: inline-block;
  margin: 4px 0 18px;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.15rem;
  color: #fff;
  background: var(--heat);
  padding: 6px 16px;
  border-radius: 999px;
}
.announce-lead { color: rgba(255, 255, 255, 0.92); max-width: 60ch; margin: 0 0 22px; }
.announce-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}
.announce-list li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
}
.announce-list li::before {
  content: "⚾";
  position: absolute;
  left: 0;
  top: 1px;
}
.announce-list li strong { color: #fff; }
@media (max-width: 680px) {
  .announce-card { padding: 28px; }
  .announce-list { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--header-bg);
  border-top: 3px solid var(--carolina);
  padding: 48px 0 28px;
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.75);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--gap);
  margin-bottom: 28px;
}
.site-footer p { color: rgba(255, 255, 255, 0.7); }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer a { color: rgba(255, 255, 255, 0.75); display: block; padding: 4px 0; font-size: 0.92rem; }
.site-footer a:hover { color: #ade1ff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}
.footer-bottom a { display: inline; color: rgba(255, 255, 255, 0.7); }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  padding: 64px 0 48px;
  background:
    radial-gradient(900px 400px at 80% -20%, rgba(75, 156, 211, 0.55), transparent 60%),
    linear-gradient(160deg, #2f7cb3 0%, #1c5a85 60%, #13314d 100%);
  color: #fff;
  border-bottom: 3px solid var(--barrel);
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: #fff; }
.page-hero .lead { color: rgba(255, 255, 255, 0.9); }
.page-hero .eyebrow { color: #ade1ff; }

/* ---------- Prose (article body) ---------- */
.prose { max-width: 70ch; }
.prose p { color: var(--ink-muted); }
.prose h2 { margin-top: 1.6em; color: var(--ink); }
.prose ul { color: var(--ink-muted); }
.prose blockquote {
  border-left: 3px solid var(--carolina);
  margin: 1.5em 0;
  padding: 4px 18px;
  color: var(--ink);
  font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-4, .gallery, .gear-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--header-bg);
    border-bottom: 3px solid var(--carolina);
    padding: 6px 12px 14px;
    box-shadow: 0 12px 20px rgba(0,0,0,0.25);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 15px 12px;
    color: #fff;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links a:hover,
  .nav-links a.active { color: #fff; background: rgba(255, 255, 255, 0.12); }
  /* Neutralize the desktop divider + pill inside the stacked mobile menu. */
  .nav-links li.nav-auth-start {
    margin-left: 0; padding-left: 0; border-left: none;
    margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.18);
  }
  .nav-links li.nav-cta a {
    background: var(--carolina);
    text-align: center;
    margin-top: 8px;
    border-bottom: none;
  }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .gallery, .gear-grid, .stats { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; }
  .post .date { border-right: none; border-bottom: 1px solid var(--navy-600); padding: 0 0 10px; display: flex; gap: 8px; justify-content: center; }
}

@media (max-width: 420px) {
  .brand { font-size: 1.1rem; gap: 7px; }
  .brand .mark { width: 30px; height: 30px; font-size: 0; }
  .nav { height: 60px; }
  .nav-links { top: 60px; }
}
