:root {
  --ink: #15161d;
  --ink-2: #2a2c38;
  --muted: #5d6070;
  --paper: #fbf8f1;
  --soft: #f3eee2;
  --line: #e4ddcc;
  --yellow: #ffd23f;
  --red: #ff4b3a;
  --red-d: #cf2f20;
  --green: #1f9d6b;
  --radius: 18px;
  --shadow: 0 1px 0 rgba(21, 22, 29, .04), 0 12px 32px -12px rgba(21, 22, 29, .18);
  --f-head: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-meme: "Anton", Impact, "Arial Black", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.08; margin: 0; letter-spacing: -.02em; }

main { overflow-x: clip; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 14px 24px; font-weight: 600; font-size: 15px; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-red { background: #d63324; color: #fff; box-shadow: 0 6px 0 #a8251a; }
.btn-red:hover { background: #c42e20; }
.btn-red:active { transform: translateY(4px); box-shadow: 0 2px 0 #a8251a; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 2px; font-family: var(--f-head); font-weight: 800; font-size: 24px; letter-spacing: -.03em; }
.logo-7 { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--yellow); color: var(--ink); border-radius: 9px; transform: rotate(-7deg); margin-right: 4px; box-shadow: 2px 2px 0 var(--ink); }
.logo-light { color: #fff; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 241, .86); backdrop-filter: blur(10px); transition: box-shadow .2s; }
.nav.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav-links { display: flex; gap: 26px; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--red); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang-offer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; padding: 9px 44px 9px 16px; background: var(--ink); color: #fff; font-size: 14px; position: relative; }
.lang-offer a { color: var(--yellow); font-weight: 700; }
.lang-offer button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.lang-offer button:hover { background: rgba(255,255,255,.12); }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--red); margin: 0 0 16px; }
.kicker-y { color: var(--yellow); }
h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; text-wrap: balance; }
h1 .nw { white-space: nowrap; }
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 400px) { h1, h2, h3 { hyphens: auto; } h1 { font-size: 32px; } h1 .nw { white-space: normal; } .plan .price b { font-size: 34px; white-space: normal; } }
h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); padding: 0 4px; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 20px 0 0; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.cta-trial { margin-top: 24px; }
.proof { margin-top: 26px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.check { color: var(--green); font-weight: 700; }

/* Player mock */
.player { position: relative; background: #fff; border-radius: 22px; box-shadow: var(--shadow), 0 0 0 1px var(--line); padding: 14px; transform: rotate(1.2deg); }
.player-top { display: flex; align-items: center; gap: 6px; padding: 2px 6px 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.player-ep { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.screen { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #0d0e16; }
.stage { position: absolute; inset: 0; }
.lights { position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 20% 0%, rgba(120, 90, 255, .55), transparent 70%),
  radial-gradient(50% 50% at 85% 5%, rgba(255, 75, 58, .45), transparent 70%),
  radial-gradient(40% 40% at 50% 30%, rgba(255, 210, 63, .25), transparent 70%); }
.jumbotron { position: absolute; left: 50%; top: 16%; transform: translateX(-50%); width: 56%; aspect-ratio: 16 / 9; background: linear-gradient(160deg, #2c2140, #191426); border: 3px solid #3a3550; border-radius: 6px; overflow: hidden; box-shadow: 0 0 40px rgba(255, 75, 160, .35); }
.heart { position: absolute; top: 8%; left: 50%; transform: translateX(-50%); color: #ff4fa0; font-size: 22px; animation: beat 1.2s infinite; text-shadow: 0 0 12px #ff4fa0; }
.silhouettes { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; gap: 0; }
.silhouettes span { width: 48px; height: 62px; background: #0c0a14; border-radius: 24px 24px 6px 6px; position: relative; }
.silhouettes span::before { content: ""; position: absolute; top: -26px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: #0c0a14; }
.silhouettes span:first-child { transform: translateX(6px) rotate(6deg); }
.silhouettes span:last-child { transform: translateX(-6px) rotate(-6deg); animation: duck 3.2s infinite; }
.rec { position: absolute; top: 6px; left: 8px; font: 700 9px var(--f-body); color: var(--red); letter-spacing: .1em; }
.crowd { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background:
  radial-gradient(circle at 6% 100%, #000 18px, transparent 19px),
  radial-gradient(circle at 18% 100%, #000 22px, transparent 23px),
  radial-gradient(circle at 31% 100%, #000 17px, transparent 18px),
  radial-gradient(circle at 44% 100%, #000 24px, transparent 25px),
  radial-gradient(circle at 58% 100%, #000 19px, transparent 20px),
  radial-gradient(circle at 71% 100%, #000 23px, transparent 24px),
  radial-gradient(circle at 84% 100%, #000 18px, transparent 19px),
  radial-gradient(circle at 96% 100%, #000 21px, transparent 22px); }
.meme { position: absolute; left: 0; right: 0; text-align: center; font-family: var(--f-meme); text-transform: uppercase; color: #fff; font-size: clamp(16px, 2.3vw, 28px); letter-spacing: .01em; line-height: 1.05; padding: 0 12px;
  text-shadow: 2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000, -2px -2px 0 #000, 0 2px 0 #000, 2px 0 0 #000, 0 -2px 0 #000, -2px 0 0 #000; }
.meme-top { top: 4%; }
.meme-bottom { bottom: 8%; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.2); }
.progress span { display: block; height: 100%; background: var(--red); }
.quiz { padding: 16px 6px 4px; }
.quiz-q { margin: 0 0 10px; font-weight: 600; font-family: var(--f-head); font-size: 17px; }
.quiz-opts { display: grid; gap: 8px; }
.quiz-opts button { text-align: left; border: 1.5px solid var(--line); background: var(--paper); border-radius: 12px; padding: 10px 12px; font-size: 14px; transition: border-color .15s, background .15s; }
.quiz-opts button:hover { border-color: var(--ink); }
.quiz-opts button b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: 12px; margin-right: 6px; }
.quiz-opts button.right { border-color: var(--green); background: #e8f7f0; }
.quiz-opts button.wrong { border-color: var(--red); background: #fff0ee; animation: nope .35s; }
.quiz-fb { min-height: 22px; margin: 10px 2px 2px; font-size: 14px; }
.quiz-fb.good { color: var(--green); }
.quiz-fb.bad { color: var(--red-d); }
.sticker { position: absolute; top: -18px; right: -14px; background: var(--yellow); font: 800 18px var(--f-head); padding: 10px 14px; border-radius: 999px; transform: rotate(10deg); box-shadow: 3px 3px 0 var(--ink); }

/* Caution tape */
.tape { overflow: hidden; background: var(--yellow); border-block: 3px solid var(--ink); transform: rotate(-1.2deg); margin: 8px -20px; }
.tape-in { height: 30px; background: repeating-linear-gradient(-45deg, var(--ink) 0 18px, var(--yellow) 18px 36px); animation: slide 3s linear infinite; width: calc(100% + 51px); }


/* Sections */
.section { padding: 96px 0; }
.soft { background: var(--soft); }
.dark { background: var(--ink); color: #fff; }
.h2 { font-size: clamp(32px, 4vw, 50px); font-weight: 800; max-width: 820px; }
.h2.center { margin-left: auto; margin-right: auto; }
.lead-dark { color: #b9bbc9; }

/* VS */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.vs-col { position: relative; border-radius: var(--radius); padding: 32px; }
.vs-col h3 { font-size: 22px; margin-bottom: 18px; }
.vs-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vs-col li { padding-left: 32px; position: relative; }
.vs-old { background: #ecebe8; color: #6d6e75; }
.vs-old li::before { content: "✕"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #d6d4cf; font-size: 11px; font-weight: 700; }
.vs-old h3 { color: #8a8b92; }
.zzz { position: absolute; right: 26px; top: 22px; font: 800 26px var(--f-head); color: #c5c3bd; transform: rotate(-12deg); animation: float 3s ease-in-out infinite; }
.vs-new { background: #fff; box-shadow: var(--shadow), 0 0 0 2px var(--ink); }
.vs-new li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); font-size: 12px; font-weight: 800; }

/* Cases */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 28px; }
.filters button { border: 1.5px solid #3a3c4a; background: transparent; color: #d7d8e2; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.filters button:hover { border-color: #fff; }
.filters button.on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.soft .filters button { border-color: #d6cdb6; color: var(--ink-2); }
.soft .filters button:hover { border-color: var(--ink); }
.soft .filters button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.soft .case { box-shadow: 5px 5px 0 var(--yellow); color: #fff; }
.cases-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cases-bar .filters { margin-bottom: 0; }
.slide-nav { display: flex; gap: 8px; flex-shrink: 0; }
.slide-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s, opacity .15s; }
.slide-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.slide-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.slide-btn:disabled { opacity: .3; cursor: default; }
.slide-nav[hidden] { display: none; }
.cases { --per: 3; display: flex; gap: 20px; margin-top: 28px; padding: 0 8px 12px 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.cases::-webkit-scrollbar { display: none; }
.cases:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.cases > .case { flex: 0 0 calc((100% - 8px - 20px * (var(--per) - 1)) / var(--per)); scroll-snap-align: start; }
.case { background: #1f2029; border: 1px solid #2d2f3b; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; animation: pop .35s ease both; }
.case:hover { border-color: #4a4d5e; }
.case-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: #9093a3; }
.case-meta .tag { white-space: nowrap; flex-shrink: 0; }
.case-meta > span:last-child { text-align: right; min-width: 0; }
.case h3 { font-size: 22px; }
.case-meme { margin: 0; font-family: var(--f-meme); text-transform: uppercase; font-size: 19px; line-height: 1.15; color: var(--yellow); letter-spacing: .01em; }
.case-nomeme { font-family: var(--f-body); text-transform: none; font-size: 14px; font-weight: 600; color: #c9cbd6; border-left: 3px solid #c9cbd6; padding-left: 10px; }
.case-fact { margin: 0; font-size: 14px; color: #b9bbc9; }
.case-lesson { margin-top: auto; background: #272935; border-radius: 12px; padding: 12px 14px; font-size: 14px; display: grid; gap: 2px; }
.case-src { align-self: flex-start; font-size: 12px; color: #b9bbc9; text-decoration: underline; text-underline-offset: 3px; }
.case-src:hover { color: #fff; }
.case-lesson b { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--yellow); }
.case-serious { background: #1a1b22; }
.case.case-next { background: var(--yellow); border: 2px dashed var(--ink); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.case-next .case-meta { color: var(--ink-2); }
.case-next .tag { background: var(--ink); }
.case-next .case-meme { color: #d63324; }
.case-next .case-fact { color: var(--ink-2); }
.case-next .btn { margin-top: auto; align-self: flex-start; }
.case-serious .case-lesson b { color: #c9cbd6; }

.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: #33364a; color: #fff; }
.tag-ethics { background: #6c4cff; }
.tag-harass { background: #9a9cab; color: var(--ink); }
.tag-cyber { background: #1aa3c9; }
.tag-ai { background: #ff4fa0; }
.tag-mgmt { background: #ff8a3a; }
.tag-fraud { background: #d63324; }
.tag-soft { background: var(--soft); color: var(--ink-2); text-transform: none; letter-spacing: 0; font-size: 12px; }

/* Courses */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.course { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .15s, box-shadow .15s; }
.course:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.course-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--yellow); display: grid; place-items: center; }
.course-ic svg { width: 24px; height: 24px; }
.course h3 { font-size: 17px; margin-bottom: 6px; font-weight: 600; }
.course p { margin: 0; font-size: 13px; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; margin-top: 48px; }
.feat-n { font: 800 14px var(--f-head); color: var(--red); margin-bottom: 10px; }
.feat h3 { font-size: 20px; margin-bottom: 8px; }
.feat p { margin: 0; color: var(--muted); }
.dark .feat p { color: #b9bbc9; }
.dark .feat-n { color: var(--yellow); }

/* Try / mail */
.try-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mail { position: relative; background: #fff; border-radius: 20px; box-shadow: var(--shadow), 0 0 0 1px var(--line); padding: 8px 22px 20px; transition: background .3s; }
.mail.shake { animation: shake .3s; }
.mail.done { background: #fdecea; }
.mail-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mail-row span { color: var(--muted); width: 52px; flex: none; }
.mail-body { padding: 18px 0; color: var(--ink-2); min-height: 110px; }
.mail-foot { display: flex; flex-direction: column; gap: 14px; }
.mail-msg { min-height: 48px; margin: 0; font-family: var(--f-head); font-weight: 600; font-size: 18px; line-height: 1.3; }
.mail-btns { display: flex; justify-content: flex-end; gap: 10px; }
.count { opacity: .75; font-weight: 500; }
.dots { display: flex; gap: 6px; position: absolute; top: -12px; right: 22px; }
.dots i { width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.dots i.on { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--ink); }

/* HR */
.hr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hr-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.hr-list h3 { font-size: 18px; margin-bottom: 6px; }
.hr-list p { margin: 0; color: #b9bbc9; font-size: 15px; }
.dash { background: #fff; color: var(--ink); border-radius: 22px; padding: 24px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); transform: rotate(-1deg); }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-family: var(--f-head); font-size: 18px; }
.pill { font: 600 12px var(--f-body); background: var(--soft); padding: 4px 10px; border-radius: 999px; }
.dash-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { background: var(--paper); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; position: relative; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi b { font: 800 32px var(--f-head); }
.mini { position: absolute; right: 12px; bottom: 14px; border: 0; background: var(--ink); color: #fff; font-size: 12px; padding: 5px 10px; border-radius: 999px; }
.bars { display: grid; gap: 12px; margin: 22px 0; }
.bar { display: grid; grid-template-columns: 120px 1fr 44px; align-items: center; gap: 12px; font-size: 13px; }
.bar i { height: 10px; border-radius: 999px; background: var(--soft); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0; width: var(--v); background: var(--ink); border-radius: inherit; }
.bar em { font-style: normal; font-weight: 600; text-align: right; }
.alert { background: #fff0ee; border-left: 4px solid var(--red); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; font-size: 13px; }
.alert b { color: var(--red-d); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; align-items: stretch; }
.pr-sub { margin: 16px auto 0; font-size: 16px; }
.course-badge { margin-left: auto; flex: none; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.course-badge.ready { background: #e3f5ec; color: #12704b; }
.course-badge.soon { background: var(--soft); color: var(--muted); }
.course.soon { opacity: .72; }
.course { position: relative; }
@media (max-width: 1200px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px; display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
.plan h3 { font-size: 20px; }
.price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 8px; }
.price b { font: 800 44px var(--f-head); letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: 14px; }
.plan-d { color: var(--muted); margin: 8px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; align-content: start; font-size: 15px; }
.plan li { position: relative; padding-left: 26px; line-height: 1.45; }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }
.plan-act { align-self: start; display: grid; gap: 10px; justify-items: center; }
.plan-act .btn { justify-self: stretch; text-align: center; }
.plan-alt { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.plan-alt:hover { color: var(--ink); }
.plan-pop { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--yellow); }

/* FAQ */
.faq { margin-top: 40px; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 4px 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 30px 16px 0; font-weight: 600; font-family: var(--f-head); font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 26px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* CTA */
.cta { background: var(--yellow); }
.cta .lead { color: var(--ink-2); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.form { background: #fff; border-radius: 22px; padding: 28px; display: grid; gap: 14px; box-shadow: 10px 10px 0 var(--ink); }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.form input, .form select { font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.form input:focus, .form select:focus { outline: none; border-color: var(--ink); }
.form .btn { margin-top: 4px; }
.form .btn:disabled { opacity: .5; transform: none; }
.form-ok { margin: 0; font-size: 14px; color: var(--green); font-weight: 500; }

/* Footer */
.footer { background: var(--ink); color: #b9bbc9; padding: 56px 0 40px; }
.foot-in { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 40px; align-items: start; }
.foot-tag { margin: 12px 0 0; font-size: 14px; }
.foot-legal { margin: 0; font-size: 13px; line-height: 1.55; }
.foot-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot-links a:hover { color: #fff; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 10px; color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--soft); }
.lang-menu ul { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; min-width: 190px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 36px -12px rgba(21,22,29,.35); }
.lang-menu li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.lang-menu li a b { width: 24px; font-size: 12px; color: var(--muted); }
.lang-menu li a:hover { background: var(--soft); }
.lang-menu li a[aria-current] { font-weight: 700; background: var(--soft); }

/* Animations */
@keyframes beat { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.25); } }
@keyframes duck { 0%, 55% { transform: translateX(-6px) rotate(-6deg); } 65%, 90% { transform: translateX(10px) translateY(26px) rotate(-18deg); } 100% { transform: translateX(-6px) rotate(-6deg); } }
@keyframes slide { to { transform: translateX(-51px); } }
@keyframes float { 50% { transform: rotate(-12deg) translateY(-6px); } }
@keyframes nope { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes shake { 25% { transform: rotate(-.6deg); } 75% { transform: rotate(.6deg); } }
@keyframes pop { from { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Responsive */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .hero-grid, .try-grid, .hr-grid, .cta-grid { grid-template-columns: 1fr; gap: 44px; }
  .courses { grid-template-columns: 1fr 1fr; }
  .cases { --per: 2; }
  .features { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-in { gap: 12px; height: 64px; }
  .nav-right .btn { display: none; }
  .hero { padding: 32px 0 56px; }
  .section { padding: 72px 0; }
  .cases { --per: 1.15; }
  .cases-bar .slide-nav { display: none; }
  .vs, .courses, .features, .hr-list, .plans { grid-template-columns: minmax(0, 1fr); }
  .player { transform: none; }
  .sticker { right: 6px; }
  .bar { grid-template-columns: 96px 1fr 40px; }
  .dash { transform: none; }
}
.price { flex-wrap: wrap; column-gap: 6px; }
.price b { white-space: nowrap; font-size: 40px; }

.form .hp, .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-err { color: #b3261a; font-weight: 600; margin: 0; }

.nav-login { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); flex: none; transition: background .15s; }
.nav-login:hover { background: var(--yellow); }

.chan-row { align-items: baseline; }
.chan { font-family: var(--f-head); font-size: 17px; }
.slack-msg { display: flex; gap: 12px; align-items: flex-start; padding: 16px 0 6px; }
.slack-msg.past { opacity: .75; }
.slack-av { width: 38px; height: 38px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; font-size: 20px; flex: none; }
.slack-name { font-size: 15px; }
.slack-time { color: var(--muted); font-size: 12px; }
.slack-text { margin: 4px 0 0; font-size: 16px; color: var(--ink); }

.composer { margin-top: 14px; border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px 10px; background: #fff; box-shadow: 0 0 0 4px rgba(255, 210, 63, .45); }
.composer-text { margin: 0 0 12px; font-size: 16px; color: var(--ink); min-height: 48px; }
.caret { display: inline-block; width: 2px; height: 1.15em; background: var(--ink); vertical-align: text-bottom; margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.composer-tools { color: var(--muted); font-size: 14px; font-weight: 600; }
.mail .mail-msg { margin-top: 14px; min-height: 0; }
.mail.done .caret { display: none; }
.mail.done .composer-text > span:first-child { visibility: hidden; }
.slack-msg.sent { animation: posted .3s ease-out; }
@keyframes posted { from { opacity: 0; transform: translateY(12px); } }
.slack-me { background: #e8e3d6; }
.slack-reacts { display: flex; gap: 6px; flex-wrap: wrap; }
.slack-react { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }

.poster { display: flex; flex-direction: row; align-items: center; gap: 14px; background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 14px 18px; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.poster:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--yellow), 6px 6px 0 2px var(--ink); }
.poster h3 { font-family: var(--f-head); font-size: 19px; font-weight: 800; line-height: 1.1; margin: 0; }
.soon-line { margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.soon-line b { color: var(--ink-2); }

@media (max-width: 640px) {
  #courses .courses { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .poster { padding: 12px 14px; gap: 10px; border-radius: 14px; }
  .poster h3 { font-size: 15px; }
  .poster .course-ic { width: 36px; height: 36px; border-radius: 10px; }
  .poster .course-ic svg { width: 20px; height: 20px; }
}

.vis { margin: 0 0 24px; }
.slide { position: relative; height: 140px; background: #f7f6f3; border: 1px solid #d6d4cf; border-radius: 10px; padding: 14px 16px; overflow: hidden; }
.slide-t { font-size: 13px; font-weight: 600; color: #8a8b92; margin: 0 40px 12px 0; }
.slide i { display: block; height: 7px; width: 88%; background: #dcdad4; border-radius: 4px; margin: 8px 0; }
.slide i.short { width: 55%; }
.slide-f { position: absolute; right: 12px; bottom: 8px; font-size: 11px; color: #a3a29c; }
.prog { height: 5px; background: #dcdad4; border-radius: 3px; margin-top: 10px; overflow: hidden; }
.prog span { display: block; height: 100%; background: #a3a29c; }
.prog-red { background: #f1e3e1; }
.prog-red span { background: var(--red); }
.mini-time { position: absolute; right: 10px; top: 8px; background: var(--yellow); color: var(--ink); font: 800 12px var(--f-head); padding: 3px 8px; border-radius: 999px; transform: rotate(4deg); }


.dark .poster { color: var(--ink); border-color: #fff; box-shadow: 5px 5px 0 var(--yellow); }
.dark .poster:hover { box-shadow: 7px 7px 0 var(--yellow); }
.dark .soon-line { color: #b9bbc9; }
.dark .soon-line b { color: #fff; }
.dark .lead { color: #b9bbc9; }

.polas { position: relative; height: 150px; }
.pola { position: absolute; top: 10px; width: 27%; background: #fff; padding: 6px 6px 22px; border-radius: 4px; box-shadow: 0 6px 18px rgba(21, 22, 29, .18), 0 0 0 1px var(--line); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.p1 { left: 0%; transform: rotate(-7deg); z-index: 1; }
.p2 { left: 24%; transform: rotate(3deg) translateY(8px); z-index: 2; }
.p3 { left: 48%; transform: rotate(-4deg) translateY(2px); z-index: 3; }
.p4 { left: 72%; transform: rotate(6deg) translateY(10px); z-index: 4; }
.polas:hover .p1 { transform: rotate(-10deg) translateY(-6px); }
.polas:hover .p2 { transform: rotate(5deg) translateY(0); }
.polas:hover .p3 { transform: rotate(-6deg) translateY(-6px); }
.polas:hover .p4 { transform: rotate(9deg) translateY(2px); }
.ps { position: relative; aspect-ratio: 4 / 3; border-radius: 2px; overflow: hidden; background: #0d0e16; }
.ps-kiss .ps-in { position: absolute; left: 0; top: 0; width: 200%; height: 200%; transform: scale(.5); transform-origin: 0 0; }
.ps-kiss .jumbotron { width: 84%; top: 8%; border-color: #6b5a8f; box-shadow: 0 0 30px rgba(255, 75, 160, .6); background: linear-gradient(160deg, #4a3570, #2a1f40); }
.ps-kiss .heart { font-size: 34px; }
.ps-kiss .silhouettes span { width: 60px; height: 76px; background: #120e1c; }
.ps-kiss .silhouettes span::before { width: 38px; height: 38px; top: -32px; background: #120e1c; }
.ps-kiss .rec { font-size: 14px; }
.ps-call { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; background: #1b1d29; }
.ps-call i { position: relative; background: #2f3245; border-radius: 3px; overflow: hidden; }
.ps-call i::before { content: ""; position: absolute; left: 50%; top: 22%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: #8d90a6; transform: translateX(-50%); }
.ps-call i::after { content: ""; position: absolute; left: 50%; bottom: -18%; width: 70%; height: 46%; border-radius: 50% 50% 0 0; background: #8d90a6; transform: translateX(-50%); }
.ps-call i.glitch::before, .ps-call i.glitch::after { background: #c9cbd6; box-shadow: 3px 0 0 rgba(255, 60, 90, .8), -3px 0 0 rgba(60, 220, 255, .8); animation: glitch 1.6s steps(2) infinite; }
.ps-call b { position: absolute; left: 6px; top: 4px; font-size: 8px; color: #ff6b5e; letter-spacing: .06em; }
@keyframes glitch { 50% { transform: translateX(-46%) skewX(-8deg); } }
.ps-chat { background: #f4f2ec; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.ps-chat i { display: block; height: 9px; border-radius: 6px; width: 70%; background: #d9d6ce; }
.ps-chat i.r { align-self: flex-end; background: #4a7dff; }
.ps-chat i.s { width: 45%; }
.ps-chat .join { align-self: center; font-size: 9px; font-weight: 700; color: #b3261a; background: #ffe4e0; padding: 2px 7px; border-radius: 999px; }
.ps-qr { background: #c9d6e3; display: grid; place-items: center; }
.ps-qr .meter { width: 44%; height: 78%; background: #3b4256; border-radius: 6px 6px 2px 2px; display: grid; place-items: center; }
.ps-qr .qr { width: 70%; aspect-ratio: 1; background: #fff; border: 3px solid #fff;
  background-image: linear-gradient(90deg, #111 50%, transparent 50%), linear-gradient(#111 50%, transparent 50%);
  background-size: 6px 6px; background-blend-mode: multiply; }
.ps-qr .hook { position: absolute; right: 12%; top: 8%; font-size: 18px; transform: rotate(-20deg); }
@media (max-width: 640px) { .polas { height: 110px; } .pola { padding: 4px 4px 12px; } .ps-chat { padding: 5px; gap: 3px; } .ps-chat i { height: 6px; } .ps-chat .join { font-size: 7px; padding: 1px 5px; } .ps-kiss .silhouettes span { width: 40px; height: 48px; } .ps-kiss .silhouettes span::before { width: 26px; height: 26px; top: -21px; } .ps-kiss .heart { font-size: 24px; top: 4%; } }

/* Legal pages */
.legal { padding-top: 56px; }
.legal h1 { font: 800 clamp(32px, 5vw, 48px)/1.1 var(--f-head); letter-spacing: -.02em; margin: 0 0 24px; }
.legal h2 { font: 700 22px/1.25 var(--f-head); margin: 40px 0 12px; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal-lead { font-size: 18px; color: var(--ink-2); }
.legal-en { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.legal-date { margin-top: 48px; font-size: 14px; color: var(--muted); }
.legal-table { overflow-x: auto; margin: 16px 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14px; background: #fff; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.5; }
.legal th { background: var(--paper); font-weight: 700; }
mark.todo { background: #ffe7a3; padding: 0 4px; border-radius: 4px; }
.foot-links a[aria-current] { color: #fff; }

/* Episode share pages (shown only without JavaScript) */
.share-ep { min-height: 100vh; display: grid; align-items: center; }
.share-ep h1 { font: 800 clamp(30px, 5vw, 48px)/1.1 var(--f-head); margin: 18px 0 12px; }
.share-ep .btn { margin-top: 20px; }

/* 404 game */
.nf { min-height: calc(100vh - 72px); display: grid; align-items: center; }
.nf-player { max-width: 460px; justify-self: center; width: 100%; }
.nf-player .player-top { gap: 6px; padding-right: 48px; }
.nf-score { margin-left: auto; display: grid; justify-items: center; background: var(--paper); border-radius: 10px; padding: 4px 10px; min-width: 64px; line-height: 1.1; }
.nf-score + .nf-score { margin-left: 6px; }
.nf-score small { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.nf-score b { font: 800 18px var(--f-head); }
.nf-board { position: relative; aspect-ratio: 1; background: #ece6d8; border-radius: 14px; padding: 10px; touch-action: none; outline: none; }
.nf-board:focus-visible { box-shadow: 0 0 0 3px var(--ink); }
.nf-cells, .nf-tiles { position: absolute; inset: 10px; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); gap: 10px; }
.nf-cells i { background: rgba(255, 255, 255, .55); border-radius: 10px; }
.nf-t { grid-row: calc(var(--r) + 1); grid-column: calc(var(--c) + 1); display: grid; place-items: center; border-radius: 10px; font: 800 clamp(20px, 4vw, 34px) var(--f-head); letter-spacing: -.02em; background: #fff; color: var(--ink); box-shadow: 0 3px 0 rgba(21, 22, 29, .12); }
.nf-t.born { animation: nf-born .18s ease-out; }
.nf-t.merged { animation: nf-merge .2s ease-out; }
.nf-t.t7 { background: var(--yellow); }
.nf-t.t14 { background: #ffb547; }
.nf-t.t28 { background: #ff8a4c; color: #fff; }
.nf-t.t56 { background: #d63324; color: #fff; }
.nf-t.t112 { background: #2e9e6b; color: #fff; }
.nf-t.t224 { background: #3a5bd9; color: #fff; }
.nf-t.t448 { background: #7b4bd1; color: #fff; }
.nf-t.t896 { background: var(--ink); color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow); }
.nf-t.t1792 { background: var(--ink); color: #fff; font-size: clamp(16px, 3vw, 26px); }
.nf-over { position: absolute; inset: 0; border-radius: 14px; background: rgba(251, 248, 241, .9); display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; }
.nf-over[hidden] { display: none; }
.nf-over p { margin: 0; font: 800 22px/1.25 var(--f-head); max-width: 18em; }
.nf-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 6px 2px; font-size: 13px; color: var(--muted); }
.nf-restart { border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nf-sticker { z-index: 1; }
@keyframes nf-born { from { transform: scale(.3); opacity: 0; } }
@keyframes nf-merge { 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .nf-t { animation: none !important; } }
.slack-typing { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; animation: posted .3s ease-out; }
.slack-typing[hidden] { display: none; }
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .typing-dots i { animation: none; } }
.src-list { padding-left: 18px; }
.src-list li { margin: 4px 0; }
.src-meta { color: var(--muted); font-size: .9em; font-weight: 400; }
.legal h3[id] { scroll-margin-top: 90px; }
