/* ============================================================
   RUHA SOLUTIONS LLC — Shared stylesheet
   Extracted from inline styles, August 2026.
   Loaded by: index.html, about.html, learn.html, kb.html,
              privacy.html, terms.html, 404.html
   ============================================================ */

:root{
  --ink:#0F1B2D;
  --ink-2:#16243B;
  --ink-3:#1D2D47;
  --fog:#EDEFF2;
  --fog-2:#FFFFFF;
  --text-d:#F2F4F6;
  --text-d-muted:#A9B4C2;
  --text-l:#16202B;
  --text-l-muted:#55606E;
  --accent:#22D3EE;
  --accent-dim:#0E8FA5;
  --accent-ink:#06222A;
  --amber:#F5A623;
  --border-d:rgba(255,255,255,0.09);
  --border-l:rgba(15,27,45,0.10);
  --mono:'IBM Plex Mono', ui-monospace, monospace;
  --display:'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --sans:'Inter', -apple-system, sans-serif;
  --maxw:1120px;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--sans);
  background:var(--fog);
  color:var(--text-l);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 28px;}
:focus-visible{outline:2px solid var(--accent); outline-offset:3px; border-radius:2px;}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;}
}

/* ---------- NAV ---------- */
header.site{
  position:sticky; top:0; z-index:50;
  background:rgba(15,27,45,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border-d);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 28px; max-width:var(--maxw); margin:0 auto;
}
.brand{
  display:flex; align-items:center; gap:11px;
  font-family:var(--mono); font-weight:600; font-size:15px;
  color:var(--text-d); letter-spacing:0.02em;
}
.brand svg{display:block;}
.brand:hover .grain-a{animation:fall 1.2s ease-in-out infinite;}
@keyframes fall{
  0%{transform:translateY(0); opacity:1;}
  100%{transform:translateY(10px); opacity:0;}
}
.navlinks{display:flex; align-items:center; gap:24px; font-size:14px; color:var(--text-d-muted);}
/* Nav items must never wrap: a wrapped link pushes the CTA into the link row. */
.navlinks a, .navdrop-trigger{white-space:nowrap;}
.navdrop{position:relative;}
.navdrop:hover .dropdown-menu,
.navdrop.open .dropdown-menu,
.navdrop:focus-within .dropdown-menu{display:flex;}
.navdrop-trigger{
  font-family:inherit; font-size:14px; color:var(--text-d-muted);
  background:none; border:0; padding:0; cursor:pointer; line-height:inherit;
}
.navdrop-trigger:hover, .navdrop.open .navdrop-trigger{color:var(--text-d);}
.dropdown-menu{
  display:none; flex-direction:column; position:absolute; top:100%; left:0;
  background:var(--ink-2); border:1px solid var(--border-d); border-radius:6px;
  padding:8px; min-width:220px; z-index:60; margin-top:8px;
  box-shadow:0 12px 28px rgba(0,0,0,0.35);
}
/* Transparent bridge across the 8px visual gap so the pointer never leaves the
   hover target on its way down to the menu. Keeps the spacing, kills the bug. */
.dropdown-menu::before{
  content:''; position:absolute; top:-9px; left:0; right:0; height:9px;
}
.dropdown-menu a{
  padding:9px 12px; border-radius:4px; font-size:13.5px; color:var(--text-d-muted); white-space:nowrap;
}
.dropdown-menu a:hover{background:var(--ink-3); color:var(--text-d);}
.navlinks a:hover{color:var(--text-d);}
.nav-cta{
  font-family:var(--mono); font-size:13px; font-weight:600;
  background:var(--accent); color:var(--accent-ink);
  padding:9px 18px; border-radius:3px;
  letter-spacing:0.02em;
  flex-shrink:0; white-space:nowrap;
}
.nav-cta:hover{background:#5BE0F4;}
/* Intermediate widths: tighten before anything is forced to wrap. */
@media(min-width:760px) and (max-width:1180px){
  .navlinks{gap:16px; font-size:13px;}
  .nav{padding:12px 20px;}
}

/* ------------------------------------------------------------
   MOBILE NAV (below 760px)
   The nav previously set .navlinks{display:none} with nothing in
   its place, so phones had no navigation above the footer at all.
   This is CSS-only on purpose: styles.css is the one asset every
   page shares, so the fix reaches kb, privacy, terms and 404
   without editing markup in nine files.
   Layout: brand + CTA on row one, links wrap onto row two.
   ------------------------------------------------------------ */
@media(max-width:759px){
  .nav{
    display:flex; flex-wrap:wrap; align-items:center;
    padding:10px 16px; column-gap:12px; row-gap:0;
  }
  .brand{font-size:13px; letter-spacing:0; flex:1 1 auto; min-width:0; gap:8px;}
  .brand svg{width:26px; height:31px; flex-shrink:0;}
  .nav-cta{font-size:11.5px; padding:8px 12px; flex-shrink:0;}

  /* Hidden until the toggle is pressed. Was previously a wrapped
     row of eight links, which produced a header tall enough to
     bury the page — and on the live site rendered as no menu at all. */
  .navlinks{
    display:none;
    order:3; flex-basis:100%; width:100%;
    flex-direction:column; align-items:stretch; gap:0;
    padding:8px 0 4px; margin-top:10px;
    border-top:1px solid var(--border-d);
  }
  .nav.nav-open .navlinks{display:flex;}

  /* 44px minimum touch target, per platform guidance. */
  .navlinks > a,
  .navlinks .navdrop-trigger{
    display:flex; align-items:center;
    min-height:44px; padding:0 4px;
    font-size:15px; color:var(--text-d); width:100%;
    text-align:left;
  }
  .navlinks > a + a{border-top:1px solid rgba(255,255,255,0.06);}
  .navdrop{width:100%; border-top:1px solid rgba(255,255,255,0.06);}

  /* Submenus expand in place rather than floating over the page. */
  .navdrop .dropdown-menu{
    display:none; position:static; flex-direction:column;
    background:transparent; border:0; box-shadow:none;
    padding:0 0 8px 14px; min-width:0;
  }
  .navdrop.open .dropdown-menu{display:flex;}
  .navdrop .dropdown-menu a{
    display:flex; align-items:center; min-height:40px;
    font-size:14px; color:var(--text-d-muted); padding:0 4px;
  }
  /* Hover cannot open anything on a touch screen; tap only. */
  .navdrop:hover .dropdown-menu{display:none;}
  .navdrop.open .dropdown-menu{display:flex;}
}

/* ---------- STATUS BAR ---------- */
.statusbar{
  background:var(--ink); color:var(--text-d-muted);
  font-family:var(--mono); font-size:12px;
  border-bottom:1px solid var(--border-d);
  overflow:hidden; white-space:nowrap;
}
.statusbar .track{
  display:inline-flex; gap:44px; padding:9px 28px;
  animation:scroll 28s linear infinite;
}
.statusbar .track span{display:inline-flex; align-items:center; gap:8px;}
.statusbar .track span.good::before{
  content:''; width:6px; height:6px; border-radius:50%; background:var(--accent); display:inline-block;
}
@keyframes scroll{
  0%{transform:translateX(0);}
  100%{transform:translateX(-50%);}
}

/* ---------- HERO ---------- */
.hero{
  background:var(--ink);
  color:var(--text-d);
  padding:64px 0 72px;
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--border-d);
}
.hero::before{
  content:'';
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size:56px 56px;
  mask-image:radial-gradient(ellipse 70% 60% at 50% 20%, black 10%, transparent 75%);
  pointer-events:none;
}
.hero .inner{position:relative; max-width:760px;}
.eyebrow{
  font-family:var(--mono); font-size:13px; color:var(--accent);
  letter-spacing:0.08em; text-transform:uppercase;
  display:flex; align-items:center; gap:10px; margin-bottom:22px;
}
.eyebrow::before{content:'//';color:var(--text-d-muted);}
h1{
  font-family:var(--display); font-weight:700;
  font-size:clamp(28px, 3.4vw, 42px);
  line-height:1.16; letter-spacing:-0.015em;
  margin-bottom:20px;
}
/* Cyan means clickable. The headline is a statement, not an action. */
h1 .accent{color:inherit;}
.hero p.lead{
  font-size:18px; color:var(--text-d-muted); max-width:560px; margin-bottom:36px;
}
.cta-row{display:flex; gap:16px; flex-wrap:wrap;}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--mono); font-size:14px; font-weight:600;
  padding:14px 26px; border-radius:3px;
  letter-spacing:0.01em;
  transition:transform 0.15s ease, background 0.15s ease;
}
.btn:hover{transform:translateY(-1px);}
.btn-primary{background:var(--accent); color:var(--accent-ink);}
.btn-primary:hover{background:#5BE0F4;}
.btn-ghost{border:1px solid var(--border-d); color:var(--text-d);}
.btn-ghost:hover{border-color:var(--text-d-muted); background:rgba(255,255,255,0.04);}

/* ---------- SECTION SHARED ---------- */
section{padding:88px 0;}
.section-head{max-width:600px; margin-bottom:52px;}
.kicker{
  font-family:var(--mono); font-size:13px; color:var(--accent-dim);
  letter-spacing:0.08em; text-transform:uppercase; margin-bottom:14px;
  display:flex; align-items:center; gap:10px;
}
.kicker::before{content:'//'; color:#9AA6B4;}
h2{
  font-family:var(--mono); font-weight:600;
  font-size:clamp(24px,3.4vw,34px); letter-spacing:-0.01em;
  color:var(--text-l);
}
.section-head p{color:var(--text-l-muted); font-size:16px; margin-top:14px;}

/* ---------- SERVICES (ticket cards) ---------- */
.services{background:var(--fog-2);}
.ticket-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(250px,1fr));
  gap:2px; background:var(--border-l);
  border:1px solid var(--border-l);
}
.ticket{
  background:var(--fog-2); padding:32px 28px;
  display:flex; flex-direction:column; gap:14px;
  transition:background 0.2s ease;
}
.ticket:hover{background:#F7F8F9;}
.ticket .tid{
  font-family:var(--mono); font-size:12px; color:var(--accent-dim);
  font-weight:600; letter-spacing:0.03em;
  display:flex; align-items:center; justify-content:space-between;
}
.ticket .tid .badge{
  font-size:10px; background:var(--amber); color:#3A2606;
  padding:2px 8px; border-radius:20px; letter-spacing:0.03em;
}
.ticket h3{
  font-family:var(--sans); font-weight:700; font-size:18px; color:var(--text-l);
}
.ticket p{font-size:14.5px; color:var(--text-l-muted);}

/* ---------- HOW IT WORKS ---------- */
.how{background:var(--fog);}
.steps{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:0; counter-reset:step;
  border-top:1px solid var(--border-l);
}
.step{
  padding:30px 26px 30px 0; border-bottom:1px solid var(--border-l);
  position:relative;
}
.step:not(:last-child){border-right:1px solid var(--border-l);}
.step .num{
  font-family:var(--mono); font-size:34px; font-weight:600;
  color:var(--border-l); margin-bottom:14px; line-height:1;
}
.step h4{font-size:16px; font-weight:700; margin-bottom:8px;}
.step p{font-size:14px; color:var(--text-l-muted);}

/* ---------- PRICING ---------- */
.pricing{background:var(--fog-2);}
.price-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px;
}
.plan{
  border:1px solid var(--border-l); border-radius:6px; padding:32px 28px;
  display:flex; flex-direction:column; gap:18px;
}
.plan.feat{
  border-color:var(--accent); box-shadow:0 0 0 1px var(--accent);
  position:relative;
}
.plan.feat::before{
  content:'MOST COMMON'; position:absolute; top:-11px; left:28px;
  background:var(--accent); color:var(--accent-ink); font-family:var(--mono);
  font-size:10px; font-weight:700; padding:3px 10px; border-radius:20px; letter-spacing:0.04em;
}
.plan .pname{font-family:var(--mono); font-size:13px; color:var(--accent-dim); font-weight:600; letter-spacing:0.03em; text-transform:uppercase;}
.plan .pprice{font-family:var(--mono); font-size:30px; font-weight:600; color:var(--text-l);}
.plan .pprice span{font-size:14px; color:var(--text-l-muted); font-weight:400;}
.plan ul{list-style:none; display:flex; flex-direction:column; gap:10px;}
.plan li{font-size:14px; color:var(--text-l-muted); display:flex; gap:9px;}
.plan li::before{content:'—'; color:var(--accent-dim); flex-shrink:0;}

/* ---------- CREDIBILITY ---------- */
.cred{background:var(--ink); color:var(--text-d);}
.cred .kicker{color:var(--accent);}
.cred .kicker::before{color:var(--text-d-muted);}
.cred h2{color:var(--text-d);}
.cred-grid{
  display:grid; grid-template-columns:1.1fr 1fr; gap:56px;
  align-items:start;
}
@media(max-width:780px){ .cred-grid{grid-template-columns:1fr;} }
.cred-list{list-style:none; display:flex; flex-direction:column; gap:22px;}
.cred-list li{display:flex; gap:16px; align-items:flex-start;}
.cred-list .mark{
  font-family:var(--mono); color:var(--accent); font-weight:700; flex-shrink:0;
  width:22px; padding-top:2px;
}
.cred-list p{color:var(--text-d-muted); font-size:15px;}
.cred-list strong{color:var(--text-d); font-weight:600;}
.quote-card{
  background:var(--ink-2); border:1px solid var(--border-d);
  padding:32px; border-radius:4px;
}
.quote-card p.q{
  font-size:17px; line-height:1.6; color:var(--text-d); margin-bottom:18px;
}
.quote-card .who{font-family:var(--mono); font-size:13px; color:var(--text-d-muted);}

/* ---------- CONTACT ---------- */
.contact{background:var(--ink); color:var(--text-d);}
.contact-wrap{
  display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start;
}
@media(max-width:780px){ .contact-wrap{grid-template-columns:1fr;} }
.contact h2{color:var(--text-d);}
.contact .kicker::before{color:var(--text-d-muted);}
.contact-info{display:flex; flex-direction:column; gap:20px; margin-top:26px;}
.contact-info a{font-family:var(--mono); font-size:15px; color:var(--text-d); border-bottom:1px solid var(--border-d); padding-bottom:2px; width:fit-content;}
.contact-info a:hover{border-color:var(--accent); color:var(--accent);}
.field{display:flex; flex-direction:column; gap:8px;}
.field label{font-family:var(--mono); font-size:12px; color:var(--text-d-muted); letter-spacing:0.04em; text-transform:uppercase;}
.field input, .field textarea, .field select{
  background:var(--ink-2); border:1px solid var(--border-d); color:var(--text-d);
  padding:12px 14px; border-radius:3px; font-family:var(--sans); font-size:14px;
  resize:vertical;
}
.field input::placeholder, .field textarea::placeholder{color:#5C6B80;}
form.ticketform{display:flex; flex-direction:column; gap:18px;}
.ticketform .submit{
  align-self:flex-start; border:none; cursor:pointer;
  font-family:var(--mono); font-weight:600; font-size:14px;
  background:var(--accent); color:var(--accent-ink); padding:14px 28px; border-radius:3px;
}
.ticketform .submit:hover{background:#5BE0F4;}

/* ---------- FOOTER ---------- */
footer{
  background:var(--ink); border-top:1px solid var(--border-d);
  padding:28px 0; color:var(--text-d-muted); font-size:13px;
}
.footer-row{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;}
.footer-row .fmono{font-family:var(--mono); display:flex; align-items:center; gap:8px;}
.footer-row .fgrains{display:inline-flex; gap:3px;}
.footer-row .fgrains i{width:7px; height:7px; border-radius:2px; background:var(--amber); display:inline-block;}

/* ---------- CHAT WIDGET ---------- */
#chatFab{
  position:fixed; right:20px; bottom:20px; z-index:90;
  width:58px; height:58px; border-radius:50%;
  background:var(--accent); border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 24px rgba(34,211,238,0.35);
  transition:transform 0.15s ease;
}
#chatFab:hover{transform:translateY(-2px);}
#chatPanel{
  position:fixed; right:20px; bottom:90px; z-index:95;
  width:min(360px, calc(100vw - 40px));
  height:min(520px, calc(100vh - 130px));
  background:var(--ink); border:1px solid var(--border-d); border-radius:12px;
  display:none; flex-direction:column; overflow:hidden;
  box-shadow:0 24px 60px rgba(0,0,0,0.5);
}
#chatPanel.open{display:flex;}
.chat-head{
  background:var(--ink-2); padding:14px 16px;
  display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid var(--border-d);
}
.chat-head .t{font-family:var(--mono); font-size:13px; font-weight:600; color:var(--text-d); display:flex; align-items:center; gap:8px;}
.chat-head .t::before{content:''; width:7px; height:7px; border-radius:50%; background:var(--accent);}
.chat-head button{background:none; border:none; color:var(--text-d-muted); font-size:18px; cursor:pointer; line-height:1;}
.chat-body{
  flex:1; overflow-y:auto; padding:16px;
  display:flex; flex-direction:column; gap:10px;
}
.msg{
  max-width:85%; padding:10px 13px; border-radius:10px;
  font-size:14px; line-height:1.45;
}
.msg.bot{background:var(--ink-2); color:var(--text-d); border:1px solid var(--border-d); align-self:flex-start; border-bottom-left-radius:3px;}
.msg.user{background:var(--accent); color:var(--accent-ink); align-self:flex-end; border-bottom-right-radius:3px;}
.chip-row{display:flex; flex-wrap:wrap; gap:8px; align-self:flex-start;}
.chip{
  font-family:var(--mono); font-size:12.5px; color:var(--accent);
  background:none; border:1px solid var(--accent); border-radius:20px;
  padding:7px 14px; cursor:pointer; transition:background 0.12s ease;
}
.chip:hover{background:rgba(34,211,238,0.12);}
.chat-input{
  display:flex; gap:8px; padding:12px; border-top:1px solid var(--border-d); background:var(--ink-2);
}
.chat-input input, .chat-input textarea{
  flex:1; background:var(--ink); border:1px solid var(--border-d); color:var(--text-d);
  padding:10px 12px; border-radius:8px; font-family:var(--sans); font-size:14px; resize:none;
}
.chat-input button{
  background:var(--accent); color:var(--accent-ink); border:none; border-radius:8px;
  font-family:var(--mono); font-weight:600; font-size:13px; padding:0 16px; cursor:pointer;
}
.chat-input button:disabled{opacity:0.5; cursor:default;}

/* ============================================================
   ADDED — shared components for About and Learning
   ============================================================ */

/* ---------- PAGE HEADER (interior pages) ---------- */
.page-head{background:var(--ink); padding:64px 0 56px; border-bottom:1px solid var(--border-d);}
.page-head .kicker{color:var(--accent);}
.page-head h1{
  font-family:var(--display); font-weight:700; color:var(--text-d);
  font-size:clamp(28px,3.6vw,42px); line-height:1.16; letter-spacing:-0.015em; margin:10px 0 14px;
}
.page-head p.lead{color:var(--text-d-muted); font-size:16.5px; line-height:1.7; max-width:660px;}

/* ---------- PROSE (About, lessons) ---------- */
.prose{max-width:680px;}
.prose p{font-size:16px; line-height:1.75; color:var(--text-l-muted); margin-bottom:18px;}
.prose p strong{color:var(--text-l);}
.prose h2{font-family:var(--mono); font-size:21px; margin:36px 0 12px; color:var(--text-l);}
.prose h3{font-family:var(--mono); font-size:17px; margin:28px 0 10px; color:var(--text-l);}
.prose ul{padding-left:22px; margin-bottom:18px;}
.prose li{font-size:16px; line-height:1.7; color:var(--text-l-muted); margin-bottom:8px;}

/* ---------- FOUNDER STATEMENT (signed, first person) ---------- */
.signed{
  border-left:3px solid var(--accent-dim); padding:4px 0 4px 22px; margin:28px 0;
}
.signed .byline{
  font-family:var(--mono); font-size:12.5px; color:var(--text-l-muted);
  letter-spacing:0.04em; text-transform:uppercase; margin-bottom:14px;
}
.signed .sig{
  font-family:var(--mono); font-size:13.5px; color:var(--text-l); margin-top:18px; font-weight:600;
}

/* ---------- LEARNING: START HERE PATH ---------- */
.path{display:grid; gap:14px; counter-reset:step;}
.path-item{
  background:var(--fog-2); border:1px solid var(--border-l); border-radius:8px;
  padding:20px 22px 20px 62px; position:relative; transition:border-color 0.18s ease, transform 0.18s ease;
}
.path-item::before{
  counter-increment:step; content:counter(step,decimal-leading-zero);
  position:absolute; left:22px; top:20px;
  font-family:var(--mono); font-size:13px; font-weight:600; color:var(--accent-dim);
}
.path-item:hover{border-color:var(--accent-dim); transform:translateY(-1px);}
.path-item h3{font-family:var(--mono); font-size:16px; margin-bottom:6px; color:var(--text-l);}
.path-item p{font-size:14.5px; color:var(--text-l-muted); line-height:1.6;}

/* ---------- LEARNING: LESSON GRID ---------- */
.lesson-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:18px;}
.lesson{
  background:var(--fog-2); border:1px solid var(--border-l); border-radius:8px;
  padding:22px; display:flex; flex-direction:column; gap:10px;
  transition:border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.lesson:hover{border-color:var(--accent-dim); transform:translateY(-2px); box-shadow:0 10px 28px rgba(15,27,45,0.07);}
.lesson .tag{
  font-family:var(--mono); font-size:11px; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--accent-dim); display:flex; align-items:center; gap:7px;
}
.lesson h3{font-family:var(--mono); font-size:16.5px; line-height:1.35; color:var(--text-l);}
.lesson p{font-size:14.5px; color:var(--text-l-muted); line-height:1.6; flex:1;}
.lesson .foot{
  font-family:var(--mono); font-size:11.5px; color:var(--text-l-muted);
  display:flex; justify-content:space-between; align-items:center;
  border-top:1px solid var(--border-l); padding-top:12px; margin-top:4px;
}
.lesson.soon{opacity:0.72;}
.lesson.soon:hover{transform:none; border-color:var(--border-l); box-shadow:none;}

/* ---------- LEARNING: CHANNEL PANEL ---------- */
.channel{
  background:var(--ink-2); border:1px solid var(--border-d); border-radius:10px;
  padding:30px 32px; display:flex; gap:26px; align-items:flex-start; flex-wrap:wrap;
}
.channel .col{flex:1; min-width:250px;}
.channel h3{font-family:var(--mono); font-size:18px; color:var(--text-d); margin-bottom:10px;}
.channel p{color:var(--text-d-muted); font-size:15px; line-height:1.7; margin-bottom:16px;}

/* ---------- SUBSCRIBE ---------- */
.sub-form{display:flex; gap:10px; flex-wrap:wrap;}
.sub-form input{
  flex:1; min-width:220px; background:var(--ink-3); border:1px solid var(--border-d);
  color:var(--text-d); padding:13px 15px; border-radius:6px;
  font-family:var(--sans); font-size:15px;
}
.sub-form input::placeholder{color:#6C7A8C;}
.sub-note{font-family:var(--mono); font-size:11.5px; color:var(--text-d-muted); margin-top:12px;}

/* ---------- CALLOUT ---------- */
.callout{
  background:var(--fog-2); border:1px solid var(--border-l); border-left:3px solid var(--amber);
  border-radius:6px; padding:18px 20px; margin:26px 0;
}
.callout .label{
  font-family:var(--mono); font-size:11px; letter-spacing:0.07em; text-transform:uppercase;
  color:var(--amber); font-weight:600; margin-bottom:7px;
}
.callout p{font-size:15px; line-height:1.65; color:var(--text-l-muted); margin:0;}

/* ---------- SCROLL REVEAL (progressive enhancement) ----------
   The finished state is the default. The animation only applies
   where animation-timeline is supported, and is disabled entirely
   for users who prefer reduced motion. Content is never hidden
   by default, so a non-supporting browser loses nothing.
   ------------------------------------------------------------ */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes rise {
      from { opacity:0; transform:translateY(14px); }
      to   { opacity:1; transform:translateY(0); }
    }
    .reveal{
      animation:rise linear both;
      animation-timeline:view();
      animation-range:entry 5% cover 22%;
    }
  }
}

/* ---------- SMOOTH PAGE TRANSITIONS (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:720px){
  .channel{padding:24px 22px;}
  .path-item{padding:18px 18px 18px 54px;}
  .path-item::before{left:18px; top:18px;}
}

/* ============================================================
   LEARNING — filters, levels, disabled states
   ============================================================ */

/* ---------- FILTER BAR ---------- */
.filterbar{margin:0 0 26px;}
.filterbar .row{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px;}
.filterbar .row-label{
  font-family:var(--mono); font-size:11px; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--text-l-muted); min-width:58px;
}
.filterbar .chip{
  font-family:var(--mono); font-size:12.5px; padding:8px 15px; border-radius:22px;
  border:1px solid var(--border-l); background:var(--fog-2); color:var(--text-l-muted);
  cursor:pointer; transition:background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filterbar .chip:hover{border-color:var(--accent-dim); color:var(--text-l);}
.filterbar .chip[aria-pressed="true"]{background:var(--ink); border-color:var(--ink); color:var(--text-d);}
.filter-count{
  font-family:var(--mono); font-size:12px; color:var(--text-l-muted); margin-top:4px;
}

/* ---------- LEVEL BADGE ---------- */
.level{
  font-family:var(--mono); font-size:10.5px; letter-spacing:0.06em; text-transform:uppercase;
  padding:3px 9px; border-radius:20px; border:1px solid currentColor; white-space:nowrap;
}
.level-intermediate{color:#0E8FA5;}
.level-advanced{color:#9A6B10;}

.lesson .tagrow{display:flex; align-items:center; gap:9px; flex-wrap:wrap;}

/* ---------- EMPTY STATE ---------- */
.empty-state{
  grid-column:1 / -1; text-align:center; padding:52px 20px;
  border:1px dashed var(--border-l); border-radius:8px; background:var(--fog-2);
}
.empty-state p{font-size:15px; color:var(--text-l-muted); margin-bottom:14px;}

/* ---------- DISABLED CONTROL (e.g. channel not yet live) ---------- */
.is-disabled{
  opacity:0.5; cursor:not-allowed; pointer-events:none;
  border-color:var(--border-d) !important; color:var(--text-d-muted) !important;
}

/* Hidden by the filter, without collapsing layout semantics */
.lesson[hidden]{display:none;}

/* ============================================================
   LEARNING v2 — tracks, lesson pages, authorship
   ============================================================ */

/* ---------- TRACK PANELS ---------- */
.tracks{display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:18px;}
.tracks .track{
  background:var(--fog-2); border:1px solid var(--border-l); border-radius:8px;
  padding:24px 22px; display:flex; flex-direction:column; gap:10px;
  border-top:3px solid var(--accent-dim);
}
.tracks .track h3{font-family:var(--mono); font-size:17px; color:var(--text-l); line-height:1.3;}
.tracks .track p{font-size:14.5px; color:var(--text-l-muted); line-height:1.65; flex:1;}
.tracks .track .count{
  font-family:var(--mono); font-size:11.5px; letter-spacing:0.05em; text-transform:uppercase;
  color:var(--accent-dim); border-top:1px solid var(--border-l); padding-top:12px;
}

/* ---------- LEVEL BADGES ---------- */
.level-beginner{color:#1E7A52;}

/* ---------- AUTHOR ---------- */
.byline{
  font-family:var(--mono); font-size:11.5px; color:var(--text-l-muted);
  display:flex; align-items:center; gap:7px;
}
.byline .dot{width:4px; height:4px; border-radius:50%; background:var(--accent-dim);}

/* ---------- LESSON PAGE ---------- */
.lesson-head{background:var(--ink); padding:56px 0 48px; border-bottom:1px solid var(--border-d);}
.lesson-head .track-tag{
  font-family:var(--mono); font-size:11.5px; letter-spacing:0.07em; text-transform:uppercase;
  color:var(--accent); margin-bottom:12px;
}
.lesson-head h1{
  font-family:var(--mono); font-weight:600; color:var(--text-d);
  font-size:clamp(25px,3.8vw,38px); line-height:1.18; letter-spacing:-0.02em; margin-bottom:16px;
  max-width:760px;
}
.lesson-meta{
  display:flex; gap:16px; flex-wrap:wrap; align-items:center;
  font-family:var(--mono); font-size:12px; color:var(--text-d-muted);
  border-top:1px solid var(--border-d); padding-top:16px; margin-top:20px;
}
.lesson-meta .who{color:var(--text-d); font-weight:600;}

/* ---------- VIDEO EMBED ---------- */
.video-wrap{
  position:relative; width:100%; padding-top:56.25%;
  background:var(--ink-2); border:1px solid var(--border-l); border-radius:8px;
  overflow:hidden; margin:24px 0;
}
.video-wrap iframe{position:absolute; inset:0; width:100%; height:100%; border:0;}
.video-placeholder{
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:8px; text-align:center; padding:20px;
}
.video-placeholder .t{font-family:var(--mono); font-size:14px; color:var(--text-d);}
.video-placeholder .s{font-size:13px; color:var(--text-d-muted);}

/* ---------- LESSON NAVIGATION ---------- */
.lesson-nav{
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  border-top:1px solid var(--border-l); margin-top:44px; padding-top:26px;
}
.lesson-nav a{
  font-family:var(--mono); font-size:13px; color:var(--accent-dim);
  display:flex; flex-direction:column; gap:3px; max-width:46%;
}
.lesson-nav a span{font-size:11px; color:var(--text-l-muted); text-transform:uppercase; letter-spacing:0.05em;}
.lesson-nav a:hover{color:var(--text-l);}

/* ---------- LESSON CARD, UNPUBLISHED ---------- */
.lesson .status{
  font-family:var(--mono); font-size:11px; letter-spacing:0.05em; text-transform:uppercase;
}
.lesson .status.live{color:var(--accent-dim);}
.lesson .status.pending{color:var(--text-l-muted);}


/* ============================================================
   MOBILE NAV TOGGLE
   Button is created by nav.js, so no page markup depends on it.
   ============================================================ */
.nav-toggle{
  display:none;
  background:none; border:1px solid var(--border-d); border-radius:4px;
  padding:9px 11px; cursor:pointer; flex-shrink:0; line-height:0;
  min-width:44px; min-height:40px;
  align-items:center; justify-content:center;
}
.nav-toggle:focus-visible{outline:2px solid var(--accent); outline-offset:2px;}
.nav-toggle-bars{display:inline-flex; flex-direction:column; gap:4px; width:18px;}
.nav-toggle-bars i{
  display:block; height:2px; width:100%; background:var(--text-d);
  border-radius:2px; transition:transform 0.18s ease, opacity 0.18s ease;
}
.nav-open .nav-toggle-bars i:nth-child(1){transform:translateY(6px) rotate(45deg);}
.nav-open .nav-toggle-bars i:nth-child(2){opacity:0;}
.nav-open .nav-toggle-bars i:nth-child(3){transform:translateY(-6px) rotate(-45deg);}
@media(max-width:759px){
  .nav-toggle{display:inline-flex; order:2;}
}
@media (prefers-reduced-motion: reduce){
  .nav-toggle-bars i{transition:none;}
}

/* ------------------------------------------------------------
   Floating helper button: on a phone it was sitting on top of
   body copy, and iOS puts its own toolbar in the same corner.
   ------------------------------------------------------------ */
@media(max-width:759px){
  .chatfab, .chat-fab, .fab{
    right:14px !important; bottom:76px !important;
    transform:scale(0.82); transform-origin:bottom right;
  }
  .chatpanel, .chat-panel{
    right:10px !important; left:10px !important;
    bottom:132px !important; width:auto !important;
  }
}

/* ---------- PRICING: founding banner ---------- */
.price-banner{
  display:flex; gap:18px; align-items:flex-start;
  border:1px solid var(--border-l); border-left:3px solid var(--amber);
  border-radius:6px; padding:20px 24px; margin-bottom:26px;
  background:linear-gradient(90deg, rgba(245,166,35,0.06), transparent 70%);
}
.price-banner .pb-tag{
  font-family:var(--mono); font-size:10.5px; font-weight:700; letter-spacing:0.08em;
  text-transform:uppercase; color:#8A5A00; background:rgba(245,166,35,0.16);
  padding:5px 11px; border-radius:20px; white-space:nowrap; flex-shrink:0; margin-top:2px;
}
.price-banner .pb-body{font-size:14.5px; line-height:1.6; color:var(--text-l-muted);}
.price-banner .pb-body strong{color:var(--text-l); display:block; margin-bottom:4px;}

/* ---------- PRICING: plan additions ---------- */
.plan .pfound{
  font-family:var(--mono); font-size:12px; color:var(--accent-dim);
  padding-bottom:16px; border-bottom:1px solid var(--border-l); margin-top:-6px;
}
.plan .pfound strong{color:var(--text-l); font-weight:600;}
.plan .pmeta{
  font-family:var(--mono); font-size:11px; color:var(--text-l-muted);
  letter-spacing:0.03em; margin-top:auto; padding-top:14px;
}

/* ---------- PRICING: hourly / project row ---------- */
.price-secondary{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1px;
  background:var(--border-l); border:1px solid var(--border-l); border-radius:6px;
  overflow:hidden; margin-top:20px;
}
.price-secondary .splan{background:var(--fog-2); padding:24px 22px;}
.price-secondary .sname{
  font-family:var(--mono); font-size:11.5px; font-weight:600; letter-spacing:0.05em;
  text-transform:uppercase; color:var(--accent-dim); margin-bottom:8px;
}
.price-secondary .sprice{
  font-family:var(--mono); font-size:22px; font-weight:600; color:var(--text-l); margin-bottom:10px;
}
.price-secondary .sprice span{font-size:13px; color:var(--text-l-muted); font-weight:400;}
.price-secondary .splan p{font-size:13.5px; line-height:1.55; color:var(--text-l-muted);}

/* ---------- PRICING: exclusions ---------- */
.price-excl{margin-top:52px; border-top:1px solid var(--border-l); padding-top:44px;}
.price-excl .excl-head{max-width:640px; margin-bottom:28px;}
.price-excl .excl-head h3{
  font-family:var(--mono); font-weight:600; font-size:clamp(19px,2.4vw,24px);
  letter-spacing:-0.01em; color:var(--text-l);
}
.price-excl .excl-head p{color:var(--text-l-muted); font-size:15px; margin-top:12px;}
.price-excl .excl-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(238px,1fr)); gap:20px;
}
.price-excl .excl-item{
  border:1px solid var(--border-l); border-radius:6px; padding:22px 20px;
  background:var(--fog);
}
.price-excl .ei-name{
  font-family:var(--mono); font-size:13px; font-weight:600; color:var(--text-l);
  margin-bottom:9px; display:flex; gap:9px; align-items:flex-start;
}
.price-excl .ei-name::before{content:'\00d7'; color:var(--amber); font-size:15px; line-height:1.1; flex-shrink:0;}
.price-excl .excl-item p{font-size:13.5px; line-height:1.6; color:var(--text-l-muted);}

/* ---------- PRICING: footnotes + CTA ---------- */
.price-foot{margin-top:30px; display:flex; flex-direction:column; gap:14px; max-width:820px;}
.price-foot p{font-size:13.5px; line-height:1.65; color:var(--text-l-muted);}
.price-foot strong{color:var(--text-l); font-weight:600;}
.price-cta{
  margin-top:44px; display:flex; align-items:center; gap:20px; flex-wrap:wrap;
  border-top:1px solid var(--border-l); padding-top:32px;
}
.price-cta span{font-size:14px; color:var(--text-l-muted); max-width:420px;}

@media (max-width:640px){
  .price-banner{flex-direction:column; gap:12px;}
  .price-cta{flex-direction:column; align-items:flex-start; gap:14px;}
}

/* ---------- LESSON: TEACH FORWARD ---------- */
.teachfwd{
  border:1px solid var(--border-l); border-top:3px solid var(--accent);
  border-radius:6px; background:var(--fog-2); padding:28px 26px; margin:34px 0;
}
.teachfwd .tf-head{
  font-family:var(--mono); font-size:11px; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--accent-dim); margin-bottom:20px;
}
.teachfwd .tf-step{display:flex; gap:16px; align-items:flex-start; padding:14px 0;}
.teachfwd .tf-step + .tf-step{border-top:1px solid var(--border-l);}
.teachfwd .tf-num{
  font-family:var(--mono); font-size:12px; font-weight:700; color:var(--accent-ink);
  background:var(--accent); width:24px; height:24px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:1px;
}
.teachfwd .tf-body strong{
  display:block; font-size:15px; color:var(--text-l); margin-bottom:5px; font-weight:600;
}
.teachfwd .tf-body p{font-size:14px; line-height:1.65; color:var(--text-l-muted);}
.teachfwd .tf-body a{color:var(--accent-dim); text-decoration:underline;}
.lesson-meta .contrib{color:var(--accent-dim);}

@media (max-width:520px){
  .teachfwd{padding:22px 18px;}
  .teachfwd .tf-step{gap:12px;}
}
