/* Totally Loco Motion — shared theme. Fixed dark palette; gold is the only accent. */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;800&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&family=Permanent+Marker&display=swap');

:root{
  --bg:#141519;
  --panel:#1e2027;
  --panel-hover:#292c38;
  --border:#2d3040;
  --text:#f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:#64748b;
  --gold:#c9a06a;
  --gold-soft:#ddbb8c;
  --gold-dim:#7a5f3c;
  --font-display:'Unbounded','Segoe UI',sans-serif;
  --font-body:'Manrope','Segoe UI',sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,monospace;
  --font-wordmark:'Permanent Marker',cursive;
}

*{box-sizing:border-box;}
html{color-scheme:dark;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;}
img{max-width:100%;}
.wrap{max-width:1180px; margin:0 auto; padding:0 32px;}

/* NAV */
header{
  position:sticky; top:0; z-index:10;
  background:rgba(20,21,25,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
nav.wrap{display:flex; align-items:center; justify-content:space-between; height:88px;}
.logo{display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:600; font-size:16px; letter-spacing:0.02em; text-decoration:none; color:var(--text);}
.logo-mark{width:28px; height:28px; border-radius:6px; background:linear-gradient(135deg, var(--gold), var(--gold-dim)); display:inline-block; flex-shrink:0;}
.logo-img{height:90px; width:auto; display:block;}
.navlinks{display:flex; gap:22px; list-style:none; margin:0; padding:0;}
.navlinks a{font-size:14px; font-weight:500; color:var(--text-secondary); text-decoration:none; position:relative; padding:4px 0; transition:color .15s ease;}
.navlinks a:hover{color:var(--text);}
.navlinks a.active{color:var(--text);}
.navlinks a.active::after{content:''; position:absolute; left:0; right:0; bottom:-4px; height:2px; background:var(--gold);}
.nav-cta{font-size:13px; font-weight:600; color:var(--bg); background:var(--gold); padding:10px 18px; border-radius:8px; text-decoration:none; letter-spacing:0.01em; transition:background .15s ease; white-space:nowrap;}
.nav-cta:hover{background:var(--gold-soft);}
.nav-toggle{display:none; background:none; border:1px solid var(--border); border-radius:8px; color:var(--text); width:40px; height:40px; font-size:18px; cursor:pointer;}

/* HERO (large, index only) */
.hero{padding:88px 0 64px;}
.hero p.lede{font-size:18px; line-height:1.6; color:var(--text-secondary); max-width:560px; margin:0 0 36px;}
.hero-actions{display:flex; gap:14px; margin-bottom:64px; flex-wrap:wrap;}

/* PAGE HEAD (small, inner pages) */
.page-head{padding:56px 0 40px; border-bottom:1px solid var(--border);}
.page-head h1{margin-bottom:14px;}
.page-head p.lede{font-size:16px; color:var(--text-secondary); max-width:640px; margin:0;}

.eyebrow{display:inline-flex; align-items:center; gap:8px; font-family:var(--font-mono); font-size:12px; font-weight:500; color:var(--gold-soft); letter-spacing:0.08em; text-transform:uppercase; border:1px solid var(--gold-dim); border-radius:999px; padding:6px 14px; margin-bottom:28px;}
.eyebrow::before{content:''; width:6px; height:6px; border-radius:50%; background:var(--gold);}

h1{font-family:var(--font-display); font-weight:800; font-size:clamp(32px,5vw,52px); line-height:1.1; letter-spacing:-0.01em; margin:0 0 22px; text-wrap:balance;}
h1 .accent{font-family:var(--font-wordmark); font-weight:400; color:var(--gold); font-size:1.25em; line-height:1; display:inline-block; transform:rotate(-1.5deg);}
h1 .h1-logo{height:1.8em; width:auto; display:inline-block; vertical-align:-0.38em; margin:0 6px;}
h2{font-family:var(--font-display); font-weight:600; font-size:28px; margin:0 0 10px; letter-spacing:-0.005em; text-wrap:balance;}
h3{font-family:var(--font-display); font-size:17px; font-weight:600; margin:0 0 10px;}

.btn-primary{background:var(--gold); color:var(--bg); font-weight:700; font-size:15px; padding:14px 26px; border-radius:8px; text-decoration:none; transition:background .15s ease; display:inline-block;}
.btn-primary:hover{background:var(--gold-soft);}
.btn-secondary{background:transparent; color:var(--text); font-weight:600; font-size:15px; padding:14px 26px; border-radius:8px; text-decoration:none; border:1px solid var(--border); transition:border-color .15s ease, background .15s ease; display:inline-block;}
.btn-secondary:hover{border-color:var(--gold-dim); background:var(--panel);}

/* STAT STRIP */
.stats{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--border); border:1px solid var(--border); border-radius:12px; overflow:hidden;}
.stat{background:var(--panel); padding:24px 22px;}
.stat .value{font-family:var(--font-mono); font-weight:600; font-size:28px; color:var(--gold-soft); font-variant-numeric:tabular-nums;}
.stat .label{font-size:13px; color:var(--text-muted); margin-top:6px;}
.stats-note{font-size:12px; color:var(--text-muted); margin-top:10px;}

/* SECTIONS */
section{padding:72px 0;}
section.divider{border-top:1px solid var(--border);}
section.tight{padding:48px 0;}
.section-head{max-width:600px; margin-bottom:44px;}
.section-head .kicker{font-family:var(--font-mono); font-size:12px; color:var(--gold-soft); letter-spacing:0.08em; text-transform:uppercase; margin-bottom:10px; display:block;}
.section-head p{color:var(--text-secondary); font-size:15px; line-height:1.6; margin:0;}

/* PROSE (body copy pages) */
.prose{max-width:720px; font-size:15px; line-height:1.75; color:var(--text-secondary);}
.prose h2{color:var(--text); margin-top:40px;}
.prose h2:first-child{margin-top:0;}
.prose p{margin:0 0 18px;}
.prose ul, .prose ol{margin:0 0 18px; padding-left:22px;}
.prose li{margin-bottom:8px;}
.prose strong{color:var(--text);}

/* CARD GRID (pillars, resources, etc.) */
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.grid-2{display:grid; grid-template-columns:repeat(2,1fr); gap:20px;}
.card{background:var(--panel); border:1px solid var(--border); border-radius:12px; padding:28px; transition:border-color .15s ease;}
.card:hover{border-color:var(--gold-dim);}
.card .num{font-family:var(--font-mono); font-size:13px; color:var(--gold); margin-bottom:16px; display:block;}
.card p{font-size:14px; line-height:1.6; color:var(--text-secondary); margin:0;}

/* PROCESS / STEPS (only for real sequences) */
.process{position:relative; max-width:720px;}
.step{display:grid; grid-template-columns:44px 1fr; gap:20px; padding-bottom:36px; position:relative;}
.step:last-child{padding-bottom:0;}
.step::before{content:''; position:absolute; left:21px; top:44px; bottom:0; width:1px; background:var(--border);}
.step:last-child::before{display:none;}
.step-num{width:44px; height:44px; border-radius:10px; background:var(--panel); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-weight:600; color:var(--gold-soft); font-size:15px; flex-shrink:0;}
.step-body p{font-size:14px; color:var(--text-secondary); line-height:1.6; margin:0;}

/* FAQ */
.faq-item{border-bottom:1px solid var(--border); padding:22px 0;}
.faq-item:first-child{padding-top:0;}
.faq-q{display:flex; justify-content:space-between; align-items:center; gap:16px; cursor:pointer; font-family:var(--font-display); font-size:16px; font-weight:600; color:var(--text);}
.faq-q .icon{color:var(--gold); font-family:var(--font-mono); font-size:18px; flex-shrink:0; transition:transform .15s ease;}
.faq-item.open .faq-q .icon{transform:rotate(45deg);}
.faq-a{font-size:14px; line-height:1.7; color:var(--text-secondary); margin-top:14px; display:none;}
.faq-item.open .faq-a{display:block;}

/* TABLE (resources / comparisons) */
table{width:100%; border-collapse:collapse; font-size:14px;}
th, td{text-align:left; padding:12px 16px; border-bottom:1px solid var(--border);}
th{color:var(--text-muted); font-weight:600; font-size:12px; text-transform:uppercase; letter-spacing:0.04em;}
td{color:var(--text-secondary);}
tr:hover td{color:var(--text);}
.table-wrap{overflow-x:auto; border:1px solid var(--border); border-radius:12px;}
.table-wrap table{border:none;}
.table-wrap th, .table-wrap td{border-bottom:1px solid var(--border);}
.table-wrap tr:last-child td{border-bottom:none;}

/* CALLOUT (risk warnings, disclaimers) */
.callout{background:var(--panel); border:1px solid var(--border); border-left:3px solid var(--gold); border-radius:8px; padding:18px 22px; font-size:14px; line-height:1.65; color:var(--text-secondary); margin:24px 0;}
.callout strong{color:var(--text);}

/* UPDATES LIST */
.updates{display:flex; flex-direction:column; gap:2px; border:1px solid var(--border); border-radius:12px; overflow:hidden;}
.update-item{background:var(--panel); padding:16px 22px; display:flex; gap:18px; align-items:baseline; border-bottom:1px solid var(--border);}
.update-item:last-child{border-bottom:none;}
.update-date{font-family:var(--font-mono); font-size:12px; color:var(--gold-soft); white-space:nowrap; min-width:84px; flex-shrink:0;}
.update-body{font-size:14px; color:var(--text-secondary); line-height:1.5;}
.update-body a{color:var(--gold-soft); text-decoration:none;}
.update-body a:hover{text-decoration:underline;}

/* FOOTER */
footer{border-top:1px solid var(--border); padding:48px 0; margin-top:24px;}
.foot-row{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px;}
.foot-links{display:flex; gap:26px; list-style:none; padding:0; margin:0; flex-wrap:wrap;}
.foot-links a{font-size:13px; color:var(--text-secondary); text-decoration:none;}
.foot-links a:hover{color:var(--text);}
.foot-fine{font-size:12px; color:var(--text-muted);}

@media (max-width:820px){
  .stats{grid-template-columns:repeat(2,1fr);}
  .grid-3, .grid-2{grid-template-columns:1fr;}
  nav.wrap{position:relative;}
  .navlinks{display:none; position:absolute; top:100%; left:0; right:0; flex-direction:column; gap:0; background:var(--bg); border:1px solid var(--border); border-top:none; padding:4px 32px; z-index:20;}
  .navlinks.open{display:flex;}
  .navlinks a{display:block; padding:14px 0; border-bottom:1px solid var(--border);}
  .navlinks li:last-child a{border-bottom:none;}
  .nav-toggle{display:block;}
}

/* SOCIAL */
.social-row{display:flex; align-items:center; gap:12px;}
.social-link{
  width:36px; height:36px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  background:var(--panel); border:1px solid var(--border);
  color:var(--text-secondary); font-family:var(--font-display); font-weight:600; font-size:15px;
  text-decoration:none; transition:border-color .15s ease, color .15s ease;
}
.social-link:hover{border-color:var(--gold-dim); color:var(--gold-soft);}

/* X TIMELINE EMBED */
.x-embed-wrap{
  background:var(--panel); border:1px solid var(--border); border-radius:12px;
  padding:20px; max-width:560px;
}
