/* 7-Day Unreal Challenge — Skool-inspired, Gorka-branded */
:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --ink: #17181c;
  --ink-2: #55595f;
  --ink-3: #8b9097;
  --line: #e7e9ec;
  --accent: #ff7a1a;            /* Gorka/Unreal orange */
  --accent-ink: #b34e00;
  --accent-soft: #fff1e5;
  --active: #fdeecb;            /* Skool's yellow active item */
  --good: #17a05e;
  --radius: 14px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar-in {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 14px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.logo-badge {
  width: 34px; height: 34px; border-radius: 9px; background: var(--ink);
  color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 900;
}
.topbar .spacer { flex: 1; }
.top-link { font-size: 14px; color: var(--ink-2); font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.top-link:hover { background: var(--bg); }
.btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  border: none; border-radius: 10px; padding: 12px 22px; font-size: 15px;
  transition: transform .08s ease, box-shadow .2s ease;
  box-shadow: 0 4px 14px rgba(255, 122, 26, .35);
}
.btn:hover { transform: translateY(-1px); }
.btn.big { padding: 16px 32px; font-size: 17px; border-radius: 12px; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }

/* ---------- landing ---------- */
.hero { max-width: 860px; margin: 0 auto; padding: 84px 24px 40px; text-align: center; }
.kicker {
  display: inline-block; background: var(--accent-soft); color: var(--accent-ink);
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
h1.hero-title { font-size: clamp(38px, 6vw, 62px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 900; }
h1.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { margin: 22px auto 0; max-width: 620px; font-size: 19px; color: var(--ink-2); }
.hero-cta { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-note { font-size: 13.5px; color: var(--ink-3); }

.section { max-width: 1020px; margin: 0 auto; padding: 48px 24px; }
.section h2 { font-size: 30px; letter-spacing: -0.01em; margin-bottom: 8px; }
.section .lead { color: var(--ink-2); font-size: 16.5px; max-width: 640px; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.how-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.how-card .emoji { font-size: 26px; }
.how-card h3 { margin: 10px 0 6px; font-size: 17px; }
.how-card p { font-size: 14.5px; color: var(--ink-2); }

.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 28px; }
.day-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; gap: 14px; align-items: flex-start;
}
.day-num {
  min-width: 42px; height: 42px; border-radius: 11px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.day-card.cap .day-num { background: var(--accent); }
.day-card h3 { font-size: 15.5px; margin-bottom: 3px; }
.day-card p { font-size: 13.5px; color: var(--ink-2); }
.ramp { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); text-align: center; }

.gate {
  max-width: 560px; margin: 20px auto 90px; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; padding: 36px; text-align: center;
  box-shadow: 0 10px 40px rgba(23, 24, 28, .06);
}
.gate h2 { font-size: 24px; }
.gate p { color: var(--ink-2); font-size: 15px; margin: 10px 0 22px; }
.gate form { display: flex; gap: 10px; }
.gate input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 16px;
  font-size: 15px; font-family: inherit; outline: none;
}
.gate input:focus { border-color: var(--accent); }
.gate .fine { font-size: 12.5px; color: var(--ink-3); margin: 14px 0 0; }

footer { border-top: 1px solid var(--line); padding: 30px 24px 60px; text-align: center; color: var(--ink-3); font-size: 13.5px; }
footer a { color: var(--ink-2); font-weight: 600; }

/* ---------- classroom ---------- */
.classroom {
  max-width: 1180px; margin: 0 auto; padding: 28px 24px 80px;
  display: grid; grid-template-columns: 320px 1fr; gap: 26px; align-items: start;
}
.sidebar { position: sticky; top: 86px; }
.course-head { padding: 0 6px 14px; }
.course-head h2 { font-size: 18px; }
.progress-track { margin-top: 10px; height: 26px; background: var(--line); border-radius: 999px; overflow: hidden; position: relative; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #ffb056); border-radius: 999px; transition: width .5s ease; }
.progress-label { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }

.module { margin-bottom: 6px; }
.module-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; padding: 12px 10px 6px; font-weight: 800; font-size: 14px; color: var(--ink);
}
.module-head .chev { color: var(--ink-3); transition: transform .2s; font-size: 12px; }
.module.closed .chev { transform: rotate(-90deg); }
.module.closed .items { display: none; }
.item {
  width: 100%; text-align: left; background: none; border: none; border-radius: 10px;
  padding: 10px 12px; font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 9px;
}
.item:hover { background: #f0f1f4; }
.item.active { background: var(--active); color: var(--ink); font-weight: 600; }
.item .tick { width: 17px; height: 17px; border-radius: 50%; border: 1.6px solid var(--ink-3); flex: none; display: grid; place-items: center; font-size: 10px; color: transparent; }
.item.done .tick { background: var(--good); border-color: var(--good); color: #fff; }

.lesson { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 40px 44px; min-height: 500px; }
.lesson h1 { font-size: 27px; letter-spacing: -0.01em; margin-bottom: 18px; }
.lesson .type-tag {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.lesson p { margin-bottom: 14px; color: #2c2e33; font-size: 15.5px; }
.lesson ul, .lesson ol { margin: 0 0 16px 22px; }
.lesson li { margin-bottom: 8px; font-size: 15.5px; color: #2c2e33; }
.lesson strong { font-weight: 700; }
.video-frame {
  aspect-ratio: 16/9; background: #0e0f13; border-radius: 12px; margin-bottom: 20px;
  display: grid; place-items: center; color: #9aa0a8; font-size: 14px; overflow: hidden;
  position: relative;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.yt-mount { width: 100%; height: 100%; display: grid; place-items: center; }
.video-overlay {
  position: absolute; inset: 0; background: rgba(10, 12, 18, .92); z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: #fff; text-align: center; padding: 24px;
}
.video-overlay h3 { font-size: 24px; }
.video-overlay p { color: #b8bec8; font-size: 14.5px; max-width: 420px; margin: 0; }
.done-when {
  background: #f2fbf6; border: 1px solid #cdeeda; border-radius: 12px; padding: 16px 18px; margin: 18px 0;
}
.done-when h4 { color: var(--good); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.lesson-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.btn.complete { background: var(--good); box-shadow: 0 4px 14px rgba(23, 160, 94, .3); }
.btn.complete.is-done { background: var(--card); color: var(--good); border: 1.5px solid var(--good); box-shadow: none; }

@media (max-width: 900px) {
  .classroom { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .how { grid-template-columns: 1fr; }
  .lesson { padding: 26px 22px; }
  .gate form { flex-direction: column; }
}
