
:root {
  --primary: #6D28D9; --accent: #A78BFA; --bg: #FAF5FF; --text: #101828; --muted: #475467;
  --surface: #FFFFFF; --border: #EAECF0; --radius: 14px; --shadow: 0 2px 12px rgba(16,24,40,0.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Inter', 'Helvetica Neue', Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; font-size: 17px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
h1 { font-size: 56px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
h2 { font-size: 32px; line-height: 1.2; font-weight: 700; margin-bottom: 16px; margin-top: 32px; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 600; }
p { margin-bottom: 16px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-accent { background: var(--accent); color: #fff; }
.topbar { background: var(--primary); color: #fff; padding: 8px 0; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar .badge { background: var(--accent); padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.topbar .social a { color: #fff; margin-left: 8px; opacity: 0.9; }
header.site { background: var(--surface); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
header.site .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
header.site .logo { font-weight: 800; font-size: 20px; color: var(--text); }
header.site .logo .cs { color: var(--primary); }
nav.main a { margin: 0 10px; color: var(--text); font-weight: 500; font-size: 15px; text-decoration: none; }
nav.main a:hover { color: var(--primary); }
.breadcrumb { padding: 12px 0; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb .sep { margin: 0 8px; }
.hero { padding: 60px 0 40px; }
.hero p.lede { font-size: 20px; color: var(--muted); margin-bottom: 24px; }
.disclaimer { background: #FFF8E6; border: 1px solid #FCD34D; padding: 12px 16px; border-radius: 8px; font-size: 13px; margin: 16px auto; max-width: 1180px; }
.longform { max-width: 800px; margin: 0 auto; }
/* Published article bodies are content, not decorative reveal targets. Keep
   them visible even when an optional scroll-animation script fails. */
section:has(.longform), section:has(.longform).fade-in, .longform {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
.longform ul { margin: 16px 0 16px 24px; }
.longform li { margin-bottom: 8px; }
.inline-cta { background: var(--surface); border: 2px solid var(--primary); border-radius: var(--radius); padding: 32px; text-align: center; margin: 32px auto; max-width: 800px; }
.cta-pair { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.faq-list { margin: 16px 0; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; padding: 12px 16px; }
.faq-item summary { font-weight: 600; cursor: pointer; padding: 8px 0; }
.faq-item .answer { padding: 8px 0; color: var(--muted); }
section { padding: 40px 0; }
section.alt { background: var(--surface); }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.hub-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.hub-card h3 { color: var(--primary); margin-bottom: 8px; }
.banner-img { width: 100%; height: auto; max-height: 500px; object-fit: cover; border-radius: var(--radius); margin: 24px 0; }

/* 2-column inline-image-row: image beside text on desktop, stacked on mobile. */
.inline-image-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 28px 0;
}
.inline-image-row .inline-image-row-text { min-width: 0; }
.inline-image-row .inline-image-row-text p { margin-bottom: 12px; }
.inline-image-row .inline-image-row-text p:last-child { margin-bottom: 0; }
.inline-image-row figure { margin: 0; min-width: 0; }
.inline-image-row img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
/* Keep the hero image card looking like a banner; reserve full width for it. */
.inline-image-row.inline-image-row-wide { grid-template-columns: minmax(0, 1fr); }
.inline-image-row.inline-image-row-wide img { max-height: 520px; }
@media (max-width: 768px) {
  .inline-image-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .inline-image-row img { max-height: 280px; }
}
footer { background: #1E1B4B; color: #E5E7EB; padding: 48px 0 16px; margin-top: 48px; }
footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-heading { color: #fff; font-size: 14px; margin-bottom: 12px; text-transform: uppercase; font-weight: 700; }
footer ul { list-style: none; }
footer li { margin-bottom: 6px; }
footer a { color: #D1D5DB; text-decoration: none; }
footer .legal-bar { grid-column: 1 / -1; border-top: 1px solid #312E81; padding-top: 16px; margin-top: 16px; font-size: 13px; color: #D1D5DB; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 768px) {
  h1 { font-size: 36px; } h2 { font-size: 24px; }
  .container { padding: 0 16px; }
  footer .container { grid-template-columns: 1fr 1fr; }
  nav.main { display: none; }
}

.skip-link { position: absolute; top: -40px; left: 0; background: var(--primary); color: #fff; padding: 8px 16px; z-index: 9999; font-weight: 600; }
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ' +'; float: right; font-weight: 700; }
details[open] summary::after { content: ' −'; }

/* Fleet mobile menu fallback: keep hamburger tappable across static templates. */
@media (max-width: 760px) {
  header.site > .container > .btn-primary,
  header.header .nav-cta,
  header.site-header .header-cta > .btn {
    display: none !important;
  }
  .menu-toggle { cursor: pointer; }
  header.site .container,
  header.header .header-inner,
  header.site-header .header-inner {
    position: relative;
  }
  nav.main,
  .nav,
  .primary-nav {
    display: none;
  }
  nav.main.open,
  .nav.open,
  .primary-nav.open {
    display: flex !important;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    z-index: 1001;
    flex-direction: column;
    gap: 6px;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    padding: 14px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, rgba(15,23,42,.16));
    border-radius: var(--radius, 12px);
    box-shadow: 0 18px 42px rgba(15,23,42,.2);
  }
  nav.main.open a,
  .nav.open a,
  .primary-nav.open a {
    display: block;
    width: 100%;
    padding: 10px 12px;
  }
}

/* Halaplay mobile menu and affiliate CTA tune */
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--primary);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
}
.mobile-affiliate-cta { display: none; }

@media (max-width: 768px) {
  body { padding-bottom: 82px; }
  .topbar .container {
    gap: 12px;
    align-items: flex-start;
  }
  .topbar .social {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 2px 10px;
    white-space: nowrap;
  }
  header.site .container {
    min-height: 72px;
    gap: 12px;
    position: relative;
  }
  header.site .logo {
    min-width: 0;
    flex: 1 1 auto;
  }
  .menu-toggle { display: inline-flex !important; }
  header.site > .container > .btn-primary { display: none !important; }
  nav.main {
    display: none !important;
  }
  nav.main.open {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1200;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px 14px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 34px rgba(16,24,40,.18);
  }
  nav.main.open a {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 10px;
    border-radius: 8px;
    color: var(--text);
    font-weight: 700;
  }
  nav.main.open a:hover {
    background: var(--bg);
    text-decoration: none;
  }
  .hero {
    padding: 34px 0 26px;
    background: #fff;
  }
  .hero h1,
  .hero p.lede {
    color: var(--text) !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
  .hero .hero-cta,
  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .hero .hero-cta .btn,
  .hero-cta .btn,
  .cta-pair .btn {
    width: 100%;
    text-align: center;
  }
  .mobile-affiliate-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1300;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    border-top: 1px solid var(--border);
    box-shadow: 0 -12px 28px rgba(16,24,40,.16);
  }
  .mobile-affiliate-cta .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.15;
    text-align: center;
  }
  footer { margin-bottom: 70px; }
}
