/* RankFlow Funnel — shared styles. Deliberately plain: system fonts,
   minimal shadows, no animation libraries. Keeps it fast and matches the
   "basic, not fancy" brief. */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --gold: #b8860b;
  --text: #111111;
  --text-muted: #555555;
  --border: #e5e5e5;
  --bg: #ffffff;
  --max-width: 520px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.4;
  overflow-x: hidden; /* the testimonial-grid breakout below uses a 100vw
    trick that can overflow by the scrollbar's width - this is the standard,
    safe guard against that turning into page-wide horizontal scroll */
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px 40px;
}

img, video, iframe {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.logo-img {
  width: 220px;
  height: auto;
}

/* Headings */
h1 {
  font-size: 28px;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 16px;
}
h1 .accent {
  color: var(--blue);
}
h2 {
  font-size: 20px;
  text-align: center;
  margin: 32px 0 16px;
}

/* Guarantee text */
.guarantee {
  text-align: center;
  margin-bottom: 24px;
}
.guarantee p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn {
  display: block;
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover, .btn:focus {
  background: var(--blue-dark);
}

.fine-print {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: 10px 0 0;
}

/* Star rating + review line, shown under every CTA button */
.stars-row {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin: 14px 0 0;
}
.stars-row .stars {
  color: #5a8f3d;
  letter-spacing: 2px;
  margin-right: 4px;
}

.gold-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border: none;
  border-radius: 2px;
  margin: 36px auto;
}

.section-heading {
  text-align: center;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 24px;
}

/* Sticky bottom CTA bar: fixed off-screen by default, slides up when
   .visible is toggled on by wireStickyCta() in main.js */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.25s ease;
  z-index: 500;
}
.sticky-cta.visible {
  transform: translateY(0);
}
.sticky-cta .btn {
  max-width: var(--max-width);
  margin: 0 auto;
}
.sticky-cta .stars-row {
  margin-top: 8px;
}

/* Video testimonial card */
.video-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 4px;
}
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.play-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  margin-left: 3px;
}
.video-placeholder-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  color: #ccc;
  font-size: 11px;
  text-align: center;
  pointer-events: none;
}

.testimonial-quote {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  margin: 10px 0 2px;
}
.testimonial-attribution {
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 28px;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 16px;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
}
.modal h2 {
  margin: 0 0 20px;
  font-size: 20px;
  text-align: left;
}

.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.radio-option input {
  width: 16px;
  height: 16px;
}

/* Booking page pieces */
.report-heading {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin: 8px 0 8px;
}
.report-subheading {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 24px;
}
.step-bar {
  background: var(--blue);
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.step-bar u {
  text-decoration: underline;
}

.explainer-video-wrap {
  position: relative;
  margin-bottom: 24px;
}
.explainer-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}

.step2-heading {
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  margin: 24px 0 16px;
}

.calendar-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 32px;
}
.calendar-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.calendar-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
}
.calendar-card-header h3 {
  margin: 0;
  font-size: 18px;
}
.calendar-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.calendar-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.calendar-embed-container {
  min-height: 400px;
}
.calendar-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 14px;
}

/* Sorry / thank-you pages */
.center-text {
  text-align: left;
}
.center-text h1 {
  text-align: left;
  font-size: 24px;
}
.center-text p {
  font-size: 15px;
  color: var(--text);
}

.confirmed-phone {
  font-weight: 700;
}

footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 32px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* ============================================================
   Desktop / tablet — this was built mobile-first (every reference
   screenshot was a phone screenshot) and looked like a thin stripe
   of content in a sea of white on a real desktop screen. This
   widens things in two tiers rather than stretching everything to
   full width, which would look worse, not better:
     - single-column content (hero, form, calendar) gets modestly
       wider and slightly larger type
     - testimonials break out into a multi-column grid, since
       stacking vertical phone videos full-width on a 1440px screen
       is its own kind of ugly
   ============================================================ */
@media (min-width: 700px) {
  .wrap {
    max-width: 640px;
    padding-top: 24px;
  }
  h1 {
    font-size: 34px;
  }
  .step-heading {
    font-size: 24px;
  }
  .report-heading {
    font-size: 26px;
  }
  .social-proof-cta {
    font-size: 19px;
  }
  .btn {
    width: auto;
    min-width: 320px;
    margin: 0 auto;
  }
  .fine-print,
  .social-proof-cta {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 900px) {
  .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 20px;
    align-items: start;
    /* Break out of the narrower .wrap parent and self-center on the
       viewport. Using left:50% + translateX(-50%) instead of a plain
       negative-vw margin because the latter only centers correctly when
       the element ends up exactly 100vw wide - here max-width caps it
       narrower than that on anything wider than ~1100px, and a fixed
       margin doesn't adapt to that the way a transform percentage
       (relative to the element's own final width) does. */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 1100px;
    padding-left: 20px;
    padding-right: 20px;
  }
  #closing-testimonial {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}
