
:root{
    --navy:#132A46;
    --navy-2:#1D3E64;
    --green:#2F6B4F;
    --green-2:#3E8863;
    --gold:#C89B3C;
    --gold-2:#E0B75C;
    --paper:#FBFAF7;
    --paper-2:#F2F0EA;
    --ink:#1B1E22;
    --ink-soft:#4E5761;
    --line:#DDD9CF;
    --white:#FFFFFF;
    --radius:14px;
    --shadow: 0 10px 30px -14px rgba(19,42,70,0.25);
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:'Inter', sans-serif;
    font-size:16px;
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,h4{
    font-family:'Poppins', sans-serif;
    line-height:1.15;
    margin:0 0 .5em;
    color:var(--navy);
  }
  p{margin:0 0 1em;}
  a{color:inherit;}
  img{max-width:100%;display:block;}
  .eyebrow{
    font-family:'IBM Plex Mono', monospace;
    font-size:12.5px;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:var(--green);
    font-weight:600;
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-bottom:14px;
  }
  .eyebrow::before{
    content:"";
    width:20px;height:2px;background:var(--gold);display:inline-block;
  }
  .wrap{
    max-width:1180px;
    margin:0 auto;
    padding:0 24px;
  }
  section{padding:88px 0;}
  @media(max-width:720px){ section{padding:56px 0;} }

  /* ---------- Buttons ---------- */
  .btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:14px 26px;
    border-radius:999px;
    font-weight:600;
    font-size:15px;
    text-decoration:none;
    border:1.5px solid transparent;
    cursor:pointer;
    transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
    font-family:'Inter',sans-serif;
  }
  .btn:hover{transform:translateY(-2px);}
  .btn-primary{ background:var(--gold); color:var(--navy); box-shadow:0 8px 20px -8px rgba(200,155,60,.6); }
  .btn-primary:hover{ background:var(--gold-2); }
  .btn-outline{ border-color:rgba(255,255,255,.5); color:var(--white); }
  .btn-outline:hover{ background:rgba(255,255,255,.12); }
  .btn-ghost{ border-color:var(--line); color:var(--navy); background:var(--white); }
  .btn-ghost:hover{ border-color:var(--green); color:var(--green); }
  .btn-sm{ padding:9px 16px; font-size:13.5px; }

  /* ---------- Nav ---------- */
  header{
    position:sticky; top:0; z-index:50;
    background:rgba(251,250,247,.9);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
  }
  .nav{
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 24px; max-width:1180px; margin:0 auto;
  }
  .brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
  .brand-mark{
    width:40px;height:40px; border-radius:10px;
    background:linear-gradient(155deg,var(--navy),var(--green));
    display:flex;align-items:center;justify-content:center;
    color:var(--white); font-family:'Poppins',sans-serif; font-weight:800; font-size:16px;
    flex-shrink:0;
  }
  .brand-text{line-height:1.2;}
  .brand-text strong{ display:block; font-family:'Poppins',sans-serif; font-weight:700; font-size:15.5px; color:var(--navy);}
  .brand-text span{ display:block; font-size:11.5px; color:var(--ink-soft); font-family:'IBM Plex Mono',monospace; letter-spacing:.04em;}
  nav.links{ display:flex; gap:30px; list-style:none; margin:0; padding:0; }
  nav.links a{ text-decoration:none; font-size:14.5px; font-weight:600; color:var(--ink-soft); position:relative; padding-bottom:4px;}
  nav.links a:hover{ color:var(--navy); }
  .nav-cta{ display:flex; gap:12px; align-items:center; }
  .hamburger{ display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px;}
  .hamburger span{ width:24px; height:2px; background:var(--navy); display:block; }
  @media(max-width:900px){
    nav.links{ display:none; }
    .nav-cta .btn-ghost{ display:none; }
    .hamburger{ display:flex; }
  }
  .mobile-panel{
    display:none; flex-direction:column; gap:2px; padding:8px 24px 20px;
    border-top:1px solid var(--line);
  }
  .mobile-panel.open{ display:flex; }
  .mobile-panel a{ padding:12px 4px; text-decoration:none; color:var(--navy); font-weight:600; border-bottom:1px solid var(--paper-2); }

  /* ---------- Hero ---------- */
  .hero{
    background:radial-gradient(1100px 480px at 85% -10%, rgba(200,155,60,.18), transparent 60%),
               linear-gradient(180deg,var(--navy) 0%, var(--navy-2) 100%);
    color:var(--white);
    padding:96px 0 64px;
    position:relative;
    overflow:hidden;
  }
  .hero::after{
    content:"";
    position:absolute; right:-120px; bottom:-160px; width:420px;height:420px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(62,136,99,.35), transparent 70%);
  }
  .hero-grid{
    display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center;
    position:relative; z-index:1;
  }
  @media(max-width:980px){ .hero-grid{ grid-template-columns:1fr; } }
  .hero h1{ color:var(--white); font-size:clamp(34px,4.6vw,54px); font-weight:800; letter-spacing:-.01em;}
  .hero h1 em{ font-style:normal; color:var(--gold-2); }
  .hero p.lead{ color:rgba(255,255,255,.82); font-size:18px; max-width:520px; }
  .hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top:28px; }
  .hero-stats{ display:flex; gap:32px; margin-top:44px; flex-wrap:wrap; }
  .hero-stats div strong{ display:block; font-family:'Poppins',sans-serif; font-size:24px; color:var(--gold-2); }
  .hero-stats div span{ font-size:12.5px; color:rgba(255,255,255,.65); font-family:'IBM Plex Mono',monospace; letter-spacing:.04em;}

  /* Path selector — signature element */
  .path-card{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.18);
    border-radius:18px;
    padding:26px;
    backdrop-filter:blur(6px);
  }
  .path-card > p.small-label{
    font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.1em; text-transform:uppercase;
    color:rgba(255,255,255,.6); margin-bottom:14px;
  }
  .path-toggle{ display:flex; gap:8px; margin-bottom:20px; flex-wrap:wrap; }
  .path-btn{
    flex:1 1 auto; min-width:110px;
    background:transparent; border:1px solid rgba(255,255,255,.28); color:rgba(255,255,255,.85);
    border-radius:999px; padding:10px 14px; font-size:13px; font-weight:600; cursor:pointer;
    font-family:'Inter',sans-serif; transition:all .18s ease;
  }
  .path-btn.active{ background:var(--gold); border-color:var(--gold); color:var(--navy); }
  .path-btn:hover:not(.active){ border-color:var(--gold-2); color:var(--white); }
  .path-panel h4{ color:var(--white); font-size:19px; margin-bottom:8px;}
  .path-panel p{ color:rgba(255,255,255,.78); font-size:14.5px; }
  .path-checklist{ list-style:none; margin:16px 0 20px; padding:0; display:flex; flex-direction:column; gap:10px;}
  .path-checklist li{ display:flex; align-items:flex-start; gap:10px; font-size:14px; color:rgba(255,255,255,.85);}
  .path-checklist .box{
    width:18px;height:18px;border-radius:5px;border:1.5px solid rgba(255,255,255,.5);
    flex-shrink:0; margin-top:2px; display:flex;align-items:center;justify-content:center;
    cursor:pointer; transition:all .15s ease;
  }
  .path-checklist .box.checked{ background:var(--green-2); border-color:var(--green-2); }
  .path-checklist .box.checked::after{ content:"✓"; color:white; font-size:12px; font-weight:700;}
  .path-checklist span.txt{ cursor:pointer; }
  .path-checklist span.txt.done{ text-decoration:line-through; color:rgba(255,255,255,.45); }

  /* ---------- Trust bar ---------- */
  .trustbar{
    background:var(--white); border-bottom:1px solid var(--line);
    padding:22px 0;
  }
  .trustbar .wrap{
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px 32px;
  }
  .trust-item{ display:flex; align-items:center; gap:10px; font-size:13.5px; font-weight:600; color:var(--navy-2); }
  .trust-item svg{ flex-shrink:0; }

  /* ---------- Section headers ---------- */
  .section-head{ max-width:660px; margin-bottom:44px; }
  .section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
  .section-head h2{ font-size:clamp(26px,3vw,36px); }
  .section-head p{ color:var(--ink-soft); font-size:16.5px; }

  /* ---------- Learn / Courses ---------- */
  .course-grid{
    display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
  }
  @media(max-width:900px){ .course-grid{ grid-template-columns:repeat(2,1fr);} }
  @media(max-width:620px){ .course-grid{ grid-template-columns:1fr;} }
  .course-card{
    background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
    padding:24px; display:flex; flex-direction:column; gap:12px;
    transition:box-shadow .2s ease, transform .2s ease;
  }
  .course-card:hover{ box-shadow:var(--shadow); transform:translateY(-3px); }
  a.course-card{ text-decoration:none; color:inherit; }
  .course-card--link .course-meta strong{ color:var(--green); }
  .course-tag{
    align-self:flex-start; font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:600;
    letter-spacing:.06em; text-transform:uppercase; color:var(--green);
    background:rgba(47,107,79,.09); padding:5px 10px; border-radius:999px;
  }
  .course-card h4{ font-size:18px; margin:2px 0 4px; }
  .course-card p{ font-size:14px; color:var(--ink-soft); margin-bottom:0; flex-grow:1; }
  .course-meta{ display:flex; justify-content:space-between; align-items:center; margin-top:10px; padding-top:14px; border-top:1px solid var(--paper-2); font-size:13px; color:var(--ink-soft); }
  .course-meta strong{ color:var(--navy); }

  /* ---------- Affiliate Hub ---------- */
  .affiliate-section{ background:var(--navy); color:var(--white); }
  .affiliate-section .section-head p{ color:rgba(255,255,255,.72); }
  .affiliate-section .eyebrow{ color:var(--gold-2); }
  .affiliate-section .eyebrow::before{ background:var(--gold-2); }

  .how-it-works{
    display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:56px;
  }
  @media(max-width:800px){ .how-it-works{ grid-template-columns:1fr; } }
  .step{
    background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.14); border-radius:var(--radius);
    padding:26px;
  }
  .step .num{
    font-family:'Poppins',sans-serif; font-weight:800; font-size:28px; color:var(--gold-2); margin-bottom:10px; display:block;
  }
  .step h4{ color:var(--white); font-size:16.5px; margin-bottom:6px;}
  .step p{ color:rgba(255,255,255,.7); font-size:14px; margin:0;}

  .cat-tabs{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:32px; }
  .cat-tab{
    background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.2); color:rgba(255,255,255,.85);
    padding:9px 16px; border-radius:999px; font-size:13.5px; font-weight:600; cursor:pointer;
    font-family:'Inter',sans-serif;
  }
  .cat-tab.active{ background:var(--gold); border-color:var(--gold); color:var(--navy); }

  .affiliate-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
  @media(max-width:800px){ .affiliate-grid{ grid-template-columns:1fr; } }
  .affiliate-card{
    background:var(--white); color:var(--ink); border-radius:var(--radius); padding:24px;
    display:none;
  }
  .affiliate-card.show{ display:block; }
  .aff-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin-bottom:10px;}
  .aff-top h4{ font-size:17px; margin:0; }
  .aff-cost{
    font-family:'IBM Plex Mono',monospace; font-size:11.5px; font-weight:600; white-space:nowrap;
    background:rgba(47,107,79,.1); color:var(--green); padding:5px 10px; border-radius:999px;
  }
  .affiliate-card p.desc{ font-size:14px; color:var(--ink-soft); margin-bottom:14px; }
  .aff-facts{ list-style:none; margin:0 0 16px; padding:0; display:flex; flex-direction:column; gap:6px; }
  .aff-facts li{ font-size:13px; color:var(--ink-soft); display:flex; gap:8px; }
  .aff-facts li b{ color:var(--navy); min-width:96px; display:inline-block; font-weight:600;}
  .aff-foot{ display:flex; justify-content:space-between; align-items:center; padding-top:14px; border-top:1px solid var(--paper-2); }
  .risk-pill{ font-size:11.5px; font-weight:700; padding:4px 10px; border-radius:999px; font-family:'IBM Plex Mono',monospace;}
  .risk-low{ background:rgba(47,107,79,.12); color:var(--green); }
  .risk-med{ background:rgba(200,155,60,.16); color:#8a6a1f; }
  .aff-link{ font-size:13px; font-weight:700; color:var(--navy); text-decoration:none; display:inline-flex; align-items:center; gap:5px;}
  .aff-link:hover{ color:var(--green); }

  .disclosure-box{
    margin-top:48px; background:rgba(255,255,255,.05); border:1px dashed rgba(255,255,255,.3);
    border-radius:var(--radius); padding:22px 26px;
  }
  .disclosure-box h4{ color:var(--gold-2); font-size:14.5px; margin-bottom:8px; font-family:'IBM Plex Mono',monospace; letter-spacing:.04em; text-transform:uppercase;}
  .disclosure-box p{ color:rgba(255,255,255,.75); font-size:14px; margin-bottom:0; }

  .pending-banner{
    display:flex; align-items:flex-start; gap:14px;
    background:rgba(200,155,60,.12); border:1px solid rgba(224,183,92,.4);
    border-radius:var(--radius); padding:16px 20px; margin-bottom:32px;
  }
  .pending-dot{
    width:9px;height:9px;border-radius:50%; background:var(--gold-2); margin-top:6px; flex-shrink:0;
  }
  .pending-banner strong{ display:block; color:#fff; font-size:14px; margin-bottom:3px; }
  .pending-banner span{ display:block; color:rgba(255,255,255,.72); font-size:13.5px; line-height:1.5; }
  .pending-tag{
    display:inline-block; vertical-align:middle; margin-left:8px;
    font-family:'IBM Plex Mono',monospace; font-size:10px; font-weight:700; letter-spacing:.04em;
    text-transform:uppercase; color:#8a6a1f; background:rgba(200,155,60,.18);
    padding:3px 8px; border-radius:999px;
  }

  /* ---------- Resource library ---------- */
  .resource-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
  @media(max-width:900px){ .resource-grid{ grid-template-columns:repeat(2,1fr);} }
  @media(max-width:560px){ .resource-grid{ grid-template-columns:1fr;} }
  .resource-card{
    border:1px solid var(--line); border-radius:var(--radius); padding:20px; background:var(--white);
    display:flex; align-items:center; gap:14px; text-decoration:none; transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  }
  .resource-card:hover{ box-shadow:var(--shadow); transform:translateY(-2px); border-color:var(--green); }
  .resource-card .dl-icon{ margin-left:auto; flex-shrink:0; opacity:.55; }
  .resource-card:hover .dl-icon path{ stroke:var(--green); }
  .resource-text{ min-width:0; }
  .resource-icon{
    width:42px;height:42px;border-radius:10px; background:var(--paper-2); flex-shrink:0;
    display:flex; align-items:center; justify-content:center; color:var(--green);
  }
  .resource-card h5{ margin:0 0 3px; font-size:14.5px; font-family:'Poppins',sans-serif; color:var(--navy); font-weight:600;}
  .resource-card span{ font-size:12.5px; color:var(--ink-soft); }

  /* ---------- Community / Newsletter ---------- */
  .newsletter{
    background:linear-gradient(155deg,var(--green) 0%, var(--green-2) 100%);
    color:var(--white); border-radius:24px; padding:56px; margin:0 24px;
    display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:center;
    max-width:1132px; margin-inline:auto;
  }
  @media(max-width:860px){ .newsletter{ grid-template-columns:1fr; padding:36px 26px;} }
  .newsletter h2{ color:var(--white); font-size:28px; }
  .newsletter p{ color:rgba(255,255,255,.85); }
  .n-form{ display:flex; gap:10px; flex-wrap:wrap; }
  .n-form input{
    flex:1 1 220px; padding:14px 16px; border-radius:999px; border:none; font-size:14.5px;
    font-family:'Inter',sans-serif;
  }
  .n-note{ font-size:12.5px; color:rgba(255,255,255,.7); margin-top:10px; }
  .n-success{ display:none; font-size:14px; font-weight:600; margin-top:10px; }
  .n-success.show{ display:block; }
  /* Honeypot — invisible to people, visible to most spam bots that auto-fill every field */
  .hp-field{
    position:absolute; left:-9999px; top:-9999px; width:1px; height:1px;
    opacity:0; overflow:hidden; pointer-events:none;
  }

  /* ---------- Footer ---------- */
  footer{ background:var(--navy); color:rgba(255,255,255,.65); padding:56px 0 28px; margin-top:88px; }
  .foot-grid{ display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:32px; margin-bottom:40px; }
  @media(max-width:800px){ .foot-grid{ grid-template-columns:1fr 1fr;} }
  @media(max-width:480px){ .foot-grid{ grid-template-columns:1fr;} }
  footer h5{ color:var(--white); font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.08em; text-transform:uppercase; margin-bottom:14px;}
  footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px;}
  footer a{ text-decoration:none; color:rgba(255,255,255,.65); font-size:13.5px; }
  footer a:hover{ color:var(--gold-2); }
  .foot-brand p{ font-size:13.5px; max-width:280px; color:rgba(255,255,255,.6); }
  .foot-legal{
    border-top:1px solid rgba(255,255,255,.12); padding-top:24px; font-size:12px; color:rgba(255,255,255,.45);
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  }

  ::selection{ background:var(--gold); color:var(--navy); }
  /* ---------- Course page ---------- */
  .breadcrumb{
    font-size:13px; color:var(--ink-soft); margin-bottom:18px;
    display:flex; gap:8px; align-items:center; flex-wrap:wrap;
  }
  .breadcrumb a{ color:var(--ink-soft); text-decoration:none; }
  .breadcrumb a:hover{ color:var(--green); }
  .breadcrumb .sep{ color:var(--line); }
  .breadcrumb .current{ color:var(--navy); font-weight:600; }

  .course-hero{
    background:linear-gradient(180deg,var(--navy) 0%, var(--navy-2) 100%);
    color:var(--white); padding:56px 0 44px;
  }
  .course-hero .breadcrumb, .course-hero .breadcrumb a{ color:rgba(255,255,255,.6); }
  .course-hero .breadcrumb .current{ color:#fff; }
  .course-hero h1{ color:#fff; font-size:clamp(28px,4vw,42px); max-width:760px; }
  .course-hero p.lead{ color:rgba(255,255,255,.78); max-width:640px; font-size:16.5px; }
  .chip-row{ display:flex; gap:10px; flex-wrap:wrap; margin:20px 0 28px; }
  .chip{
    font-family:'IBM Plex Mono',monospace; font-size:12px; font-weight:600; letter-spacing:.04em;
    background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.22); color:#fff;
    padding:7px 13px; border-radius:999px;
  }
  .progress-wrap{ max-width:420px; }
  .progress-label{ display:flex; justify-content:space-between; font-size:12.5px; color:rgba(255,255,255,.7); margin-bottom:8px; font-family:'IBM Plex Mono',monospace;}
  .progress-bar{ height:8px; border-radius:999px; background:rgba(255,255,255,.15); overflow:hidden; }
  .progress-fill{ height:100%; width:0%; background:var(--gold); border-radius:999px; transition:width .3s ease; }

  .course-shell{
    display:grid; grid-template-columns:260px 1fr; gap:48px; align-items:start;
  }
  @media(max-width:900px){ .course-shell{ grid-template-columns:1fr; } }

  .toc{
    position:sticky; top:92px; background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
    padding:20px; display:flex; flex-direction:column; gap:2px;
  }
  @media(max-width:900px){ .toc{ position:static; margin-bottom:8px; } }
  .toc h5{ font-family:'IBM Plex Mono',monospace; font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-soft); margin:0 0 10px;}
  .toc a{
    display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink-soft);
    font-size:13.5px; font-weight:600; padding:9px 8px; border-radius:8px;
  }
  .toc a:hover{ background:var(--paper-2); color:var(--navy); }
  .toc a .dot{
    width:20px;height:20px; border-radius:50%; border:1.5px solid var(--line); flex-shrink:0;
    display:flex; align-items:center; justify-content:center; font-size:10.5px; color:var(--ink-soft); font-family:'IBM Plex Mono',monospace;
  }
  .toc a.done .dot{ background:var(--green); border-color:var(--green); color:#fff; }
  .toc a.done .dot::after{ content:"✓"; }
  .toc a.done{ color:var(--navy); }
  .toc-final{ border-top:1px solid var(--paper-2); margin-top:8px; padding-top:10px; }

  .lesson{
    border:1px solid var(--line); border-radius:var(--radius); background:var(--white);
    padding:32px; margin-bottom:22px; scroll-margin-top:90px;
  }
  .lesson-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:14px;}
  .lesson-num{
    font-family:'IBM Plex Mono',monospace; font-size:12px; font-weight:600; color:var(--green);
    letter-spacing:.06em; text-transform:uppercase; margin-bottom:6px; display:block;
  }
  .lesson h3{ font-size:21px; margin-bottom:0; }
  .mark-done{
    flex-shrink:0; font-family:'Inter',sans-serif; font-size:12.5px; font-weight:600;
    border:1.5px solid var(--line); background:var(--white); color:var(--ink-soft);
    padding:8px 14px; border-radius:999px; cursor:pointer; white-space:nowrap;
    transition:all .15s ease;
  }
  .mark-done.done{ background:var(--green); border-color:var(--green); color:#fff; }
  .lesson ul{ margin:0 0 18px; padding-left:20px; }
  .lesson ul li{ font-size:14.5px; color:var(--ink-soft); margin-bottom:6px; }
  .exercise-box{
    background:var(--paper-2); border-left:3px solid var(--gold); border-radius:0 10px 10px 0;
    padding:16px 20px; margin-top:6px;
  }
  .exercise-box .ex-label{
    font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:700; letter-spacing:.08em;
    text-transform:uppercase; color:#8a6a1f; margin-bottom:6px; display:block;
  }
  .exercise-box p{ margin:0; font-size:14px; color:var(--ink); }

  .final-project{
    background:linear-gradient(155deg,var(--navy),var(--navy-2)); color:#fff;
    border-radius:var(--radius); padding:36px; margin-top:12px; scroll-margin-top:90px;
  }
  .final-project h3{ color:#fff; }
  .final-project ul li{ color:rgba(255,255,255,.82); }
  .final-project .exercise-box{ background:rgba(255,255,255,.08); border-left-color:var(--gold-2); }
  .final-project .exercise-box p{ color:rgba(255,255,255,.9); }
  .final-project .ex-label{ color:var(--gold-2); }

  .completion-banner{
    text-align:center; padding:48px 32px; background:var(--paper-2); border-radius:var(--radius); margin-top:32px;
  }
  .completion-banner h3{ margin-bottom:8px; }
  .completion-banner p{ color:var(--ink-soft); max-width:480px; margin:0 auto 22px; }
  .completion-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

  @media (prefers-reduced-motion: reduce){
    *{ transition:none !important; scroll-behavior:auto !important; }
  }

  /* ---------- Legal pages ---------- */
  .legal-hero{
    background:linear-gradient(180deg,var(--navy) 0%, var(--navy-2) 100%);
    color:#fff; padding:48px 0 40px;
  }
  .legal-hero .breadcrumb, .legal-hero .breadcrumb a{ color:rgba(255,255,255,.6); }
  .legal-hero .breadcrumb .current{ color:#fff; }
  .legal-hero h1{ color:#fff; font-size:clamp(26px,3.6vw,38px); margin-bottom:8px; }
  .legal-hero p{ color:rgba(255,255,255,.75); margin:0; font-size:14.5px; }
  .legal-shell{ display:grid; grid-template-columns:230px 1fr; gap:48px; align-items:start; padding-top:48px; }
  @media(max-width:860px){ .legal-shell{ grid-template-columns:1fr; } }
  .legal-nav{
    position:sticky; top:92px; background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
    padding:18px; display:flex; flex-direction:column; gap:2px;
  }
  @media(max-width:860px){ .legal-nav{ position:static; } }
  .legal-nav h5{ font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-soft); margin:0 0 10px;}
  .legal-nav a{ text-decoration:none; color:var(--ink-soft); font-size:13.5px; font-weight:600; padding:8px; border-radius:8px; }
  .legal-nav a:hover{ background:var(--paper-2); color:var(--navy); }
  .legal-nav a.current{ background:var(--paper-2); color:var(--navy); }
  .legal-content{ max-width:720px; }
  .legal-content h2{ font-size:21px; margin-top:36px; }
  .legal-content h2:first-child{ margin-top:0; }
  .legal-content p, .legal-content li{ font-size:15px; color:var(--ink-soft); }
  .legal-content ul{ padding-left:20px; }
  .legal-updated{
    font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--ink-soft);
    background:var(--paper-2); display:inline-block; padding:6px 12px; border-radius:999px; margin-bottom:28px;
  }
  .fill-in{
    background:#FFF7E6; border:1px dashed var(--gold); color:#7A5A12; padding:2px 6px; border-radius:5px;
    font-family:'IBM Plex Mono',monospace; font-size:13px;
  }
  .disclosure-callout{
    background:var(--paper-2); border-left:3px solid var(--green); border-radius:0 10px 10px 0;
    padding:18px 22px; margin:20px 0;
  }
  .disclosure-callout p{ margin:0; color:var(--ink); font-size:14.5px; }

.page.hidden{ display:none; }

/* ======================================================================
   MOBILE & TOUCH REFINEMENT LAYER
   Treats the phone as the primary surface — not a shrunk desktop.
   ====================================================================== */

/* ---- Safe-area awareness (notch / home-indicator devices) ---- */
header{
  padding-top:env(safe-area-inset-top, 0);
}
.nav{ padding-left:max(24px, env(safe-area-inset-left)); padding-right:max(24px, env(safe-area-inset-right)); }
footer{ padding-bottom:calc(28px + env(safe-area-inset-bottom, 0)); }
.wrap{ padding-left:max(24px, env(safe-area-inset-left)); padding-right:max(24px, env(safe-area-inset-right)); }

/* ---- Remove default tap flash; we design our own feedback ---- */
a, button, .btn, .path-btn, .cat-tab, .mark-done, .course-card, .resource-card,
.affiliate-card, .aff-link, .toc a, .legal-nav a, .path-checklist .box, .path-checklist .txt{
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}

/* ---- Scope :hover effects to devices that truly support hover ----
   Prevents the iOS/Android "sticky hover" bug where a card stays
   lifted/shadowed after a tap until the user taps elsewhere. */
@media (hover:hover) and (pointer:fine){
  .course-card:hover{ box-shadow:var(--shadow); transform:translateY(-3px); }
  .resource-card:hover{ box-shadow:var(--shadow); transform:translateY(-2px); border-color:var(--green); }
  .btn:hover{ transform:translateY(-2px); }
}
@media (hover:none), (pointer:coarse){
  .course-card, .resource-card, .btn{ transition:transform .12s ease, box-shadow .12s ease, background .12s ease; }
  .course-card:active{ transform:scale(.98); box-shadow:var(--shadow); }
  .resource-card:active{ transform:scale(.98); border-color:var(--green); }
  .btn:active{ transform:scale(.97); }
  .path-btn:active:not(.active){ border-color:var(--gold-2); }
  .cat-tab:active:not(.active){ border-color:var(--gold-2); }
  .mark-done:active{ transform:scale(.96); }
}

/* ---- Touch target sizing — 44px minimum on every primary control ---- */
@media(max-width:900px){
  .btn{ min-height:48px; padding:14px 26px; }
  .btn-sm{ min-height:44px; padding:11px 20px; }
  .path-btn{ min-height:44px; padding:12px 14px; }
  .cat-tab{ min-height:42px; padding:10px 16px; display:inline-flex; align-items:center; }
  .mark-done{ min-height:40px; padding:9px 16px; }
  .hamburger{ min-width:44px; min-height:44px; align-items:center; justify-content:center; }
  .aff-link, .toc a, .legal-nav a{ min-height:44px; display:flex; align-items:center; }
  .path-checklist li{ padding:4px 0; }
  .path-checklist .box{ width:22px; height:22px; flex-shrink:0; }
  .path-checklist .txt{ padding:10px 0; flex:1; }
}

/* ---- Prevent iOS auto-zoom on form focus (inputs must be >=16px) ---- */
@media(max-width:900px){
  .n-form input, input[type="email"], input[type="text"]{ font-size:16px !important; }
}

/* ---- Category tabs: horizontal swipe instead of cramped wrap ---- */
@media(max-width:640px){
  .cat-tabs{
    flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity; padding-bottom:4px; margin:0 -24px 20px; padding-left:24px; padding-right:24px;
  }
  .cat-tabs::-webkit-scrollbar{ display:none; }
  .cat-tabs{ scrollbar-width:none; }
  .cat-tab{ scroll-snap-align:start; white-space:nowrap; flex-shrink:0; }
}

/* ---- Mobile nav panel: real motion instead of an instant show/hide ---- */
.mobile-panel{
  max-height:0; overflow:hidden; opacity:0;
  transition:max-height .38s var(--ease, cubic-bezier(.4,0,.2,1)), opacity .28s ease;
}
.mobile-panel.open{ max-height:420px; opacity:1; }
.mobile-panel a{ min-height:48px; display:flex; align-items:center; }

/* ---- Sticky header: keep it light on small screens ---- */
@media(max-width:640px){
  header{ padding:14px 0; }
  header.scrolled, .trustbar{ padding-top:calc(10px + env(safe-area-inset-top, 0)); }
  .nav{ padding-top:10px; padding-bottom:10px; }
}

/* ---- Hero: tighten rhythm so the fold earns its keep ---- */
@media(max-width:640px){
  .hero{ padding-top:56px; }
  .hero-stats{ gap:22px; }
  .path-card{ padding:22px; }
}

/* ---- Primary CTAs: full-width, thumb-reachable on narrow phones ---- */
@media(max-width:420px){
  .hero-actions, .completion-actions{ flex-direction:column; }
  .hero-actions .btn, .completion-actions .btn{ width:100%; justify-content:center; }
  .n-form{ flex-direction:column; align-items:stretch; }
  .n-form button{ width:100%; justify-content:center; }
}

/* ---- Card padding: generous on desktop, disciplined on phones ---- */
@media(max-width:480px){
  .lesson{ padding:24px 20px; }
  .affiliate-card{ padding:20px; }
  .step{ padding:20px; }
  .final-project{ padding:26px 22px; }
  .newsletter{ padding:32px 22px; }
}

/* ---- Chip rows and stat rows: no orphaned single items wrapping oddly ---- */
@media(max-width:480px){
  .chip-row{ gap:8px; }
  .chip{ font-size:11px; padding:6px 11px; }
}

/* ---- Tablet refinement (not just a midpoint stretch of mobile) ---- */
@media(min-width:641px) and (max-width:1024px){
  .course-grid{ grid-template-columns:repeat(2,1fr); }
  .affiliate-grid{ grid-template-columns:repeat(2,1fr); }
  .resource-grid{ grid-template-columns:repeat(2,1fr); }
  .how-it-works{ grid-template-columns:repeat(2,1fr) !important; }
  section{ padding:88px 0; }
}

/* ---- Reduced motion: honour it everywhere, including new rules above ---- */
@media (prefers-reduced-motion: reduce){
  .mobile-panel{ transition:none !important; }
  .course-card, .resource-card, .btn, .mark-done{ transition:none !important; }
}

/* ---- Visible keyboard focus (accessibility, not just touch) ---- */
a:focus-visible, button:focus-visible, input:focus-visible,
.path-btn:focus-visible, .cat-tab:focus-visible, .mark-done:focus-visible{
  outline:2px solid var(--gold); outline-offset:2px;
}
