:root {
  --bg: #121417;
  --surface: #1a1d22;
  --border: #2a2e35;
  --text: #ffffff;
  --muted: #a6adb8;
  --accent: #8b30fe;
  --done: #8b30fe;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 20, 23, 0.92);
  backdrop-filter: blur(8px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { display: inline-flex; }
.logo img { display: block; height: 26px; width: auto; }
.step-count { color: var(--muted); font-size: 14px; }
.progress { height: 3px; background: var(--border); }
.progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.4s ease;
}

/* Stepper */
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 28px 0 8px;
}
.stepper button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.stepper button:disabled { cursor: default; opacity: 0.5; }
.stepper button[aria-current="step"] { border-color: var(--text); color: var(--text); }
.stepper .num {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-weight: 600;
  font-size: 12px;
}
.stepper .is-done .num { background: var(--done); border-color: var(--done); color: #fff; }
.stepper .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Step */
.step { padding: 24px 0 48px; text-align: center; }
.step h1 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.15;
  margin: 12px 0 12px;
}
.step .intro {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 16px;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 6px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  padding: 16px;
}
.placeholder strong { color: var(--text); font-size: 16px; }

.action { margin-top: 32px; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 40px 0 32px; }
.action-note { color: var(--muted); font-size: 14px; margin: 0 0 20px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.btn-secondary:hover { opacity: 0.9; }

.embed-frame {
  width: 100%;
  min-height: 640px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
}
.cal-embed {
  width: 100%;
  min-height: 640px;
  border-radius: var(--radius);
  overflow: auto;
}
.cal-embed:has(.placeholder) { min-height: 0; }
.cal-embed .placeholder { position: static; min-height: 320px; }

/* Primary "next step" button, styled after the reference */
.next {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 40px auto 0;
  padding: 16px 24px;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: #151b26;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.next:hover { background: #1d2533; border-color: var(--accent); transform: translateY(-1px); }
.next .main { display: block; font-size: clamp(18px, 3vw, 22px); font-weight: 500; }
.next .sub { display: block; color: var(--muted); font-size: 13px; }

.back {
  display: inline-block;
  margin-top: 16px;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

.done-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 24px auto 0;
  border-radius: 50%;
  background: var(--done);
  color: #fff;
}

.footer {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 640px) {
  .stepper .label { display: none; }
  .stepper button { justify-content: center; }
  .step .intro { margin-bottom: 24px; }
  .embed-frame, .cal-embed { min-height: 560px; }
}
