
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Manrope:wght@700;800&display=swap');

:root{
  --bg:#f6f7fb;
  --bg2:#eef1ff;
  --surface:#ffffff;
  --surface-2:#f9fafe;
  --ink:#182033;
  --muted:#5f6881;
  --line:#dde3f0;
  --purple:#6b5cff;
  --purple-2:#8f72ff;
  --blue:#45a2ff;
  --mint:#dff8ef;
  --mint-ink:#137a5b;
  --amber:#fff2c9;
  --amber-ink:#946b00;
  --red:#ffe6e2;
  --red-ink:#a53a32;
  --shadow:0 18px 45px rgba(17,23,54,.08);
  --shadow-lg:0 28px 70px rgba(17,23,54,.12);
  --radius:24px;
  --radius-sm:16px;
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background:
    radial-gradient(circle at top left, rgba(143,114,255,.12), transparent 28%),
    radial-gradient(circle at top right, rgba(69,162,255,.08), transparent 22%),
    linear-gradient(180deg, #fafbff 0%, #f4f6fc 100%);
  color:var(--ink);
}
img{max-width:100%;display:block}
a{color:inherit}
main{display:block}
b,strong{font-weight:800}
p{margin:0 0 1rem}
h1,h2,h3,h4{font-family:Manrope,Inter,sans-serif; line-height:1.08; letter-spacing:-.03em; margin:0 0 .6rem}
h1{font-size:clamp(42px,6vw,76px)}
h2{font-size:clamp(30px,4.2vw,48px)}
h3{font-size:clamp(20px,2vw,28px)}
h4{font-size:18px}
ul,ol{margin:0 0 1rem; padding-left:1.2rem}
li{margin:.4rem 0}
.section{
  max-width:var(--max);
  margin:0 auto;
  padding:78px 28px 0;
}
.section-head{
  display:grid;
  grid-template-columns:1fr minmax(260px, 430px);
  gap:24px;
  align-items:end;
  margin-bottom:22px;
}
.section-head p{color:var(--muted);font-size:16px;line-height:1.65;margin:0}
.kicker,.eyebrow{
  display:inline-block;
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  color:var(--purple);
  text-transform:uppercase;
  margin-bottom:10px;
}
.lead{font-size:18px; line-height:1.7; color:var(--muted)}
.muted{color:var(--muted)}

.school-strip{
  position:sticky;
  top:0;
  z-index:60;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:6px 18px;
  background:rgba(255,255,255,.88);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(14px);
  color:#46506a;
  font-size:13px;
  font-weight:800;
}
.school-strip img{width:32px;height:32px;object-fit:contain}
.topbar{
  position:sticky;
  top:46px;
  z-index:50;
  max-width:var(--max);
  margin:0 auto;
  padding:16px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:rgba(246,247,251,.85);
  backdrop-filter: blur(12px);
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  font-weight:900;
  color:var(--ink);
}
.brand-mark{
  width:44px;height:44px;border-radius:14px;
  background:linear-gradient(135deg,var(--purple),var(--blue));
  color:#fff;display:grid;place-items:center;
  box-shadow:0 10px 24px rgba(107,92,255,.28);
  font-family:Manrope,Inter,sans-serif;
  font-size:16px;
}
.topbar nav, .topbar #nav{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
}
.topbar nav a, .topbar #nav a{
  text-decoration:none;
  color:#4f5870;
  font-weight:700;
  padding:10px 14px;
  border-radius:999px;
  transition:.18s ease;
}
.topbar nav a:hover, .topbar #nav a:hover{
  background:#fff;
  color:var(--ink);
  box-shadow:var(--shadow);
}
.menu-btn{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  width:42px;height:42px;border-radius:12px;
  font-size:20px;cursor:pointer
}

.hero{
  max-width:var(--max);
  margin:0 auto;
  padding:34px 28px 10px;
}
.practical-hero{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:28px;
  align-items:stretch;
}
.hero-copy, .hero-cheat, .directory-hero, .lesson-hero, .course-hero{
  border-radius:32px;
  box-shadow:var(--shadow-lg);
}
.hero-copy{
  position:relative;
  overflow:hidden;
  padding:54px 46px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(135deg, #172033 0%, #3b3176 62%, #4b80ff 100%);
  color:#fff;
}
.hero-copy:after{
  content:"";
  position:absolute;
  right:-70px; bottom:-70px;
  width:230px; height:230px;
  border-radius:50%;
  background:radial-gradient(circle at center, rgba(255,255,255,.36), rgba(255,255,255,0));
}
.hero-copy .eyebrow{color:#c7c0ff}
.hero-copy p{max-width:680px}
.hero-copy span{color:#d7ddff}
.hero-actions{
  display:flex; flex-wrap:wrap; gap:12px;
  margin:28px 0 0;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none; font-weight:800; border-radius:16px;
  padding:13px 18px; transition:.2s ease;
}
.btn.primary{
  background:#fff; color:var(--ink); box-shadow:0 10px 24px rgba(0,0,0,.16)
}
.btn.primary:hover{transform:translateY(-2px)}
.btn.ghost{
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
  background:rgba(255,255,255,.08)
}
.updated{
  margin-top:20px;
  color:#d8daf1;
  font-size:13px;
}
.hero-cheat{
  background:var(--surface);
  padding:26px 28px;
  border:1px solid var(--line);
}
.cheat-title{
  font-size:11px; letter-spacing:.12em; font-weight:900; color:#8790a5;
}
.cheat{
  display:grid; grid-template-columns:34px 1fr; gap:12px;
  padding:16px 0; border-top:1px solid var(--line); align-items:start
}
.cheat span{
  width:32px; height:32px; border-radius:10px;
  display:grid; place-items:center; font-weight:900
}
.cheat p{margin:0; color:var(--muted); line-height:1.5}
.cheat.ok span{background:var(--mint); color:var(--mint-ink)}
.cheat.caution span{background:var(--amber); color:var(--amber-ink)}
.cheat.no span{background:var(--red); color:var(--red-ink)}

.rules-grid, .traffic-grid, .tool-grid, .risk-cards, .focus-grid, .case-grid{
  display:grid; gap:16px
}
.rules-grid{grid-template-columns:repeat(2,1fr)}
.rule-card, .tool-card, .risk-cards article, .focus-card, .case-card, .traffic, .law-card, .module, .source-highlight, .source-official, .privacy-table, .guide-toc, .toc, .filter-panel, .lesson-content section > .source-box{
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.rule-card{
  border-radius:24px; padding:24px;
}
.num{
  display:grid; place-items:center;
  width:38px;height:38px;border-radius:12px;
  background:#f0ecff;color:var(--purple); font-weight:900; font-size:14px
}
.rule-card h3{margin-top:18px; font-size:22px}
.rule-card p{color:var(--muted); line-height:1.65; margin:0}

.traffic-grid{grid-template-columns:repeat(3,1fr)}
.traffic{
  border-radius:26px; padding:24px;
}
.traffic-head{display:flex; align-items:center; gap:10px; margin-bottom:10px}
.traffic-head span{font-size:18px}
.traffic.green .traffic-head span{color:#2ea275}
.traffic.amber .traffic-head span{color:#d69800}
.traffic.red .traffic-head span{color:#dd4c43}
.traffic li{color:var(--muted); line-height:1.55}

.law-stack{display:grid; gap:14px}
.law-card{
  display:grid; grid-template-columns:72px 1fr; gap:22px;
  border-radius:26px; padding:24px;
}
.law-code{
  width:64px;height:64px;border-radius:20px;display:grid;place-items:center;
  background:linear-gradient(135deg,#1f2741,#5b68a2); color:#fff; font-weight:900
}
.law-type{
  font-size:10px; font-weight:900; letter-spacing:.12em; color:var(--purple)
}
.law-card h3{margin:.25rem 0 .6rem; font-size:28px}
.law-card p{color:var(--muted); line-height:1.65}
.law-points{
  display:flex; gap:8px; flex-wrap:wrap; margin:14px 0
}
.law-points span, .tags span, .chips span, .lesson-meta span{
  display:inline-flex; align-items:center;
  min-height:34px;
  padding:8px 12px;
  border-radius:999px;
  background:#f3f5fb;
  color:#4f5870;
  font-size:13px; font-weight:700;
  border:1px solid var(--line);
}
.law-card a, .source-link, .source-official a{
  color:var(--purple); text-decoration:none; font-weight:800
}

.privacy-table{
  border-radius:26px; overflow:hidden;
}
.privacy-row{
  display:grid; grid-template-columns:1.08fr .45fr 1.47fr; gap:18px;
  padding:18px 20px; border-top:1px solid var(--line); align-items:center
}
.privacy-row.head{
  border-top:none; background:#f0f3fc;
  font-size:11px; letter-spacing:.1em; font-weight:900; color:#6b748b
}
.risk.low{color:#24815f}.risk.medium{color:#9b7605}.risk.high{color:#b3433b}
.source-highlight{
  border-radius:22px; margin-top:18px; padding:22px
}
.source-highlight p{color:var(--muted); line-height:1.6}

.risk-cards{grid-template-columns:repeat(4,1fr)}
.risk-cards article{border-radius:22px; padding:20px}
.risk-cards p{color:var(--muted); line-height:1.6; margin:0}
.warning, .big-idea, .example, .activity, .do-card, .dont-card, .fact-card, .family-card, .school-card, .source-box{
  margin:18px 0;
  padding:22px;
  border-radius:22px;
  line-height:1.65;
}
.warning{background:#fff3d8;color:#5d4a0d}
.big-idea{background:#ece8ff}
.example{background:#e8f5ff}
.activity{background:#edf9f4}
.do-card{background:#e7f7ef}
.dont-card{background:#fff0ec}
.fact-card{background:#f0edff}
.family-card{background:#fff5df}
.school-card{background:#eaf3ff}
.source-box{background:#fff; border:1px solid var(--line); box-shadow:var(--shadow)}

.focus-grid{grid-template-columns:1fr 1fr}
.focus-card{
  display:block; text-decoration:none;
  border-radius:28px; padding:28px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfbff 100%);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  transition:.2s ease;
}
.focus-card:hover{transform:translateY(-4px)}
.focus-card > span{font-size:36px}
.focus-card p{color:var(--muted); line-height:1.6}
.focus-card b{color:var(--purple); font-size:14px}

.course-hero{
  display:grid; grid-template-columns:1fr 320px; gap:20px;
  padding:28px;
  background:linear-gradient(135deg,#181f35,#3b3176 70%,#4f8bff 100%);
  color:#fff;
}
.progress-box{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  border-radius:22px; padding:18px
}
.progress-box small{display:block; letter-spacing:.1em; font-weight:900; color:#d0d7ff; margin-bottom:6px}
.progress-box strong{display:block; font-size:24px}
.progress{
  margin:14px 0 10px;
  height:10px; border-radius:999px; background:rgba(255,255,255,.18); overflow:hidden
}
.progress i{
  display:block; height:100%; width:35%;
  background:linear-gradient(90deg,#ffb877,#ffd97f,#fef4d2);
  border-radius:999px
}
.modules{display:grid; gap:14px; margin-top:20px}
.module{
  display:grid; grid-template-columns:74px 1fr auto; gap:18px; align-items:center;
  border-radius:24px; padding:20px 22px;
}
.module-number{
  width:56px;height:56px;border-radius:18px;background:#f0edff;color:var(--purple);
  display:grid;place-items:center;font:900 18px Manrope,Inter,sans-serif
}
.module span{display:block;font-size:11px;letter-spacing:.11em;color:var(--purple);font-weight:900;margin-bottom:6px}
.module h3{font-size:24px}
.module p{margin:0;color:var(--muted)}
.module-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.open-course,.primary{
  display:inline-flex;align-items:center;justify-content:center;text-decoration:none;
  border-radius:14px;padding:12px 16px;font-weight:800
}
.open-course{background:var(--ink);color:#fff}
.primary{background:linear-gradient(135deg,var(--purple),var(--blue));color:#fff}

.course-page{
  background:
    radial-gradient(circle at top left, rgba(143,114,255,.12), transparent 22%),
    linear-gradient(180deg,#fbfbff 0%,#f3f6fc 100%);
}
.course-nav, .lesson-body, .guide-layout{
  max-width:var(--max); margin:0 auto
}
.course-nav{
  padding:26px 28px 0; display:flex; justify-content:space-between; align-items:center; gap:16px
}
.course-nav a{font-weight:900; text-decoration:none; color:var(--ink)}
.lesson-hero{
  max-width:var(--max); margin:18px auto 0; padding:52px 44px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(135deg,#151d31,#322969 62%,#4d84ff 100%);
  color:#fff;
}
.lesson-hero p{max-width:720px; color:#d8dcf0; font-size:18px; line-height:1.65}
.lesson-meta{display:flex; flex-wrap:wrap; gap:8px; margin-top:24px}
.lesson-meta span{background:rgba(255,255,255,.12); color:#fff; border-color:rgba(255,255,255,.18)}
.lesson-body{
  padding:44px 28px 88px; display:grid; grid-template-columns:240px 1fr; gap:28px
}
.toc, .guide-toc{
  align-self:start; position:sticky; top:118px;
  border-radius:22px; padding:20px
}
.toc b,.guide-toc b{display:block; font-size:12px; letter-spacing:.1em; margin-bottom:10px}
.toc a,.guide-toc a{
  display:block; padding:9px 0; text-decoration:none; color:#55607b; font-size:14px
}
.toc a:hover,.guide-toc a:hover{color:var(--purple)}
.lesson-content section, .guide-content section{
  margin-bottom:42px
}
.lesson-content h2, .guide-content h2{font-size:38px; margin-bottom:16px}
.lesson-content h3, .guide-content h3{font-size:24px; margin:26px 0 10px}
.lesson-content p,.lesson-content li,.guide-content p,.guide-content li{
  color:var(--muted); line-height:1.74; font-size:16px
}
.compare, .two-col-info{
  display:grid; grid-template-columns:1fr 1fr; gap:14px
}
.compare > div, .two-col-info > div{
  background:#fff; border:1px solid var(--line); border-radius:20px; padding:20px; box-shadow:var(--shadow)
}
.steps{
  display:grid; grid-template-columns:repeat(2,1fr); gap:14px
}
.steps > div, .checklist-clean > div{
  background:#fff; border:1px solid var(--line); border-radius:18px; padding:18px; box-shadow:var(--shadow)
}
.checklist-clean{
  display:grid; gap:12px
}
.checklist-clean > div{
  display:grid; grid-template-columns:30px 1fr; gap:12px; align-items:start
}
.checklist-clean span{
  width:30px;height:30px;border-radius:10px;background:#efeaff;color:var(--purple);
  display:grid;place-items:center;font-weight:900
}
.quiz details{
  background:#fff; border:1px solid var(--line); border-radius:18px; padding:16px 18px; box-shadow:var(--shadow); margin:10px 0
}
.quiz summary{cursor:pointer; font-weight:800}
.chips{display:flex; flex-wrap:wrap; gap:8px; margin:12px 0}
.course-next{
  display:flex; justify-content:space-between; align-items:center; gap:16px; margin-top:30px; padding-top:18px
}
.course-next a{
  text-decoration:none; font-weight:800
}

.guide-hero{
  max-width:var(--max); margin:0 auto; padding:34px 28px 10px
}
.guide-hero .crumb{
  color:#7a849a; font-size:13px; margin-bottom:12px
}
.guide-hero .crumb a{
  color:var(--purple); font-weight:800; text-decoration:none
}
.guide-hero p{max-width:860px; color:var(--muted); font-size:18px; line-height:1.7}
.guide-layout{
  padding:22px 28px 96px; display:grid; grid-template-columns:240px 1fr; gap:28px
}
.source-official{
  border-radius:22px; padding:22px
}
.source-official small{
  display:block; font-size:11px; letter-spacing:.11em; font-weight:900; color:#7a8398; margin-bottom:8px
}
.source-official p{color:var(--muted); line-height:1.6}
.case-grid{grid-template-columns:1fr 1fr}
.case-card{
  border-radius:20px; padding:22px
}

.directory-hero{
  max-width:var(--max);
  margin:18px auto 0;
  padding:48px 36px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(135deg,#1a2337,#2f3169 62%,#4b82ff 100%);
  color:#fff;
}
.directory-hero p{max-width:760px;color:#d9def5; font-size:18px; line-height:1.68}
.directory-wrap{
  max-width:var(--max); margin:0 auto; padding:24px 28px 88px;
  display:grid; grid-template-columns:310px 1fr; gap:24px
}
.filter-panel{
  border-radius:26px; padding:18px; position:sticky; top:112px; align-self:start
}
.searchbox input, .select-grid select{
  width:100%; border:1px solid var(--line); border-radius:14px; background:#fff;
  padding:13px 14px; font:600 14px Inter,sans-serif; color:var(--ink)
}
.searchbox input:focus, .select-grid select:focus{
  outline:none; border-color:#c6cbff; box-shadow:0 0 0 4px rgba(107,92,255,.12)
}
.select-grid{
  display:grid; gap:12px; margin-top:12px
}
.select-grid label{
  display:grid; gap:6px; font-size:12px; font-weight:800; color:#66708a; letter-spacing:.04em
}
.device-filter{
  display:flex; flex-wrap:wrap; gap:8px; margin-top:14px
}
.device{
  border:1px solid var(--line); background:#fff; color:#4e5871;
  border-radius:999px; padding:9px 12px; font-weight:800; cursor:pointer
}
.device.active{
  background:linear-gradient(135deg,var(--purple),var(--blue)); color:#fff; border-color:transparent
}
.filter-footer{
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  margin-top:16px; padding-top:14px; border-top:1px solid var(--line); color:var(--muted); font-size:14px
}
.filter-footer button{
  border:none; background:#f0f2ff; color:var(--purple);
  padding:10px 12px; border-radius:12px; font-weight:800; cursor:pointer
}
.directory-grid{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px
}
.tool-card{
  border-radius:24px; padding:22px; display:flex; flex-direction:column; gap:12px;
}
.tool-top{
  display:flex; justify-content:space-between; align-items:center; gap:12px
}
.logo{
  width:48px; height:48px; border-radius:15px; display:grid; place-items:center; color:#fff; font-weight:900
}
.logo.canva{background:linear-gradient(135deg,#00c4cc,#1b9fff)}
.logo.genially{background:linear-gradient(135deg,#7d31ff,#00b8ff)}
.logo.notebook{background:linear-gradient(135deg,#5560ff,#8b7cff)}
.logo.minerva{background:linear-gradient(135deg,#ff8b2d,#ffcd6d)}
.badge{
  font-size:11px; font-weight:900; letter-spacing:.1em; color:#6b748a;
  border:1px solid var(--line); border-radius:999px; padding:8px 10px; background:#f8f9fd
}
.tool-card h3{font-size:24px; margin:0}
.tool-card p{color:var(--muted); line-height:1.62}
.tags{
  display:flex; flex-wrap:wrap; gap:8px
}
.tool-card a{
  margin-top:auto;
  text-decoration:none; font-weight:800; color:var(--purple)
}
.empty-state{
  display:none;
  background:#fff; border:1px dashed #ccd4e7; border-radius:22px; padding:26px; color:var(--muted)
}
.empty-state.active{display:block}
.directory-note{color:var(--muted); font-size:14px; margin-top:10px}

footer{
  max-width:var(--max);
  margin:0 auto;
  padding:0 28px 40px;
}
footer > div{
  border-top:1px solid var(--line);
  padding-top:22px;
  display:flex; justify-content:space-between; gap:16px; align-items:flex-start; flex-wrap:wrap
}
footer b{font-size:18px}
footer span{display:block; margin-top:4px; color:var(--muted); font-size:14px; line-height:1.5}
footer p{margin:0; color:#7d859a; font-size:14px}

/* responsive */
@media (max-width: 980px){
  .section-head, .practical-hero, .course-hero, .directory-wrap, .lesson-body, .guide-layout{
    grid-template-columns:1fr;
  }
  .rules-grid, .traffic-grid, .risk-cards, .directory-grid, .focus-grid, .compare, .two-col-info, .steps, .case-grid{
    grid-template-columns:1fr;
  }
  .law-card, .module{grid-template-columns:1fr}
  .course-hero{padding:24px}
  .filter-panel, .toc, .guide-toc{position:relative; top:0}
  .topbar{top:46px}
}
@media (max-width: 760px){
  .topbar{
    padding:14px 18px;
  }
  .menu-btn{display:block}
  .topbar #nav{
    display:none;
    position:absolute; right:18px; top:72px; width:min(320px, calc(100% - 36px));
    background:#fff; border:1px solid var(--line); box-shadow:var(--shadow-lg); border-radius:20px;
    padding:10px;
  }
  .topbar #nav.show{display:flex; flex-direction:column; align-items:stretch}
  .topbar #nav a{padding:12px 14px}
  .hero, .section, .guide-hero, .directory-wrap, .lesson-body, .course-nav, .lesson-hero, footer, .topbar{padding-left:18px; padding-right:18px}
  .hero-copy, .hero-cheat, .directory-hero, .lesson-hero{padding:28px}
  .privacy-row{grid-template-columns:1fr; gap:8px}
  .privacy-row.head{display:none}
  .law-card h3{font-size:24px}
  .module h3, .tool-card h3{font-size:22px}
}
@media (max-width: 520px){
  .school-strip{justify-content:flex-start; font-size:11.5px; padding:6px 12px}
  .school-strip img{width:28px;height:28px}
  .brand-mark{width:40px;height:40px}
  .module-actions, .hero-actions{flex-direction:column; align-items:stretch}
  .course-next{flex-direction:column; align-items:stretch}
}
