:root {
  --brand: #201652;
  --brand-dark: #170f3a;
  --ink: #14141a;
  --ink-soft: #4a4a4f;
  --muted: #6b6b70;
  --border: #e5e5e7;
  --card-bg: #ffffff;
  --page-bg: #ffffff;
  /* Distinct from --page-bg so panels stay visible now that the page is pure white. */
  --panel: #f4f4f5;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  /* Indent that aligns quiz answers under the question text, past its number
     badge. Collapses to 0 on narrow screens (see the media query) so answers
     never overflow the container. */
  --tf-indent: 40px;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.topbar {
  display: flex;
  justify-content: center;
  padding: 28px 20px 8px;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--brand);
}

.brand-logo {
  width: 100px;
  height: auto;
  display: block;
}

/* Hero */
.hero {
  display: flex;
  justify-content: center;
  padding: 12px 20px 8px;
}

.hero-inner {
  max-width: 1000px;
  text-align: center;
}

.headline {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--brand);
}

.subhead {
  font-size: 16px;
  font-weight: 300;
  color: var(--brand-dark);
  margin: 0 0 14px;
}

.body-copy {
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-soft);
  margin: 0 0 8px;
  line-height: 1.5;
}

/* Typeform-style quiz */
.tf-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border);
  z-index: 20;
}

.tf-progress-fill {
  height: 100%;
  width: 12.5%;
  background: var(--brand);
  transition: width 0.2s ease;
}

/* .quiz-wrap is the same shell, used by /book, /thankyou-wta-q and the legal pages. */
.tf-wrap,
.quiz-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 20px 40px;
  flex: 1;
}

.tf-form {
  width: 100%;
  max-width: 700px;
}

.tf-question {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.tf-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 4px;
}

.tf-q-text {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
}

.tf-required {
  color: var(--brand);
  margin-left: 2px;
}

.tf-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding-left: var(--tf-indent);
}

.tf-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tf-option:hover {
  border-color: var(--brand);
}

.tf-option-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
}

.tf-option.selected {
  border-color: var(--brand);
  border-width: 2px;
  background: rgba(32, 22, 82, 0.05);
}

.tf-option-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

.tf-input,
.tf-textarea {
  display: block;
  /* Subtract the indent from the width, otherwise 100% + margin overflows. */
  width: calc(100% - var(--tf-indent));
  margin-left: var(--tf-indent);
  max-width: 620px;
  font-family: var(--font);
  font-size: 24px;
  font-weight: 400;
  padding: 8px 2px 10px;
  border: none;
  border-bottom: 2px solid var(--border);
  background: transparent;
  outline: none;
  transition: border-color 0.15s ease;
}

.tf-input:focus,
.tf-textarea:focus {
  border-color: var(--brand);
}

.tf-textarea {
  min-height: 100px;
  resize: vertical;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 18px;
}

.tf-textarea:focus {
  border: 1.5px solid var(--brand);
}

.tf-ok-btn {
  display: inline-block;
  margin-left: var(--tf-indent);
  margin-top: 22px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.tf-ok-btn:hover {
  background: var(--brand-dark);
}

.tf-ok-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.tf-nav {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 20;
}

.tf-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.tf-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.error {
  margin-left: var(--tf-indent);
  color: #b42318;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 24px 20px 40px;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 4px 0;
}

.footer-logo {
  margin: 0 auto 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 6px;
}

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

/* Must out-specify `.site-footer p` (0-1-1) — a bare `.disclaimer` rule (0-1-0)
   loses its `auto` side margins to it and the block left-aligns. */
.site-footer .disclaimer {
  max-width: 560px;
  margin: 8px auto 0;
  margin-inline: auto;
  line-height: 1.5;
}

/* Booking page */
.book-inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

/* "Your Application is Pending..." bar */
.pending-bar {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto 28px;
  height: 34px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}

.pending-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 82%;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  background-color: var(--brand);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.16) 0 10px,
    rgba(255, 255, 255, 0) 10px 20px
  );
  background-size: 28px 28px;
  animation: pending-stripes 0.9s linear infinite;
}

@keyframes pending-stripes {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 28px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pending-fill {
    animation: none;
  }
}

.book-heading {
  max-width: 1000px;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand);
}

.book-chevron {
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
}

/* Confirmation page — "call is not confirmed" hero + walkthrough video */
.disclaimer-heading {
  margin: 0 auto 14px;
  max-width: 1000px;
  text-align: center;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #d92d20;
}

.disclaimer-subhead {
  margin: 0 auto 30px;
  max-width: 820px;
  text-align: center;
  font-size: 19px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--brand);
}

.main-video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-play-lg {
  width: 84px;
  height: 84px;
  background: #d92d20;
}

.details-block {
  max-width: 640px;
  margin: 48px auto 0;
}

.details-heading {
  margin: 0 0 12px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
}

/* Social proof — client logos + videos, shared by /book and /thankyou-wta-q */
.social-proof {
  margin-top: 56px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  align-items: center;
  margin-bottom: 34px;
}

.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 74px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Reference funnel shows client logos desaturated. */
  filter: grayscale(1);
  opacity: 0.85;
}

.logo-placeholder {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a1a1a8;
  text-align: center;
}

.social-heading {
  margin: 0 0 28px;
  text-align: center;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--brand);
}

/* Play badge for the confirmation page's walkthrough video placeholder. */
.video-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}

/* Book / Thank-you pages */
.simple-card {
  width: 100%;
  max-width: 720px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 28px;
  margin: 0 auto;
}

.page-heading {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 8px;
}

.page-subheading {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.calendly-embed {
  min-width: 320px;
  height: 700px;
  width: 100%;
  border: none;
}

.thankyou-details {
  background: var(--panel);
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 18px;
}

.thankyou-details dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  row-gap: 8px;
  margin: 0;
}

.thankyou-details dt {
  color: var(--muted);
  font-weight: 600;
}

.thankyou-details dd {
  margin: 0;
  font-weight: 600;
}

/* Answers sit flush with the question on narrow screens — the badge indent
   costs too much width and pushed inputs past the container edge. */
@media (max-width: 560px) {
  :root {
    --tf-indent: 0px;
  }
  /* Keep footer text clear of the fixed prev/next arrows. */
  .site-footer {
    padding-bottom: 110px;
  }
  .tf-nav {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 480px) {
  .headline {
    font-size: 1.5rem;
  }
  .book-heading {
    font-size: 26px;
  }
  .disclaimer-heading {
    font-size: 26px;
  }
  .disclaimer-subhead {
    font-size: 16px;
  }
  .tf-q-text {
    font-size: 20px;
  }
  .tf-input {
    font-size: 20px;
  }
}
