/* =========================================================================
   PROJECT BELLPLEX — /complexes landing page
   Brand guide v1 application (mobile-first)
   ========================================================================= */

:root {
  --surface: #0A0A0A;
  --surface-card: #1F1F1F;
  --surface-elev: #141414;
  --text: #F5F5F5;
  --text-muted: #A3A3A3;
  --text-dim: #6B6B6B;
  --accent: #E0231C;
  --accent-hover: #C41E18;
  --accent-press: #A11912;
  --border: #2A2A2A;
  --max-content: 560px;
  --gutter: 20px;
  --radius: 8px;
  --tap: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--surface);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Typography ---------- */
.display, h1, h2, h3 {
  font-family: 'Anton', 'Inter', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(40px, 11vw, 56px);
  line-height: 0.95;
}

h2 {
  font-size: clamp(32px, 8vw, 44px);
  line-height: 1.0;
}

h3 {
  font-size: clamp(24px, 6vw, 32px);
}

p {
  font-size: 18px;
  line-height: 1.55;
}

p.lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text);
}

p.muted {
  color: var(--text-muted);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: 56px 0;
}

section.hero {
  padding-top: 32px;
  padding-bottom: 48px;
}

section.dark-card {
  background: var(--surface-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Hero ---------- */
.hero-video-wrap {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 60vh;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  margin-bottom: 28px;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* ---------- Video unmute toggle ---------- */
.video-unmute {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(10, 10, 10, 0.78);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 120ms ease, transform 80ms ease;
}

.video-unmute:hover { background: rgba(10, 10, 10, 0.92); }
.video-unmute:active { transform: translateY(1px); }

.video-unmute .icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.video-unmute[data-state="muted"] .icon-unmuted,
.video-unmute[data-state="unmuted"] .icon-muted {
  display: none;
}

/* Pulse cue when first loaded */
@keyframes pulse-cue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 35, 28, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(224, 35, 28, 0); }
}
.video-unmute[data-state="muted"][data-hint="visible"] {
  animation: pulse-cue 1.6s ease-in-out 3;
}

.hero h1 {
  margin-bottom: 16px;
}

.hero h1 .accent {
  color: var(--accent);
  display: inline-block;
}

.hero .sub {
  font-size: 19px;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 460px;
}

/* ---------- Form ---------- */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.input {
  width: 100%;
  height: var(--tap);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  padding: 0 18px;
  transition: border-color 120ms ease, background 120ms ease;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  background: #181818;
}

.input::placeholder {
  color: var(--text-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--tap);
  background: var(--accent);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0 24px;
  transition: background 120ms ease, transform 80ms ease;
  box-shadow: 0 6px 18px rgba(224,35,28,0.25);
}

.btn:hover { background: var(--accent-hover); }
.btn:active { background: var(--accent-press); transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: wait; }

.form-fineprint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

.form-error {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(224,35,28,0.12);
  border: 1px solid rgba(224,35,28,0.4);
  border-radius: var(--radius);
  color: #F5A29E;
  font-size: 14px;
}

.form-error.is-visible { display: block; }

/* ---------- Proof number ---------- */
.proof-number {
  text-align: center;
}

.proof-number .number {
  font-family: 'Anton', system-ui, sans-serif;
  font-size: clamp(80px, 22vw, 128px);
  line-height: 0.9;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.proof-number .label {
  margin-top: 8px;
  font-size: 18px;
  color: var(--text);
  font-weight: 500;
}

/* ---------- Pain points ---------- */
.pain-points h2 {
  margin-bottom: 24px;
}

.pain-points ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pain-points li {
  position: relative;
  padding: 18px 18px 18px 56px;
  background: var(--surface-card);
  border-radius: var(--radius);
  font-size: 18px;
  line-height: 1.45;
}

.pain-points li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Testimonials ---------- */
.testimonials h2 {
  margin-bottom: 24px;
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.testimonial-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.testimonial-quote {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.testimonial-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 15px;
}

.testimonial-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.testimonials-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  font-style: italic;
}

/* ---------- Mini Pat ---------- */
.mini-pat {
  text-align: center;
}

.mini-pat-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--border);
}

.mini-pat blockquote {
  font-size: 19px;
  line-height: 1.45;
  font-weight: 500;
  margin-bottom: 8px;
}

.mini-pat .signoff {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer .socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

footer .socials a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 120ms ease;
}

footer .socials a:hover { color: var(--text); }

footer .copyright {
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- Thank-you-specific ---------- */
.thankyou-hero {
  padding-top: 48px;
  padding-bottom: 24px;
}

.thankyou-hero .check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
}

.thankyou-hero h1 {
  text-align: center;
  margin-bottom: 16px;
}

.thankyou-hero p {
  text-align: center;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 32px auto;
  max-width: 80%;
}

.skool-pitch h2 {
  margin-bottom: 16px;
  text-align: center;
}

.skool-pitch .lede {
  text-align: center;
  font-size: 19px;
  margin-bottom: 24px;
  color: var(--text);
}

.skool-pitch .video-wrap {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 50vh;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  margin-bottom: 24px;
}

.skool-pitch .video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skool-pitch ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding: 0 12px;
}

.skool-pitch ul li {
  position: relative;
  padding-left: 28px;
  font-size: 17px;
  line-height: 1.45;
}

.skool-pitch ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.skool-secondary-link {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--text-dim);
}

.skool-secondary-link:hover { color: var(--text); }

/* ---------- Tablet+ ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  body { font-size: 19px; }

  .testimonial-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .form-row {
    flex-direction: row;
    align-items: stretch;
  }

  .form-row .input { flex: 1; }
  .form-row .btn { flex: 0 0 auto; width: auto; padding: 0 32px; }

  .hero-video-wrap {
    aspect-ratio: 16 / 10;
    max-height: 460px;
  }

  .skool-pitch .video-wrap {
    aspect-ratio: 16 / 10;
    max-height: 420px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  video[autoplay] { display: none; }
}

/* ---------- Print/screenreader skip link ---------- */
.skip-to-form {
  position: absolute;
  left: -9999px;
  top: -9999px;
}
.skip-to-form:focus {
  position: static;
  display: block;
  background: var(--accent);
  color: #fff;
  padding: 12px;
}
