/* LoxLeague marketing site — matches the platform's "classic" navy & brick theme */

:root {
  --primary-50: #eef2fa;
  --primary-100: #d8e0f2;
  --primary-200: #b3c2e3;
  --primary-300: #86a0d3;
  --primary-500: #34569e;
  --primary-600: #24417f;
  --primary-700: #1a3164;
  --primary-800: #132549;
  --primary-900: #0d1a35;
  --primary-950: #081123;
  --accent-400: #e35c50;
  --accent-500: #d5372e;
  --accent-600: #b52a23;
  --surface-50: #fbf8f3;
  --surface-100: #f5f0e6;
  --surface-200: #e9e1d0;
}

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

/* Clears the sticky header so an anchored section doesn't land underneath it.
   Covers the tallest case: two nav rows plus a wrapped second line (~8.1rem),
   and the three-row mobile stack (~7.5rem). */
html { scroll-behavior: smooth; scroll-padding-top: 8.5rem; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--primary-900);
  background: var(--surface-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 0.75rem; }

a { color: var(--primary-600); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface-200);
}
.nav-inner {
  max-width: 72rem; margin: 0 auto; padding: 0.7rem 1.25rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.25rem; font-weight: 800; color: var(--primary-900);
  text-decoration: none; letter-spacing: -0.02em;
}
.logo em, .footer-brand em { font-style: normal; color: var(--accent-500); }
.logo-mark { width: 1.6rem; height: 1.6rem; }
.nav-links { display: flex; gap: 1.25rem; margin-left: auto; }
.nav-links a {
  color: var(--primary-800); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--accent-500); }
.nav-links a[aria-current="page"] { color: var(--accent-600); }

/* Second row: where you are on THIS page. The top row never changes between
   pages, so a link that moves you within the page belongs down here. */
.subnav { border-top: 1px solid var(--surface-200); }
/* Wraps rather than scrolls on pointer-sized screens: the workflows page has
   ten of these, and a horizontally scrolling row with no visible scrollbar
   reads as a clipped bug on a desktop. Touch screens scroll it instead. */
.subnav-inner {
  max-width: 72rem; margin: 0 auto; padding: 0.45rem 1.25rem;
  display: flex; gap: 0.4rem 1.1rem; align-items: center; flex-wrap: wrap;
}
.subnav a {
  white-space: nowrap; text-decoration: none;
  color: var(--primary-700); font-weight: 600; font-size: 0.85rem;
}
.subnav a:hover { color: var(--accent-500); }
/* Narrow screens: logo + CTA can't share a line with the page links (they need
   ~570px), and letting the links scroll inside the flex row collapses them to
   zero width. Wrap them onto their own full-width scrolling line instead. */
@media (max-width: 760px) {
  /* row-gap 0: the wrapped links line supplies its own padding. */
  .nav-inner { gap: 0 0.75rem; padding: 0.5rem 1.25rem 0; flex-wrap: wrap; }
  .nav-links {
    order: 3; width: 100%; margin-left: 0; gap: 1.1rem;
    padding: 0.35rem 0 0.4rem; font-size: 0.9rem;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a, .subnav a { white-space: nowrap; }
  /* Touch: one scrolling line instead of a wrapped block that eats the screen. */
  .subnav-inner {
    flex-wrap: nowrap; padding-top: 0.4rem; padding-bottom: 0.4rem;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  }
  .subnav-inner::-webkit-scrollbar { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.8rem 1.5rem; border-radius: 0.6rem;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-accent { background: var(--accent-500); color: #fff; }
.btn-accent:hover { background: var(--accent-600); }
.btn-ghost {
  border: 2px solid var(--primary-200); color: var(--primary-100); background: transparent;
}
.btn-ghost:hover { border-color: var(--primary-100); }
.btn-ghost-light {
  border: 2px solid var(--primary-300); color: var(--primary-100); background: transparent;
}
.btn-ghost-light:hover { border-color: var(--surface-50); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(70rem 30rem at 80% -10%, rgba(52, 86, 158, 0.55), transparent 60%),
    radial-gradient(50rem 26rem at 10% 110%, rgba(213, 55, 46, 0.25), transparent 60%),
    var(--primary-950);
  color: #fff;
  padding: 6rem 0 5.5rem;
}
.hero-inner { max-width: 50rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem;
  font-weight: 700; color: var(--primary-300); margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
.lede {
  margin-top: 1.4rem; font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--primary-100); max-width: 42rem;
}
.lede strong { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.cta-row.center { justify-content: center; }
.hero-note { margin-top: 1.5rem; font-size: 0.95rem; color: var(--primary-300); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--surface-100); }
.section-lede { max-width: 44rem; font-size: 1.1rem; color: var(--primary-700); margin-bottom: 2rem; }
.section-close {
  margin-top: 2.25rem; font-size: 1.15rem; font-weight: 700; color: var(--primary-800);
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--surface-200);
  border-radius: 1rem; padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(13, 26, 53, 0.05);
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--primary-900); }
.card p { font-size: 0.95rem; color: var(--primary-700); }

.pain { border-top: 3px solid var(--accent-500); }

.role .role-label {
  display: inline-block; background: var(--primary-900); color: #fff;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem; border-radius: 99px; margin-bottom: 1rem;
}
.role ul { list-style: none; }
.role li {
  padding: 0.5rem 0 0.5rem 1.6rem; position: relative;
  font-size: 0.95rem; color: var(--primary-800);
  border-bottom: 1px solid var(--surface-100);
}
.role li:last-child { border-bottom: none; }
.role li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.95rem;
  width: 0.55rem; height: 0.55rem; transform: rotate(45deg);
  background: var(--accent-400); border-radius: 2px;
}

/* ---------- Sports ---------- */
.sports-inner { text-align: center; }
.sports-inner .section-lede { margin-left: auto; margin-right: auto; }
.sports-inner .grid { text-align: left; }
.sport-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem;
  margin: 0 0 2rem;
}
.sport-chips span {
  background: #fff; border: 1px solid var(--surface-200); border-radius: 99px;
  padding: 0.4rem 0.95rem; font-size: 0.92rem; font-weight: 600; color: var(--primary-800);
  box-shadow: 0 1px 2px rgba(13, 26, 53, 0.05);
}
.sports-close a { color: var(--accent-500); font-weight: 700; text-decoration: none; }
.sports-close a:hover { text-decoration: underline; }

/* ---------- Differentiators ---------- */
.diff-list { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) { .diff-list { grid-template-columns: 1fr; } }
.diff {
  padding-left: 1.25rem; border-left: 4px solid var(--accent-500);
}
.diff h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.diff p { color: var(--primary-700); }

/* ---------- Demo ---------- */
.section-dark {
  background:
    radial-gradient(60rem 30rem at 50% 130%, rgba(52, 86, 158, 0.5), transparent 65%),
    var(--primary-900);
  color: #fff;
}
.demo-inner { text-align: center; max-width: 52rem; }
.section-dark .section-lede { color: var(--primary-100); margin-left: auto; margin-right: auto; }
.demo-note { margin-top: 2rem; color: var(--primary-200); font-size: 0.98rem; }
.demo-note strong { color: #fff; }

/* ---------- Pricing ---------- */
.pricing-inner { max-width: 46rem; text-align: center; }
.pricing-card {
  background: #fff; border: 1px solid var(--surface-200); border-radius: 1.25rem;
  padding: 2.5rem 2rem; box-shadow: 0 10px 30px rgba(13, 26, 53, 0.08);
  margin-top: 1rem;
}
.pricing-big { font-size: 1.5rem; font-weight: 800; color: var(--primary-900); }
.pricing-points {
  list-style: none; text-align: left; max-width: 32rem;
  margin: 1.5rem auto 2rem;
}
.pricing-points li {
  padding: 0.55rem 0 0.55rem 2rem; position: relative; color: var(--primary-800);
  border-bottom: 1px solid var(--surface-100);
}
.pricing-points li:last-child { border-bottom: none; }
.pricing-points li::before {
  content: "✓"; position: absolute; left: 0.25rem; color: var(--accent-500); font-weight: 800;
}
.pricing-note { margin-top: 1.25rem; font-size: 0.92rem; color: var(--primary-500); }

/* ---------- Contact ---------- */
.contact-inner { text-align: center; }
.contact-inner .section-lede { margin-left: auto; margin-right: auto; }
.mail-link { color: var(--accent-500); font-weight: 700; text-decoration: none; }
.mail-link:hover { text-decoration: underline; }
.steps { margin: 2rem 0 2.5rem; text-align: left; }
.step { position: relative; padding-top: 2.4rem; }
.step-num {
  position: absolute; top: -1rem; left: 1.25rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--primary-900); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  box-shadow: 0 3px 8px rgba(13, 26, 53, 0.25);
}

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 40rem; margin: 0 auto; text-align: left;
  background: #fff; border: 1px solid var(--surface-200); border-radius: 1.25rem;
  padding: 2rem; box-shadow: 0 10px 30px rgba(13, 26, 53, 0.08);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.contact-form label {
  display: block;
  font-weight: 600; font-size: 0.92rem; color: var(--primary-800);
}
.contact-form .req { color: var(--accent-500); }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 0.35rem;
  font: inherit; font-weight: 400; color: var(--primary-900);
  padding: 0.65rem 0.8rem; border: 1px solid var(--surface-200);
  border-radius: 0.5rem; background: var(--surface-50);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--primary-500); outline-offset: 0; border-color: var(--primary-500);
}
.contact-form textarea { resize: vertical; }
.contact-form button { align-self: center; min-width: 14rem; border: 0; cursor: pointer; }
.form-note { text-align: center; font-size: 0.88rem; color: var(--primary-500); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn-outline { border: 2px solid var(--primary-300); color: var(--primary-800); background: transparent; }
.btn-outline:hover { border-color: var(--primary-600); }
.footer-mail { color: var(--primary-500); font-size: 0.95rem; }
.thanks h1 { font-size: clamp(2rem, 5vw, 3rem); }

/* ---------- Platform page ---------- */
.platform-hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center;
  max-width: 72rem;
}
@media (max-width: 900px) { .platform-hero-inner { grid-template-columns: 1fr; } }
.platform-hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }

.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.phone {
  width: min(20.5rem, 88vw); height: 38rem; max-height: 76vh;
  background: #0b0e14; border-radius: 2.6rem; padding: 0.55rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.08) inset;
  display: flex; flex-direction: column; overflow: hidden;
}
.phone-head {
  display: flex; align-items: center; gap: 0.6rem;
  background: #171b24; color: #fff;
  border-radius: 2rem 2rem 0.8rem 0.8rem; padding: 0.9rem 1rem 0.7rem;
}
.phone-avatar {
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--accent-500); display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.phone-title { font-weight: 700; font-size: 0.95rem; line-height: 1.2; display: flex; flex-direction: column; }
.phone-title small { font-weight: 400; font-size: 0.72rem; color: #9aa4b5; }
/* A phone screen is never individually scrollable — the animation drives the
   scroll position, and a nested scroll box swallows a page swipe on touch.
   This is the default rather than a class the script adds, so it also holds
   when the script doesn't run. `hidden`, not `clip`: the script still sets
   scrollTop to keep the newest message in view. */
.phone-screen {
  flex: 1; background: #f2f0eb; padding: 0.9rem 0.7rem;
  overflow-y: hidden; touch-action: none;
  display: flex; flex-direction: column; gap: 0.45rem;
  scrollbar-width: none;
}
.phone-screen::-webkit-scrollbar { display: none; }
/* Nothing animates, so the static fallback would sit clipped with no way to
   reach the rest of it. Let the phone grow to its content instead. */
@media (prefers-reduced-motion: reduce) {
  .phone { height: auto; max-height: none; }
  .phone-screen { touch-action: auto; }
}
.phone-input {
  background: #171b24; border-radius: 0.8rem 0.8rem 2rem 2rem; padding: 0.7rem 1rem 0.95rem;
}
.phone-input span {
  display: block; background: #262c38; color: #7d8798;
  border-radius: 99px; padding: 0.45rem 1rem; font-size: 0.85rem;
}
.chat-day {
  text-align: center; font-size: 0.72rem; font-weight: 600; color: #8b8677;
  margin: 0.5rem 0 0.2rem;
}
.msg {
  max-width: 82%; padding: 0.6rem 0.85rem; border-radius: 1.15rem;
  font-size: 0.88rem; line-height: 1.45; color: var(--primary-950);
  overflow-wrap: anywhere;
}
.msg b { display: block; font-size: 0.72rem; color: var(--accent-600); margin-bottom: 0.15rem; }
.msg.in {
  background: #fff; align-self: flex-start; border-bottom-left-radius: 0.35rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.msg.out {
  background: var(--primary-500); color: #fff; align-self: flex-end;
  border-bottom-right-radius: 0.35rem;
}
.msg.typing { display: flex; gap: 0.28rem; padding: 0.85rem 0.95rem; }
.msg.typing span {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #b9b3a4;
  animation: blink 1.2s infinite both;
}
.msg.typing span:nth-child(2) { animation-delay: 0.18s; }
.msg.typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.pop { animation: pop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes pop { from { opacity: 0; transform: translateY(0.6rem) scale(0.96); } to { opacity: 1; transform: none; } }
.phone-caption { font-size: 0.85rem; color: var(--primary-300); text-align: center; max-width: 20rem; }

.role .opt, .acc .opt {
  font-size: 0.62rem; background: var(--surface-200); color: var(--primary-700);
  border-radius: 99px; padding: 0.15rem 0.5rem; vertical-align: middle; margin-left: 0.3rem;
  letter-spacing: 0.04em;
}

.dive { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; }
@media (max-width: 800px) { .dive { grid-template-columns: 1fr; } }
.dive-copy h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.dive-copy p { color: var(--primary-700); }

/* Collapsible feature groups */
.acc {
  background: #fff; border: 1px solid var(--surface-200); border-radius: 1rem;
  margin-top: 1rem; overflow: hidden;
}
.acc summary {
  cursor: pointer; list-style: none; user-select: none;
  padding: 1.1rem 1.35rem; font-size: 1.15rem; font-weight: 700; color: var(--primary-900);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex-shrink: 0; width: 0.6rem; height: 0.6rem;
  border-right: 2.5px solid var(--accent-500); border-bottom: 2.5px solid var(--accent-500);
  transform: rotate(45deg); transition: transform 0.2s; margin-right: 0.25rem;
}
.acc[open] summary::after { transform: rotate(225deg); }
.acc summary:hover { background: var(--surface-100); }
.acc-body { padding: 0 1.35rem 1.5rem; border-top: 1px solid var(--surface-100); }
.acc-body .dive { margin-top: 1.5rem; }

.shot { margin-top: 1.1rem; }
.shot-phone { max-width: 15rem; }
.shot img {
  width: 100%; height: auto; display: block; border-radius: 0.8rem;
  border: 1px solid var(--surface-200);
  box-shadow: 0 10px 28px rgba(13, 26, 53, 0.14);
}
.shot figcaption { font-size: 0.8rem; color: var(--primary-500); margin-top: 0.5rem; line-height: 1.4; }

.index-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 2rem;
}
@media (max-width: 1000px) { .index-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .index-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .index-grid { grid-template-columns: 1fr; } }
.index-grid h3 {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-600); margin-bottom: 0.5rem;
}
.index-grid ul { list-style: none; }
.index-grid li {
  font-size: 0.88rem; color: var(--primary-800); padding: 0.22rem 0 0.22rem 1.1rem; position: relative;
}
.index-grid li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-500); font-weight: 700; font-size: 0.8rem; }

/* ---------- Mobile app (coming soon) ---------- */
.app-head { text-align: center; }
.app-head .section-lede { margin-left: auto; margin-right: auto; }
.soon {
  display: inline-block; vertical-align: middle; margin-left: 0.6rem;
  background: var(--accent-500); color: #fff; border-radius: 99px;
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
}
.app-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; margin-top: 2.5rem;
}
@media (max-width: 1000px) { .app-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .app-row { grid-template-columns: repeat(2, 1fr); } }
.app-card { margin: 0; }
.app-card img {
  width: 100%; height: auto; display: block; border-radius: 1.2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.app-card figcaption {
  margin-top: 0.8rem; font-size: 0.8rem; line-height: 1.45; color: var(--primary-200);
}
.app-card figcaption b { display: block; color: #fff; font-size: 0.85rem; margin-bottom: 0.15rem; }
.app-note {
  margin-top: 2.25rem; text-align: center; font-size: 0.88rem; color: var(--primary-300);
}
.app-note a { color: #fff; font-weight: 700; }

/* Homepage app teaser band */
.app-tease {
  background: linear-gradient(100deg, var(--primary-900), var(--primary-700));
  color: #fff; padding: 1.1rem 0;
}
.app-tease-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap;
}
.app-tease-text { font-size: 0.98rem; color: var(--primary-100); }
.app-tease-text strong { color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--primary-950); color: var(--primary-200); padding: 3rem 0 2rem; }
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--primary-800);
}
.footer-brand { font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.footer p { margin-top: 0.5rem; font-size: 0.92rem; }
.footer strong { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--primary-200); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }
.footer-legal { text-align: center; font-size: 0.82rem; color: var(--primary-500); margin-top: 1.5rem; }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  /* The page links used to be hidden here — they now wrap onto their own
     scrolling line (see the nav block), so every page stays reachable. */
  .hero { padding: 4rem 0 3.5rem; }
  .section { padding: 3rem 0; }
}
