:root {
  --brand: #1ea0ff;
  --brand-ink: #0b6bb6;
  --ink: #203047;
  --muted: #6b7c93;
  --bg: #f6f8fb;
  --card: #ffffff;
  --ring: rgba(30, 160, 255, 0.3);
  --radius: 18px;
  --shadow: 0 6px 24px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue",
    Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 0.825rem;
  color: var(--muted);
}
.link {
  color: var(--brand);
  text-decoration: underline;
}

.site-header {
  background: #fff;
  box-shadow: var(--shadow);
}
.header-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}
.brand-sub {
  margin: 0.125rem 0 0;
}
.avatar {
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.04s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn.cta {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(30, 160, 255, 0.35);
  text-decoration: none;
  text-align: center;
}
.btn.cta:hover {
  background: var(--brand-ink);
}
.btn.ghost {
  background: #e8f4ff;
  color: var(--brand);
  border: 1px solid #d3eaff;
  text-decoration: none;
}
.btn.full {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  padding: 28px 0;
}
.media .video-card {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.media .video-card picture img {
  display: block;
  width: 100%;
  height: auto;
}
.video-thumb {
  display: block;
  width: 100%;
  height: auto;
}

/* Remove white square around play button */
.play-badge {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-badge img {
  display: block;
  width: 72px;
  height: 72px;
}

.video-card .play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  object-fit: contain;
  cursor: pointer;
  opacity: 0.95;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.video-card .play-badge:hover {
  transform: translate(-50%, -50%) scale(1.08);
  opacity: 1;
}

/* Loading overlay */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.video-frame {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.profile-name {
  margin: 0 0 6px;
  font-size: 1.5rem;
}
.profile-handle {
  margin: 0 0 10px;
  color: var(--muted);
}
.profile-copy {
  margin: 0 0 14px;
}

.card {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 6px auto 28px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 2rem;
}
.card p {
  margin: 0.25rem 0 1rem;
  line-height: 1.6;
}

.site-footer {
  padding: 28px 0 40px;
}

/* Dialog (modal) */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 16, 32, 0.45);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 50;
}
.dialog-panel {
  width: min(560px, 96%);
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
  position: relative;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #6b7c93;
}
.field {
  margin-bottom: 14px;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d6dde6;
  font-size: 1rem;
  outline: 0;
  background: #fff;
}
input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}
.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 10px 0 16px;
}
.err {
  display: block;
  color: #c0382b;
  font-size: 0.85rem;
  min-height: 1em;
}

/* Responsive */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .header-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .btn.cta {
    width: 100%;
  }
}
/* Thank-you hero banner */
.thank-hero {
  margin: 16px 0 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.thank-hero img {
  display: block;
  width: 100%;
  height: auto;
}
.video-card .play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  object-fit: contain;
  cursor: pointer;
  opacity: 0.95;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.video-card .play-badge:hover {
  transform: translate(-50%, -50%) scale(1.08);
  opacity: 1;
}
