/* Baseball Lineup Manager — marketing site */
:root {
  --ink: #14241c;
  --muted: #4a6356;
  --paper: #f4f8f5;
  --surface: rgba(255, 255, 255, 0.9);
  --accent: #128053;
  --accent-deep: #0d5c3c;
  --dirt: #b87447;
  --grass: #3d944f;
  --sky-top: #b9e4ff;
  --sky-mid: #d9f0e4;
  --border: rgba(20, 36, 28, 0.12);
  --shadow: 0 18px 50px rgba(13, 92, 60, 0.18);
  --font-brand: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(185, 228, 255, 0.9), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(61, 148, 79, 0.22), transparent 55%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 38%, var(--paper) 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-deep);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.48rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(13, 92, 60, 0.22);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  padding: 2rem 0 3.75rem;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-brand {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(2.7rem, 8.5vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.18rem;
  color: var(--muted);
  margin: 0 0 1.65rem;
  max-width: 30rem;
}

.hero-visual {
  position: absolute;
  inset: 4% -4% -12% 38%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: field-drift 12s ease-in-out infinite alternate;
}

.hero-visual img {
  width: min(100%, 560px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 22.5%;
  box-shadow:
    0 28px 70px rgba(13, 92, 60, 0.35),
    0 8px 24px rgba(20, 36, 28, 0.18);
  transform: rotate(-6deg);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.9rem;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  box-shadow: 0 10px 24px rgba(13, 92, 60, 0.28);
}

.button-secondary {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
}

.button[aria-disabled="true"],
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* —— Sections —— */
.section {
  padding: 4rem 0;
}

.section.tight {
  padding-top: 2rem;
}

.section h2,
.page-title {
  font-family: var(--font-brand);
  font-size: clamp(1.9rem, 4.2vw, 2.55rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.55rem;
  line-height: 1.05;
}

.section > p.lead {
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 40rem;
  font-size: 1.08rem;
}

.reveal {
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-timeline: view();
  animation-range: entry 5% cover 28%;
}

@supports not (animation-timeline: view()) {
  .reveal {
    animation: none;
  }
}

/* Modes — not cards; one quiet composition */
.modes {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.mode-row {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  gap: 1rem 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.mode-row h3 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--accent-deep);
}

.mode-row p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.levels-line {
  margin: 1.75rem 0 0;
  color: var(--ink);
  font-weight: 600;
  max-width: 44rem;
}

.levels-line span {
  color: var(--muted);
  font-weight: 500;
}

/* Steps */
.steps {
  display: grid;
  gap: 1.75rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  align-items: start;
  max-width: 40rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 2.5rem;
  text-align: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  box-shadow: 0 8px 18px rgba(13, 92, 60, 0.22);
}

.step h3 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* Feature band — light, not a dashboard */
.band {
  margin-top: 1rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 1.75rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.band article h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-brand);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.band article p {
  margin: 0;
  color: var(--muted);
}

/* Closing CTA */
.closing {
  text-align: left;
  padding: 3.5rem 0 4.5rem;
}

.closing .panel {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 1.5rem;
  background:
    linear-gradient(135deg, rgba(18, 128, 83, 0.12), transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: soft-pulse 5s ease-in-out infinite;
}

.closing h2 {
  margin-bottom: 0.5rem;
}

.closing .lead {
  margin-bottom: 1.4rem;
}

.store-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.store-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 220px;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.store-card-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.05rem;
  box-shadow: 0 8px 20px rgba(13, 92, 60, 0.22);
}

.store-card .badge {
  align-self: flex-start;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(18, 128, 83, 0.12);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.store-card h2 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.store-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.legal {
  padding: 2rem 0 4rem;
}

.legal article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}

.legal h1 {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.legal .updated {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.legal h2 {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  margin: 1.6rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--ink);
}

.legal ul {
  padding-left: 1.2rem;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.55);
  padding: 0.15rem 1rem 0.15rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.95rem 0;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--accent-deep);
  font-weight: 800;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 42rem;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .tagline {
  margin: 0 0 0.85rem;
  max-width: 32rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--ink);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes field-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-1.2%, 1.4%, 0);
  }
}

@keyframes soft-pulse {
  0%,
  100% {
    box-shadow: var(--shadow);
  }
  50% {
    box-shadow: 0 22px 56px rgba(13, 92, 60, 0.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .reveal,
  .hero-visual,
  .closing .panel {
    animation: none !important;
  }
}

@media (max-width: 720px) {
  .hero-visual {
    inset: auto 4% 4% 28%;
    height: 46%;
    opacity: 0.95;
  }

  .hero-visual img {
    width: min(100%, 280px);
  }

  .hero {
    min-height: 78vh;
    align-items: start;
    padding-top: 1.25rem;
  }

  .hero-copy {
    padding-top: 0.5rem;
  }

  .mode-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}
