:root{
  --bg: #ffffff;
  --fg: #111111;
  --muted: #444444;
  --soft: #f7f7f7;
  --border: #111111;
  --shadow: 6px 6px 0 #111111;
  --shadow-sm: 3px 3px 0 #111111;
  --radius: 14px;
  --max: 1120px;
  --gold: #c9921a;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --display: "Bangers", var(--sans);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.55;
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.08) 1px, transparent 0) 0 0 / 14px 14px,
    linear-gradient(var(--bg), var(--bg));
}

a{ color: inherit; }
a:hover{ text-decoration: none; }

.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--bg);
  padding: 10px 14px;
  border: 2px solid var(--border);
  z-index: 9999;
}
.skip-link:focus{ left: 16px; top: 16px; }

.nav{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--border);
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 14px;
  position: relative;
}
.nav-inner.nav-grid{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.nav-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}
.nav-row-top{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
}
.nav-row-bottom{
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
}
.nav-row-bottom .nav-line{
  flex: 1;
  min-width: 0;
}
.nav-meta{
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}
.brand{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-decoration: none;
}
.brand .logo{
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.5px;
}
.nav-line{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.brand .tag{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
}

.nav-links{
  display: none;
  gap: 14px;
  align-items: center;
}
.nav-links.open{
  display: flex;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 12px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.nav-links.open a{
  padding: 10px 12px;
}
.nav-links.open .nav-login{
  display: inline-flex;
}
.nav-login{
  display: none;
  width: 100%;
  justify-content: center;
}
.nav-links a{
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-links a:hover{
  background: rgba(0,0,0,0.05);
}

.nav-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}
#authState{
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
#authState:empty{ display: none; }
.nav-login-desktop{
  display: inline-flex;
}
.nav-toggle{
  width: 42px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.nav-toggle span{
  width: 18px;
  height: 2px;
  background: #111;
  display: block;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover{ transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.btn:active{ transform: translate(0, 0); box-shadow: var(--shadow-sm); }
.btn.primary{
  background: var(--fg);
  color: var(--bg);
}
.btn.small{ padding: 9px 12px; border-radius: 10px; font-weight: 800; }
.btn.linkish{
  background: transparent;
  box-shadow: none;
  border: 2px dashed var(--border);
}

.hero{
  padding: 34px 0 22px;
}
#top{
  scroll-margin-top: 48px;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
}
.hero-grid > *{
  min-width: 0;
}
.hero-intro{
  grid-column: 1 / -1;
  text-align: center;
}
.hero-wide{
  grid-column: 1 / -1;
}
.hero-wide-head h2{
  margin: 0 0 6px;
}
.hero-wide-subtitle{
  font-weight: 800;
  margin-bottom: 10px;
}
.hero-wide-float{
  float: left;
  width: clamp(180px, 26%, 260px);
  max-width: 34%;
  height: auto;
  margin: 4px 18px 10px 0;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: #fff;
  display: block;
  object-fit: cover;
}
.hero-wide-body::after{
  content: "";
  display: block;
  clear: both;
}
.hero-wide-body p{
  margin: 0 0 12px;
}
.hero-wide-sign{
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  clear: both;
  margin-left: auto;
  margin-right: 50px;
  margin-bottom: 20px;
}
.hero-wide-sign img{
  height: 52px;
  width: auto;
  display: block;
}
.hero-title{
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 110px);
  letter-spacing: 1px;
  margin: 0 0 6px;
  line-height: 0.95;
  width: 100%;
}
.hero-subtitle{
  font-family: var(--display);
  font-size: clamp(28px, 3.8vw, 52px);
  letter-spacing: 0.8px;
  color: var(--gold);
  margin-bottom: 12px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.hero-subline{
  font-size: clamp(14px, 1.9vw, 18px);
  color: var(--muted);
  margin-bottom: 10px;
  white-space: nowrap;
}
.hero-divider{
  height: 2px;
  width: min(220px, 70%);
  background: var(--border);
  margin: 8px auto 10px;
}
.hero-row4{
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  grid-template-areas:
    "glance"
    "build"
    "starts";
}
.hero-row4 .glance-card{ grid-area: glance; }
.hero-row4 .build-card{ grid-area: build; }
.hero-row4 .starts-card{ grid-area: starts; }
.hero-row4 .card.pad{ padding: 16px; }
.carousel-block{
  display: grid;
  gap: 8px;
}
.carousel-block,
.instructor-card{
  align-self: stretch;
  height: 100%;
}
.carousel-block .carousel{ box-shadow: none; }
.carousel-block.card.pad,
.instructor-card.card.pad{
  padding: 14px;
}
.carousel{
  aspect-ratio: 7 / 6;
}
.instructor-card{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.instructor-top{
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.instructor-photo{
  width: 150px;
  height: 150px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(135deg, #fdfdfd, #e9e9e9);
  overflow: hidden;
}
.instructor-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.teacher-grid{
  display: grid;
  gap: 14px;
}
.teacher-bio::after{
  content: "";
  display: block;
  clear: both;
}
.teacher-photo{
  float: left;
  width: 180px;
  height: 180px;
  margin: 4px 16px 12px 0;
  border: 2px solid var(--border);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.back-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
}
.badges{
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 8px 0 8px;
  justify-content: center;
  overflow: hidden;
}
.badge{
  flex: 0 0 auto;
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(255,255,255,0.8);
}

.card{
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}
.card.pad{
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.card-actions{
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
}
.pref-form{
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pref-form .notice{ margin-top: 4px; }
.pref-form .msg{ margin-top: 0; }
.hidden{ display: none; }
.quiz.hidden{ display: none; }
.quiz-start{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quiz-start.hidden{
  display: none;
}
.quiz-start .card-actions{
  margin-top: 0;
}
.quiz-cover{
  border: 2px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.quiz-cover img{
  width: 100%;
  height: auto;
  display: block;
}
.quiz-meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.quiz-score{
  font-weight: 800;
  margin-bottom: 8px;
}
.quiz-timer{
  min-width: 64px;
  text-align: right;
}
.quiz-q{
  font-weight: 800;
  margin-bottom: 10px;
}
.quiz-options{
  display: grid;
  gap: 8px;
}
.quiz-option{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.quiz-option input{ margin-top: 4px; }
.opt-letter{
  font-family: var(--mono);
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  color: var(--muted);
}
.quiz-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}
.quiz-overlay{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.quiz-overlay.show{ display: flex; }
.quiz-overlay-modal{
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.quiz-overlay-modal h3{
  margin: 0 0 16px;
  font-size: 1.2rem;
}
.quiz-spinner{
  width: 48px;
  height: 48px;
  border: 4px solid #eee;
  border-top-color: #111;
  border-radius: 50%;
  animation: quizSpin 1s linear infinite;
  margin: 0 auto 20px;
}
@keyframes quizSpin{
  to{ transform: rotate(360deg); }
}
.quiz-overlay-actions{
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.cta-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.manifesto{
  font-size: 16px;
  margin: 0;
}
.manifesto strong{
  background: #fff;
  border: 2px solid var(--border);
  padding: 2px 6px;
  border-radius: 8px;
}

.section{
  padding: 30px 0;
}
.section h2{
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 44px);
  margin: 0 0 10px;
  letter-spacing: 0.6px;
}
.section p{ margin: 0 0 12px; }

.grid-2{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.grid-2-1{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.referral-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.referral-grid > *{
  min-width: 0;
}

.ul{
  margin: 10px 0 0;
  padding-left: 18px;
}
.ul li{ margin: 6px 0; }

.carousel-wrap{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
}
.carousel{
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.carousel img{
  width: 100%;
  height: 100%;
  display: block;
  max-width: 100%;
  object-fit: cover;
}
.carousel-controls{
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}
.carousel-controls .left,
.carousel-controls .right{
  display: flex;
  gap: 10px;
  align-items: center;
}
.kpi{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.fade{
  opacity: 1;
  transition: opacity 250ms ease;
}
.fade.out{ opacity: 0; }

.pricing-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.price-card{
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.price-now{
  font-family: var(--display);
  font-size: 34px;
  margin: 0 0 6px;
}
.small-muted{ color: var(--muted); font-size: 14px; margin-top: 4px; }
#priceNowMeta{ margin-bottom: 10px; }
#priceCountdown{ font-weight: 800; margin-top: 10px; }
.referral-note{
  margin-top: 12px;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 232, 170, 0.45);
  font-family: var(--mono);
  font-size: 13px;
  display: none;
}
.referral-note.compact{
  font-size: 12px;
  padding: 8px 10px;
}
.referral-note .pay{
  font-weight: 900;
  font-size: 18px;
}
.referral-note .was{
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 700;
  margin-left: 6px;
}
.referral-note .meta{
  margin-top: 4px;
  font-weight: 700;
  color: #111;
}
.price-table{
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
}
.admin-table{
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12px;
}
.price-table th, .price-table td{
  border-top: 1px solid rgba(0,0,0,0.2);
  padding: 10px 8px;
  text-align: left;
}
.admin-table th, .admin-table td{
  border-top: 1px solid rgba(0,0,0,0.2);
  padding: 8px 8px;
  text-align: left;
  vertical-align: top;
}
.referral-grid .admin-table{
  table-layout: fixed;
  width: 100%;
}
.referral-grid .admin-table th,
.referral-grid .admin-table td{
  overflow-wrap: anywhere;
}
.admin-table tr:nth-child(even){
  background: rgba(0,0,0,0.03);
}
.copy-link{
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}
.copy-link.copied{
  text-decoration: none;
  font-weight: 800;
}
.price-table tr.active{
  outline: 2px solid var(--border);
  outline-offset: -2px;
  background: rgba(0,0,0,0.05);
}

.progress{
  height: 14px;
  border: 2px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.progress > div{
  height: 100%;
  width: 0%;
  background: #111;
  transition: width 300ms ease;
}
.progress-meta{
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.roadmap{
  display: grid;
  gap: 14px;
}
.lesson{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
}
.lesson .num{
  font-family: var(--mono);
  font-weight: 800;
  border: 2px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 8px;
}
.lesson h3{
  font-size: clamp(20px, 2.2vw, 24px);
  margin: 0 0 8px;
}
.lesson p{
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
}
.lesson .img{
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
  aspect-ratio: 3 / 2;
}
.lesson .img img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.faq details{
  border-top: 1px solid rgba(0,0,0,0.2);
  padding: 10px 0;
}
.faq summary{
  cursor: pointer;
  font-weight: 900;
}
.faq p{
  margin: 8px 0 0;
  color: var(--muted);
}

footer{
  padding: 30px 0 40px;
  border-top: 2px solid var(--border);
  margin-top: 30px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}
.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 6px;
}
.footer-links a{
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.2);
}
.footer-contact{
  margin-top: 10px;
  line-height: 1.4;
}
.mono{ font-family: var(--mono); }

dialog{
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 0;
  max-width: 780px;
  width: calc(100% - 24px);
  box-shadow: var(--shadow);
}
dialog::backdrop{
  background: rgba(0,0,0,0.55);
}
.dialog-head{
  padding: 14px 16px;
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.95);
}
.dialog-head h3{
  font-family: var(--display);
  margin: 0;
  font-size: 26px;
}
.dialog-body{
  padding: 16px;
  display: grid;
  gap: 14px;
}
.tabs{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tab{
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 8px 10px;
  background: #fff;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
}
.tab.active{
  background: #111;
  color: #fff;
}
.form{
  display: grid;
  gap: 10px;
}
.field{
  display: grid;
  gap: 6px;
}
.inline-row{
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline-row select{
  flex: 0 0 120px;
  width: 120px;
  max-width: 120px;
}
.inline-row input{
  flex: 1;
}
.inline-row .num-input{
  flex: 0 0 72px;
  width: 72px;
  max-width: 72px;
}
label{
  font-weight: 900;
}
.check{
  font-weight: 700;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.check input{ margin-top: 3px; }
input, select, textarea{
  padding: 11px 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 14px;
  background: #fff;
}
input:focus, select:focus, textarea:focus{
  outline: 3px solid rgba(0,0,0,0.3);
  outline-offset: 2px;
}
.form-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.notice{
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.9);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.danger-zone{
  border: 2px solid #9b1c1c;
  background: #fff7f7;
}
.danger-form{
  border: 2px dashed #9b1c1c;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.msg{
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12px;
  display: none;
}
.msg.ok{ background: rgba(0,0,0,0.05); }
.msg.bad{ background: rgba(0,0,0,0.08); }
.msg.show{ display: block; }

@media (min-width: 860px){
  .nav-links{ display: flex; }
  .nav-links.open{
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav-links.open a{ padding: 8px 10px; }
  .nav-login{ display: none; }
  .nav-toggle{ display: none; }
  .hero-grid{ grid-template-columns: 1.1fr 0.9fr; }
  .hero-row4{
    grid-template-columns: 0.6fr 0.6fr 1fr;
    grid-template-areas: "build starts glance";
    align-items: stretch;
  }
  .grid-2{ grid-template-columns: 1fr 1fr; }
  .grid-2-1{ grid-template-columns: 2fr 1fr; }
  .carousel-wrap{ grid-template-columns: 1fr 1fr; }
  .pricing-grid{ grid-template-columns: 1fr 1fr; }
  .lesson{ grid-template-columns: 1.1fr 0.9fr; }
  .lesson.reverse{ grid-template-columns: 0.9fr 1.1fr; }
  .lesson.reverse .text{ order: 2; }
  .lesson.reverse .img{ order: 1; }
  .form-row{ grid-template-columns: 1fr 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr 1.2fr; }
  .instructor-photo{
    width: 190px;
    height: 190px;
  }
}

@media (min-width: 1100px){
  .referral-grid{ grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}

@media (max-width: 980px){
  .referral-grid{ grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px){
  .hero-subline{
    white-space: normal;
  }
  .hero-wide-float{
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px;
  }
  .teacher-photo{
    float: none;
    width: 100%;
    max-width: 240px;
    height: auto;
    margin: 0 0 12px;
  }
  .back-top{
    right: 12px;
    bottom: 12px;
  }
}
#top,
.section,
.card[id]{
  scroll-margin-top: 48px;
}
html{
  scroll-padding-top: 48px;
}
