:root{
  --bg:#120A1E;            /* dark purple */
  --panel:#1B0F2C;
  --panel2:#22113A;
  --text:#F2F0F6;
  --muted:#C8C2D3;
  --gold:#D4AF37;
  --gold2:#B8922E;
  --light:#F7F6FA;         /* light header zone */
  --dark:#0B0710;
  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1100px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue";}
body{background: linear-gradient(180deg, var(--light) 0%, var(--light) 640px, var(--bg) 640px); color:var(--text);}

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

.container{max-width:var(--max); margin:0 auto; padding:0 18px;}

/* Topbar */
.topbar{position:sticky; top:0; z-index:50; background:rgba(247,246,250,.92); backdrop-filter: blur(10px); border-bottom:1px solid rgba(18,10,30,.10)}
.nav{display:flex; align-items:center; justify-content:space-between; padding:14px 0;}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.3px; color:#1a1026}
.brand img{width:34px;height:34px}
.navlinks{display:flex; gap:18px; align-items:center;}
.navlinks a{color:#1a1026; font-weight:650; opacity:.85}
.navlinks a:hover{opacity:1}

.btn{display:inline-flex; align-items:center; gap:10px; border-radius:999px; padding:10px 14px; font-weight:750; border:1px solid transparent; cursor:pointer; user-select:none;}
.btn-primary{background:linear-gradient(135deg, var(--gold), var(--gold2)); color:#1a1026; box-shadow: 0 10px 22px rgba(212,175,55,.25)}
.btn-primary:hover{filter:brightness(1.03)}
.btn-ghost{background:transparent; border:1px solid rgba(26,16,38,.18); color:#1a1026}
.btn-ghost:hover{border-color:rgba(26,16,38,.32)}

/* Mobile menu */
.hamburger{display:none; background:transparent; border:none; padding:10px; cursor:pointer}
.hamburger span{display:block; width:22px; height:2px; background:#1a1026; margin:4px 0; border-radius:2px}
.mobile{display:none; padding:0 0 14px}
.mobile a{display:block; padding:10px 6px; color:#1a1026; font-weight:650; opacity:.9}
.mobile a:hover{opacity:1}

/* Hero */
.hero{padding:64px 0 22px; color:#1a1026}
.hero-grid{display:grid; grid-template-columns: 1.25fr .75fr; gap:18px; align-items:stretch;}
.h1{font-size:44px; line-height:1.05; margin:0 0 14px}
.sub{font-size:16px; line-height:1.55; margin:0 0 22px; max-width: 62ch; opacity:.9}
.badges{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:18px}
.badge{display:inline-flex; gap:8px; align-items:center; background:rgba(26,16,38,.06); border:1px solid rgba(26,16,38,.10); border-radius:999px; padding:7px 10px; font-weight:650; font-size:13px;}

.hero-card{background:rgba(26,16,38,.06); border:1px solid rgba(26,16,38,.10); border-radius: var(--radius); padding:18px; box-shadow: 0 12px 30px rgba(0,0,0,.06)}
.hero-card h3{margin:0 0 8px}
.hero-card p{margin:0; opacity:.9; line-height:1.55}

/* Section */
.section{padding:34px 0}
.section-title{font-size:22px; margin:0 0 10px}
.section-sub{color:var(--muted); margin:0 0 18px; line-height:1.55}

/* Cards */
.grid{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px;}
.card{background:linear-gradient(180deg, var(--panel), var(--panel2)); border:1px solid rgba(212,175,55,.35); border-radius: var(--radius); padding:18px; box-shadow: var(--shadow)}
.card h3{margin:10px 0 8px; font-size:18px}
.card p{margin:0 0 14px; color:var(--muted); line-height:1.55}
.card .meta{display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:14px}
.pill{display:inline-flex; align-items:center; gap:8px; border:1px solid rgba(212,175,55,.35); border-radius:999px; padding:6px 10px; font-weight:700; font-size:12px; color:var(--text); opacity:.95}
.price{font-size:20px; font-weight:850}

.feature-list{margin:12px 0 0; padding:0; list-style:none}
.feature-list li{display:flex; gap:10px; align-items:flex-start; margin:10px 0; color:var(--muted); line-height:1.45}
.icon{width:18px; height:18px; flex:0 0 auto; margin-top:1px}

/* Comparison */
.table-wrap{overflow:auto; border-radius: var(--radius); border:1px solid rgba(212,175,55,.35); box-shadow: var(--shadow)}
table{width:100%; border-collapse:collapse; min-width: 820px; background:linear-gradient(180deg, var(--panel), var(--panel2));}
th,td{padding:14px 12px; border-bottom:1px solid rgba(255,255,255,.08); text-align:left}
th{color:var(--text); font-weight:850}
td{color:var(--muted)}
tr:last-child td{border-bottom:none}

/* FAQ */
.faq{display:grid; grid-template-columns: 1fr 1fr; gap:12px;}
.faq-item{background:linear-gradient(180deg, var(--panel), var(--panel2)); border:1px solid rgba(212,175,55,.25); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow)}
.faq-q{display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 16px; cursor:pointer}
.faq-q strong{font-size:14px}
.faq-a{display:none; padding:0 16px 14px; color:var(--muted); line-height:1.55}
.faq-item.open .faq-a{display:block}

/* Footer */
.footer{padding:26px 0 46px; color:var(--muted)}
.footer-grid{display:grid; grid-template-columns: 1.3fr .7fr .7fr; gap:14px; align-items:start}
.footer a{color:var(--muted)}
.footer a:hover{color:var(--text)}
.small{font-size:12px; opacity:.9; line-height:1.5}

/* Page header */
.pagehead{padding:32px 0 0}
.pagehead h1{margin:0 0 10px; color:#1a1026; font-size:34px}
.pagehead p{margin:0 0 22px; color:#1a1026; opacity:.86; line-height:1.55; max-width: 75ch}

/* Utility */
.spacer{height:10px}
.hr{height:1px; background: rgba(255,255,255,.10); margin:20px 0}


/* ------------------------------------------------------------------
   Readability + seam fix (no layout hacks)
   - Remove forced dark headings on #free-tools (they were unreadable on dark bg)
   - Add spacing so Free Tools isn't sitting on the light→dark seam
-------------------------------------------------------------------*/


/* ------------------------------------------------------------------
   Light-zone text color: black (requested)
   Keeps dark cards readable by forcing card text back to light.
   ------------------------------------------------------------------*/

/* Hero + Free Tools headings/subtitles on the light background */
.hero, .hero .h1, .hero .sub, .hero .badge,
#free-tools > .section-title, #free-tools > .section-sub{
  color: #1a1026;
}
#free-tools > .section-sub{
  color: rgba(26,16,38,.80);
}

/* Ensure Free Tools cards remain readable (they use dark panels) */
#free-tools .card,
#free-tools .card h3,
#free-tools .card p,
#free-tools .card .small{
  color: var(--text);
}
#free-tools .card .small{ color: rgba(242,240,246,.80); }


#free-tools{
  margin-top: 24px;   /* pushes section away from the seam */
}

/* Default section headings should be readable on dark background */
.section-title{ color: var(--text); }
.section-sub{ color: var(--muted); }

/* If a section is meant to live on the LIGHT hero zone, opt-in with .on-light */
.on-light .section-title{ color:#1a1026; }
.on-light .section-sub{ color: rgba(26,16,38,.80); }


/* Responsive */
@media (max-width: 920px){
  .hero-grid{grid-template-columns:1fr;}
  .grid{grid-template-columns: 1fr;}
  .faq{grid-template-columns:1fr;}
}
@media (max-width: 760px){
  .navlinks{display:none}
  .hamburger{display:block}
  .mobile{display:none}
  .mobile.open{display:block}
  .h1{font-size:36px}
  .footer-grid{grid-template-columns:1fr;}
}






#paid-kits .section-title{color:#ffffff !important;}
#paid-kits .section-sub{color:#d7d2e6 !important;}
#systems .section-title{color:#ffffff !important;}
#systems .section-sub{color:#d7d2e6 !important;}

/* Products page readability fix on light background */
#paid-kits .section-title{
  color: var(--text);
}
#paid-kits .section-sub{
  color: var(--muted);
}

/* FINAL override: Product ladder text on light zone (wins over earlier !important rules) */
#paid-kits .section-title{ color:#1a1026 !important; }
#paid-kits .section-sub{ color:rgba(26,16,38,.82) !important; }

/* ===== CLEAN LIGHT-SECTION HEADER FIX (v3) ===== */
/* Some prior patches used var(--ink), which is not defined. Use explicit dark text. */
.page--products #paid-kits .section-title,
.page--products #paid-kits .section-sub,
.page--docs #bronze-quick .section-title,
.page--docs #bronze-quick .section-sub,
.page--docs #silver-access .section-title,
.page--docs #silver-access .section-sub,
.page--support #common-questions .section-title,
.page--support #common-questions .section-sub {
  color: #1a1026 !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

/* Keep muted subtitle tone on light background */
.page--products #paid-kits .section-sub,
.page--docs #bronze-quick .section-sub,
.page--docs #silver-access .section-sub,
.page--support #common-questions .section-sub {
  color: rgba(26,16,38,.82) !important;
}

/* Keep dark-zone headers readable after the seam */
.page--products #systems .section-title,
.page--products #systems .section-sub {
  color: #fff !important;
}
.page--products #systems .section-sub {
  color: #d7d2e6 !important;
}
