/*
  Layout concept: same one-screen "app" shell as the Gogenx account guides
  (fixed top bar + progress + one full slide at a time + bottom nav), but
  this guide has no dashboard to mock up — it teaches two WORDS (SEO, LLM)
  from zero, so every slide is one small idea told through a big icon, a
  short line, and a real-life comparison, in simple Hinglish.
  Palette/type stay Gogenx's own tokens (ink/paper/orange, Archivo+Inter)
  so it still feels like the same product family as the other guides.
*/
:root{
  --bg:#fffdf9; --surface:#ffffff; --soft:#f1efe7; --ink:#101010; --muted:#64605b;
  --accent:#ff5f16; --line:#101010; --shadow:#101010;
  --good:#1f7a3f; --good-bg:#e4f3e7; --warn:#9a6b00; --warn-bg:#fbeecd;
  --crit:#b3261e; --crit-bg:#fbe4e2; --neutral-bg:#eeece4;
  --font-heading:'Archivo',sans-serif; --font-body:'Inter',Arial,sans-serif; --font-mono:'JetBrains Mono','Courier New',monospace;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#141210; --surface:#1c1a17; --soft:#232019; --ink:#f3efe7; --muted:#b6ae9f;
    --accent:#ff7a3d; --line:#f3efe7; --shadow:#000000;
    --good:#7fd99a; --good-bg:#17301f; --warn:#f0c766; --warn-bg:#352a0f;
    --crit:#ff9b93; --crit-bg:#3a1917; --neutral-bg:#2a271f;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#141210; --surface:#1c1a17; --soft:#232019; --ink:#f3efe7; --muted:#b6ae9f;
  --accent:#ff7a3d; --line:#f3efe7; --shadow:#000000;
  --good:#7fd99a; --good-bg:#17301f; --warn:#f0c766; --warn-bg:#352a0f;
  --crit:#ff9b93; --crit-bg:#3a1917; --neutral-bg:#2a271f;
  color-scheme:dark;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{background:var(--bg);color:var(--ink);font-family:var(--font-body);}
h1,h2,h3,.kicker,.brand-word{font-family:var(--font-heading);}
button{font-family:inherit;}

.app{height:100%;display:flex;flex-direction:column;min-height:0;}

/* ---------- top bar ---------- */
.topbar{
  flex:0 0 auto;display:flex;align-items:center;gap:.75rem;
  padding:.85rem max(16px, env(safe-area-inset-left,0px)) .85rem max(16px, env(safe-area-inset-right,0px));
  border-bottom:2px solid var(--line);background:var(--surface);
}
.topbar .brand{display:flex;align-items:center;gap:.5rem;min-width:0;}
.brand-mark{
  width:28px;height:28px;flex:0 0 auto;border-radius:7px;background:var(--accent);
  display:flex;align-items:center;justify-content:center;color:#101010;font-weight:800;font-size:.85rem;
  border:2px solid var(--line);
}
.brand-word{font-weight:800;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.topbar .sub{color:var(--muted);font-size:.78rem;white-space:nowrap;display:none;}
@media(min-width:620px){.topbar .sub{display:inline;}}
.topbar .spacer{flex:1 1 auto;}
.slide-count{font-family:var(--font-mono);font-size:.75rem;color:var(--muted);white-space:nowrap;}
.progress-track{height:3px;background:var(--soft);flex:0 0 auto;}
.progress-fill{height:100%;background:var(--accent);transition:width .35s ease;}
@media (prefers-reduced-motion: reduce){.progress-fill{transition:none;}}

/* ---------- stage ---------- */
.stage{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;position:relative;}
.slide{
  display:none;min-height:100%;padding:2.1rem max(16px, env(safe-area-inset-left,0px)) 2.5rem max(16px, env(safe-area-inset-right,0px));
}
.slide.is-active{display:block;animation:rise .35s ease both;}
@keyframes rise{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:none;}}
@media (prefers-reduced-motion: reduce){.slide.is-active{animation:none;}}
.slide-inner{max-width:760px;margin:0 auto;}

.kicker{
  font-size:.72rem;letter-spacing:.09em;text-transform:uppercase;color:var(--accent);
  font-weight:700;margin:0 0 .6rem;
}
.slide h2{font-size:clamp(1.5rem,4vw,2.1rem);margin:0 0 .5rem;text-wrap:balance;line-height:1.15;}
.lede{color:var(--muted);font-size:1rem;max-width:62ch;margin:0 0 1.5rem;line-height:1.6;}

/* ---------- concept card (one big idea, one icon) ---------- */
.concept-card{
  background:var(--surface);border:2px solid var(--line);border-radius:14px;
  box-shadow:7px 7px 0 var(--shadow);padding:1.6rem 1.6rem 1.8rem;text-align:left;
}
.icon-ring{
  width:62px;height:62px;border-radius:50%;background:var(--soft);border:2px solid var(--line);
  display:flex;align-items:center;justify-content:center;color:var(--accent);margin-bottom:1rem;flex:0 0 auto;
}
.icon-ring.ring-ink{color:var(--ink);}
.concept-card h3{margin:0 0 .5rem;font-size:1.3rem;}
.concept-card p{margin:0;color:var(--muted);font-size:.95rem;line-height:1.6;max-width:56ch;}
.concept-card p+p{margin-top:.6rem;}
.concept-card .term-tag{
  display:inline-block;font-family:var(--font-mono);font-size:.72rem;background:var(--accent);color:#101010;
  padding:.15rem .5rem;border-radius:5px;border:2px solid var(--line);margin-bottom:.7rem;font-weight:700;
}

/* ---------- generic cards / grids (reused for lists of small parts) ---------- */
.cards-row{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;}
@media(max-width:700px){.cards-row{grid-template-columns:1fr;}}
.cards-row.cols-2{grid-template-columns:repeat(2,1fr);}
@media(max-width:560px){.cards-row.cols-2{grid-template-columns:1fr;}}
.card{
  background:var(--surface);border:2px solid var(--line);border-radius:10px;
  box-shadow:5px 5px 0 var(--shadow);
}
.feature-card{padding:1.1rem 1.1rem 1.3rem;min-width:0;}
.feature-card .ficon{
  width:34px;height:34px;border-radius:8px;background:var(--soft);border:2px solid var(--line);
  display:flex;align-items:center;justify-content:center;margin-bottom:.7rem;color:var(--accent);
}
.feature-card h3{margin:0 0 .3rem;font-size:1.02rem;}
.feature-card p{margin:0;color:var(--muted);font-size:.88rem;line-height:1.5;}

/* ---------- analogy: real-life thing <-> tech word ---------- */
.analogy-row{display:flex;align-items:center;gap:.9rem;margin-top:.2rem;}
@media(max-width:600px){.analogy-row{flex-direction:column;}}
.analogy-box{
  flex:1 1 0;min-width:0;background:var(--surface);border:2px solid var(--line);border-radius:10px;
  box-shadow:5px 5px 0 var(--shadow);padding:1rem 1.1rem;text-align:center;
}
.analogy-box span.tag{display:block;font-size:.68rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:.35rem;}
.analogy-box strong{display:block;font-size:1.02rem;margin-bottom:.3rem;}
.analogy-box p{margin:0;color:var(--muted);font-size:.82rem;line-height:1.45;}
.analogy-arrow{
  flex:0 0 auto;width:36px;height:36px;border-radius:50%;background:var(--accent);border:2px solid var(--line);
  display:flex;align-items:center;justify-content:center;color:#101010;font-weight:800;font-size:1rem;
}
@media(max-width:600px){.analogy-arrow{transform:rotate(90deg);}}

/* ---------- flow of small steps ---------- */
.step-flow{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;margin-top:1rem;}
.step-chip{
  border:2px solid var(--line);border-radius:8px;padding:.6rem .8rem;font-size:.82rem;background:var(--surface);
  box-shadow:3px 3px 0 var(--shadow);max-width:230px;line-height:1.4;
}
.step-arrow{color:var(--muted);font-weight:700;flex:0 0 auto;}

/* ---------- callouts ---------- */
.callout-list{list-style:none;margin:1rem 0 0;padding:0;display:flex;flex-direction:column;gap:.5rem;}
.callout-list li{display:flex;gap:.6rem;align-items:flex-start;font-size:.88rem;color:var(--muted);}
.callout-list b{
  flex:0 0 auto;width:20px;height:20px;border-radius:50%;background:var(--ink);color:var(--bg);
  display:flex;align-items:center;justify-content:center;font-size:.68rem;font-weight:800;
}
.callout-list span{color:var(--ink);}
.callout-list span em{color:var(--muted);font-style:normal;}

/* ---------- example chips (ChatGPT / Claude / Gemini etc.) ---------- */
.chip-row{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.9rem;}
.name-chip{
  border:2px solid var(--line);border-radius:99px;padding:.4rem .95rem;font-size:.85rem;font-weight:700;
  background:var(--soft);
}

/* ---------- pill badges (used in glossary as category tags) ---------- */
.pill-badge{
  font-size:.66rem;font-weight:700;padding:.14rem .5rem;border-radius:99px;display:inline-block;white-space:nowrap;
}
.pill-badge.good{background:var(--good-bg);color:var(--good);}
.pill-badge.warn{background:var(--warn-bg);color:var(--warn);}
.pill-badge.neutral{background:var(--neutral-bg);color:var(--muted);}

/* ---------- glossary ---------- */
.glossary-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.7rem;}
.glossary-list li{
  display:flex;gap:.8rem;align-items:flex-start;border:2px solid var(--line);border-radius:10px;
  padding:.7rem .9rem;background:var(--surface);
}
.glossary-list strong{display:block;font-size:.95rem;margin-bottom:.15rem;}
.glossary-list span{color:var(--muted);font-size:.84rem;line-height:1.5;}

/* ---------- recap checklist ---------- */
.recap-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.7rem;max-width:560px;}
.recap-list li{display:flex;gap:.7rem;align-items:flex-start;}
.recap-check{
  flex:0 0 auto;width:24px;height:24px;border-radius:50%;border:2px solid var(--line);background:var(--accent);
  display:flex;align-items:center;justify-content:center;color:#101010;font-weight:800;font-size:.8rem;
}
.recap-list strong{display:block;font-size:.92rem;}
.recap-list span{color:var(--muted);font-size:.82rem;}

.two-col{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem;align-items:start;}
@media(max-width:620px){.two-col{grid-template-columns:1fr;}}

.cover-slide{display:flex;flex-direction:column;justify-content:center;min-height:calc(100% - 4.6rem);}
.cover-badge{
  display:inline-flex;align-items:center;gap:.4rem;border:2px solid var(--line);border-radius:99px;
  padding:.3rem .8rem;font-size:.74rem;font-weight:700;background:var(--soft);margin-bottom:1.1rem;width:fit-content;
}
.cover-badge .dot{width:7px;height:7px;border-radius:50%;background:var(--good);}
.cover-slide h1{font-size:clamp(2rem,6vw,3.1rem);margin:0 0 .7rem;line-height:1.08;text-wrap:balance;}
.cover-slide .lede{font-size:1.05rem;max-width:56ch;}
.cover-start{
  margin-top:1.4rem;align-self:flex-start;border:2px solid var(--line);border-radius:9px;
  background:var(--accent);color:#101010;font-weight:800;font-size:.95rem;padding:.65rem 1.3rem;
  box-shadow:5px 5px 0 var(--shadow);
}
.cover-start:active{transform:translate(2px,2px);box-shadow:3px 3px 0 var(--shadow);}

/* ---------- bottom nav ---------- */
.navbar{
  flex:0 0 auto;display:flex;align-items:center;gap:.7rem;border-top:2px solid var(--line);
  background:var(--surface);padding:.6rem max(16px, env(safe-area-inset-left,0px)) calc(.6rem + env(safe-area-inset-bottom,0px)) max(16px, env(safe-area-inset-right,0px));
}
.nav-btn{
  border:2px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);font-weight:700;
  font-size:.82rem;padding:.45rem .85rem;display:flex;align-items:center;gap:.35rem;white-space:nowrap;
}
.nav-btn:disabled{opacity:.35;}
.nav-btn.primary{background:var(--accent);color:#101010;box-shadow:3px 3px 0 var(--shadow);}
.nav-btn.primary:disabled{box-shadow:none;}
.dots{flex:1 1 auto;display:flex;gap:.3rem;justify-content:center;flex-wrap:wrap;}
.dot-btn{
  width:8px;height:8px;border-radius:50%;background:var(--soft);border:2px solid var(--line);padding:0;
}
.dot-btn.is-active{background:var(--accent);}

a{color:var(--accent);}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
