/* =========================================================
   How to Bet on MMA — E-Ink / Paper Theme
   Plus Jakarta Sans · #fdfbf7 / #f5f5f5 / #1a1a1a
   ========================================================= */

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

html {
  font-size: 17px;
  line-height: 1.65;
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: #fdfbf7;
  color: #1a1a1a;
  min-height: 100vh;
  overflow-x: hidden;
  /* paper grain texture */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* --- Typography ------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

h1 { font-size: 2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.45rem; margin-top: 2rem; margin-bottom: 0.25rem; }
h3 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: 0.25rem; }
h4 { font-size: 1rem; margin-top: 1.25rem; }

p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

a { color: #1a1a1a; text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration: none; opacity: 0.7; }

strong { font-weight: 700; }
em { font-style: italic; }

code, pre {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}
code { padding: 0.1em 0.35em; }
pre { padding: 1rem; overflow-x: auto; }

blockquote {
  border-left: 3px solid #1a1a1a;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  background: #f5f5f5;
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid #1a1a1a;
  margin: 1rem 0 1.25rem;
  opacity: 0.18;
}

/* --- Announce Strip -------------------------------------- */
.announce-strip {
  background: #1a1a1a;
  color: #fdfbf7;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 1rem;
  font-weight: 500;
}

/* --- Header --------------------------------------------- */
.site-header {
  border-bottom: 1px solid rgba(26,26,26,0.15);
  background: #fdfbf7;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(26,26,26,0.08);
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: #1a1a1a;
}

.site-logo { height: 36px; width: auto; display: block; }

.header-cta-group {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

/* --- CTA Buttons ---------------------------------------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: none;
  cursor: pointer;
}

.cta-signup {
  background: #1a1a1a;
  color: #fdfbf7;
  border: 2px solid #1a1a1a;
}
.cta-signup:hover { background: #333; border-color: #333; opacity: 1; }

.cta-login {
  background: transparent;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
}
.cta-login:hover { background: #1a1a1a; color: #fdfbf7; opacity: 1; }

/* --- Header Nav ----------------------------------------- */
.header-nav {
  padding: 0 1.5rem;
}

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

.header-nav ol li {
  margin: 0;
}

.header-nav ol li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #1a1a1a;
  border-right: 1px solid rgba(26,26,26,0.1);
}

.header-nav ol li:first-child a { padding-left: 0; }
.header-nav ol li:last-child a { border-right: none; }

.header-nav ol li a:hover { text-decoration: underline; opacity: 1; }

/* --- Page Layout: main + aside + section ----------------- */
main {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  gap: 2rem;
}

/* --- Aside (left of content) ----------------------------- */
.site-aside {
  flex: 0 0 220px;
  min-width: 0;
  position: sticky;
  top: 120px;
}

.aside-inner {
  background: rgba(245,245,245,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(26,26,26,0.12);
  border-radius: 10px;
  padding: 1.25rem;
}

.aside-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.aside-nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  counter-reset: aside-counter;
}

.aside-nav-list li {
  counter-increment: aside-counter;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(26,26,26,0.07);
}

.aside-nav-list li:last-child { border-bottom: none; }

.aside-nav-list li a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.82rem;
  line-height: 1.35;
  text-decoration: none;
  color: #1a1a1a;
}

.aside-nav-list li a::before {
  content: counter(aside-counter) ". ";
  font-weight: 700;
  opacity: 0.4;
  font-size: 0.75rem;
}

.aside-nav-list li a:hover { text-decoration: underline; opacity: 1; }

.aside-cta-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(26,26,26,0.1);
}

.aside-cta-label {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.aside-cta-btn {
  width: 100%;
  font-size: 0.8rem;
}

/* --- Main section column --------------------------------- */
main > section {
  flex: 1 1 0;
  min-width: 0;
  max-width: 740px;
}

/* --- Content Body --------------------------------------- */
.content-body {
  line-height: 1.75;
}

.content-body h2 { margin-top: 2.25rem; }
.content-body h3 { margin-top: 1.75rem; }

.content-body a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.content-body a:hover { opacity: 0.65; text-decoration: none; }

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

.content-body table th,
.content-body table td {
  border: 1px solid rgba(26,26,26,0.15);
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.content-body table th {
  background: #f5f5f5;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.content-body table tr:nth-child(even) td { background: #fafafa; }

/* --- Byline --------------------------------------------- */
.byline {
  font-size: 0.85rem;
  color: #1a1a1a;
  opacity: 0.6;
  margin-bottom: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.author-name { font-weight: 700; opacity: 1; }
.byline time { font-variant-numeric: tabular-nums; }

/* --- Stage label ---------------------------------------- */
.stage-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  margin-bottom: 0.6rem;
  background: #f5f5f5;
  border: 1px solid rgba(26,26,26,0.15);
}

.stage-awareness { border-color: rgba(26,26,26,0.2); }
.stage-consideration { background: #efefef; }
.stage-decision { background: #1a1a1a; color: #fdfbf7; }

/* --- Page eyebrow ---------------------------------------- */
.page-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  opacity: 0.5;
}

/* --- Hero (Home) ---------------------------------------- */
.hero-section {
  margin-bottom: 2.5rem;
}

.hero-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  min-height: 65vh;
  padding: 2rem 0;
}

.hero-media {
  flex: 1 1 44%;
  min-width: 0;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(26,26,26,0.1);
  display: block;
}

.hero-placeholder {
  width: 100%;
  min-height: 360px;
  background: #f5f5f5;
  border-radius: 10px;
  border: 1px solid rgba(26,26,26,0.1);
}

.hero-copy {
  flex: 1 1 52%;
  min-width: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero-copy h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.75;
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  background: #1a1a1a;
  color: #fdfbf7;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-radius: 6px;
  border: 2px solid #1a1a1a;
}

.btn-primary:hover { background: #333; border-color: #333; opacity: 1; }

/* --- Guide Hero ----------------------------------------- */
.guide-hero-wrap {
  margin: 1.25rem 0 1.5rem;
}

.guide-hero-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(26,26,26,0.1);
  display: block;
}

/* --- Child-page link row -------------------------------- */
.child-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(26,26,26,0.1);
}

.child-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 320px;
  background: rgba(245,245,245,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(26,26,26,0.12);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: #1a1a1a;
  transition: none;
}

.child-card:hover {
  background: rgba(245,245,245,0.95);
  border-color: rgba(26,26,26,0.3);
  opacity: 1;
}

.child-card strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.child-card span {
  font-size: 0.8rem;
  opacity: 0.65;
  line-height: 1.4;
}

/* --- Glass Card ----------------------------------------- */
.glass-card {
  background: rgba(245,245,245,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(26,26,26,0.12);
  border-radius: 10px;
  padding: 1.5rem;
}

/* --- Author article (about page) ----------------------- */
.author-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(26,26,26,0.1);
}

.author-section h2 {
  font-size: 1.2rem;
  margin-top: 0;
}

.author-name-line {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.author-credentials {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.7;
}

.author-bio {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 0;
}

/* --- Footer --------------------------------------------- */
.site-footer {
  background: #f5f5f5;
  border-top: 1px solid rgba(26,26,26,0.15);
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
}

.footer-cols {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-col {
  flex: 1 1 180px;
  min-width: 160px;
}

.footer-col dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.5;
  border-bottom: 1px solid rgba(26,26,26,0.1);
  padding-bottom: 0.4rem;
}

.footer-col dd {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-col dd a {
  text-decoration: none;
  color: #1a1a1a;
  opacity: 0.75;
}

.footer-col dd a:hover { opacity: 1; text-decoration: underline; }

.footer-brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 1;
  border-bottom: none;
  text-transform: none;
  padding-bottom: 0.25rem;
}

.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  opacity: 0.65;
  max-width: 280px;
}

.footer-author {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 0.4rem;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid rgba(26,26,26,0.12);
  padding: 1rem 0 1.25rem;
}

.footer-rg {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a1a1a;
  opacity: 0.55;
  max-width: 480px;
  line-height: 1.4;
}

.footer-copy {
  font-size: 0.78rem;
  opacity: 0.4;
  font-weight: 400;
}

/* --- Home content article headings ---------------------- */
.home-content h2 { margin-top: 2rem; }
.home-content > h2:first-child { margin-top: 0; }

/* --- FAQ specific --------------------------------------- */
.faq-body .faq-item,
.faq-body details {
  border-bottom: 1px solid rgba(26,26,26,0.1);
  padding: 0.75rem 0;
}

/* --- Changelog ------------------------------------------ */
.changelog-body h2 {
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

/* --- Hover micro-interaction on cards ------------------- */
.child-card, .glass-card {
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {
  .child-card {
    transition: border-color 0.12s, background 0.12s;
  }

  .aside-nav-list li a {
    transition: opacity 0.08s;
  }

  .header-nav ol li a {
    transition: opacity 0.08s;
  }

  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* --- Responsive ----------------------------------------- */
@media (max-width: 900px) {
  main {
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .site-aside {
    position: static;
    flex: none;
    width: 100%;
    order: 2;
  }

  .aside-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
  }

  .aside-heading { width: 100%; }

  .aside-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }

  .aside-nav-list li {
    border-bottom: none;
  }

  .aside-nav-list li a {
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(26,26,26,0.1);
    border-radius: 4px;
    margin: 0.2rem;
    font-size: 0.78rem;
  }

  .aside-nav-list li a::before { display: none; }

  main > section {
    max-width: 100%;
    order: 1;
  }

  .hero-inner {
    flex-direction: column;
    min-height: auto;
    gap: 1.5rem;
  }

  .hero-copy {
    text-align: left;
    align-items: flex-start;
  }

  .hero-copy h1 { font-size: 1.75rem; }

  .child-link-row { flex-direction: column; }
  .child-card { max-width: 100%; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }

  .header-brand-row {
    padding: 0.6rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .header-cta-group { gap: 0.4rem; }

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

  .header-nav { padding: 0 0.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .header-nav ol {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .header-nav ol li a {
    padding: 0 0.65rem;
    font-size: 0.78rem;
    min-height: 44px;
  }

  main { padding: 1rem 0.85rem; }

  .footer-cols { flex-direction: column; gap: 1.25rem; }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .announce-strip { font-size: 0.72rem; }
}

/* --- Print ---------------------------------------------- */
@media print {
  .site-header, .site-aside, .site-footer, .announce-strip { display: none; }
  main { display: block; padding: 0; }
  body { background: #fff; }
}

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