:root{
  --bg: #0E0E0E;
  --surface: #191919;
  --border: #2A2A2A;
  --text: #F2F0EA;
  --muted: #8F8F8F;
  --accent: #E01E37;
  --accent-hover: #c81a30;
  --success: #4CD97B;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Manrope', sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{ color:inherit; }
.display{ font-family:'Fraunces', serif; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; }
}

/* ---------- header ---------- */
header{
  display:flex; justify-content:space-between; align-items:center;
  padding:28px 6vw;
  max-width:1400px; margin:0 auto;
}
.logo{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family:'Archivo Black', sans-serif;
  font-size:19px;
  letter-spacing:-0.045em;
  line-height:1;
  text-decoration:none;
  text-transform:uppercase;
}

.logo-img {
  height: 32px; /* Adjust height based on your header sizing */
  width: auto;  /* Maintains aspect ratio */
  display: block;
}
.locale{
  font-size:12px; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--muted); border:1px solid var(--border); padding:6px 12px; border-radius:100px;
}
.back-link{
  font-size:13px; color:var(--muted); text-decoration:none;
  display:inline-flex; align-items:center; gap:6px;
}
.back-link:hover{ color:var(--text); }

/* ---------- hero ---------- */
.hero{
  max-width:1400px; margin:0 auto;
  padding:10vh 6vw 8vh;
  text-align:center;
}
.eyebrow{
  font-size:13px; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--muted); margin-bottom:22px;
}
h1{
  display: flex;
  align-items: center; /* Centers the window vertically with 'Master' */
  justify-content: center;
  gap: 0.25em;
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 500;
  line-height: 1.1; /* Slightly looser line-height */
  max-width: 18ch;
  margin: 0 auto 26px;
}
h1 em{ font-style:italic; color:var(--accent); font-weight:500; }
.sub{
  font-size:clamp(16px, 2vw, 19px);
  color:var(--muted);
  max-width:46ch;
  margin:0 auto 44px;
  line-height:1.55;
}
/* Container for the flip effect */
.flip-window {
  display: inline-block;
  position: relative;
  height: 1.35em; /* Increased height so top/bottom of letters aren't clipped */
  overflow: hidden;
  vertical-align: middle;
}

/* Sliding track */
.flip-wrapper {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Individual word styling */
.flip-item {
  height: 1.35em;
  line-height: 1.35em;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Prevents italic descenders/ascenders from peeking out */
.flip-item em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
  padding: 0 0.08em;
}

/* ---------- forms (shared: waitlist + instructor apply) ---------- */
.waitlist{
  display:flex; gap:10px; justify-content:center; flex-wrap:wrap;
  max-width:480px; margin:0 auto;
}
.waitlist input{
  flex:1; min-width:220px;
  background:var(--surface);
  border:1px solid var(--border);
  color:var(--text);
  padding:15px 18px;
  border-radius:8px;
  font-family:'Manrope', sans-serif;
  font-size:15px;
}
.waitlist input::placeholder{ color:var(--muted); }
.waitlist button{
  background:var(--accent);
  color:#fff;
  border:none;
  padding:15px 26px;
  border-radius:8px;
  font-family:'Manrope', sans-serif;
  font-weight:700;
  font-size:15px;
  cursor:pointer;
  transition:transform 0.15s ease, background 0.15s ease;
  white-space:nowrap;
}
.waitlist button:hover{ background:var(--accent-hover); }
.waitlist button:active{ transform:scale(0.97); }
.status{
  margin-top:16px; font-size:13.5px; color:var(--muted); min-height:18px;
}
.status.ok{ color:var(--success); }
.status.err{ color:var(--accent); }
.form-note{
  max-width:480px;
  margin:14px auto 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}
.form-note a{ color:var(--text); }
.waitlist button:disabled, .apply-form button:disabled{
  cursor:wait;
  opacity:0.65;
}

/* ---------- marquee ---------- */
.marquee-wrap{
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:26px 0;
  overflow:hidden;
  white-space:nowrap;
  position:relative;
  margin-top:6vh;
}
.marquee-track{
  display:inline-block;
  animation: scroll 34s linear infinite;
}
.marquee-track span{
  font-family:'Fraunces', serif;
  font-style:italic;
  font-size:22px;
  color:var(--muted);
  padding:0 28px;
  position:relative;
}
.marquee-track span.accented{ color:var(--text); font-style:normal; font-weight:500; }
.marquee-track span::after{
  content:'•';
  position:absolute;
  right:-4px;
  color:var(--border);
  font-style:normal;
}
@keyframes scroll{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}

/* ---------- how it works ---------- */
section.how{
  max-width:1100px; margin:0 auto;
  padding:12vh 6vw 10vh;
  display:grid; grid-template-columns:repeat(3, 1fr); gap:50px;
}
.step .num{
  font-family:'Fraunces', serif;
  font-style:italic;
  color:var(--accent);
  font-size:15px;
  margin-bottom:16px;
}
.step h3{
  font-family:'Fraunces', serif;
  font-weight:500;
  font-size:24px;
  margin-bottom:10px;
  letter-spacing:-0.01em;
}
.step p{ color:var(--muted); font-size:15px; line-height:1.6; }

/* ---------- teach / instructor CTA section ---------- */
.teach{
  max-width:1400px; margin:0 auto;
  padding:10vh 6vw;
  border-top:1px solid var(--border);
  display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap;
}
.teach h2{
  font-family:'Fraunces', serif;
  font-weight:500;
  font-size:clamp(28px, 4vw, 40px);
  max-width:14ch;
  letter-spacing:-0.02em;
}
.teach-link{
  display:inline-flex; align-items:center; gap:10px;
  border:1px solid var(--border);
  padding:14px 22px;
  border-radius:8px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  transition:border-color 0.15s ease;
  background:none;
  cursor:pointer;
  color:var(--text);
  font-family:'Manrope', sans-serif;
}
.teach-link:hover{ border-color:var(--accent); }

/* ---------- instructor apply page specific ---------- */
.apply-form{
  max-width: 540px;
  margin: 40px auto 0;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 36px 32px;
  text-align: left; /* Left-aligns labels for a clean visual scan */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.apply-form label{
  display: block;
  color: #f0f6fc; /* Bright high-contrast white */
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.apply-form label:first-of-type {
  margin-top: 0;
}

.apply-form input, .apply-form select, .apply-form textarea{
  width: 100%;
  box-sizing: border-box;
  background-color: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 12px 16px;
  color: #f0f6fc;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.apply-form textarea{ resize:vertical; min-height:110px; }

.apply-form input::placeholder,
.apply-form textarea::placeholder {
  color: #6e7681;
}

/* Submit Button */
.apply-form button[type="submit"] {
  width: 100%;
  margin-top: 28px;
  padding: 14px 20px;
  background-color: #e01e37;
  color: #ffffff;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.apply-form button[type="submit"]:hover {
  background-color: #c0182f;
}

.apply-form button[type="submit"]:active {
  transform: scale(0.99);
}

/* Footer Notes */
.form-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: #8b949e;
  text-align: center;
}

.form-note a {
  color: #8b949e;
  text-decoration: underline;
}
.apply-form button{
  background:var(--accent);
  color:#fff;
  border:none;
  padding:16px 26px;
  border-radius:8px;
  font-weight:700;
  font-size:15px;
  cursor:pointer;
  margin-top:8px;
  transition:background 0.15s ease;
}
.apply-form button:hover{ background:var(--accent-hover); }
.apply-form .form-note{ max-width:none; margin:0; }

.privacy-copy{
  max-width:680px;
  margin:0 auto;
  text-align:left;
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
}
.privacy-copy p + p{ margin-top:18px; }

/* ---------- footer ---------- */
footer{
  max-width:1400px; margin:0 auto;
  padding:20px 6vw 50px;
  display:flex; justify-content:space-between; align-items:center;
  border-top:1px solid var(--border);
  font-size:13px; color:var(--muted); flex-wrap:wrap; gap:12px;
}

.footer-contact {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}


@media (max-width:720px){
  section.how{ grid-template-columns:1fr; gap:36px; }
  .waitlist{ flex-direction:column; }
  .waitlist button{ width:100%; }
}

/* Legal Page Styling */
.legal-container {
  max-width: 680px;
  margin: 40px auto 80px;
  padding: 0 20px;
  text-align: left; /* Eliminates the center-aligned wall of text */
}

.legal-container h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 2.25rem; /* Slightly reduced font size so it fits cleanly on one line */
  font-weight: 700;
  color: #f0f6fc;
  margin-top: 8px;
  margin-bottom: 8px;
  line-height: 1.2;
  white-space: nowrap;
}

.legal-container h1 em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: #e01e37;
  font-weight: 500;
  margin-left: 6px;
}

.last-updated {
  color: #8b949e;
  font-size: 0.875rem;
  margin-bottom: 32px;
}

/* Glassmorphic Container Card */
.legal-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.legal-card section {
  margin-bottom: 32px;
  border-bottom: 1px solid #21262d;
  padding-bottom: 24px;
}

.legal-card section:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.legal-card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #f0f6fc;
  margin-bottom: 12px;
}

.legal-card p, 
.legal-card li {
  color: #8b949e;
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-card ul {
  margin-top: 12px;
  padding-left: 20px;
}

.legal-card li {
  margin-bottom: 8px;
}

.legal-card strong {
  color: #c9d1d9;
}