/* ============================================================
   Bloodstock AI — Marketing site stylesheet
   Mobile-first. Brand: rainbow mark, Poppins, navy ink,
   gold→orange CTA gradient (matches app prototype).
   ============================================================ */

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

:root {
  --ink: #111325;
  --ink-soft: #3f4358;
  --muted: #6b7280;
  --paper: #ffffff;
  --bg: #f7f8fb;
  --line: rgba(148, 163, 184, 0.35);
  --line-strong: rgba(148, 163, 184, 0.7);
  --gold: #facc15;
  --orange: #fb923c;
  --green: #22c55e;
  --blue: #3b82f6;
  --violet: #a855f7;
  --cta-gradient: linear-gradient(135deg, #facc15, #fb923c);
  --logo-gradient: conic-gradient(from 140deg, #f97316, #facc15, #22c55e, #3b82f6, #a855f7, #f97316);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius: 1rem;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.container {
  width: min(1100px, 100% - 2.5rem);
  margin: 0 auto;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--logo-gradient);
}

.logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.main-nav {
  display: none;
}

.main-nav a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.05);
}

.main-nav a.active {
  color: var(--ink);
  font-weight: 600;
}

.site-header .header-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 0.6rem;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 0.6rem 0 1rem;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.mobile-nav a.active {
  color: var(--ink);
  font-weight: 600;
}

.mobile-nav .btn {
  margin: 0.5rem 1.25rem 0;
  width: calc(100% - 2.5rem);
  text-align: center;
}

@media (min-width: 860px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .site-header .header-cta {
    display: inline-flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--cta-gradient);
  color: #111827;
  box-shadow: 0 6px 20px rgba(251, 146, 60, 0.35);
}

.btn-dark {
  background: var(--ink);
  color: #ffffff;
}

.btn-outline {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-large {
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
}

.full-width {
  width: 100%;
}

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

.hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(250, 204, 21, 0.14), transparent 60%),
    radial-gradient(900px 420px at -10% 20%, rgba(59, 130, 246, 0.1), transparent 55%),
    var(--bg);
}

.hero-inner {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.1rem;
}

.hero-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--logo-gradient);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5.5vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  background: linear-gradient(120deg, #f97316, #eab308);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}

.hero-media figcaption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}

@media (min-width: 900px) {
  .hero {
    padding: 5rem 0 4rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

/* ---------------- Sections ---------------- */

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b45309;
}

.section-head h2 {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------------- Cards & grids ---------------- */

.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
  background: #fef9ec;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------------- Steps ---------------- */

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}

.step p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------------- Score chips (report anatomy) ---------------- */

.report-panel {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .report-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
  }
}

.score-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.score-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
}

.score-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 0.4rem;
}

.score-item h4 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
}

.score-item p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------------- Quote / disclaimer ---------------- */

.note-box {
  border-left: 4px solid var(--gold);
  background: #fffbeb;
  border-radius: 0.6rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  color: #57534e;
  margin-top: 1.5rem;
}

/* ---------------- App / stores ---------------- */

.app-section {
  text-align: center;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0.8rem;
  padding: 0.6rem 1.3rem;
  min-width: 190px;
  text-align: left;
  opacity: 0.92;
}

.store-badge .badge-icon {
  font-size: 1.5rem;
}

.store-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.store-badge .badge-small {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
}

.store-badge .badge-large {
  font-size: 0.95rem;
  font-weight: 600;
}

.store-badge.disabled {
  cursor: default;
  position: relative;
}

.coming-soon-pill {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid rgba(234, 179, 8, 0.5);
  border-radius: 999px;
  padding: 0.3rem 1rem;
}

/* ---------------- Forms ---------------- */

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.4rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .form-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid.two-col .span-2 {
    grid-column: span 2;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid var(--line-strong);
  background: #fcfcfd;
  color: var(--ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(250, 204, 21, 0.6);
  outline-offset: 1px;
  border-color: var(--gold);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* ---------------- Pricing ---------------- */

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.plan-card .plan-name {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b45309;
}

.plan-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.plan-card ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.plan-card .plan-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.plan-card .btn {
  margin-top: auto;
}

.plan-featured {
  border-color: rgba(234, 179, 8, 0.65);
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.4), var(--shadow-lift);
}

/* ---------------- FAQ ---------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 46rem;
  margin: 0 auto;
}

.faq-list details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.95rem 1.15rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.94rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--muted);
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list details p {
  margin: 0.7rem 0 0;
  font-size: 0.87rem;
  color: var(--ink-soft);
}

/* ---------------- CTA band ---------------- */

.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 200%;
  background:
    radial-gradient(500px 260px at 15% 20%, rgba(250, 204, 21, 0.22), transparent 60%),
    radial-gradient(500px 260px at 85% 80%, rgba(168, 85, 247, 0.2), transparent 60%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

@media (min-width: 700px) {
  .cta-band {
    padding: 3.25rem 2.5rem;
  }
}

/* ---------------- Prose pages (legal, about) ---------------- */

.prose {
  max-width: 46rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.5rem;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.15rem;
  margin: 1.8rem 0 0.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose .updated {
  font-size: 0.78rem;
  color: var(--muted);
}

@media (min-width: 700px) {
  .prose {
    padding: 2.5rem 2.75rem;
  }
}

/* ---------------- Page hero (inner pages) ---------------- */

.page-hero {
  padding: 3rem 0 2.25rem;
  text-align: center;
}

.page-hero h1 {
  margin: 0.4rem 0 0.7rem;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand p {
  margin: 0.7rem 0 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  max-width: 22rem;
}

.footer-col h4 {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 0.22rem 0;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------------- Utilities ---------------- */

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}
