/* ============================================================
   ATLAS — content pages (About, FAQ, guides, set landing pages)
   Reuses the design tokens from style.css.
   ============================================================ */

:root{
  --font-display:'Bricolage Grotesque',serif;
  --font-ui:'Hanken Grotesk',sans-serif;
  --font-mono:'DM Mono',monospace;

  --bg:#121110;
  --bg-2:#181614;
  --surface:#1E1C19;
  --surface-2:#262320;
  --line:#322E29;
  --line-soft:#262320;
  --text:#ECE7DF;
  --text-dim:#9C968B;
  --text-mute:#6A655C;
  --accent:#FF5A36;
  --accent-soft:#FF8A6B;
  --good:#5BC07A;
  --shadow:0 24px 60px -18px rgba(0,0,0,.7);
  --hdr-h:64px;
  --wrap:absolute;
}
[data-theme="light"]{
  --bg:#EDEAE2;
  --bg-2:#E5E1D7;
  --surface:#FBFAF6;
  --surface-2:#FFFFFF;
  --line:#D8D2C5;
  --line-soft:#E4DFD3;
  --text:#1F1C17;
  --text-dim:#6B665C;
  --text-mute:#9A958A;
  --shadow:0 24px 60px -22px rgba(60,50,40,.32);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--font-ui);
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  line-height:1.65;
  overflow-x:hidden;
  min-height:100%;
}
body::before{
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.025;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a{color:var(--accent-soft);text-decoration:none}
a:hover{text-decoration:underline}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
.mono{font-family:var(--font-mono)}

/* ---------- Header / nav ---------- */
.site-hdr{
  position:sticky;top:0;z-index:60;height:var(--hdr-h);
  display:flex;align-items:center;justify-content:space-between;
  padding:0 22px;background:var(--bg-2);
  border-bottom:1px solid var(--line);
}
.site-hdr .brand{display:flex;align-items:center;gap:13px}
.site-hdr .logo{
  width:38px;height:38px;border-radius:11px;background:var(--accent);color:#1a0d08;
  font-family:var(--font-display);font-weight:800;font-size:23px;
  display:grid;place-items:center;text-decoration:none;
}
.site-hdr .brand-titles{display:flex;flex-direction:column;justify-content:center;gap:1px}
.site-hdr .brand-titles h1,
.site-hdr .brand-titles .name{
  font-family:var(--font-display);font-weight:800;font-size:19px;
  letter-spacing:-.01em;line-height:1.05;color:var(--text);
}
.site-hdr .brand-titles span{font-size:12px;color:var(--text-dim);letter-spacing:.03em;line-height:1}
.site-hdr .brand-titles br{display:none}
.site-nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.site-nav a{
  color:var(--text-dim);font-size:14px;font-weight:500;
  padding:8px 12px;border-radius:9px;text-decoration:none;
  transition:background .15s ease,color .15s ease;
}
.site-nav a:hover{background:var(--surface);color:var(--text);text-decoration:none}
.site-nav a.is-active{color:var(--text);background:var(--surface)}
.site-nav a.cta{
  background:var(--accent);color:#1a0d08;font-weight:700;
}
.site-nav a.cta:hover{background:var(--accent-soft);color:#1a0d08}
.nav-toggle{display:none;width:38px;height:38px;border-radius:10px;
  border:1px solid var(--line);background:var(--surface);align-items:center;justify-content:center}
.nav-toggle svg{width:20px;height:20px}

/* ---------- Layout ---------- */
.wrap{position:relative;z-index:1;max-width:880px;margin:0 auto;padding:0 22px}
.wrap-wide{max-width:1080px}
main{padding:56px 0 40px}

/* ---------- Hero ---------- */
.page-hero{padding:64px 0 30px;border-bottom:1px solid var(--line)}
.page-hero .eyebrow{
  font-family:var(--font-mono);font-size:12px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--accent);margin-bottom:14px;
}
.page-hero h1{
  font-family:var(--font-display);font-weight:800;
  font-size:clamp(32px,5vw,52px);line-height:1.08;letter-spacing:-.02em;
  margin-bottom:16px;
}
.page-hero p.lede{font-size:clamp(16px,2vw,19px);color:var(--text-dim);max-width:620px}

/* ---------- Article typography ---------- */
.prose{padding:42px 0 8px}
.prose h2{
  font-family:var(--font-display);font-weight:800;
  font-size:clamp(23px,3vw,30px);letter-spacing:-.01em;
  margin:46px 0 14px;line-height:1.2;
}
.prose h2:first-child{margin-top:0}
.prose h3{
  font-family:var(--font-display);font-weight:700;
  font-size:19px;margin:30px 0 10px;
}
.prose p{margin:0 0 16px;color:var(--text)}
.prose ul,.prose ol{margin:0 0 18px;padding-left:22px}
.prose li{margin:0 0 8px}
.prose li::marker{color:var(--accent)}
.prose strong{color:var(--text);font-weight:700}
.prose code{
  font-family:var(--font-mono);font-size:.88em;
  background:var(--surface-2);padding:2px 6px;border-radius:5px;
  border:1px solid var(--line);
}
.prose hr{border:none;border-top:1px solid var(--line);margin:38px 0}
.prose a{font-weight:600}

/* ---------- Callout / card ---------- */
.callout{
  background:var(--surface);border:1px solid var(--line);
  border-left:3px solid var(--accent);
  border-radius:12px;padding:18px 20px;margin:24px 0;
}
.callout p:last-child{margin-bottom:0}
.callout .ctitle{font-weight:700;margin-bottom:6px;color:var(--text)}

/* ---------- Table ---------- */
.tbl-wrap{overflow-x:auto;margin:22px 0;border:1px solid var(--line);border-radius:12px}
table{width:100%;border-collapse:collapse;font-size:14.5px}
th,td{padding:12px 16px;text-align:left;border-bottom:1px solid var(--line-soft)}
th{background:var(--surface-2);font-weight:700;color:var(--text);
  font-size:12.5px;letter-spacing:.04em;text-transform:uppercase}
tr:last-child td{border-bottom:none}
td{color:var(--text-dim)}
td strong{color:var(--text)}

/* ---------- FAQ accordion ---------- */
.faq-item{border:1px solid var(--line);border-radius:12px;margin-bottom:12px;
  background:var(--surface);overflow:hidden}
.faq-q{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:18px 20px;font-size:16px;font-weight:600;text-align:left;color:var(--text);
}
.faq-q:hover{color:var(--accent-soft)}
.faq-q .chev{flex-shrink:0;transition:transform .2s ease;width:20px;height:20px}
.faq-item.open .faq-q .chev{transform:rotate(180deg)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .25s ease}
.faq-a-inner{padding:0 20px 18px;color:var(--text-dim)}
.faq-item.open .faq-a{max-height:480px}

/* ---------- Feature / link grid ---------- */
.grid-cards{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;margin:28px 0;
}
.lcard{
  display:block;background:var(--surface);border:1px solid var(--line);
  border-radius:14px;padding:22px;text-decoration:none;color:var(--text);
  transition:transform .15s ease,border-color .15s ease;
}
.lcard:hover{transform:translateY(-3px);border-color:var(--accent);text-decoration:none}
.lcard .lc-mark{
  width:42px;height:42px;border-radius:11px;background:var(--surface-2);
  border:1px solid var(--line);display:grid;place-items:center;margin-bottom:14px;
}
.lcard .lc-mark svg{width:22px;height:22px;color:var(--accent)}
.lcard h3{font-family:var(--font-display);font-weight:700;font-size:17px;margin-bottom:6px}
.lcard p{font-size:14px;color:var(--text-dim);margin:0}
.lcard .lc-go{
  display:inline-block;margin-top:12px;font-size:13px;font-weight:600;color:var(--accent-soft);
}

/* ---------- Stat row ---------- */
.stat-row{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:14px;margin:28px 0;
}
.stat{
  background:var(--surface);border:1px solid var(--line);
  border-radius:12px;padding:18px 16px;text-align:center;
}
.stat .num{font-family:var(--font-display);font-weight:800;font-size:26px;color:var(--accent)}
.stat .lbl{font-size:13px;color:var(--text-dim);margin-top:2px}

/* ---------- CTA band ---------- */
.cta-band{
  margin:48px 0 8px;background:var(--surface);border:1px solid var(--line);
  border-radius:18px;padding:38px 32px;text-align:center;
}
.cta-band h2{font-family:var(--font-display);font-weight:800;
  font-size:clamp(22px,3vw,28px);margin-bottom:8px}
.cta-band p{color:var(--text-dim);margin-bottom:20px}
.btn-primary{
  display:inline-block;background:var(--accent);color:#1a0d08;
  font-weight:700;font-size:15px;padding:13px 26px;border-radius:11px;
  text-decoration:none;transition:background .15s ease;
}
.btn-primary:hover{background:var(--accent-soft);text-decoration:none}

/* ---------- Breadcrumb ---------- */
.crumb{font-size:13px;color:var(--text-mute);margin-bottom:18px}
.crumb a{color:var(--text-dim)}
.crumb span{margin:0 7px}

/* ---------- Ad slot ---------- */
.ad-slot{
  margin:34px auto;text-align:center;min-height:90px;
  display:flex;align-items:center;justify-content:center;
  border:1px dashed var(--line);border-radius:12px;
  background:var(--bg-2);
}
.ad-slot::before{
  content:"Advertisement";font-family:var(--font-mono);font-size:11px;
  letter-spacing:.12em;text-transform:uppercase;color:var(--text-mute);
}
.ad-slot.filled::before{display:none}
.ad-slot ins{display:block}

/* ---------- TOC ---------- */
.toc{
  background:var(--surface);border:1px solid var(--line);
  border-radius:12px;padding:18px 22px;margin:30px 0;
}
.toc .toc-title{font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--text-mute);margin-bottom:10px}
.toc ul{list-style:none;padding:0;margin:0}
.toc li{margin:0 0 6px}
.toc a{color:var(--text-dim);font-size:14.5px;font-weight:500}
.toc a:hover{color:var(--accent-soft)}

/* ---------- Footer ---------- */
.site-ftr{
  position:relative;z-index:1;border-top:1px solid var(--line);
  background:var(--bg-2);margin-top:60px;
}
.ftr-inner{
  max-width:1080px;margin:0 auto;padding:40px 22px 30px;
  display:flex;flex-wrap:wrap;gap:32px;justify-content:space-between;
}
.ftr-brand{max-width:280px}
.ftr-brand .fb-top{display:flex;align-items:center;gap:11px;margin-bottom:10px}
.ftr-brand .logo{
  width:32px;height:32px;border-radius:9px;background:var(--accent);color:#1a0d08;
  font-family:var(--font-display);font-weight:800;font-size:19px;
  display:grid;place-items:center;
}
.ftr-brand .fb-name{font-family:var(--font-display);font-weight:800;font-size:17px}
.ftr-brand p{font-size:13.5px;color:var(--text-dim)}
.ftr-col h4{
  font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--text-mute);margin-bottom:12px;
}
.ftr-col a{
  display:block;color:var(--text-dim);font-size:14px;
  margin-bottom:8px;text-decoration:none;
}
.ftr-col a:hover{color:var(--text)}
.ftr-base{
  border-top:1px solid var(--line);padding:18px 22px;
  max-width:1080px;margin:0 auto;
  display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;
}
.ftr-base p{font-size:13px;color:var(--text-mute)}
.ftr-base .ftr-mini{display:flex;gap:18px}
.ftr-base .ftr-mini a{color:var(--text-mute);font-size:13px;text-decoration:none}
.ftr-base .ftr-mini a:hover{color:var(--text-dim)}

/* ---------- Theme toggle ---------- */
.theme-btn{
  width:38px;height:38px;border-radius:10px;border:1px solid var(--line);
  background:var(--surface);display:grid;place-items:center;
}
.theme-btn svg{width:18px;height:18px}
[data-theme="dark"] .ico-sun{display:block}
[data-theme="dark"] .ico-moon{display:none}
[data-theme="light"] .ico-sun{display:none}
[data-theme="light"] .ico-moon{display:block}

/* ---------- Responsive ---------- */
@media(max-width:760px){
  .nav-toggle{display:flex}
  .site-nav{
    position:fixed;top:var(--hdr-h);left:0;right:0;
    flex-direction:column;align-items:stretch;gap:2px;
    background:var(--bg-2);border-bottom:1px solid var(--line);
    padding:12px 16px;display:none;
  }
  .site-nav.open{display:flex}
  .site-nav a{padding:11px 12px}
  .ftr-inner{flex-direction:column;gap:26px}
}

/* ---------- Scroll to top ---------- */
.scroll-top{
  position:fixed;right:22px;bottom:22px;z-index:90;
  width:46px;height:46px;border-radius:50%;
  background:var(--accent);color:#1a0d08;
  place-items:center;
  box-shadow:0 8px 24px -6px rgba(0,0,0,.45);
  display:none;
  border:none;cursor:pointer;
  transition:background .15s ease;
}
.scroll-top.show{display:grid}
.scroll-top:hover{background:var(--accent-soft)}
.scroll-top svg{width:22px;height:22px}
@media(max-width:560px){
  .scroll-top{right:16px;bottom:16px;width:42px;height:42px}
}


/* ---------- Cookie consent banner ---------- */
.cookie-banner{
  position:fixed;left:0;right:0;bottom:0;z-index:200;
  background:var(--surface-2);border-top:1px solid var(--line);
  box-shadow:0 -10px 40px -12px rgba(0,0,0,.35);
  transform:translateY(100%);transition:transform .28s ease;
}
.cookie-banner.show{transform:translateY(0)}
.cookie-inner{
  max-width:1080px;margin:0 auto;padding:18px 22px;
  display:flex;align-items:center;gap:24px;flex-wrap:wrap;justify-content:space-between;
}
.cookie-text{flex:1 1 420px;min-width:280px}
.cookie-text strong{
  display:block;font-family:var(--font-display,inherit);font-weight:800;
  font-size:15px;margin-bottom:4px;color:var(--text);
}
.cookie-text p{margin:0;font-size:13.5px;color:var(--text-dim);line-height:1.55}
.cookie-text a{color:var(--accent);font-weight:600}
.cookie-actions{display:flex;gap:10px;flex-shrink:0;flex-wrap:wrap}
.ck-btn{
  font-family:inherit;font-size:13.5px;font-weight:700;
  padding:11px 18px;border-radius:10px;cursor:pointer;border:1px solid var(--line);
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.ck-reject{background:transparent;color:var(--text-dim)}
.ck-reject:hover{background:var(--surface);color:var(--text)}
.ck-accept{background:var(--accent);color:#1a0d08;border-color:var(--accent)}
.ck-accept:hover{background:var(--accent-soft);border-color:var(--accent-soft)}
@media(max-width:560px){
  .cookie-inner{padding:14px 16px;gap:12px}
  .cookie-actions{width:100%}
  .ck-btn{flex:1 1 auto;text-align:center}
}

/* lift scroll-top above the cookie banner while it is open */
body.cookie-open .scroll-top{bottom:104px}
@media(max-width:560px){ body.cookie-open .scroll-top{bottom:150px} }

/* Twemoji attribution */
.ftr-credit{font-size:12px;color:var(--text-mute)}
.ftr-credit a{color:var(--text-dim);text-decoration:none}
.ftr-credit a:hover{color:var(--accent);text-decoration:underline}
