/* ===================================================
   Bet on NBA Finals — Neumorphic Soft UI
   Palette: #c8e0f4 (primary) / #f5e0e8 (secondary) / #171f26 (ink)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

/* ── Custom properties ── */
:root {
  --clr-primary: #c8e0f4;
  --clr-secondary: #f5e0e8;
  --clr-ink: #171f26;
  --clr-bg: #d6e8f5;
  --clr-surface: #cee3f6;
  --clr-surface-alt: #f0dbe4;
  --clr-muted: #5a6a78;
  --clr-accent: #8ab4d8;
  --clr-accent2: #d9a8bc;
  --shadow-out: -5px -5px 15px rgba(255,255,255,0.75), 5px 5px 15px rgba(0,0,0,0.12);
  --shadow-in:  inset 3px 3px 8px rgba(0,0,0,0.10), inset -3px -3px 8px rgba(255,255,255,0.70);
  --shadow-card: -4px -4px 12px rgba(255,255,255,0.70), 4px 4px 12px rgba(0,0,0,0.10);
  --radius: 14px;
  --radius-sm: 10px;
  --max-w: 1180px;
  --col-gap: 2rem;
  --transition: 150ms ease;
  --font-body: 'Cormorant Infant', Georgia, serif;
  --font-display: 'Great Vibes', cursive;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-ink);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--clr-accent); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  color: var(--clr-ink);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 0.3rem; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin-bottom: 0.3rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.subtitle, p.subtitle, p.subhead, p.desc, p.lead {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--clr-muted);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ── Site wrapper ── */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header ── */
.site-header {
  background: linear-gradient(145deg, var(--clr-primary), #b8d4ee);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--clr-ink);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-out);
  background: var(--clr-primary);
  margin-left: auto;
  flex-shrink: 0;
}

.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header CTAs — always visible */
.header-ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.cta-signup {
  background: linear-gradient(145deg, #8ab4d8, #6ea0c8);
  color: #fff;
  box-shadow: var(--shadow-out);
}

.cta-signup:hover {
  transform: scale(1.03);
  box-shadow: -3px -3px 10px rgba(255,255,255,0.6), 3px 3px 10px rgba(0,0,0,0.15);
  color: #fff;
}

.cta-signup:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-in);
}

.cta-login {
  background: transparent;
  color: var(--clr-ink);
  border: 2px solid var(--clr-accent);
  box-shadow: var(--shadow-card);
}

.cta-login:hover {
  background: var(--clr-primary);
  transform: scale(1.03);
  color: var(--clr-ink);
}

.cta-login:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-in);
}

/* Header nav row */
.header-nav-row {
  border-top: 1px solid rgba(255,255,255,0.4);
  background: linear-gradient(145deg, #bcd8f0, #c8e0f4);
}

.header-nav-row nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header-nav-row nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: nav-counter;
}

.header-nav-row nav ol li {
  counter-increment: nav-counter;
}

.header-nav-row nav ol li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--clr-ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition);
  border-radius: var(--radius-sm);
}

.header-nav-row nav ol li a:hover,
.header-nav-row nav ol li a[aria-current="page"] {
  background: rgba(255,255,255,0.45);
  color: #3a6a9a;
}

/* ── Hero (home) ── */
.hero {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.hero-inner {
  max-width: var(--max-w);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-illustration img,
.hero-img {
  max-width: 180px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-out);
}

.hero-copy {
  text-align: center;
  max-width: 640px;
}

.hero-copy h1 {
  color: var(--clr-ink);
  margin-bottom: 0.75rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--clr-muted);
  margin-top: 0.75rem;
}

/* ── Byline ── */
.byline {
  font-size: 0.85rem;
  color: var(--clr-muted);
  font-style: italic;
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

/* ── Main layout: main > div.wrap > section > article ── */
main {
  flex: 1;
  padding: 2.5rem 1.5rem;
}

main > div.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

main > div.wrap > section {
  width: 100%;
}

main > div.wrap > section > article {
  display: flex;
  gap: var(--col-gap);
  align-items: flex-start;
}

/* ── Sidebar (left) ── */
.sidebar {
  flex: 0 0 230px;
  order: -1;
}

.sidebar-inner {
  background: linear-gradient(145deg, var(--clr-surface), #b8d4ee);
  border-radius: var(--radius);
  box-shadow: var(--shadow-out);
  padding: 1.5rem 1.25rem;
  position: sticky;
  top: 120px;
}

.sidebar-heading {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.sidebar-links li {
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

.sidebar-links li:last-child { border-bottom: none; }

.sidebar-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--clr-ink);
  transition: color var(--transition);
}

.sidebar-links a:hover { color: var(--clr-accent); text-decoration: underline; }

/* ── Content column ── */
.content-col {
  flex: 1;
  min-width: 0;
}

/* ── Neumorphic card ── */
.nm-card {
  background: linear-gradient(145deg, var(--clr-surface), #bdd6ee);
  border-radius: var(--radius);
  box-shadow: var(--shadow-out);
  padding: 1.75rem 1.5rem;
  margin-bottom: 2rem;
}

/* ── Article header ── */
.article-header {
  margin-bottom: 1.5rem;
}

.feature-hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-out);
  margin-bottom: 1.25rem;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

/* ── Stage label ── */
.stage-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 0.75rem;
}

.stage-awareness  { background: var(--clr-primary);   color: var(--clr-ink); }
.stage-consideration { background: var(--clr-secondary); color: var(--clr-ink); }
.stage-decision   { background: #8ab4d8; color: #fff; }

/* ── Page content / prose ── */
.page-content h2,
.prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.25rem;
}

.page-content h3,
.prose h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.2rem;
}

.page-content p,
.prose p {
  margin-bottom: 1rem;
}

.page-content a,
.prose a {
  color: #3a6a9a;
  text-decoration: underline;
}

.page-content ul,
.page-content ol,
.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content li,
.prose li { margin-bottom: 0.4rem; }

.page-content table,
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.page-content th,
.prose th {
  background: var(--clr-accent);
  color: #fff;
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.page-content td,
.prose td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.page-content tr:nth-child(even) td,
.prose tr:nth-child(even) td {
  background: rgba(200,224,244,0.25);
}

/* ── Child page cards (home) ── */
.child-cards {
  margin-top: 2.5rem;
}

/* child-page-list: section > article×n (no list tags) */
.child-cards > article {
  background: linear-gradient(145deg, #d2e6f8, #c0d8f0);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 1.25rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.child-cards > article:hover {
  transform: translateY(-2px);
  box-shadow: -6px -6px 18px rgba(255,255,255,0.75), 6px 6px 18px rgba(0,0,0,0.14);
}

.child-cards > article h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.child-cards > article h3 a { text-decoration: none; color: var(--clr-ink); }
.child-cards > article h3 a:hover { color: var(--clr-accent); text-decoration: underline; }

.card-desc { color: var(--clr-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.card-date { font-size: 0.8rem; color: var(--clr-muted); font-style: italic; margin-bottom: 0.4rem; }

.read-more {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3a6a9a;
  text-decoration: none;
  gap: 0.25rem;
}

.read-more:hover { text-decoration: underline; }

/* ── FAQ body ── */
.faq-intro {
  font-size: 1rem;
  color: var(--clr-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ── Pricing ── */
.pricing-intro {
  font-size: 1rem;
  color: var(--clr-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ── About / Author section ── */
.author-section {
  margin-top: 2.5rem;
  background: linear-gradient(145deg, var(--clr-surface-alt), #ead4e0);
  border-radius: var(--radius);
  box-shadow: var(--shadow-out);
  padding: 1.75rem 1.5rem;
}

.author-name-heading {
  margin-bottom: 0.2rem;
}

.author-bio-block {
  margin-top: 1rem;
}

.author-bio {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--clr-ink);
}

/* ── Contact form ── */
.contact-form-block {
  margin-top: 2rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-muted);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--clr-ink);
  background: linear-gradient(145deg, #d6e8f8, #c8dff2);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  box-shadow: var(--shadow-in);
  outline: none;
  transition: box-shadow var(--transition);
  min-height: 44px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  box-shadow: inset 4px 4px 10px rgba(0,0,0,0.12), inset -4px -4px 10px rgba(255,255,255,0.65), 0 0 0 2px var(--clr-accent);
}

.form-submit {
  align-self: flex-start;
  min-height: 44px;
  padding: 0 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(145deg, #8ab4d8, #6ea0c8);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-out);
  transition: transform var(--transition), box-shadow var(--transition);
}

.form-submit:hover {
  transform: scale(1.03);
  box-shadow: -3px -3px 10px rgba(255,255,255,0.65), 3px 3px 10px rgba(0,0,0,0.15);
}

.form-submit:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-in);
}

/* ── Footer ── */
.site-footer {
  background: linear-gradient(145deg, var(--clr-ink), #1e2b38);
  color: rgba(255,255,255,0.75);
  margin-top: auto;
}

/* footer > nav.footer-nav (direct child) with footer-top as section container inside */
.footer-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.footer-top {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand-col {
  flex: 1 1 240px;
}

.footer-brand {
  font-size: 1.5rem;
  color: var(--clr-primary);
  display: block;
  margin-bottom: 0.6rem;
}

.footer-blurb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-trust-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-trust-links a {
  font-size: 0.82rem;
  color: var(--clr-primary);
  text-decoration: none;
}

.footer-trust-links a:hover { text-decoration: underline; }

.footer-links-col {
  flex: 1 1 200px;
}

.footer-col-heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-list li { margin-bottom: 0.35rem; }

.footer-link-list a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0;
}

.footer-link-list a:hover { color: var(--clr-primary); text-decoration: underline; }

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.rg-notice {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
  margin-bottom: 0;
  flex: 1 1 250px;
}

.copyright {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0;
  flex-shrink: 0;
}

/* ── Stagger animation ── */
@media (prefers-reduced-motion: no-preference) {
  .child-cards > article {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.4s ease forwards;
  }

  .child-cards > article:nth-child(1) { animation-delay: 0.05s; }
  .child-cards > article:nth-child(2) { animation-delay: 0.12s; }
  .child-cards > article:nth-child(3) { animation-delay: 0.19s; }
  .child-cards > article:nth-child(4) { animation-delay: 0.26s; }
  .child-cards > article:nth-child(5) { animation-delay: 0.33s; }
  .child-cards > article:nth-child(6) { animation-delay: 0.40s; }

  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ── Mobile nav (≤768px) ── */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  /* brand row: brand left, toggle + CTAs right */
  .header-brand-row {
    flex-wrap: nowrap;
    padding: 0.5rem 1rem;
  }

  .header-ctas {
    margin-left: 0.5rem;
    gap: 0.35rem;
  }

  .cta {
    font-size: 0.78rem;
    padding: 0 0.7rem;
    min-height: 44px;
  }

  /* Nav row: hidden until toggle opens */
  .header-nav-row {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
  }

  .header-nav-row.open {
    max-height: 600px;
  }

  .header-nav-row nav ol {
    flex-direction: column;
    padding: 0.5rem 0;
  }

  .header-nav-row nav ol li a {
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
    min-height: 44px;
  }

  /* Main layout: stack sidebar below */
  main > div.wrap > section > article {
    flex-direction: column;
  }

  .sidebar {
    flex: none;
    width: 100%;
    order: 1;
  }

  .sidebar-inner {
    position: static;
  }

  .content-col {
    order: 0;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 2rem 1rem;
  }

  .hero-inner { flex-direction: column; gap: 1rem; }
  .hero-illustration img { max-width: 120px; }

  .footer-top { flex-direction: column; gap: 1.5rem; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Small phone (375px) ── */
@media (max-width: 400px) {
  html { font-size: 17px; }

  .brand-name { font-size: 1.25rem; }

  h1 { font-size: 1.75rem; }

  main { padding: 1.5rem 0.85rem; }
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}